Opened 9 years ago
Closed 6 years ago
#3779 closed defect (fixed)
Wrong generated code for a model of the Buildings library
Reported by: | Michael Wetter | Owned by: | somebody |
---|---|---|---|
Priority: | high | Milestone: | 1.14.0 |
Component: | Run-time | Version: | |
Keywords: | Cc: |
Description
The following commands give a segmentation fault on Ubuntu 14.04, 64 bit:
$ export OPENMODELICALIBRARY=pwd
:/usr/lib/omlibrary
$ omc +d=nogen,initialization,backenddaeinfo,discreteinfo,stateselection openmod.mos
where openmod.mos
has the content:
system("rm -f Buildings_* Buildings.* Modelica_*"); loadModel(Modelica, {"3.2.1"}); getErrorString(); loadModel(Buildings); getErrorString(); simulate(Buildings.Fluid.Storage.Validation.HeatExchangerDynamics); // division by zero (but model seems OK) simulate(Buildings.Fluid.HeatExchangers.Examples.DryEffectivenessNTUMassFlow); system("rm -f Buildings_* Buildings.* Modelica_*");
Change History (3)
comment:1 by , 7 years ago
Component: | *unknown* → Run-time |
---|---|
Milestone: | Future → 1.13.0 |
Summary: | segmentation fault in simulateModel → Wrong generated code for a model of the Buildings library |
comment:3 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This issue has been solved in the new front end a long time ago. The model currently fails because of #5238
Note:
See TracTickets
for help on using tickets.
Looking at the report in https://test.openmodelica.org/libraries/Buildings/files/Buildings.Fluid.Storage.Validation.HeatExchangerDynamics.err
it seems that we still have a problem with the generated code. No segfault, though.