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
  • 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
      • 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
    • AirCircuitSystem Simple air circuit example system to demonstrate requirements definition, binding and checking
    • 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
    • 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
  • 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)
    • 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
  • Interfaces Library of interfaces and of partial blocks
  • 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)
    • 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)