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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.188/2.188, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.934e-05/2.954e-05, allocations: 4 kB / 309.7 MB, free: 1.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3158/0.3159, allocations: 54.86 MB / 364.5 MB, free: 5.387 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1233/0.4392, allocations: 80.92 MB / 445.5 MB, free: 15.44 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001823/0.4394, allocations: 64.72 kB / 445.5 MB, free: 15.38 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008685/0.4481, allocations: 1.97 MB / 447.5 MB, free: 13.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.01e-06/0.4482, allocations: 0 / 447.5 MB, free: 13.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.113e-05/0.4482, allocations: 4 kB / 447.5 MB, free: 13.43 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.0006643/0.4489, allocations: 0.5261 MB / 448 MB, free: 12.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.4489, allocations: 8.031 kB / 448 MB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.841e-05/0.449, allocations: 20.7 kB / 448 MB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001529/0.4492, allocations: 170.9 kB / 448.2 MB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00013/0.4493, allocations: 89.11 kB / 448.3 MB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.179e-05/0.4494, allocations: 23.27 kB / 448.3 MB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003093/0.4497, allocations: 124.2 kB / 448.4 MB, free: 12.33 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.121e-06/0.4497, allocations: 4 kB / 448.4 MB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.85e-05/0.4498, allocations: 12 kB / 448.5 MB, free: 12.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.467e-06/0.4498, allocations: 3.953 kB / 448.5 MB, free: 12.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002038/0.45, allocations: 71.91 kB / 448.5 MB, free: 12.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009005/0.4509, allocations: 0.5323 MB / 449.1 MB, free: 11.65 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002982/0.4512, allocations: 143.7 kB / 449.2 MB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001887/0.4514, allocations: 94.8 kB / 449.3 MB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.441e-05/0.4515, allocations: 4 kB / 449.3 MB, free: 11.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005282/0.452, allocations: 459.4 kB / 449.8 MB, free: 10.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 3.041e-06/0.452, allocations: 0 / 449.8 MB, free: 10.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007905/0.4528, allocations: 383.4 kB / 450.1 MB, free: 10.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000164/0.453, allocations: 251.3 kB / 450.4 MB, free: 10.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.4532, allocations: 126.7 kB / 450.5 MB, free: 10.01 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.201e-05/0.4532, allocations: 33.7 kB / 450.5 MB, free: 9.973 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.987e-05/0.4533, allocations: 159 kB / 450.7 MB, free: 9.816 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.266e-05/0.4534, allocations: 47.5 kB / 450.7 MB, free: 9.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.356e-05/0.4534, allocations: 0 / 450.7 MB, free: 9.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.4536, allocations: 318.8 kB / 451 MB, free: 9.449 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.4538, allocations: 53.31 kB / 451.1 MB, free: 9.398 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001888/0.454, allocations: 119.6 kB / 451.2 MB, free: 9.254 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002465/0.4542, allocations: 200.5 kB / 451.4 MB, free: 9.027 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.494e-06/0.4543, allocations: 0 / 451.4 MB, free: 9.027 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006875/0.455, allocations: 389.6 kB / 451.8 MB, free: 8.613 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001243/0.4551, allocations: 148.5 kB / 451.9 MB, free: 8.438 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.4551, allocations: 3.984 kB / 451.9 MB, free: 8.434 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.4552, allocations: 4 kB / 451.9 MB, free: 8.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.964e-05/0.4553, allocations: 16.12 kB / 452 MB, free: 8.414 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.4553, allocations: 8 kB / 452 MB, free: 8.406 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.4555, allocations: 15.98 kB / 452 MB, free: 8.391 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.617e-05/0.4555, allocations: 19.94 kB / 452 MB, free: 8.371 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.0002575/0.4558, allocations: 266.1 kB / 452.3 MB, free: 8.078 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.535e-05/0.4559, allocations: 23.84 kB / 452.3 MB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.435e-05/0.4559, allocations: 16.61 kB / 452.3 MB, free: 8.035 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.4559, allocations: 4 kB / 452.3 MB, free: 8.031 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.876e-06/0.4559, allocations: 4 kB / 452.3 MB, free: 8.027 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.782e-06/0.456, allocations: 0 / 452.3 MB, free: 8.027 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009067/0.4569, allocations: 0.5563 MB / 452.9 MB, free: 7.402 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.264e-06/0.4569, allocations: 3.938 kB / 452.9 MB, free: 7.398 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.725e-05/0.4569, allocations: 7.984 kB / 452.9 MB, free: 7.391 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.254e-06/0.4569, allocations: 0 / 452.9 MB, free: 7.391 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.346e-05/0.457, allocations: 8 kB / 452.9 MB, free: 7.383 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.997e-06/0.457, allocations: 8 kB / 452.9 MB, free: 7.375 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.457, allocations: 3.938 kB / 452.9 MB, free: 7.371 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000877/0.4579, allocations: 0.5556 MB / 453.4 MB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.77e-05/0.458, allocations: 88.92 kB / 453.5 MB, free: 6.656 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.28e-05/0.4581, allocations: 11.98 kB / 453.5 MB, free: 6.645 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002055/0.4583, allocations: 20 kB / 453.6 MB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.865e-05/0.4584, allocations: 28.83 kB / 453.6 MB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.573e-05/0.4585, allocations: 11.94 kB / 453.6 MB, free: 6.586 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.69e-05/0.4586, allocations: 104.5 kB / 453.7 MB, free: 6.484 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.76e-07/0.4586, allocations: 0 / 453.7 MB, free: 6.484 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004942/0.4591, allocations: 64 kB / 453.8 MB, free: 6.422 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.0002569/0.4594, allocations: 139.2 kB / 453.9 MB, free: 6.277 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007443/0.4601, allocations: 485.2 kB / 454.4 MB, free: 5.742 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.368e-06/0.4601, allocations: 0 / 454.4 MB, free: 5.742 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004878/0.4606, allocations: 409.5 kB / 454.8 MB, free: 5.293 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002121/0.4609, allocations: 10.03 kB / 454.8 MB, free: 5.285 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006623/0.4615, allocations: 274.4 kB / 455.1 MB, free: 4.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.462, allocations: 0.716 MB / 455.8 MB, free: 4.238 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.399e-05/0.462, allocations: 11.44 kB / 455.8 MB, free: 4.227 MB / 378.7 MB Notification: Performance of SimCode: time 1.625e-06/0.462, allocations: 0 / 455.8 MB, free: 4.227 MB / 378.7 MB Notification: Performance of Templates: time 0.00462/0.4667, allocations: 1.862 MB / 457.6 MB, free: 2.371 MB / 378.7 MB