Requirements Library 0.23.0
Requirements (Version 0.23.0) - Defining requirements formally and checking them when simulating
Documentation Test report Source on GitHub Release v0.23.0
Test report
93
cases
695
checks
695
PASS
source: impact workspace 'requirements-redesign' (reference: dymola 2026x, 2025-10-10, MSL 4.1.0, Cvode / dymola 2027x, 2026-10-28, MSL 4.1.0, Cvode / impact workspace 'ci-vsdev' / impact workspace 'requirements-redesign' / openmodelica v1.27.1 (64-bit), MSL 4.1.0, cvode) | library: Requirements | index rebuilt 2026-12-04 02:58 UTC | full run
Documentation
Requirements Requirements (Version 0.23.0) - Defining requirements formally and checking them when simulating
UsersGuide User's Guide
ReleaseNotes Release notes
Summary2026 Summary of changes and additions in 2026
Version_0_23_0 Version 0.23.0 (Dec. 4, 2026)
Version_0_22_0 Version 0.22.0 (Dec. 4, 2026)
Version_0_21_1 Version 0.21.1 (Dec. 3, 2026)
Version_0_21_0 Version 0.21.0 (Dec. 3, 2026)
Version_0_20_2 Version 0.20.2 (Dec. 2, 2026)
Version_0_20_1 Version 0.20.1 (Dec. 2, 2026)
Version_0_20_0 Version 0.20.0 (Nov. 30, 2026)
Version_0_19_0 Version 0.19.0 (Nov. 30, 2026)
Version_0_18_1 Version 0.18.1 (Nov. 19, 2026)
Version_0_18_0 Version 0.18.0 (Nov. 19, 2026)
Version_0_17_0 Version 0.17.0 (Nov. 9, 2026)
Version_0_16_0 Version 0.16.0 (Nov. 9, 2026)
Version_0_15_0 Version 0.15.0 (Nov. 9, 2026)
Version_0_14_0 Version 0.14.0 (Oct. 26, 2026)
Version_0_13_2 Version 0.13.2 (Oct. 24, 2026)
Version_0_13_1 Version 0.13.1 (Oct. 21, 2026)
Version_0_13_0 Version 0.13.0 (Oct. 20, 2026)
Version_0_12_1 Version 0.12.1 (Oct. 19, 2026)
Version_0_12_0 Version 0.12.0 (Oct. 19, 2026)
Version_0_11_1 Version 0.11.1 (Oct. 16, 2026)
Version_0_11_0 Version 0.11.0 (Sept. 16, 2026)
Version_0_10_0 Version 0.10.0 (Sept. 16, 2026)
Version_0_9_1 Version 0.9.1 (Sept. 15, 2026)
Version_0_9_0 Version 0.9.0 (Sept. 15, 2026)
Version_0_8_0 Version 0.8.0 (Sept. 15, 2026)
Version_0_7_1 Version 0.7.1 (Sept. 14, 2026)
Version_0_7_0 Version 0.7.0 (Feb. 13, 2025)
Version_0_6_1 Version 0.6.1 (Feb. 3, 2025)
Version_0_6 Version 0.6 (April 19, 2016)
Contact Contact
BuildingsLicense License of the code ported from the Modelica Buildings library
Examples Library of examples to demonstrate requirement definitions with package Requirements
Elementary Library of examples to demonstrate the features of single property functions/blocks using a graphical description
Verify Library of examples using Verify blocks
Requirement Example for Requirement (Property shall not be Violated)
TimeLocators Library of examples using TimeLocators blocks
Every Example for Every (output is true, during every interval for a defined duration)
Until Example for Until (output is true, until first rising edge of input)
After Example for After (output is true, after first rising edge of input)
AfterFor Example for AfterFor (output is true, after rising edge of input for defined duration)
AfterUntil Example for AfterUntil (output is true, after rising edge of input u1 until rising edge of input u2)
ChecksInFixedWindow Library of examples using ChecksInFixedWindow blocks
During Example for During (in every true condition phase, check must be true)
MinDuration Example for MinDuration (in every true condition phase, check must be true for at least the defined duration)
MaxDuration Example for MaxDuration (in every true condition phase, check must be true for at most the defined duration)
BandDuration Example for BandDuration (in every true condition phase, check must be true for at least a minimum duration and at most a maximum duration)
NoRising Example for NoRising (in every true condition phase, no rising edge of check is allowed)
FixedRising Example for FixedRising (in every true condition phase, a defined number of check rising edges must occur)
MinRising Example for MinRising (in every true condition phase, a minimum number of check rising edges must occur)
MaxRising Example for MaxRising (in every true condition phase, the number of check rising edges is bounded)
BandRising Example for BandRising (in every true condition phase, a minimum number of check rising edges must occur and the number of check rising edges is bounded)
MaxRisingFrequency Example for MaxRisingFrequency (in every true condition phase, the frequency of the check rising edges is limited)
WhenRising Example for WhenRising (return Satisfied when check is true and condition has a rising edge)
WhenFalling Example for WhenFalling (return Satisfied when check is true and condition has a falling edge)
WhenChanging Example for WhenChanging (return Satisfied when check is true and condition has a changing edge)
WithinDomain Example for WithinDomain (in every true condition phase, point input must be within domain defined by polygon)
WithinBand Example for WithinBand (a sine and three constants against a band, always, never and sometimes active)
GreaterEqual Example for GreaterEqual (a sine and a constant compared, always, never and sometimes active)
StableSignal Example for StableSignal (a slow and a fast sine, always and sometimes active)
RegionFraction Example for RegionFraction (a temperature wave along a rod of 10 cells, held over at most 30 % of the rod)
ChecksInFixedWindow_withFFT Library of check blocks that inspect properties in a fixed time window using FFT (Fast Fourier Transform)
WithinAbsoluteDomain1 Example for WithinAbsoluteDomain block with one FFT computation (a rising condition input triggers an FFT calculation. The amplitudes of the FFTs must be below a frequency dependent limit)
WithinAbsoluteDomain2 Example for WithinAbsoluteDomain block with two FFT computations (a rising condition input triggers an FFT calculation. The amplitudes of the FFTs must be below a frequency dependent limit)
WithinRelativeDomain1 Example for RelativeDomain block with one FFT computation (a rising condition input triggers an FFT calculation. The amplitudes of the FFTs must be below a frequency dependent limit that is defined relative to the amplitude of the base frequency)
WithinRelativeDomain2 Example for RelativeDomain block with two FFT computations (a rising condition input triggers an FFT calculation. The amplitudes of the FFTs must be below a frequency dependent limit that is defined relative to the amplitude of the base frequency)
MaxTotalHarmonicDistortion1 Example for MaxTotalHarmonicDistortion block with one FFT computation (a rising condition input triggers an FFT calculation. The Total Harmonic Distortion (THD) of the FFTs must be below the given limit)
MaxTotalHarmonicDistortion2 Example for MaxTotalHarmonicDistortion block with two FFT computations (a rising condition input triggers an FFT calculation. The Total Harmonic Distortion (THD) of the FFTs must be below the given limit)
ChecksInSlidingWindow Library of examples using ChecksInSlidingWindow blocks
MinDuration Example for MinDuration (in every sliding time window, the longest time duration where check was permanently true must be above a lower limit)
MinAccumulatedDuration Example for MinAccumulatedDuration (in every sliding time window, the accumulated time duration where check was true must be above a lower limit)
MinAccumulatedDuration2 Example for MinAccumulatedDuration2 (in every sliding time window, the accumulated time duration where check was true must be above a lower limit)
MaxDuration Example for MaxDuration (in every sliding time window, the longest time duration where check was permanently true must be below an upper limit)
MaxAccumulatedDuration Example for MaxAccumulatedDuration (in every sliding time window, the accumulated time duration where check was true must be below an upper limit)
BandDuration Example for BandDuration (in every sliding time window, the longest time duration where check was permanently true must be within a given band)
BandAccumulatedDuration Example for BandAccumulatedDuration (in every sliding time window, the accumulated time duration where check was true must be within a given band)
MinRising Example for MinRising (in every sliding time window, a minimum number of check rising edges must occur)
MaxRising Example for MaxRising (in every sliding time window, the number of check rising edges is bounded)
BandRising Example for BandRising (in every sliding time window, a minimum number of check rising edges must occur and the number of check rising edges is bounded)
MaxFrequency Example for MaxFrequency (in every sliding time window, the mean frequency of check is limited)
MaxRisingFrequency Example for MaxRisingFrequency (in every sliding time window, the frequency of the check rising edges is limited)
MaxIncrease Example for MaxIncrease (in every sliding time window, the increase of the input is limited)
MaxPercentageIncrease Example for MaxPercentageIncrease (in every sliding time window, the increase of the input is limited)
SignalAnalysis Library of examples using SignalAnalysis blocks
Derivatives Examples for DerXXX (various ways to compute derivatives of signals)
Integrator Example for Integrator (output is the integral over the input, as long as input active is true)
MovingAverage Example for MovingAverage (output is the continuous moving average of the input, as long as input active is true)
TimeMonitoring Example for TimeMonitoring (output is the time duration where the Boolean input was true)
CrossingMonitoring Example for CrossingMonitoring (output is true for a positive threshold crossing of the input and false for a negative threshold crossing)
LogicalBlocks Library of examples using LogicalBlocks blocks
Conversions Examples for BooleanToProperty, IntegerToProperty, PropertyToBoolean, PropertyToInteger
ThresholdComparisons Examples for the threshold comparison blocks in package LogicalBlocks
DelayedRising Example for DelayedRising (output is true, after a duration of a rising input edge and false after a falling input edge)
AnyTrue Example for AnyTrue (output is true if at least one input is true)
AllTrue Example for AllTrue (output is true if all inputs are true)
PropertyNot Example for PropertyNot (4-valued logic 'not' of a Property input)
PropertyOr Example for PropertyOr (3-valued logic 'or' of Property input u)
PropertyAnd Example for PropertyAnd (3-valued logic 'and' of Property input u)
PropertyTable4 The four-valued (ETL) tables of and4, or4 and not4 asserted entry by entry, and the laws that fail
Sources Library of examples using Sources blocks
ConstantsAndExpressions Examples for XXXConstant and XXXExpressions
PropertyTable Example for PropertyTable
SignalsFromFile Example for PartialSignalsFromFile (a hand-written MA-HS-CSV reader with named outputs)
CabinReader Reads T_cabin, p_cabin, packOn and flightPhase from a MA-HS-CSV file
ShortExcursionFromFile Example for rowEvents: a 10 ms excursion above a limit, between two solver steps
VelocityReader Reads v from a MA-HS-CSV file
Units Library of examples using the Units package
Conversions Every conversion of Requirements.Units.Conversions asserted against its factor, and its round trip
Phasors Every transformation of Requirements.Units.Phasors asserted against its closed form, and its round trip
Margin Library of examples asserting the margin outputs of the check blocks against closed-form values
During A ramp against a threshold: During's margin is (8 - u)/scale in closed form
Band A sine against a band: During's margin is min(u - lo, hi - u)/scale in closed form, the worst 0.5 at t = 7.5 s
Duration Min/Max/BandDuration on one condition phase: the margin is the running duration against its limit, piecewise linear
Rising The five count checks on one edge train: the margins are count differences, scale 1
RisingFrequency A 2 Hz edge train against MaxRisingFrequency(3 Hz): the margin is 1 Hz once the frequency is known
WithinDomain A point crossing a square: the margin is the signed distance to the nearest edge over scale, in closed form
SlidingIncrease A ramp against MaxIncrease: the margin is upperLimit - increase, with increase = min(t, window) in closed form
FFT WithinAbsoluteDomain with a scale: the margin is scaledDistance/scale and agrees in sign with the verdict
Gated WithinBand and GreaterEqual behind a pulsed condition and a delay: the margins in closed form while active, Undefined otherwise
StableSignal StableSignal on a sine that stops: the moving average of |du/dt| and the margin in closed form, and the hysteresis
ViolationStatistics Examples of Verify.ViolationStatistics: how often, how long and how badly a requirement was violated, asserted against closed-form values
Sine A sine against a limit: four episodes of 10/3 s each, the worst margin -2 between two output points
Episodes Five violations against mergeGap and minDuration, and against a property that is applicable half of the time
Gating A MinDuration check: its provisional margin while Undecided does not count, the worst decided margin is 0
RequirementLog Verify.Requirement with computeStatistics: the statistics are logged beside the verdict and printed in the summary
PartialYear A year of a room temperature against a comfort band, hourly output
YearRippleNoStatistics A year with a 10-minute ripple, no statistics: the reference for the cost of the statistics
YearRippleContinuous A year with a 10-minute ripple, continuous method: one event per local extremum of the margin
YearRippleRatchet A year with a 10-minute ripple, ratchet method: an event only at a new low
StepResponse Library of examples asserting the step-response blocks against the closed forms of a second-order system
SecondOrder A 0.1 m step into a second-order system (D = 0.5, w = 5 rad/s): every metric against its closed form, every check against its verdict
Disturbance A load step with the response returning to its setpoint: the peak deviation is the overshoot, a percent bound has no base
LinearAnalysis Library of examples asserting the eigenvalue blocks on a shipped second-order state matrix
SecondOrder The state matrix of a second-order system (w0 = 2 rad/s, D = 0.2) read from a MATLAB v4 file: every predicate against its closed form
ModeTable The modes of a cantilever (code_aster, six modes) read from a mode table: every predicate against its closed form, and against the state-matrix route on the same modes
AircraftRequirements Library of examples to demonstrate requirement definitions for aircrafts
LimitedControlFrequency Requirement: The frequency of the control signal is limited
MinimumAirDistributionPerformance Requirement: If only one engine is running, the air distribution circuit shall provide nominal performance
MinimumOperationalServiceLife Requirement: The aircraft shall be designed for a minimum operational service life.
MaximumCabinTemperatureIncrease Requirement: The temperature increase of the cabin area is limited to ensure passenger comfort
MaximumCabinDissipatedPowerIncrease Requirement: The dissipated power of cabin area is limited to ensure passenger comfort
LimitedCabinAltitudeRateOfChange Requirement: The cabin altitude rate of change is limited by the pressure bump duration domain to ensure passenger comfort
LimitedFreshECSFlow Requirement: The fresh airflow entering the pressurized areas shall be within the given domain
PreventHeatExchangerClogging Requirement: Cold heat exchanger clogging shall not occur
TriggerAPUStartSequence Requirement: The Auxiliary Power Unit shall be started after successive start failures of one of the engines
AirCircuitSystem Simple air circuit example system to demonstrate requirements definition, binding and checking
CheckAirCircuitSystem Air circuit system with the pressure and temperature requirements of pipe2 bound and checked
Components Utility components needed for example
AirCircuitSystem_B Behavioral model ofair circuit system
Medium Medium in the air circuit
Checks Requirement blocks and their observation records
Records Records containing observation variables needed by the Requirement models
Medium Observation variables from a medium
MediumVector Observation variables from a vector of medium properties
PipeRequirements Requirements for a Pipe
PipeNodeRequirements Requirements for a a node of a pipe
Bindings Functions to map variables from the target to the requirement component
pipeObservation_from_DynamicPipe Map DynamicPipe variables to Pipe observations record
BackupPowerSupply Example package to evaluate the requirements of the EDF Backup Power Supply benchmark (using a graphical definition)
MainPowerSupplyRequirements Evaluating the requirement definitions for the Main Power Supply system
Components Utility components needed for Backup-Power-Supply examples
MPS Requirements for Main Power Supply (MPS) defined in graphical form
MotorsWithLosses Demonstrate requirements definition and checking at hand of a electrical motors
CheckMotorWithLosses Check model Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses
Components Utility components needed for example
DCMotorWatching Signals observed from a DC motor as needed by DCMotorRequirements block
DCMotorRequirements Requirements for one DC Motor
InertiaData Data needed from Modelica.Mechanics.Rotational.Components.Inertia
MotorData Data needed from Modelica.Electrical.Machines.BasicMachines.DCMachines.DC_PermanentMagnet
watchDCMotor Map data from Modelica.Electrical.Machines.BasicMachines.DCMachines.DC_PermanentMagnet to DCMotor
Verify Check requirements of DC motors
SimplePumpingSystem Simple example system to demonstrate requirements definition and checking
CheckPumpingSystem Check model PumpingSystem
Components Utility components needed for example
PumpingSystem Model of a pumping system for drinking water
Checks Requirement blocks and their observation records
Records Records containing observation variables needed by the Requirement models
TankRequirements Requirements for a Tank
PumpRequirements Requirements for one pump
SourceRequirements Requirements for a Source component
Bindings Functions to map variables from the target to the requirement component
Records Records containing observation variables used as inputs to the binding functions
FluidPort_p Observation variables from a Modelica.Fluid.Interfaces.FluidPort component (only pressure p)
PrescribedPump Observation variables from a Modelica.Fluid.Machines.PrescribedPump component
tankObservation_from_OpenTank Map OpenTank variables to Tank observations record
pumpObservation_from_PrescribedPump Map PrescribedPump variables to pump observations record
SteadyState Examples solved for a steady state: models whose requirements are checked over a point cloud rather than over time
HeatExchangerSimulation Modelica.Fluid.Examples.HeatExchanger.HeatExchangerSimulation with both inlet temperatures and both mass flows as parameters, run to its steady state
CheckHeatExchanger HeatExchangerSimulation with its steady-state requirements, checked at the settled end of the run and printed by PrintViolations
Uncertainty Library of examples of the uncertainty band (0.19.0): a checked value with a known uncertainty interval, asserted in closed form
Levels Constant levels against 'u <= 8' with uncertainty intervals: certainly satisfied, certainly violated, in band on either side, asymmetric, zero width, no band
Ramp A ramp against 'u <= 8' with +-1: the band is open from t = 7 s to t = 9 s, the verdict flips at 8 s
WhenRising A ramp checked at the rising edges of a pulse, 'u <= 5.5' with +-1: the band sampled with the decision
Fold The band of a conjunction and a disjunction (bandAnd, bandOr): a certain violation decides, one in-band element flips a satisfied conjunction
Verify Library of components to verify requirements
PrintViolations Print violated, untested and satisfied requirements at end of simulation (drag in top level of your model)
Requirement Check requirement defined by Property input property (property shall be Property.Satisfied)
BooleanRequirement Check requirement defined by Boolean input u (u shall be true for a satisfied requirement)
ViolationStatistics Violation statistics of a property over a run: how often it was violated, for how long in total, the longest violation, the worst margin and when
TimeLocators Library of continuous time locators (output is true, if within time locator)
Every Output is true, during every interval for a defined duration
Until Output is true, until first rising edge of input
After Output is true, after first rising edge of input
AfterFor Output is true, after rising edge of input for defined duration (flat version)
AfterUntil Output is true, after rising edge of input 1 until the rising edge of input 2
ChecksInFixedWindow Library of check blocks (if the condition input is true, a property must hold)
During In every true condition phase, check must be true
MinDuration In every true condition phase, check must be true for at least the defined duration
MaxDuration In every true condition phase, check must be true for at most the defined duration
BandDuration In every true condition phase, check must be true for at least a minimum duration and at most a maximum duration
NoRising In every true condition phase, no rising edge of check is allowed
FixedRising In every true condition phase, a defined number of check rising edges must occur
MinRising In every true condition phase, a minimum number of check rising edges must occur
MaxRising In every true condition phase, the number of check rising edges must be bounded
BandRising In every true condition phase, a minimum number of check rising edges must occur and the number of check rising edges is bounded
MaxRisingFrequency In every true condition phase, the frequency of the check rising edges is limited
WhenRising When condition input has a rising edge, check must be true
WhenFalling When condition input has a falling edge, check must be true
WhenChanging When condition input has a changing edge, check must be true
WithinDomain In every true condition phase, point input must be within the domain defined by a polygon
StepResponseCheck One step-response metric of u after a step of r, bounded: Property and margin
WithinBand In every true condition phase (after an optional delay), the Real input must stay within a lower and an upper limit
GreaterEqual In every true condition phase (after an optional delay), Real input u_max must be greater than or equal to Real input u_min
StableSignal In every true condition phase (after an optional delay), the moving average of the input's rate of change must stay at or below a limit
RegionFraction In every true condition phase, the weighted fraction of n places where a check holds must stay within a lower and an upper limit
ChecksInFixedWindow_withFFT Library of check blocks that inspect properties in a fixed time window using FFT (Fast Fourier Transform)
WithinAbsoluteDomain A rising condition input triggers an FFT calculation. The amplitudes of the FFTs must be below a frequency dependent limit
WithinRelativeDomain A rising condition input triggers an FFT calculation. The amplitudes of the FFTs must be below a frequency dependent limit that is defined relative to the amplitude of the base frequency
MaxTotalHarmonicDistortion A rising condition input triggers an FFT calculation. The Total Harmonic Distortion (THD) of the FFTs must be below the given limit.
Internal Library of internal components used by FFT blocks (should not be directly used)
PartialFFT Partial model containing the common part of the FFT blocks
amplitudeFrequencyCurveForIcon Return amplitude = f(frequency) for icon animation
checkRelativeDomain WithinRelativeDomain's whole evaluation in one call: base frequency, scaled limit curve, check, icon curves
checkTHD MaxTotalHarmonicDistortion's whole evaluation in one call: base frequency, THD, check, icon curves
checkDomain Check whether FFT is in required domain
get_ns Return number of sample points
interpolate Interpolate polygon (abscissa values must be within polygon values)
maxAmplitudeCurveForIcon Return maxAmplitude = f(frequency) for icon animation in defined icon area
saveFFTonFile Save FFT computation on file
fftScaled Compute scaled FFT
removeFFTresultFiles Remove FFT results files of previous simulation runs of the current model (if they exist)
findBaseFrequency Find real base frequency (search around an interval of f_base for the largest amplitude
calculateTHD Compute Total Harmonic Distortion from amplitude of FFT
baseAmplitudeForIcon Determine amplitude line of base frequency for icon
ChecksInSlidingWindow Library of check blocks that inspect a property in a sliding time window
MinDuration In every sliding time window, the longest time duration where check was permanently true must be above a lower limit
MinAccumulatedDuration In every sliding time window, the accumulated time duration where check was true must be above a lower limit
MinAccumulatedDuration2 In every sliding time window, the accumulated time duration where check was true must be above a lower limit (same as MinAccumulationDuration but with Boolean instead of Property output)
MaxDuration In every sliding time window, the longest time duration where check was permanently true must be below an upper limit
MaxAccumulatedDuration In every sliding time window, the accumulated time duration where check was true must be below an upper limit
BandDuration In every sliding time window, the longest time duration where check was permanently true must be within a given band
BandAccumulatedDuration In every sliding time window, the accumulated time duration where check was true must be within a given band
MinRising In every sliding time window, a minimum number of check rising edges must occur
MaxRising In every sliding time window, the number of check rising edges is bounded
BandRising In every sliding time window, a minimum number of check rising edges must occur and the number of check rising edges is bounded
MaxFrequency In every sliding time window, the mean frequency of check is limited
MaxRisingFrequency In every sliding time window, the mean frequency of the check rising edges is limited
MaxIncrease In every sliding time window, the increase of the input is limited
MaxPercentageIncrease In every sliding time window, the percentage increase of the input is limited
SignalAnalysis Library of signal analysis blocks to compute properties from Real signals
ExactDerivative Output is the analytic derivative of the input (= exact derivative)
ApproximateDerivativeWithFilter Output is the filtered derivative of the input (= approximate derivative)
ApproximateDerivativeWithWindow Output is the finite difference quotient of the input (= approximate derivative)
TriggeredIntegrator Output is the integral over the input, as long as the Boolean input active is true (for a rising edge of active the integrator state is reset to 0)
MovingAverage Output is the continuous moving average of the input
TimeMonitoring Output is the time duration where the Boolean input was true
CrossingMonitoring Output is true for a positive threshold crossing of the input and false for a negative threshold crossing
StepResponse Running step-response metrics of u after a step of r, sampled: the peak, the level crossings, the last exit from the settling band, the extrema
LinearAnalysis Eigenvalue predicates over the state matrix of a linearization, or over a mode table, read from a file
readStateMatrix The A matrix of a linearization from a MATLAB v4 file
modes The modes of a state matrix: its eigenvalues with conjugate pairs folded into their Im >= 0 member, the integrator rule and the parasitic cut applied, sorted by magnitude
EigenvalueCheck One eigenvalue predicate over every mode of a state matrix (optionally in a frequency band): Property and margin, constant over the run
EigenvaluesWithinRegion Every mode of a state matrix inside a polygon of the (Re, Im) plane: Property and margin, constant over the run
readModeColumn One column of a mode table (MA-HS-CSV: mode, f, zeta, meff_x, ...) by its header name
hasModeColumn Whether a mode table has a column of this name
columnIndex The 1-based index of a name in a comma-separated header (quotes and blanks ignored: a name holds neither), 0 when it is not there
eigenvaluesOfModes The eigenvalue (Im >= 0 member of the pair) of each mode of a table: (-zeta w, w sqrt(1 - zeta^2)), w = 2 pi f
stateMatrixOfModes The block-diagonal state matrix of a mode table: one block [0, 1; -w^2, -2 zeta w] per mode
ModeTableCheck One eigenvalue predicate over every mode of a mode table (optionally in a frequency band, optionally above an effective-mass fraction): Property and margin, constant over the run
ModesWithinRegion Every mode of a mode table inside a polygon of the (Re, Im) plane: Property and margin, constant over the run
propertyPerMode The property of one eigenvalue predicate per mode (Undefined outside the band)
marginPerMode The raw margin of one eigenvalue predicate per mode (0 outside the band, -inf for a non-decaying mode against a time constant)
regionMargins The signed distance of every mode (and its conjugate) to a polygon, positive inside
worstMargin The least margin over the decided modes (-inf where a violated mode has none, 0 when no mode is decided)
LogicalFunctions Library of logical functions (2-/3-/4-valued logical operators without memory)
card Returns the number of elements of a Boolean vector that are true
exists Returns true if at least one element of a Boolean vector is true ('or' of all elements)
forall Returns true if all elements of a Boolean vector are true ('and' of all elements)
implies Returns check as long as the condition is true, otherwise returns true
first Returns the value of the first element of a Boolean vector
last Returns the value of the last element of a Boolean vector
oneTrue Returns true if exactly one element of a Boolean vector is true ('xor' of all elements)
PropertyToBoolean Convert Property (Violated, Undecided, Satisfied, Undefined) to Boolean (false, true)
PropertyToInteger Convert Property (Violated, Undecided, Satisfied) to Integer (1,2,3)
BooleanToProperty Convert Boolean (false,true) to Property (Violated, Satisfied)
IntegerToProperty Convert Integer (1,2,3,4) to Property (Violated, Undecided, Satisfied, Undefined)
during Return Satisfied when check is true as long as condition is true
during3 Return Satisfied when check is Satisfied as long as condition is true (check: 4-valued logic)
forall3 Returns Violated, if at least one element of the Property vector is Violated (superseded by and4All)
cardSatisfied Returns the number of elements of a Property vector that are Satisfied
cardUndecided Returns the number of elements of a Property vector that are Undecided
cardViolated Returns the number of elements of a Property vector that are Violated
cardUndefined Returns the number of elements of a Property vector that are Undefined
and4 4-valued logic 'and' of two Property values (ETL: Undefined is the neutral element)
or4 4-valued logic 'or' of two Property values (ETL: Undefined is the neutral element)
not4 4-valued logic 'not' of a Property value (ETL: Undecided and Undefined are fixed)
and4All 4-valued logic 'and' over a Property vector (the empty vector gives Undefined, the neutral element)
or4All 4-valued logic 'or' over a Property vector (the empty vector gives Undefined, the neutral element)
marginAnd Margin of a conjunction: the minimum of the margins whose property is applicable (not Undefined)
marginOr Margin of a disjunction: the maximum of the margins whose property is applicable (not Undefined)
bandAnd Uncertainty band of a conjunction: could and4All(p) flip inside the uncertainty intervals of its elements?
bandOr Uncertainty band of a disjunction: could or4All(p) flip inside the uncertainty intervals of its elements?
LogicalBlocks Library of logical blocks (2-/4-valued logical operators with and without memory)
BooleanToProperty Convert Boolean (false,true) to Property (Violated, Satisfied)
IntegerToProperty Convert Integer (1,2,3,4) to Property (Violated, Undecided, Satisfied, Undefined)
PropertyToBoolean Convert Property (Violated, Undecided, Satisfied, Undefined) to Boolean (false, true)
PropertyToInteger Convert Property (Violated, Undecided, Satisfied, Undefined) to Integer (1,2,3,4)
GreaterThreshold Output y is true if input u is greater than threshold
GreaterEqualThreshold Output y is true if input u is greater or equal than threshold
LessThreshold Output y is true if input u is less than threshold
LessEqualThreshold Output y is true if input u is less or equal than threshold
WithinBand Output y is true if input u is within a lower and upper threshold
DelayedRising Output y is true after a duration of a rising input edge and false after a falling input edge
AnyTrue Output y is true if at least on input is true (\"or\" of all inputs)
AllTrue Output y is true if all inputs are true (\"and\" of all inputs)
PropertyNot 4-valued logic 'not' of Property input u: y = not4(u)
PropertyOr 4-valued logic 'or' of Property input u: y = or4All(u) = u[1] or u[2] or ... or u[nu]
PropertyAnd 4-valued logic 'and' of Property input u: y = and4All(u) = u[1] and u[2] and ... and u[nu]
FallingEdgeTerminate Terminate simulation when a falling edge of the input u occurs
Sources Library of signal source blocks generating Real, Integer, Boolean and Property signals
RealConstant Output y is a Real parameter
IntegerConstant Output y is an Integer parameter
BooleanConstant Output y is a Boolean parameter
PropertyConstant Output y is a Property parameter
RealExpression Output y is a (time-varying) Real expression
IntegerExpression Output y is a (time-varying) Integer expression
BooleanExpression Output y is a (time-varying) Boolean expression
PropertyTable Output y is a Property signal computed by constant interpolation in a table matrix with [time, property] values
PartialSignalsFromFile Base of a reader of a MA-HS-CSV file: the extending block names the columns and declares one output per column
Types Library of type definitions
- Property Enumeration defining literals for four-valued logic (ETL): Undefined = not applicable, the neutral element of and/or
- Boolean4 CRML's name for the four-valued logic type (Requirements.Types.Property)
- StepTarget The target a step-response metric measures the response against; the response's own final value has no running form and is not offered
- EigenMetric The eigenvalue predicates over the modes of a state matrix
- StepMetric The classic step-response metrics
- WorstMarginMethod How Verify.ViolationStatistics finds the worst margin
Units Type definitions of non-SI units and conversion functions, for the units Modelica.Units lacks
NonSI Type definitions of non-SI units (the ones Modelica.Units.NonSI does not define)
- Time_ms Time in milliseconds
- Length_mm Length in millimetres
- Length_cm Length in centimetres
- Length_km Length in kilometres
- Length_ft Length in feet
- Length_kft Length in thousands of feet (flight levels, cabin and aircraft altitudes)
- Mass_g Mass in grams
- MassFlowRate_kgpmin Mass flow rate in kilograms per minute
- Velocity_ftps Velocity in feet per second
- Velocity_ftpmin Velocity in feet per minute (rates of climb)
- Pressure_kPa Pressure in kilopascals
- Pressure_MPa Pressure (or stress) in megapascals
- Pressure_mbar Pressure in millibars
- Power_kW Power in kilowatts
- Energy_kJ Energy in kilojoules
- AngularVelocity_degps Angular velocity in degrees per second
- AngularAcceleration_degps2 Angular acceleration in degrees per second squared
- VolumeFlowRate_lpmin Volume flow rate in litres per minute (pumps, coolant loops)
- VolumeFlowRate_m3ph Volume flow rate in cubic metres per hour (pumps, HVAC)
- SpecificEnergy_kJpkg Specific energy (a specific enthalpy) in kilojoules per kilogram
- MassFraction_gpkg Mass fraction in grams per kilogram (humidity ratios)
- Inductance_mH Inductance in millihenries
- Inductance_uH Inductance in microhenries
- MagneticFlux_mWb Magnetic flux in milliwebers
- Resistance_kOhm Resistance in kilohms
- Resistance_MOhm Resistance in megohms (insulation resistances)
- Resistance_mOhm Resistance in milliohms (contact and shunt resistances)
- Capacitance_uF Capacitance in microfarads
- Capacitance_nF Capacitance in nanofarads
- Capacitance_pF Capacitance in picofarads
- ApparentPower_kVA Apparent power in kilovolt-amperes
- ReactivePower_kvar Reactive power in kilovars
- SpecificHeatCapacity_kJpkgK Specific heat capacity in kilojoules per kilogram kelvin
- Density_gpcm3 Density in grams per cubic centimetre
- DynamicViscosity_mPas Dynamic viscosity in millipascal seconds (centipoise)
- Area_cm2 Area in square centimetres
- Area_mm2 Area in square millimetres
- MagneticFluxDensity_mT Magnetic flux density in millitesla
- PressureSlope_barps Pressure slope in bars per second
- Percent A ratio in percent (a mass imbalance, an efficiency, a fraction of a range)
Conversions Conversion functions to/from the non-SI units of Requirements.Units.NonSI
to_ms Convert from second to millisecond
from_ms Convert from millisecond to second
to_mm Convert from metre to millimetre
from_mm Convert from millimetre to metre
to_cm Convert from metre to centimetre
from_cm Convert from centimetre to metre
to_km Convert from metre to kilometre
from_km Convert from kilometre to metre
to_ft Convert from metre to foot
from_ft Convert from foot to metre
to_kft Convert from metre to thousands of feet
from_kft Convert from thousands of feet to metre
to_g Convert from kilogram to gram
from_g Convert from gram to kilogram
to_kgpmin Convert from kilogram per second to kilogram per minute
from_kgpmin Convert from kilogram per minute to kilogram per second
to_ftps Convert from metre per second to foot per second
from_ftps Convert from foot per second to metre per second
to_ftpmin Convert from metre per second to foot per minute
from_ftpmin Convert from foot per minute to metre per second
to_kPa Convert from pascal to kilopascal
from_kPa Convert from kilopascal to pascal
to_MPa Convert from pascal to megapascal
from_MPa Convert from megapascal to pascal
to_mbar Convert from pascal to millibar
from_mbar Convert from millibar to pascal
to_kW Convert from watt to kilowatt
from_kW Convert from kilowatt to watt
to_percent Convert from a ratio (unit 1) to percent
from_percent Convert from percent to a ratio (unit 1)
to_kJ Convert from joule to kilojoule
from_kJ Convert from kilojoule to joule
to_degps Convert from radian per second to degree per second
from_degps Convert from degree per second to radian per second
to_degps2 Convert from radian per second squared to degree per second squared
from_degps2 Convert from degree per second squared to radian per second squared
to_lpmin Convert from cubic metre per second to litre per minute
from_lpmin Convert from litre per minute to cubic metre per second
to_m3ph Convert from cubic metre per second to cubic metre per hour
from_m3ph Convert from cubic metre per hour to cubic metre per second
to_kJpkg Convert from joule per kilogram to kilojoule per kilogram
from_kJpkg Convert from kilojoule per kilogram to joule per kilogram
to_gpkg Convert from kilogram per kilogram to gram per kilogram
from_gpkg Convert from gram per kilogram to kilogram per kilogram
to_mH Convert from henry to millihenry
from_mH Convert from millihenry to henry
to_uH Convert from henry to microhenry
from_uH Convert from microhenry to henry
to_mWb Convert from weber to milliweber
from_mWb Convert from milliweber to weber
to_kOhm Convert from ohm to kilohm
from_kOhm Convert from kilohm to ohm
to_MOhm Convert from ohm to megohm
from_MOhm Convert from megohm to ohm
to_mOhm Convert from ohm to milliohm
from_mOhm Convert from milliohm to ohm
to_uF Convert from farad to microfarad
from_uF Convert from microfarad to farad
to_nF Convert from farad to nanofarad
from_nF Convert from nanofarad to farad
to_pF Convert from farad to picofarad
from_pF Convert from picofarad to farad
to_kVA Convert from volt-ampere to kilovolt-ampere
from_kVA Convert from kilovolt-ampere to volt-ampere
to_kvar Convert from var to kilovar
from_kvar Convert from kilovar to var
to_kJpkgK Convert from joule per kilogram kelvin to kilojoule per kilogram kelvin
from_kJpkgK Convert from kilojoule per kilogram kelvin to joule per kilogram kelvin
to_gpcm3 Convert from kilogram per cubic metre to gram per cubic centimetre
from_gpcm3 Convert from gram per cubic centimetre to kilogram per cubic metre
to_mPas Convert from pascal second to millipascal second
from_mPas Convert from millipascal second to pascal second
to_cm2 Convert from square metre to square centimetre
from_cm2 Convert from square centimetre to square metre
to_mm2 Convert from square metre to square millimetre
from_mm2 Convert from square millimetre to square metre
to_mT Convert from tesla to millitesla
from_mT Convert from millitesla to tesla
to_barps Convert from pascal per second to bar per second
from_barps Convert from bar per second to pascal per second
Phasors Transformations between the polar and the rectangular form of a phasor
magnitude Magnitude of a phasor from its real and imaginary parts
phaseAngle Phase angle of a phasor from its real and imaginary parts, in (-pi, pi]
realPart Real part of a phasor from its magnitude and phase angle
imaginaryPart Imaginary part of a phasor from its magnitude and phase angle
wrapAngle Angle wrapped to (-pi, pi]
phaseDifference Phase angle of one phasor relative to another, wrapped to (-pi, pi]
Utilities Library of utility functions
distancePointToPolygon Return minimum distance between a point and a polygon
isInsidePolygon Return true if a point is inside or on a polygon (otherwise return false)
Interfaces Library of interfaces and of partial blocks
PropertyInput 'input Property' as connector
PropertyOutput 'output Property' as connector
MarginOutput 'output Real' connector for a normalized margin: robustness/scale, >= 0 exactly when the check holds
MarginInput 'input Real' connector for a normalized margin: robustness/scale, >= 0 exactly when the check holds
PropertyVectorInput Property input connector used for vector of connectors
EventInput 'input Event' as connector
EventOutput 'output Event' as connector
PartialSystem Block defining properties of a system
PartialEnvironment Block defining properties of the environment
PropertyFunction Icon for functions returning a variable of type Property
PartialBooleanVISO Partial block with a BooleanVectorInput and a BooleanOutput signal
PartialPropertyVISO Partial block with a PropertyVectorInput and a PropertyOutput signal
PartialExpression Icon for expression block
PartialConstant Icon for Constant block
partialThresholdComparison Partial block to compare the Real input u with a threshold and provide the result as 1 Boolean output signal
PartialTriggeredMovingWindow Icon and equations for a block with a trigger signal and a moving time window
PartialCheck Interfaces and icon for check block
- PartialUncertaintyBand Optional uncertainty band of a check against fixed limits: inputs rhoLow, rhoHigh and output inBand
PartialCheckInSlidingWindowWithBooleanOutput Interfaces and icon for check block that evaluates a property in a sliding time window and returns the result as Boolean
PartialCheckInSlidingWindowWithPropertyOutput Interfaces and icon for check block that evaluates a property in a sliding time window and returns the result as Property
PartialConversion Icon for conversion block
ObservationID Identification of instance from which observations are used
PartialRequirement Common properties of all requirement blocks
PartialWatching Partial definition of watch record to observe the signals from a source
PartialRequirements Partial requirements block
PartialVerify Partial model containing the common interfaces to check requirements
Internal Library of internal components (should not be directly used)
- SortingPort Connector used to force a particular ordering of equations and to pass information about satisfied requirements
initializeLogFile Initialize log file (remove existing file and add a blank line; remove the html report of an earlier run)
printViolationsToLogFile Print information about one requirement to log file
printViolationsToOutput Print violated, untested and satisfied requirements to output window
removeFirstName Remove first name of a Modelica path name
getFirstName Get first name of a Modelica path name
removeFirstElement Remove first part of one line of the log file (until \",\")
getElements Extract the elements from a log line
ContinuousWorst Worst margin over the decided phases and over the current violation episode, at the local extrema of the margin (used by Verify.ViolationStatistics)
RatchetWorst Worst margin over the decided phases and over the current violation episode, at every new low by more than resolution (used by Verify.ViolationStatistics)
StatisticsLogger Writes the violation statistics of one requirement to the log file of the inner printViolations (used by Verify.ViolationStatistics)
printStatisticsToLogFile Print the violation statistics of one requirement to the log file
SlidingWindow Ring buffer of the Boolean value changes in a sliding time window, and the functions operating on it (used by ChecksInSlidingWindow)
Buffer Memory of sliding window
init Initialize a sliding window buffer
push Store an element on the sliding window buffer and remove elements that are older as the window length
removeOldest Remove all elements from the buffer that are about to leave the sliding time window
nextLeaving Return time instant when the oldest element is leaving the buffer
firstValue Returns the newest value
lastValue Returns the oldest value
indexValue Returns the value at buffer index
indexTime Returns the time value at buffer index
numberOfValues Returns the number of values in the buffer
maxDuration Returns the maximum duration where buffer value is true in the sliding time window
accumulatedDuration Returns the accumulated duration where buffer value is true in the sliding time window
TestSlidingWindow Test functions of package SlidingWindow (assert the durations of hand-computed cases)
testMaxDuration Test SlidingWindow.maxDuration on seven cases with known results
testAccumulatedDuration Test SlidingWindow.accumulatedDuration on seven cases with known results
testFullBuffer Test SlidingWindow.push on a buffer that overflows
CSV MA-HS-CSV file reader: the external object and its access functions (used by Sources.PartialSignalsFromFile)
- File MA-HS-CSV file read into memory once; the requested columns by name and type
constructor Open the file, resolve the requested column names against its header, convert the columns
destructor Release the file's memory
nextTimeEvent Smallest event time of the file strictly after t (a huge value when there is none)
getReal Value of the i-th Real column at time t (linear between rows; the event bracket picks the side of an event)
getRealDer Time derivative of the i-th Real column at time t (the slope of the linear segment, the last segment's at the last row; zero outside the file's range)
getBoolean Value of the i-th Boolean column at time t (piecewise constant)
getInteger Value of the i-th Integer column at time t (piecewise constant)
- File MA-HS-CSV file read into memory once; the requested columns by name and type