Opened 10 years ago
Closed 7 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 , 8 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 , 7 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
Buildings.Fluid.Storage.Validation.HeatExchangerDynamics_06inz.c:3823:45: error: use of undeclared identifier '$PtanDyn$PQHex_flow_nominal' data->simulationInfo->realParameter[86] = $PtanDyn$PQHex_flow_nominal; ^ Buildings.Fluid.Storage.Validation.HeatExchangerDynamics_06inz.c:4934:46: error: use of undeclared identifier '$PtanSte$PQHex_flow_nominal' data->simulationInfo->realParameter[772] = $PtanSte$PQHex_flow_nominal; ^ Buildings.Fluid.Storage.Validation.HeatExchangerDynamics_06inz.c:50824:45: error: use of undeclared identifier '$PtanDyn$PQHex_flow_nominal' data->simulationInfo->realParameter[86] = $PtanDyn$PQHex_flow_nominal; ^ Buildings.Fluid.Storage.Validation.HeatExchangerDynamics_06inz.c:51935:46: error: use of undeclared identifier '$PtanSte$PQHex_flow_nominal' data->simulationInfo->realParameter[772] = $PtanSte$PQHex_flow_nominal;it seems that we still have a problem with the generated code. No segfault, though.