Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.OnDelay.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadModel(ModelicaTest): time 2.161/2.161, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.614e-05/1.65e-05, allocations: 0 / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3268, allocations: 54.85 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1346/0.4614, allocations: 80.26 MB / 438.3 MB, free: 14.56 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002186/0.4617, allocations: 67.91 kB / 438.4 MB, free: 14.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008563/0.4702, allocations: 1.95 MB / 440.3 MB, free: 12.54 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.232e-06/0.4703, allocations: 4 kB / 440.3 MB, free: 12.54 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.15e-05/0.4703, allocations: 4 kB / 440.3 MB, free: 12.54 MB / 378.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.0007038/0.471, allocations: 0.5222 MB / 440.8 MB, free: 11.94 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.4711, allocations: 12.03 kB / 440.8 MB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.778e-05/0.4712, allocations: 15.86 kB / 440.9 MB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001782/0.4714, allocations: 175 kB / 441 MB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/0.4715, allocations: 89.11 kB / 441.1 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.274e-05/0.4716, allocations: 8 kB / 441.1 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000207/0.4718, allocations: 63.97 kB / 441.2 MB, free: 11.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000267/0.4721, allocations: 120.1 kB / 441.3 MB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.4721, allocations: 3.938 kB / 441.3 MB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.86e-05/0.4721, allocations: 4 kB / 441.3 MB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.635e-06/0.4721, allocations: 7.891 kB / 441.3 MB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008537/0.473, allocations: 0.4938 MB / 441.8 MB, free: 10.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002817/0.4733, allocations: 147.8 kB / 442 MB, free: 10.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001675/0.4735, allocations: 82.58 kB / 442 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.076e-05/0.4735, allocations: 0 / 442 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005257/0.4741, allocations: 451.6 kB / 442.5 MB, free: 10.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 2.691e-06/0.4741, allocations: 0 / 442.5 MB, free: 10.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007006/0.4748, allocations: 249.4 kB / 442.7 MB, free: 9.797 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001786/0.475, allocations: 247.3 kB / 443 MB, free: 9.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.4751, allocations: 118.2 kB / 443.1 MB, free: 9.379 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.361e-05/0.4752, allocations: 33.7 kB / 443.1 MB, free: 9.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.4753, allocations: 155 kB / 443.3 MB, free: 9.188 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.834e-05/0.4754, allocations: 51.5 kB / 443.3 MB, free: 9.137 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.255e-05/0.4754, allocations: 0 / 443.3 MB, free: 9.137 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.4756, allocations: 326.8 kB / 443.6 MB, free: 8.809 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.4757, allocations: 40 kB / 443.7 MB, free: 8.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.4759, allocations: 117.7 kB / 443.8 MB, free: 8.629 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001936/0.4761, allocations: 55.97 kB / 443.8 MB, free: 8.574 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.4762, allocations: 0 / 443.8 MB, free: 8.574 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005871/0.4768, allocations: 221.3 kB / 444.1 MB, free: 8.352 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001424/0.4769, allocations: 159.3 kB / 444.2 MB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.758e-06/0.4769, allocations: 4 kB / 444.2 MB, free: 8.164 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.477, allocations: 4 kB / 444.2 MB, free: 8.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.159e-05/0.4771, allocations: 11.95 kB / 444.2 MB, free: 8.148 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.4771, allocations: 7.938 kB / 444.2 MB, free: 8.141 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001686/0.4773, allocations: 19.89 kB / 444.3 MB, free: 8.121 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.636e-05/0.4773, allocations: 12 kB / 444.3 MB, free: 8.109 MB / 378.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 () * 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.0002766/0.4776, allocations: 261.9 kB / 444.5 MB, free: 7.824 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.127e-05/0.4777, allocations: 19.91 kB / 444.6 MB, free: 7.805 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.139e-05/0.4777, allocations: 12.61 kB / 444.6 MB, free: 7.793 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.205e-06/0.4778, allocations: 4 kB / 444.6 MB, free: 7.789 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.638e-06/0.4778, allocations: 3.953 kB / 444.6 MB, free: 7.785 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.75e-06/0.4778, allocations: 0 / 444.6 MB, free: 7.785 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008091/0.4786, allocations: 466.9 kB / 445 MB, free: 7.285 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.884e-06/0.4786, allocations: 3.984 kB / 445 MB, free: 7.281 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.017e-05/0.4787, allocations: 11.94 kB / 445 MB, free: 7.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.412e-06/0.4787, allocations: 0 / 445 MB, free: 7.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/0.4787, allocations: 8 kB / 445.1 MB, free: 7.262 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.777e-06/0.4787, allocations: 4.031 kB / 445.1 MB, free: 7.258 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.025e-06/0.4788, allocations: 3.984 kB / 445.1 MB, free: 7.254 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007402/0.4795, allocations: 422 kB / 445.5 MB, free: 6.812 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.515e-05/0.4796, allocations: 88.88 kB / 445.6 MB, free: 6.707 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.879e-05/0.4797, allocations: 15.94 kB / 445.6 MB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002095/0.4799, allocations: 23.98 kB / 445.6 MB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.075e-05/0.48, allocations: 15.97 kB / 445.6 MB, free: 6.652 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.636e-05/0.4801, allocations: 16 kB / 445.6 MB, free: 6.637 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.525e-05/0.4802, allocations: 104.3 kB / 445.7 MB, free: 6.535 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.5e-07/0.4802, allocations: 96 / 445.7 MB, free: 6.535 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004909/0.4807, allocations: 63.94 kB / 445.8 MB, free: 6.473 MB / 378.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) * 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.0002751/0.481, allocations: 135.2 kB / 445.9 MB, free: 6.332 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007283/0.4817, allocations: 469.6 kB / 446.4 MB, free: 5.812 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.42e-06/0.4817, allocations: 0 / 446.4 MB, free: 5.812 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004732/0.4822, allocations: 393.9 kB / 446.8 MB, free: 5.379 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002428/0.4825, allocations: 12 kB / 446.8 MB, free: 5.367 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006712/0.4832, allocations: 256.8 kB / 447 MB, free: 5.082 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.4836, allocations: 0.7083 MB / 447.7 MB, free: 4.348 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.64e-05/0.4837, allocations: 15.42 kB / 447.8 MB, free: 4.332 MB / 378.7 MB Notification: Performance of SimCode: time 2.163e-06/0.4837, allocations: 0 / 447.8 MB, free: 4.332 MB / 378.7 MB Notification: Performance of Templates: time 0.004873/0.4886, allocations: 1.861 MB / 449.6 MB, free: 2.473 MB / 378.7 MB