Opened 8 years ago

Last modified 4 years ago

#4168 new defect

DAE index reduction in clocked partitions — at Version 1

Reported by: Rüdiger Franke Owned by: Lennart Ochel
Priority: high Milestone:
Component: Backend Version:
Keywords: Cc:

Description (last modified by Rüdiger Franke)

Clocked partitions may contain high index DAEs, for instance when basing a discrete-time controller on an inverse continuous-time model, see:

Modelica_Synchronous.Examples.Systems.ControlledMixingUnit
Modelica_Synchronous.Examples.Systems.EngineThrottleControl

OpenModelica produces wrong results for such models.

OpenModelica currently discretizes differential equations by replacing der(x) with (x - previous(x))/interval() during clock partitioning (Euler).

OpenModelica should reduce the DAE index inside a clocked partition prior to the discretization.

See the failing test synch.mos (ControlledMixingUnit)
https://github.com/OpenModelica/OpenModelica-testsuite/commit/ee09ab4b8551ce22514b4315cb04b88fdf2843ed

Change History (1)

comment:1 by Rüdiger Franke, 8 years ago

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