Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking error during FMU export of Geothermal Borefields OneUTubes / TwoUTubes, undefined reference to `dgetri_' #1571

Open
tinoetzold opened this issue Jan 8, 2025 · 1 comment

Comments

@tinoetzold
Copy link

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

  1. Open example AixLib/Fluid/Geothermal/Borefields/Examples/RectangularBorefield.mo
  2. Right-click on example and choose Export -> FMU
  3. 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.)

Aixlib_borefield_FMU_error_message.txt

Thank you very much!
Best regards
Tino

@FWuellhorst
Copy link
Contributor

@tinoetzold This model is from the IBPSA library. In order to resolve the issue, we have to raise and fix it in IBPSA. Can you re-raise the issue over there? https://github.com/ibpsa/modelica-ibpsa/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants