Version_0_9_0 class

Requirements.UsersGuide.ReleaseNotes.Version_0_9_0  ยท source

Icon of Version_0_9_0

Version 0.9.0 (Sept. 15, 2026)

Extends Modelica.Icons.ReleaseNotes

Margins. Every check block exposes how far the check is from its limit: output margin = robustness/scale, with robustness the signed distance of the check to its limit in the quantity's unit (≥ 0 exactly when the check holds) and scale a new parameter, the requirement's tolerance (default 1: the raw robustness). A margin of 1 is one tolerance of headroom, < 0 a violation by that many tolerances; margins of different requirements compare only when their scales are set. The block emits the instantaneous value; the worst value over a run and its instant are taken from the stored trajectory -- there are no accumulators in the library, by design.

Changes

  • Interfaces.MarginOutput, an output Real(unit="1") connector of its own type, so a margin cannot be connected to a physical-unit signal by mistake and every margin of a model is found by type.
  • PartialCheck and the two sliding-window partials gain parameter Real scale(min = eps) = 1, parameter Boolean computeMargin = true and the conditional output MarginOutput margin = robustness/scale if computeMargin over a protected robustness that each block defines:
    • During and WhenRising / WhenFalling / WhenChanging take the robustness as a new input rho (default if check then 1 else -1, the uninformative sign; a caller writes u - limit for check = u > limit); the When* blocks sample it at the edge that decides the property and hold it with the verdict.
    • MinDuration / MaxDuration / BandDuration gain the output duration, the running accumulated duration of the current (or last) phase, and the robustness duration - durationMin, durationMax - duration, the band's minimum.
    • FixedRising / MinRising / MaxRising / BandRising / NoRising: countRising is an output (NoRising gains the counter); the robustness is the count difference (-abs(count - nRising) for the exact count, 0 when satisfied).
    • MaxRisingFrequency: freqHzMax - freqHz; WithinDomain: distance; the sliding-window blocks: the limit minus their window quantity (maxDuration, accumulatedDuration, nRising, freqHzMean, increase, percentageIncrease), the band blocks the minimum of both sides; the FFT blocks scaledDistance/scale.
    A block that is still Undecided (a duration not yet reached, a sliding window not yet full) has a provisional margin; a consumer takes the worst value over the decided points.
  • LogicalFunctions.marginAnd / marginOr: the minimum / maximum of the margins over the elements whose property is not Undefined -- the margin of and4All / or4All, an inapplicable element dropping out as it does there; 0 (no NaN) when nothing is applicable.
  • Examples.Elementary.Margin: eight examples, one per block family, asserting the margins against closed-form values at every instant and the sign invariant (satisfied ⇔ margin ≥ 0) continuously -- a ramp against a threshold, a sine against a band, the three duration blocks on one phase, the five count blocks on one edge train, a 2 Hz train against MaxRisingFrequency, a point crossing a square, a ramp against MaxIncrease, and the FFT example with a scale. Each is a case in the regression lists beside the library, with the margins stored.
  • conversion(noneFromVersion="0.8.0"): no model needs conversion; every existing output is unchanged (the regression references of version 0.8.0 stand), the new outputs and parameters have defaults.