Opened 10 years ago

Closed 10 years ago

#2761 closed defect (fixed)

Buildings.Examples.Tutorial.Boiler failing

Reported by: Léonard Favre Owned by: Martin Sjölund
Priority: high Milestone: 1.9.1
Component: Frontend Version: trunk
Keywords: Cc:

Description

as can be seen at https://test.openmodelica.org/libraries/Buildings/BuildModelRecursive.html, the following models are failing:

  • Buildings.Examples.Tutorial.Boiler.System2
  • Buildings.Examples.Tutorial.Boiler.System3
  • ...
  • Buildings.Examples.Tutorial.Boiler.System7

the error message I am getting (for System2) is the following (not very helpful):
"OMEdit - Error - Connection with the OpenModelica Compiler has been lost. - OMEdit will close."

does anyone have an idea if there is a hope it can be fixed soon?

I have none (am Modelica beginner), unfortunately. I would badly need it to work. I know Buildings is being developed using Dymola.

thanks for reading!

Attachments (1)

system2.mo (867 bytes ) - added by Per Östlund 10 years ago.
Minimal model for Buildings.Examples.Tutorial.Boiler.System2.

Download all attachments as: .zip

Change History (6)

comment:1 by Martin Sjölund, 10 years ago

This usually means a stack overflow or similar crash in the omc kernel.

comment:2 by Adrian Pop, 10 years ago

Owner: changed from somebody to Adrian Pop
Status: newaccepted

Yes, probably some circularity somewhere the instantiation of the model.
I'll do some debugging and see where the problem is.

by Per Östlund, 10 years ago

Attachment: system2.mo added

Minimal model for Buildings.Examples.Tutorial.Boiler.System2.

comment:3 by Per Östlund, 10 years ago

I added a minimal model for System2 that still fails in the same way as the full model. The issue seems to be that the Buildings library contains self-references for some reason, which our lookup has problems with. Changing line 21 in the minimal model to be just h_pTX() without the self-reference makes the model work for example. I've looked into similar issues earlier, and it's probably not feasible to fix until Adrian's new instantiation stuff is done.

comment:4 by Martin Sjölund, 10 years ago

Component: UnknownFrontend
Owner: changed from Adrian Pop to Martin Sjölund
Status: acceptedassigned

This is working now (r22496). I will add a test case.

comment:5 by Martin Sjölund, 10 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.