Skip to content

Releases

Version 0.23.0

Choose a tag to compare

@hubertus65 hubertus65 released this 04 Dec 02:24
Immutable release. Only release title and notes can be modified.
98db86b

Issue #43: a new requirement shape, in lock-step with Chaperone and ChaperoneRequirements.

  • ChecksInFixedWindow.RegionFraction checks the weighted fraction of n places where checks[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.
    • robustness is the distance from the limits it is held to. A limit left at 0 below or 1 above stays out of the margin.
  • Examples.Elementary.ChecksInFixedWindow.RegionFraction is 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

Choose a tag to compare

@hubertus65 hubertus65 released this 04 Dec 01:47
Immutable release. Only release title and notes can be modified.

Fixes of issue #40:

  • ChecksInFixedWindow_withFFT: findBaseFrequency searches the whole interval around
    f_base; calculateTHD keeps every harmonic window inside the spectrum and no longer divides
    by a zero base amplitude; the MaxAmplitude icon curve is drawn in icon coordinates. The
    results of the examples are unchanged.
  • Internal.SlidingWindow.push drops the oldest element when the buffer is full.
  • Utilities.isInsidePolygon / distancePointToPolygon: every boundary point is inside.
  • LogicalFunctions.PropertyToBoolean gains the input undefined (default false), like the block.
  • Interfaces.PartialRequirement: initial equations one per variable, which OpenModelica 1.27.1
    translates without internal errors; in OpenModelica CheckPumpingSystem moves slightly after
    about 1280 s (no verdict changes).
  • Examples: CheckAirCircuitSystem translates in Modelon Impact and OpenModelica; NbMin and
    P_RoClim are used; CheckMotorWithLosses sets evaluationTime; the pipe-node texts print
    bar and °C; the documented output of MainPowerSupplyRequirements matches 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

Choose a tag to compare

@hubertus65 hubertus65 released this 04 Dec 00:56
Immutable release. Only release title and notes can be modified.

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

Choose a tag to compare

@hubertus65 hubertus65 released this 03 Dec 21:56
Immutable release. Only release title and notes can be modified.
211b9bc

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

Choose a tag to compare

@hubertus65 hubertus65 released this 03 Dec 01:42
Immutable release. Only release title and notes can be modified.
78deaf1

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 same is written with an algorithm section (Impact refused a function without one);
  • the hasModeColumn assertion 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

Choose a tag to compare

@hubertus65 hubertus65 released this 02 Dec 22:02
Immutable release. Only release title and notes can be modified.
9634cd1

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 (default false). With true, 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.ShortExcursionFromFile asserts that a 3 ms excursion is caught with row events. With them off, OpenModelica 1.27.1 misses it.
  • Internal.CSV.File's constructor and RequirementsCsv_open take the new input. With the default, every result is unchanged, and no model conversion is needed.

Version 0.20.0

Choose a tag to compare

@hubertus65 hubertus65 released this 02 Dec 03:52
Immutable release. Only release title and notes can be modified.
9d9b5f6

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.
  • readModeColumn and hasModeColumn, to read a table in plain Modelica; eigenvaluesOfModes and
    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

Choose a tag to compare

@hubertus65 hubertus65 released this 02 Dec 03:58
Immutable release. Only release title and notes can be modified.

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, WhenFalling and WhenChanging extend the new Interfaces.PartialUncertaintyBand.
    • Parameter useUncertainty (default false).
    • Inputs rhoLow and rhoHigh: 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 and rhoLow < 0 <= rhoHigh. The When blocks sample it with their decision.
  • LogicalFunctions.bandAnd and bandOr: 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, margin and Property are unchanged; the policy for an in-band verdict belongs to the evaluating tool. With useUncertainty = false nothing changes.
  • Examples.Uncertainty: Levels, Ramp, WhenRising and Fold, 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_MPa and from_MPa, asserted in Examples.Elementary.Units.Conversions: the stresses of finite-element solvers. Sources.PartialSignalsFromFile documents 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

Choose a tag to compare

@hubertus65 hubertus65 released this 19 Nov 16:51
Immutable release. Only release title and notes can be modified.
09c8ae5

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 StableSignal without setting Td. A long run of a slow signal also becomes more sensitive to the solver's tolerance. To keep the old results, set Td = 1.
  • Examples.Elementary.ChecksInFixedWindow.StableSignal sets Td = 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 StableSignal pass 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

Choose a tag to compare

@hubertus65 hubertus65 released this 10 Nov 01:15
Immutable release. Only release title and notes can be modified.
20e97c2

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.Phasors asserts:
    • each function against its closed form;
    • agreement with Modelica.ComplexMath.abs and arg;
    • the round trip;
    • the wrap across pi.
  • It simulates in OpenModelica 1.27.1, and Requirements.Units passes checkModel there. 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").