Repository navigation
Releases
Version 0.23.0
Issue #43: a new requirement shape, in lock-step with Chaperone and ChaperoneRequirements.
ChecksInFixedWindow.RegionFractionchecks the weighted fraction ofnplaces wherechecks[i]holds, at every instant.- It is held to
fractionMin..fractionMax, which default to 0 and 1. - The weights are the places' measures, such as cell volumes or face areas, and are equal by default.
robustnessis the distance from the limits it is held to. A limit left at 0 below or 1 above stays out of the margin.
- It is held to
Examples.Elementary.ChecksInFixedWindow.RegionFractionis a rod of 10 cells under a travelling hot spot, with results of 1.556 (satisfied), −1.444 (violated) and 1.556 (satisfied). It is a regression case in all three tools' lists, and Impact passes 16/16.
No existing block changed, and no example's result changed. No model conversion is needed: conversion(noneFromVersion="0.22.0").
Version 0.22.0
Fixes of issue #40:
ChecksInFixedWindow_withFFT:findBaseFrequencysearches the whole interval around
f_base;calculateTHDkeeps every harmonic window inside the spectrum and no longer divides
by a zero base amplitude; theMaxAmplitudeicon curve is drawn in icon coordinates. The
results of the examples are unchanged.Internal.SlidingWindow.pushdrops the oldest element when the buffer is full.Utilities.isInsidePolygon/distancePointToPolygon: every boundary point is inside.LogicalFunctions.PropertyToBooleangains the inputundefined(default false), like the block.Interfaces.PartialRequirement: initial equations one per variable, which OpenModelica 1.27.1
translates without internal errors; in OpenModelicaCheckPumpingSystemmoves slightly after
about 1280 s (no verdict changes).- Examples:
CheckAirCircuitSystemtranslates in Modelon Impact and OpenModelica;NbMinand
P_RoClimare used;CheckMotorWithLossessetsevaluationTime; the pipe-node texts print
bar and °C; the documented output ofMainPowerSupplyRequirementsmatches a simulation. - Documentation, typos, unused variables, redundant imports and diagram lines tidied.
Not backward compatible: Examples.Elementary.ChecksInFixedWindow_withFFT.MaxTotalHamonicDistortion1/2
are renamed MaxTotalHarmonicDistortion1/2; Types.Event, Internal.CSV.getRows,
getTimeRange and the FFT functions set_u, prime235Factorization and getLastName are
removed. Resources/Scripts/Conversion/ConvertFromRequirements_0.21.1.mos converts models of
every earlier release.
Version 0.21.1
Documentation and coding practice. Every class and every component (parameters, inputs, outputs, variables, protected ones included, and sub-components) has a description string, and every class has documentation, except the one-line unit types of Units.NonSI, which the package documentation covers. Runnable examples extend Modelica.Icons.Example, functions and records the corresponding Modelica.Icons class, every connect with diagram positions on both sides carries a Line, and SI types are written SI.X with import SI = Modelica.Units.SI. Wrong descriptions and documentation links are corrected.
The three binding functions of the examples start with a lower-case letter (pipeObservation_from_DynamicPipe, tankObservation_from_OpenTank, pumpObservation_from_PrescribedPump); the library's own functions keep their names.
No equation, algorithm or parameter value changed: every example has the same equations and variables as in 0.21.0 (OpenModelica 1.27.1 checkModel). No model conversion: conversion(noneFromVersion="0.21.0").
Version 0.21.0
Ratios in percent. Units.NonSI.Percent, Units.Conversions.to_percent and from_percent, asserted in Examples.Elementary.Units.Conversions: a requirement on a ratio (a mass imbalance, an efficiency) is often written in percent, and the check compares the ratio (unit 1) with from_percent of the value as written. The MSL has no such conversion.
No existing block changed, and no result of any example. No model conversion: conversion(noneFromVersion="0.20.2").
Version 0.20.2
The ModeTable example has regression references. Examples.Elementary.LinearAnalysis.ModeTable is now a regression case in the Dymola, OpenModelica and Modelon Impact lists, with stored references, and it runs in Impact:
- its helper function
sameis written with analgorithmsection (Impact refused a function without one); - the
hasModeColumnassertion moved into the initial equations (an impure call is not allowed in an equation).
No block computes anything different; no model conversion is needed.
Version 0.20.1
The CSV reader can stop the solver at every row. Sources.PartialSignalsFromFile makes the solver stop only where a Boolean or Integer column changes. A model with few or slow states can therefore step across a short excursion of a Real column, and a check reading that column never sees the limit crossed. This happened in Modelon Impact on a co-simulation trace: v <= 10 stayed Satisfied over an excursion to 10.04.
- New parameter
rowEvents(defaultfalse). Withtrue, every row's time is an event. A Real column's extremes lie on rows, so the solver sees every crossing of a fixed limit, in every tool. The cost is one event per row. Examples.Elementary.Sources.ShortExcursionFromFileasserts that a 3 ms excursion is caught with row events. With them off, OpenModelica 1.27.1 misses it.Internal.CSV.File's constructor andRequirementsCsv_opentake the new input. With the default, every result is unchanged, and no model conversion is needed.
Version 0.20.0
Requirements 0.20.0 (2026-11-30): eigenvalue checks over a mode table
A finite-element modal run, or an experimental modal analysis, gives a mode table: per mode a frequency, often a
damping ratio, and the effective-mass fractions. Until now the eigenvalue blocks read only a state matrix. New in
LinearAnalysis:
ModeTableCheck:EigenvalueCheck's predicates over a table's modes. The per-mode functions are the
state-matrix route's, applied to each mode's eigenvalue-ζω + jω√(1-ζ²), so the margins are identical on the
same modes.meffMin, an effective-mass filter. A state matrix cannot carry this.damped = false, for a table without damping: the frequency predicates are decided, and the damping-dependent
ones are Undefined, never zero.ModesWithinRegion, the pole-region predicate over a table.readModeColumnandhasModeColumn, to read a table in plain Modelica;eigenvaluesOfModesand
stateMatrixOfModes.
Examples.Elementary.LinearAnalysis.ModeTable checks a cantilever's six code_aster modes against the closed forms
and against the state-matrix route. It runs with every assertion holding in Dymola 2027x and OpenModelica 1.27.1.
No existing block changed, and no model conversion is needed.
Version 0.19.0
Requirements 0.19.0 (2026-11-30): the uncertainty band
- A checked value with a known uncertainty interval [y − lower, y + upper]:
ChecksInFixedWindow.During,WhenRising,WhenFallingandWhenChangingextend the newInterfaces.PartialUncertaintyBand.- Parameter
useUncertainty(default false). - Inputs
rhoLowandrhoHigh: the robustness at the pessimistic and the optimistic end of the interval, exact for comparisons with fixed limits. - Output
inBand: true while the check is decided andrhoLow < 0 <= rhoHigh. The When blocks sample it with their decision.
- Parameter
LogicalFunctions.bandAndandbandOr: the band of a combination. A violated conjunction is in band only when no violation is certain; a satisfied one as soon as one element is.y,marginandPropertyare unchanged; the policy for an in-band verdict belongs to the evaluating tool. WithuseUncertainty = falsenothing changes.Examples.Uncertainty:Levels,Ramp,WhenRisingandFold, every expected value asserted in closed form. They are in the Dymola and the OpenModelica lists, with references from each tool.- The full Dymola 2027x suite passes 705/705 checks (95 cases at the 100x rtol spread).
Units.Conversions.to_MPaandfrom_MPa, asserted inExamples.Elementary.Units.Conversions: the stresses of finite-element solvers.Sources.PartialSignalsFromFiledocuments how a field solver's KPI series reaches a check.conversion(noneFromVersion="0.18.1").
Tagged after the fact (2026-12-02), on the last commit of 0.19.0; 0.20.0 followed the same day.
Version 0.18.0
Requirements 0.18.0 (2026-11-19): StableSignal's derivative filter
StableSignal approximates du/dt with a first-order filter of time constant Td. Its default is now 0.1 s; it was 1 s, the fixed value of the block's original.
- Why: a filter as long as the window smears every move faster than
Td, and the check reads the net change rather than the travel. On a level with an inverse response over a 1 s window the block read 0.053 m/s for a travel of 0.109 m/s per second: a pass where the signal violated the limit. - The block's documentation has a new section, Choosing Td:
- at most a tenth of the fastest movement to be counted, and a hundredth of the window;
- the gain
1/sqrt(1 + (w Td)^2)on a sine; - why not smaller than needed.
- Results change for a model that uses
StableSignalwithout settingTd. A long run of a slow signal also becomes more sensitive to the solver's tolerance. To keep the old results, setTd = 1. Examples.Elementary.ChecksInFixedWindow.StableSignalsetsTd = 1, as the rule gives for its windows of minutes, so its results and references are unchanged.- No model conversion is needed:
conversion(noneFromVersion="0.17.0"). - Modelon Impact: both examples that use
StableSignalpass their regression checks. Chaperone's full corpus regression against this version is clean (367 verdict records, 0 mismatches). Dymola and OpenModelica were not run for this release.
Version 0.17.0
Requirements 0.17.0 (2026-11-09): phasors
Units.Phasors converts between a phasor's two coordinate systems and compares phase angles. All six functions are inlined:
| Function | Converts |
|---|---|
magnitude(re, im) |
rectangular to polar: sqrt(re^2 + im^2) |
phaseAngle(re, im) |
rectangular to polar: atan2(im, re), in (-pi, pi] |
realPart(r, phi) |
polar to rectangular: r*cos(phi) |
imaginaryPart(r, phi) |
polar to rectangular: r*sin(phi) |
wrapAngle(phi) |
an angle wrapped into (-pi, pi] |
phaseDifference(phi1, phi2) |
the phase of one phasor relative to another, wrapped into (-pi, pi] |
- The magnitude is whatever the model carries. The MSL's quasi-static phasors are RMS.
Examples.Elementary.Units.Phasorsasserts:- each function against its closed form;
- agreement with
Modelica.ComplexMath.absandarg; - the round trip;
- the wrap across pi.
- It simulates in OpenModelica 1.27.1, and
Requirements.UnitspassescheckModelthere. Dymola and Modelon Impact were not run for this release. - The SysML v2 side is ChaperoneRequirements v0.16.0. Chaperone's corpus uses these functions to check requirements on a phasor's magnitude, phase angle, and real and imaginary parts.
- No existing class changed. No model conversion is needed:
conversion(noneFromVersion="0.16.0").