OpenModelica / OpenModelica

OpenModelica is an open-source Modelica-based modeling and simulation environment intended for industrial and academic usage.
https://openmodelica.org
Other
779 stars 297 forks source link

FMU - Memory Buildup Issue #12225

Open Primkins opened 2 months ago

Primkins commented 2 months ago

Created the FMU BuildingSystems.Applications.ClimateAnalyses.FreeFloatingTemperature using OpenModelica v1.24.0-dev (64-bit) nightly build.

Application crashes when running the FMU in Python interface with OmSimulator. Attached python script and the FMU. It shows the below error:

LOG_ASSERT        | debug   | C:/Users/DEMO/AppData/Local/Temp/OpenModelica/OMEdit/FFT/FFT.fmutmp/sources/gc/memory_pool.c:100: pool_expand: Assertion `0 && "Attempt to allocate an unusually large memory. The memory management does not seem to be working as intended. Please create an issue on https://github.com/OpenModelica/OpenModelica/issues."` failed.
error:   [fmi2logger] D:/TestFMU/test_tmp/test-q81hy4ke/temp/0001_A (logFmi2Call): fmi2CompletedIntegratorStep: terminated by an assertion.

Demo.zip

casella commented 2 months ago

@arun3688, can you please run the script and see if you can reproduce the problem? If so, can you perform some analysis to figure out where the memory leak is, possibly with help from @AnHeuermann?

Thanks!