Episodes model

Requirements.Examples.Elementary.ViolationStatistics.Episodes  ยท source

Icon of Episodes

Five violations against mergeGap and minDuration, and against a property that is applicable half of the time

Extends Modelica.Icons.Example

A property that is Violated on [1, 1.2), [1.3, 2), [5, 5.05), [8, 8.9) and from 9.7 s, and Satisfied otherwise, into five ViolationStatistics without margin. At 9.99 s:

InstanceSettingsnViolationslongesttotal
plain—50.9 s from 8 s2.14 s
mergedmergeGap = 0.2 s4: the first two merge across their 0.1 s gap1 s from 1 s (gap included)2.14 s
mergedMinmergeGap = 0.2 s, minDuration = 0.1 s3: [5, 5.05) is too short1 s from 1 s2.14 s
minOnlyminDuration = 0.25 s3 (2 at 9.9 s: the running violation counts once it is 0.25 s long)0.9 s from 8 s2.14 s
partlyproperty Undefined before 5 s30.9 s from 8 s1.24 s, 1.24/4.99 of the applicable time

The filters change the count and the longest episode, never the total.

Copyright © 2026 Model Based Innovation LLC. All rights reserved.

Components and variables

NameTypeDescription
violatedTableModelica.Blocks.Sources.BooleanTabletrue on [1, 1.2), [1.3, 2), [5, 5.05), [8, 8.9) and from 9.7 s
pPropertyViolated while the table is true
qPropertyThe same, not applicable before 5 s
plainRequirements.Verify.ViolationStatisticsEvery violation an episode
mergedRequirements.Verify.ViolationStatisticsA violation within 0.2 s of the previous one continues its episode
mergedMinRequirements.Verify.ViolationStatisticsMerged, and episodes under 0.1 s not counted
minOnlyRequirements.Verify.ViolationStatisticsEpisodes under 0.25 s not counted
partlyRequirements.Verify.ViolationStatisticsApplicable from 5 s only