Version_0_18_1 class
Requirements.UsersGuide.ReleaseNotes.Version_0_18_1
ยท source
Version 0.18.1 (Nov. 19, 2026)
Extends Modelica.Icons.ReleaseNotes
Bug fix: StableSignal's moving average in Dymola.
StableSignal computed its moving average as
if windowFilled.y then (I - delay(I, window))/window else 0. A tool may record the history of a
delay() in conditional code only while its branch is active; Dymola does (and warns), so the first
window's delayed values were missing and the average was wrong once the window had filled.
Examples.Elementary.Margin.StableSignal
failed its own closed-form asserts in every Dymola solver. The delay is now an unconditional equation,
I_delayed = delay(I, window), and the if-expression uses I_delayed. Nothing else changed.
Measured on 0.18.0 with the fix:
- Dymola 2027x with a full license runs every example. The full Dymola regression suite passes 649/649 checks
(91 cases at the 100x rtol spread;
YearSmoothdisabled, as in every list), and every case now has a Dymola reference. The 8 examples the Dymola 2026x license refused,SignalsFromFile,StepResponse_SecondOrder,CheckHeatExchangerand the examples of 0.12.0/0.13.0, 20 in all, carried Modelon Impact's reference until now and carry Dymola 2027x's (2026-11-19). StepResponse.SecondOrderandMargin.StableSignalrun under Dassl in the Dymola list: at the regression's rtol of 1e-4 Cvode trips their own asserts.CheckPumpingSystemcompares its relay signals by accumulated |difference|, andCheckHeatExchangerhas a tolerance for its two rate signals, which end near zero. Each setting has its measured reason in the case list.- Modelon Impact: the three examples that use the block (
ChecksInFixedWindow.StableSignal,Margin.StableSignal) or changed below (Margin.Gated) give trajectories bit-identical to their stored Impact references, with no assert violated (2026-11-20). - Margin.Gated and Margin.StableSignal now build in OpenModelica 1.27.1. They asserted inside an if-equation
within a when-equation, which omc cannot lower ("BackendDAECreate.lowerWhenEqn: equation not handled"). Each assert
now carries its own guard,
assert(noEvent(not active or check), ...), the form the other Margin examples use; the checks are the same. In omc both run under dassl (cvode restarts at every sample of the asserts and crawls) and pass against their references.
No model conversion is needed: conversion(noneFromVersion="0.18.0").
Copyright © 2026 Model Based Innovation LLC. All rights reserved.