Opened 9 years ago

Closed 8 years ago

#3874 closed defect (fixed)

TanksWithOverflow fails if wrapFunctionCalls and removeSimpleEquation are enabled

Reported by: jan.hagemann@… Owned by: Lennart Ochel
Priority: high Milestone: Future
Component: Backend Version:
Keywords: MSL 3.2.1, removeSimpleEquation Cc:

Description

The model /simulation/libraries/msl32/Modelica.Fluid.Examples.Tanks.TanksWithOverflow.mos fails if both postOptModules wrapFunctionCalls and removeSimpleEquation(default: causal) are enabled.
I found out that the model simulates correctly if…

  • …wrapFunctionCalls and the "new" removeSimpleEquation(in postOpt) are enabled
  • …wrapFunctionCalls is enabled and removeSimpleEquation(default) is working two/four/six/(…) times consecutively

I don’t really know why the model fails if both modules are enabled. Maybe someone can have a look?

Change History (2)

comment:1 by Lennart Ochel, 9 years ago

Keywords: MSL 3.2.1 added

The fun thing about this is that the model only fails if wrapFunctionCalls is enabled and removeSimpleEquation is called one, three, five, ... times. So I guess the module removeSimpleEquation flips the equation order and the simulation fails or succeeds depending on the equation order. Thus, this is probably related to some numeric issue.

comment:2 by jhagemann, 8 years ago

Resolution: fixed
Status: newclosed

works now, probably since 8dcb443

Note: See TracTickets for help on using tickets.