FallingEdgeTerminate block

Requirements.LogicalBlocks.FallingEdgeTerminate  ยท source

Icon of FallingEdgeTerminate

Terminate simulation when a falling edge of the input u occurs

The simulation is terminated with message text when the Boolean input u has a falling edge. With the default delay = 0 this happens at the edge itself.

Some tools store only the state before the event at the instant a simulation is terminated, and a verdict that a requirement block takes at that same edge is then missing from the result (Modelon Impact does this). Setting delay (Advanced tab) to a small positive time, one output interval say, terminates the simulation that much later, and the verdict is recorded. Dymola and OpenModelica record the values at the edge and need no delay.

Revisions

DateDescription
Sept. 14, 2026Parameter delay added: terminate a fixed time after the edge, for tools that do not record the edge's own values at termination (H. Tummescheit, Model Based Innovation LLC)

Parameters

NameTypeDescription
text parameterStringShown when simulation is terminated
delay parameterSI.Time> 0: terminate this long after the edge instead of at it (a tool that does not store the edge's own event values at termination, e.g. Modelon Impact, then still records them)

Components and variables

NameTypeDescription
uModelica.Blocks.Interfaces.BooleanInputFalling edge of this input terminates the simulation