Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.OnDelay.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.index|booleanTable.nextTime|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadModel(ModelicaTest): time 1.962/1.962, allocations: 209.3 MB / 224.9 MB, free: 192 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00047/0.0004702, allocations: 16 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3019, allocations: 48.7 MB / 331.3 MB, free: 6.324 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1284/0.4303, allocations: 74.63 MB / 405.9 MB, free: 3.688 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003428/0.4307, allocations: 67.97 kB / 406 MB, free: 3.621 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01406/0.4448, allocations: 1.966 MB / 407.9 MB, free: 1.656 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.56e-06/0.4448, allocations: 0 / 407.9 MB, free: 1.656 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.61e-05/0.4449, allocations: 4 kB / 407.9 MB, free: 1.652 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001125/0.446, allocations: 0.5424 MB / 408.5 MB, free: 1.031 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.915e-05/0.4461, allocations: 8.031 kB / 408.5 MB, free: 1.023 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001156/0.4462, allocations: 15.91 kB / 408.5 MB, free: 1.008 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002528/0.4465, allocations: 184.2 kB / 408.7 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002219/0.4468, allocations: 97.06 kB / 408.8 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.778e-05/0.4469, allocations: 12 kB / 408.8 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006644/0.4475, allocations: 148.1 kB / 408.9 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.4476, allocations: 0 / 408.9 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.981e-05/0.4476, allocations: 8 kB / 408.9 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.403e-06/0.4477, allocations: 3.938 kB / 408.9 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005468/0.4482, allocations: 87.88 kB / 409 MB, free: 416 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001545/0.4498, allocations: 0.5206 MB / 409.6 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006185/0.4505, allocations: 155.8 kB / 409.7 MB, free: 15.65 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.097e-05/0.4505, allocations: 3.938 kB / 409.7 MB, free: 15.64 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00102/0.4516, allocations: 467.5 kB / 410.2 MB, free: 15.1 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 4.28e-06/0.4516, allocations: 4 kB / 410.2 MB, free: 15.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.002437/0.4541, allocations: 0.7781 MB / 410.9 MB, free: 14.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002667/0.4544, allocations: 247.3 kB / 411.2 MB, free: 13.92 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002412/0.4546, allocations: 125.4 kB / 411.3 MB, free: 13.79 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.449e-05/0.4547, allocations: 33.7 kB / 411.3 MB, free: 13.75 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001652/0.4549, allocations: 163 kB / 411.5 MB, free: 13.59 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.455, allocations: 43.5 kB / 411.5 MB, free: 13.55 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.405e-05/0.4551, allocations: 8 kB / 411.6 MB, free: 13.54 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002612/0.4554, allocations: 324.8 kB / 411.9 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003562/0.4558, allocations: 59.91 kB / 411.9 MB, free: 13.16 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004483/0.4562, allocations: 119.7 kB / 412 MB, free: 13.01 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005312/0.4568, allocations: 204.5 kB / 412.2 MB, free: 12.78 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.707e-06/0.4568, allocations: 0 / 412.2 MB, free: 12.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001454/0.4583, allocations: 401.8 kB / 412.6 MB, free: 12.35 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002007/0.4585, allocations: 148.5 kB / 412.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.786e-05/0.4586, allocations: 4 kB / 412.8 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.282e-05/0.4586, allocations: 3.938 kB / 412.8 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/0.4588, allocations: 19.92 kB / 412.8 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.663e-05/0.4588, allocations: 4 kB / 412.8 MB, free: 12.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003092/0.4591, allocations: 24.11 kB / 412.8 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.859e-05/0.4592, allocations: 12 kB / 412.8 MB, free: 12.11 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004946/0.4597, allocations: 278.8 kB / 413.1 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.4599, allocations: 23.81 kB / 413.1 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.998e-05/0.46, allocations: 12.64 kB / 413.2 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/0.46, allocations: 4 kB / 413.2 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.478e-06/0.46, allocations: 4 kB / 413.2 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.4601, allocations: 3.938 kB / 413.2 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001639/0.4617, allocations: 0.5642 MB / 413.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.912e-06/0.4617, allocations: 288 / 413.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.678e-05/0.4618, allocations: 4 kB / 413.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.171e-06/0.4618, allocations: 0 / 413.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.199e-05/0.4619, allocations: 8 kB / 413.7 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.517e-06/0.4619, allocations: 4.125 kB / 413.7 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.346e-05/0.462, allocations: 12 kB / 413.8 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00183/0.4638, allocations: 0.5681 MB / 414.3 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001202/0.464, allocations: 92.92 kB / 414.4 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001261/0.4641, allocations: 23.94 kB / 414.4 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003851/0.4645, allocations: 16 kB / 414.5 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001623/0.4647, allocations: 31.89 kB / 414.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.238e-05/0.4648, allocations: 8 kB / 414.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001626/0.465, allocations: 103.8 kB / 414.6 MB, free: 10.18 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.016e-06/0.465, allocations: 0 / 414.6 MB, free: 10.18 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001013/0.466, allocations: 71.92 kB / 414.7 MB, free: 10.11 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 22 (onDelay1.u,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next) * Number of discrete states: 16 (onDelay2.t_next,onDelay2.delaySignal,$whenCondition7,$whenCondition6,onDelay3.t_next,onDelay3.delaySignal,$whenCondition5,$whenCondition4,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004194/0.4665, allocations: 143.1 kB / 414.8 MB, free: 9.965 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00145/0.4679, allocations: 0.4933 MB / 415.3 MB, free: 9.41 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.883e-06/0.468, allocations: 0 / 415.3 MB, free: 9.41 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009856/0.469, allocations: 417.9 kB / 415.7 MB, free: 8.953 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004292/0.4694, allocations: 8 kB / 415.7 MB, free: 8.945 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001376/0.4708, allocations: 350.1 kB / 416.1 MB, free: 8.566 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006375/0.4715, allocations: 0.7121 MB / 416.8 MB, free: 7.828 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.07e-05/0.4716, allocations: 11.44 kB / 416.8 MB, free: 7.816 MB / 346.7 MB Notification: Performance of SimCode: time 2.244e-06/0.4716, allocations: 0 / 416.8 MB, free: 7.816 MB / 346.7 MB Notification: Performance of Templates: time 0.007749/0.4794, allocations: 1.869 MB / 418.7 MB, free: 5.945 MB / 346.7 MB