Version_0_8_0 class
Requirements.UsersGuide.ReleaseNotes.Version_0_8_0
ยท source
Version 0.8.0 (Sept. 15, 2026)
Extends Modelica.Icons.ReleaseNotes
Four-valued logic. Types.Property gains a
fourth value, Undefined: the property is not applicable (its condition, time locator
or scope is false, or the component it is stated for is absent), as distinct from Undecided,
which now means applicable but not yet decided (a duration not yet reached, a count still below
its minimum, a sliding window not yet full, an FFT with too few periods). The operators follow the
extended temporal logic (ETL) of EDF's ReqSysPro and the CRML language: Undefined is the neutral element
of and and or, so a check that is outside its period, or a component to which a
requirement does not apply, drops out of a combination instead of holding it Undecided. This is a change
of requirement semantics; the library's version is raised accordingly.
Changes
Types.Property = enumeration(Violated, Undecided, Satisfied, Undefined). Undefined is appended (Integer value 4): the values 1, 2, 3 of every stored result stay valid, and a consumer that knows three values fails on a 4 instead of misreading it.Types.Boolean4is CRML's name for the same type. The value order carries no meaning (the algebra has two different orders); a combination is never aminormaxover the values.- LogicalFunctions:
and4,or4,not4(the 16-entry tables, transcribed from the CRML specification),and4All,or4All(the folds over a vector, seeded with Undefined; the empty vector gives Undefined) andcardUndefined.forall3is superseded byand4Alland delegates to it for a non-empty vector.IntegerToPropertyaccepts 4;duringandduring3return Undefined, not Undecided, while their condition is false. - LogicalBlocks:
PropertyAnd,PropertyOrandPropertyNotdelegate to the functions; an unconnected PropertyAnd / PropertyOr (nu = 0) is Undefined, the neutral element (was Satisfied / Violated).PropertyToBooleangainsparameter Boolean undefined = falsebesideundecided.IntegerToPropertyaccepts 4;Sources.PropertyConstantoffers the fourth literal andSources.PropertyTableaccepts 4 in its table. - Every check block of ChecksInFixedWindow
emits Undefined while its condition is false, and before the first true condition phase (the
value was Undecided):
During,WithinDomain,WhenRising,WhenFalling,WhenChanging,MaxRising,MaxRisingFrequencyoutside the phase; the initial value ofMinDuration,MaxDuration,BandDuration,NoRising,FixedRising,MinRising,BandRisingwhen the condition is false at initialization. Inside a true condition phase Undecided keeps its meaning (not yet decidable), and a block that decides at the end of a phase keeps that verdict on its output after the phase, as before. The FFT checks (ChecksInFixedWindow_withFFT) are Undefined before the first rising edge of their condition and Undecided from that edge until the first FFT is computed (the output is now an equation over the internalyFFTand the FFT counter, no longer assigned in the when-clause; the blocks' results at and after the FFT instants are unchanged). The sliding-window checks have no condition input and never emit Undefined. - Verify.Requirement (through
PartialRequirement) and
PrintViolations collapse the four values to
the three verdicts: a property that was Undefined or Undecided throughout is untested; the
statusstays 0 / 1 / 2 and the satisfaction percentage is unchanged. New beside every verdict: attempts, the number of phases in which the property was applicable (not Undefined); an untested requirement with 0 attempts was never applicable, one with attempts > 0 was applicable but never decided. The log file gains the attempts as a column before the text (Violated,<observation>,<requirement>,<first failure time>,<attempts>,<text>;Untested,...,<attempts>,<text>), the printed summary and the HTML log show them. - Examples.Elementary.LogicalBlocks.PropertyTable4 asserts every entry of the three tables through the blocks (all 16 pairs over 16 s) and the functions, the laws that hold (commutativity, associativity, involution, De Morgan), and the laws that fail with counterexamples: absorption (12 of 64 triples) and distributivity (6 of 64) fail wherever Undefined is involved, in addition to the complements law the CRML paper acknowledges. The algebra is not a lattice; an expression over Property values must never be simplified by Boolean rewriting.
conversion(noneFromVersion="0.7.1"): no model needs conversion. A model that reads a stored Property result as three values must be updated to accept 4.
Effect on the examples' results
Wherever a check block's condition is false, its output moves from Undecided (2) to Undefined (4); the Satisfied and Violated phases, and the Undecided phases inside a true condition, are unchanged, and so is every verdict printed by PrintViolations. The regression baselines beside this library were re-established on OpenModelica, Dymola and Modelon Impact for this version, with the changed references explained as Undecided → Undefined.