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 "AixLib/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_'.
I used the borefield-model (AixLib.Fluid.Geothermal.Borefields.TwoUTubes) in a heat-network simulation, which works fine in Openmodelica Connection Editor. When exporting the model as an FMU, the same issue happens as when exporting the Example case (which uses OneUTubes). When I remove the borefield from the model, FMU export works fine.
To reproduce
Open example AixLib/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 (please complete the following information):
OpenModelica Omedit v1.24.3
AixLib 2.1.0
Windows11
(similar issue appears on Ubuntu Linux 24.04 LTS with same version of OpenModelica an AixLib. 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.)
Bug description
Trying to export the Example "AixLib/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_'.
I used the borefield-model (AixLib.Fluid.Geothermal.Borefields.TwoUTubes) in a heat-network simulation, which works fine in Openmodelica Connection Editor. When exporting the model as an FMU, the same issue happens as when exporting the Example case (which uses OneUTubes). When I remove the borefield from the model, FMU export works fine.
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 (please complete the following information):
(similar issue appears on Ubuntu Linux 24.04 LTS with same version of OpenModelica an AixLib. 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.)
Aixlib_borefield_FMU_error_message.txt
Thank you very much!
Best regards
Tino
The text was updated successfully, but these errors were encountered: