Opened 12 years ago

Last modified 12 years ago

#2271 closed defect

flattening fails without helpful error message — at Version 4

Reported by: Lennart Ochel Owned by: probably noone
Priority: high Milestone: 1.9.0
Component: Backend Version: trunk
Keywords: Cc: Martin Sjölund, Adrian Pop, Jens Frenkel, Willi Braun, Per Östlund

Description (last modified by Lennart Ochel)

I created an almost flat model out of the flat Modelica code that Dymola generates (Dymola 2014 is needed, because of impure functions).
OpenModelica seems to be unable to flatten this (already very flat) model. If I press "check model" in OMEdit I get the following message:

"Internal error! Check of: test_1 failed with no error message."

Change History (5)

by Lennart Ochel, 12 years ago

Attachment: test_1.mo added

comment:1 by Lennart Ochel, 12 years ago

I am a bit cofued about the ouput that I get. If I run omc .\test_1.mo +s +d=failtrace +locale=en Modelica then the output of the flat code stops at line 1206 of test_1.mo with the following error message: Execution failed!.
If I run omc .\test_1.mos +d=failtrace +locale=en using the following script than the output of the flat code stops one assignment later at line 1207 of test1_.mo with the following error message:
Error: Internal error SimCode: The model test_1 could not be translated

loadModel(Modelica); getErrorString();
loadFile("test_1.mo"); getErrorString();

simulate(test_1); getErrorString();
  1. Can anyone explain why this two commands behave different?
  2. Anyway, the error message is not that helpful. Can anyone help me to understand the issue?

comment:2 by Martin Sjölund, 12 years ago

Component: FrontendBackend
Owner: changed from somebody to probably noone

instantiateModel and without +s works just fine. So it is something in the backend.

comment:3 by Lennart Ochel, 12 years ago

You are right. It was “check model” and not “instantiate model”.

comment:4 by Lennart Ochel, 12 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.