On systems with glibc ≥2.36 (e.g., Ubuntu 24), paths starting with double slashes (//) are interpreted as network paths. PyFMI generate commands like:
cp -f "//resources//variables.cfg" "."
which fails with:
cp: cannot stat '//resources//variables.cfg': No such file or directory
As a result, FMU instantiation fails on newer systems, while it works correctly on older versions of glibc (<2.36).
Steps to Reproduce
Extract an FMU containing a resources folder.
Observe the cp command in the logs uses //resources//variables.cfg.
On Ubuntu 24, the copy fails and instantiation errors out.
Impact
Blocks FMU usage on modern Linux distributions without any changes to the FMU package.
On systems with glibc ≥2.36 (e.g., Ubuntu 24), paths starting with double slashes (//) are interpreted as network paths. PyFMI generate commands like:
cp -f "//resources//variables.cfg" "."
which fails with:
cp: cannot stat '//resources//variables.cfg': No such file or directory
As a result, FMU instantiation fails on newer systems, while it works correctly on older versions of glibc (<2.36).
Steps to Reproduce
Extract an FMU containing a resources folder.
Observe the cp command in the logs uses //resources//variables.cfg.
On Ubuntu 24, the copy fails and instantiation errors out.
Impact
Blocks FMU usage on modern Linux distributions without any changes to the FMU package.