Version_0_7_1 class
Requirements.UsersGuide.ReleaseNotes.Version_0_7_1
ยท source
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(defaultfalse) andevaluationTime. The verdict of a requirement model is taken and printed atterminal(); a tool that does not supportterminal()(Modelon Impact evaluates it tofalse) never printed it. WithuseEvaluationTime = truethe verdict is taken atevaluationTimeinstead. PartialVerify passes both parameters through and PartialRequirement reads them from the innerprintViolations. Every example setsevaluationTimeto 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 aterminate()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:
Internal.checkDomaindeclared local arraysdiff[:],f[:]. A function's local array needs a size that follows from its inputs; Impact refuses an undefined size. Both are now sizedsize(A,1), the checked band is the slice1:n, and the division by the limit curve's maximum is guarded against an all-zero curve.Internal.PartialFFTstarts its sampling chain through the edgecondition and not pre(condition), relying on the initial equationpre(condition) = falsefor a condition that is already true at initialization. A tool that initializespre(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).- The FFT examples stop through
FallingEdgeTerminateat the instant their FFT is evaluated; without the newdelay, Impact's result did not contain the verdict. - 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.checkRelativeDomainandInternal.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 tookExamples.AircraftRequirements.MinimumOperationalServiceLifedown 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 castR(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;MotorDataandInertiaDatamoved 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 theirparameterprefix and the current limit inDCMotorRequirementsbecame aBooleanExpressionlike 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 theSourcerecord constructor directly,SourceObservation_from_PartialSourceandRecords.PartialSourcebeing 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.
| Tool | Examples simulated | Not simulated, and why |
|---|---|---|
| Dymola 2026x | 60 | 8 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.1 | 48 | 20 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.