Version_0_13_0 class

Requirements.UsersGuide.ReleaseNotes.Version_0_13_0  ยท source

Icon of Version_0_13_0

Version 0.13.0 (Oct. 20, 2026)

Extends Modelica.Icons.ReleaseNotes

Check blocks from the Modelica Buildings_Requirements library. LBNL's Buildings_Requirements library (D. Blum, E. Zanetti, M. Wetter) builds templates for HVAC requirements on this library's predecessor. Three of its four blocks are ported into ChecksInFixedWindow:

  • WithinBand: a Real input within constant limits.
  • GreaterEqual: one Real input at least another, for example a temperature against its set point.
  • StableSignal: a signal does not oscillate, measured by the moving average of |du/dt| over a window, without the state events of a test on changes of direction.

Each has a condition input and a delayTime after each of its rising edges before the check applies, which skips the transient after a plant switches on. Changes from the originals:

  • They are check blocks: they output Property and margin (with scale) like every other check block, and feed Verify.Requirement and its violation statistics. The originals contained a complete requirement each, with its own inner ObservationID.
  • Four-valued logic: an inactive check is Undefined; the originals reported Undecided. StableSignal is Undecided during the first window of a phase, while its average does not yet cover a full window.
  • StableSignal's hysteresis is a parameter h, default 0, so that the sign of the margin is the verdict; the original fixed it to a twentieth of the limit. The derivative filter's time constant is a parameter.
  • StableSignal's moving average is the difference of the integral of |du/dt| over the window, not SignalAnalysis.MovingAverage, which integrates u - delay(u, T) and keeps every numerical error: at the regression's loose tolerance (rtol 1e-4) the original's average drifted by up to 3e-3 1/s on a value of 3e-3 under a pulsed condition; the difference of the integral moved by 1e-4 on 0.018.
  • StableSignal's derivative filter always sees u and starts in steady state. The original held its input at 0 while inactive; the step at the start of each phase left a derivative spike at the edge of the first full window, and a temperature in kelvin read as unstable (0.8 K/s over 6 min) for a few seconds after every start. Found on the TIER plant study.
  • No dependency on the Buildings library: the blocks use the MSL and this library only.

The fourth block, MinimumDuration, is not ported. It is MinDuration with condition = u and check = true: every true phase of u must last at least durationMin.

Examples and verification

  • Examples.Elementary.ChecksInFixedWindow.WithinBand, .GreaterEqual and .StableSignal are the originals' validation models with the same instances, each check feeding a requirement with statistics. Both were run in Modelon Impact and the verdicts compared at 3999 instants per requirement: identical for all 14 requirements, except Undecided → Undefined while a check does not apply.
  • Examples.Elementary.Margin.Gated asserts WithinBand's and GreaterEqual's margins in closed form behind a pulsed condition and a delay, and the statistics of the violations; Examples.Elementary.Margin.StableSignal asserts the moving average of a sine's |du/dt| and the margin, and shows the hysteresis.
  • The five examples are cases of the Impact regression list, with Impact references.

The ported code is covered by the Buildings library's license; see UsersGuide.BuildingsLicense. No model conversion is needed: conversion(noneFromVersion="0.12.1"); no existing block changed.