Opened 20 months ago

Last modified 20 months ago

#5573 assigned defect

Event switches in nested pre propagation blocks

Reported by: Jonathan Kämpe Owned by: Jonathan Kämpe
Priority: major Milestone:
Component: Modelica/FrontEnd Version: trunk
Keywords: Cc:


Event switches are not handled correctly in nested pre propagation blocks. The nested blocks that contain switches need to be merged to the surrounding block. If we extract the switches to their own equations it will be handled automatically. We will also benefit in other areas (equation sorting, code generation, identical switch elimination) were there are a lot of special considerations due to the relational expressions.

Change History (3)

comment:1 Changed 20 months ago by Jonathan Kämpe


Creating dev branch


Refactoring relational expression handling (experimental)


Adding condition on option to fix unit tests


Updating last failing unit tests


Updating simulation tests

comment:2 Changed 20 months ago by Jonathan Kämpe


Split option in two parts. Added some todos


Fixed bug where switch wasn't replaced

comment:3 Changed 20 months ago by Christian Andersson

Milestone: 2.2.x

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.