FallingEdgeTerminate block
Requirements.LogicalBlocks.FallingEdgeTerminate
ยท source
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
| Date | Description |
|---|---|
| Sept. 14, 2026 | Parameter 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
| Name | Type | Description |
|---|---|---|
text parameter | String | Shown when simulation is terminated |
delay parameter | SI.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
| Name | Type | Description |
|---|---|---|
u | Modelica.Blocks.Interfaces.BooleanInput | Falling edge of this input terminates the simulation |