You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to export the Example "IBPSA/Fluid/Geothermal/Borefields/Examples/RectangularBorefield.mo" as FMU unfortunatelly fails. The error message indicates the the linking process fails while trying to link the function `dgetri_'.
Same behaviour appears when exporting models including OneUTube and TwoUTubes as FMU, that work fine while simulationg within Omedit.
To reproduce:
Open example IPBSA/Fluid/Geothermal/Borefields/Examples/RectangularBorefield.mo
Right-click on example and choose Export -> FMU
FMU creation fails with error message (complete error message attached): C:/Users/ETZOLD/Programs/OpenModelica/tools/msys/ucrt64/bin/ld: CMakeFiles/RectangularBorefield.dir/objects.a(RectangularBorefield_functions.c.obj):RectangularBorefield_functions.c:(.text+0x1dd99): undefined reference to `dgetri_'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Expected behavior
It is expected that the linking process during FMU export is set up to find the library containing the referenced function `dgetri_'
Desktop
OpenModelica Omedit v1.24.3
IBPSA Main Branch (downloaded January 28th 2025)
Windows11
(similar issue appears on Ubuntu Linux 24.04 LTS with same version of OpenModelica and IBPSA. Under Linux, the libraries are dynamically linked, so the error appears when calling the FMU, but the error message indicates that the same function dgetri_ cannot be found.)
Building the FMU under Linux works since the libraries are dynamically linked, therefore the FMU fails when running it, this is how the FMU was compiled in the OpenModelica-Test. Under Windows somehow libraries are statically linked, therefore the issue appears during FMU generation.
Bug description
Trying to export the Example "IBPSA/Fluid/Geothermal/Borefields/Examples/RectangularBorefield.mo" as FMU unfortunatelly fails. The error message indicates the the linking process fails while trying to link the function `dgetri_'.
Same behaviour appears when exporting models including OneUTube and TwoUTubes as FMU, that work fine while simulationg within Omedit.
To reproduce:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Expected behavior
It is expected that the linking process during FMU export is set up to find the library containing the referenced function `dgetri_'
Desktop
(similar issue appears on Ubuntu Linux 24.04 LTS with same version of OpenModelica and IBPSA. Under Linux, the libraries are dynamically linked, so the error appears when calling the FMU, but the error message indicates that the same function dgetri_ cannot be found.)
IBPSA_borefield_FMU_error_message.txt
Thank you very much!
Best regards
Tino
The text was updated successfully, but these errors were encountered: