Version_0_7_1 class

Requirements.UsersGuide.ReleaseNotes.Version_0_7_1  ยท source

Icon of Version_0_7_1

Version 0.7.1 (Sept. 14, 2026)

Extends Modelica.Icons.ReleaseNotes

Maintenance release. The library now runs in a third Modelica tool, Modelon Impact, and its examples have been simulated with Dymola, OpenModelica and Modelon Impact and compared tool against tool. No requirement semantics changed: every change below was checked to leave the Dymola and OpenModelica results of every example unchanged.

Changes

  • uses(Modelica(version="4.1.0")). No change in the library was needed for the Modelica Standard Library 4.1.0.
  • PrintViolations has two new parameters on its Advanced tab, useEvaluationTime (default false) and evaluationTime. The verdict of a requirement model is taken and printed at terminal(); a tool that does not support terminal() (Modelon Impact evaluates it to false) never printed it. With useEvaluationTime = true the verdict is taken at evaluationTime instead. PartialVerify passes both parameters through and PartialRequirement reads them from the inner printViolations. Every example sets evaluationTime to its StopTime, so switching the option on is all such a tool needs; with the default the behaviour is as before.
  • FallingEdgeTerminate has a new parameter delay (default 0, Advanced tab): the simulation terminates that long after the falling edge instead of at it. A tool that stores only the pre-event state at a terminate() instant (Modelon Impact) otherwise drops the verdict a requirement block takes at that very edge from its result. Dymola and OpenModelica record the edge's values and need no delay.
  • ChecksInFixedWindow_withFFT did not run in Modelon Impact at all (the branch of an earlier port notes this). Four independent causes, each fixed in a form that leaves Dymola and OpenModelica bit-identical:
    1. Internal.checkDomain declared local arrays diff[:], f[:]. A function's local array needs a size that follows from its inputs; Impact refuses an undefined size. Both are now sized size(A,1), the checked band is the slice 1:n, and the division by the limit curve's maximum is guarded against an all-zero curve.
    2. Internal.PartialFFT starts its sampling chain through the edge condition and not pre(condition), relying on the initial equation pre(condition) = false for a condition that is already true at initialization. A tool that initializes pre(condition) to the condition's own value never sees that edge, and the block was dead for the whole run. The start is now explicit: (condition and not pre(condition)) or (initial() and condition).
    3. The FFT examples stop through FallingEdgeTerminate at the instant their FFT is evaluated; without the new delay, Impact's result did not contain the verdict.
    4. WithinRelativeDomain and MaxTotalHarmonicDistortion evaluated their chain (base frequency, scaled limit curve or THD, check, icon curves) as eight equations in one when-clause. A tool that evaluates a when-body with the pre-event values of the variables assigned in that same when-clause (Impact, measured with an eleven-line model) checked the FFT against a limit curve scaled by the previous base amplitude, zero before the first FFT, and reported Violated for a satisfied requirement. Split over several when-clauses with the same condition, the same tool built a nonlinear block around them and failed its initialization in a fraction of the runs. The chain is now one function call, Internal.checkRelativeDomain and Internal.checkTHD.
  • card, cardSatisfied, cardUndecided, cardViolated: the reduction is written over the indices, sum(if p[i] == ... then 1 else 0 for i in 1:size(p, 1)), instead of over the elements. The same count; Modelon Impact fails to scalarize the element form ("Exception caught while scalarizing function cardSatisfied"), which took Examples.AircraftRequirements.MinimumOperationalServiceLife down with it.
  • Examples.MotorsWithLosses and Examples.SimplePumpingSystem.CheckPumpingSystem passed model instances to their binding functions (watchDCMotor(obj=dcpm1), TankObservation_from_OpenTank(reservoir) and the like) where the function input is a record. That is a Dymola extension; the form the Modelica Language Specification allows (3.6, section 12.6.1, the record cast R(m)) turned out to be implemented by Dymola alone: OpenModelica 1.27.1 reads it as a positional constructor call and Modelon Impact refuses any access to a model instance in an expression, in the implicit and the explicit form alike. The call sites now build the observation records with explicit record constructors, nested and vectorized where the instance was (MotorData(VaNominal=dcpm1.VaNominal, ..., inertiaRotor=InertiaData(w=dcpm1.inertiaRotor.w))), which all three tools run; MotorData and InertiaData moved out of the function's protected section so the call site can name them. Two consequences of the same measurement: DCMotorWatching's nominal values lost their parameter prefix and the current limit in DCMotorRequirements became a BooleanExpression like the speed limit (a record with parameter components returned by a function is continuous-time to Impact and over-determined to OpenModelica); and the source and sink observations are built with the Source record constructor directly, SourceObservation_from_PartialSource and Records.PartialSource being removed, because OpenModelica 1.27.1 silently returns zeros from a function whose result is a record with an array component when the call has parameter variability, as a fixed boundary's pressures have. Both examples now simulate in OpenModelica and Modelon Impact with agreeing results.

Three tools compared

All 68 example models under Examples that carry an experiment annotation were simulated with each tool with that annotation's StopTime and Interval, CVode, a relative tolerance of 1e-6 (the annotation's Tolerance where it has one), and every block output *.y was compared between tools on the output grid (an absolute tolerance of 1e-3 of each signal's range, or its switching instants for a Boolean or Property signal). The case lists, the stored results of the three tools and the reports belong to the regression baselines, not to the library's packages.

ToolExamples simulatedNot simulated, and why
Dymola 2026x608 refused by the license used for the comparison ("the model is too complex for the current license", about 1000 unknowns): MainPowerSupplyRequirements, LimitedCabinAltitudeRateOfChange, four of the six FFT examples, CheckMotorWithLosses, CheckPumpingSystem. Not a library problem.
OpenModelica 1.27.14820 do not build: the 14 examples using a sliding-window block ("No runtime support for this record assignment" for the buffer record returned by Internal.SlidingWindow.push) and the 6 FFT examples ("Internal error BackendDAECreate.lowerWhenEqn: equation not handled"). Since October 2026 all of them build (see the 2026 summary).
Modelon Impact (Sept. 2026)68 (63 of them with a reference to compare against)—

OpenModelica against Dymola, on the 45 examples both simulate: every continuous signal agrees to better than 1e-4 of its range (most to 1e-13 or exactly), and every Boolean and Property signal switches at identical instants in both tools; the only grid points that differ are those instants themselves, sampled on opposite sides of the event. One example, SimplePumpingSystem.Components.PumpingSystem, is an on-off pressure controller over 2000 s whose switching instants move with the tolerance, within one tool as between two.

Modelon Impact against Dymola (and against OpenModelica for the three examples Dymola's license refuses and OpenModelica builds): on the 63 examples with a reference, all 296 signal checks pass. The 85 continuous signals lie inside their tolerance tube everywhere (a funnel error of exactly 0); of the 208 signals compared at their final value, 205 are identical and the other three agree to 5e-9; the relay signals of PumpingSystem agree by accumulated difference within the tolerance measured for Dymola against itself. The other 5 examples Impact simulates (MainPowerSupplyRequirements and four FFT examples) have no reference from either other tool.

Tool support for the record cast

The Modelica Language Specification (3.6, section 12.6.1) lets a record constructor take a model, block or connector instance as its single argument, R(m), copying the public components whose names match, recursively and vectorized. Of the three tools compared here, only Dymola implements it (measured 2026-09-14 on a probe library); Dymola also accepts the instance itself where a record is expected, which this library relied on until this release. The explicit record constructor, R(a=m.a, sub=S(w=m.sub.w)), is what all three run, and it is what the examples now use.

New: reading signals from a MA-HS-CSV file

Sources.PartialSignalsFromFile reads a file in the Modelica Association's MA-HS-CSV format — Real, Boolean and Integer columns by name, same-time rows as events, a time event scheduled at every instant a discrete column changes — through the external object and functions of Internal.CSV and a header-only C reader (Resources/Include/RequirementsCsv.h, C89, tested against a Python reader in Resources/C-Sources/test/). The block is the seam of a two-run verification: the plant is simulated alone, its outputs are stored, and the requirement checks run on the stored signals in a second run. Example: Examples.Elementary.Sources.SignalsFromFile, simulated in OpenModelica 1.27.1 and Modelon Impact with identical results. Dymola 2026x's current license refuses any user-defined ExternalObject ("too complex for the current license", measured 2026-09-14), so the example is skipped there until the license changes.