Opened 12 years ago

Closed 12 years ago

#1873 closed defect (fixed)

Stack overflow introduced in backend

Reported by: Martin Sjölund Owned by: Jens Frenkel
Priority: high Milestone: 1.9.0
Component: Backend Version:
Keywords: Cc: Jens Frenkel, Willi Braun

Description

Sometime between r13263 and r13284 the backend started giving a stack overflow for model MSL 3.2.1 Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks.

Change History (3)

comment:1 by Willi Braun, 12 years ago

Owner: changed from somebody to Jens Frenkel
Status: newassigned

As far as I see it's caused by preOptModule "removeSimpleEquations".

Last edited 12 years ago by Willi Braun (previous) (diff)

comment:2 by Jens Frenkel, 12 years ago

There is a cyclic binding in start values for

180: tank1.h_start:PARAM(min = -10000000000.0 max = 10000000000.0 start = Modelica.Fluid.Vessels.OpenTank.Medium.specificEnthalpy_pTX(tank1.p_start, tank1.T_start, {tank1.X_start[1]}) nominal = 1000000.0 ) = if tank1.use_T_start then Modelica.Fluid.Vessels.OpenTank.Medium.specificEnthalpy_pTX(tank1.p_start, tank1.T_start, {tank1.X_start[1]}) else 83680.0 .Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks, .Modelica.Fluid.Vessels.OpenTank, .Modelica.Fluid.Vessels.OpenTank.Medium.SpecificEnthalpy type: Real (min = -10000000000.0 max = 10000000000.0 start = Modelica.Fluid.Vessels.OpenTank.Medium.specificEnthalpy_pTX(tank1.p_start, tank1.T_start, {tank1.X_start[1]}) nominal = 1000000.0 )
181: tank1.T_start:PARAM(min = 1.0 max = 10000.0 start = system.T_start nominal = 300.0 ) = if tank1.use_T_start then system.T_start else Modelica.Fluid.Vessels.OpenTank.Medium.temperature_phX(tank1.p_start, tank1.h_start, {tank1.X_start[1]}) .Modelica.Fluid.Examples.ControlledTankSystem.ControlledTanks, .Modelica.Fluid.Vessels.OpenTank, .Modelica.Fluid.Vessels.OpenTank.Medium.Temperature type: Real (min = 1.0 max = 10000.0 start = system.T_start nominal = 300.0 )

This leads to a infinit loop.

comment:3 by Jens Frenkel, 12 years ago

Resolution: fixed
Status: assignedclosed

fixed in r13389

Last edited 12 years ago by Martin Sjölund (previous) (diff)
Note: See TracTickets for help on using tickets.