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.862/1.862, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.151e-05/3.194e-05, allocations: 4 kB / 277.8 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08627/0.08633, allocations: 48.7 MB / 326.5 MB, free: 14.53 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.331/0.4174, allocations: 74.53 MB / 401.1 MB, free: 10.4 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001552/0.4176, allocations: 63.44 kB / 401.1 MB, free: 10.4 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007403/0.425, allocations: 1.97 MB / 403.1 MB, free: 9.469 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.818e-06/0.425, allocations: 0 / 403.1 MB, free: 9.469 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.425, allocations: 3.781 kB / 403.1 MB, free: 9.469 MB / 314.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.0004324/0.4255, allocations: 0.5327 MB / 403.6 MB, free: 8.926 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.4255, allocations: 11.56 kB / 403.6 MB, free: 8.926 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.038e-05/0.4256, allocations: 15.41 kB / 403.7 MB, free: 8.922 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.872e-05/0.4257, allocations: 171.5 kB / 403.8 MB, free: 8.719 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.87e-05/0.4258, allocations: 96.3 kB / 403.9 MB, free: 8.617 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.112e-05/0.4259, allocations: 15.22 kB / 403.9 MB, free: 8.617 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002595/0.4261, allocations: 125.5 kB / 404.1 MB, free: 8.551 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.4262, allocations: 4 kB / 404.1 MB, free: 8.547 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.191e-05/0.4262, allocations: 3.812 kB / 404.1 MB, free: 8.547 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.714e-06/0.4262, allocations: 3.875 kB / 404.1 MB, free: 8.547 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001707/0.4264, allocations: 79.48 kB / 404.1 MB, free: 8.535 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006797/0.4271, allocations: 0.53 MB / 404.7 MB, free: 8.043 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003312/0.4274, allocations: 147.5 kB / 404.8 MB, free: 7.965 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.4276, allocations: 90.39 kB / 404.9 MB, free: 7.941 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.424e-05/0.4276, allocations: 4 kB / 404.9 MB, free: 7.938 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003388/0.428, allocations: 458.5 kB / 405.4 MB, free: 7.512 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 2.874e-06/0.428, allocations: 0 / 405.4 MB, free: 7.512 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006506/0.4287, allocations: 389.2 kB / 405.7 MB, free: 7.324 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.26e-05/0.4288, allocations: 246.5 kB / 406 MB, free: 7.039 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.938e-05/0.4289, allocations: 128.7 kB / 406.1 MB, free: 6.938 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.734e-05/0.4289, allocations: 33.11 kB / 406.1 MB, free: 6.906 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.308e-05/0.429, allocations: 158.7 kB / 406.3 MB, free: 6.758 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.463e-05/0.429, allocations: 43.62 kB / 406.3 MB, free: 6.734 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.544e-05/0.4291, allocations: 7.5 kB / 406.3 MB, free: 6.734 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.497e-05/0.4291, allocations: 326 kB / 406.7 MB, free: 6.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.4293, allocations: 48.03 kB / 406.7 MB, free: 6.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.4294, allocations: 118.4 kB / 406.8 MB, free: 6.324 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001628/0.4296, allocations: 199.7 kB / 407 MB, free: 6.152 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.561e-06/0.4296, allocations: 0 / 407 MB, free: 6.152 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005023/0.4301, allocations: 386.2 kB / 407.4 MB, free: 5.926 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.333e-05/0.4302, allocations: 154.7 kB / 407.5 MB, free: 5.762 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.964e-06/0.4302, allocations: 0 / 407.5 MB, free: 5.762 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.4302, allocations: 3.844 kB / 407.6 MB, free: 5.762 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.97e-05/0.4303, allocations: 11.44 kB / 407.6 MB, free: 5.758 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.15e-06/0.4303, allocations: 7.969 kB / 407.6 MB, free: 5.754 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.4305, allocations: 18.45 kB / 407.6 MB, free: 5.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.851e-05/0.4306, allocations: 15.48 kB / 407.6 MB, free: 5.746 MB / 314.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.0001543/0.4307, allocations: 267.7 kB / 407.9 MB, free: 5.496 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.365e-05/0.4308, allocations: 19.28 kB / 407.9 MB, free: 5.492 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.033e-05/0.4308, allocations: 16.33 kB / 407.9 MB, free: 5.484 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.4308, allocations: 4 kB / 407.9 MB, free: 5.48 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.163e-06/0.4309, allocations: 3.844 kB / 407.9 MB, free: 5.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.4309, allocations: 0 / 407.9 MB, free: 5.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000653/0.4315, allocations: 0.5674 MB / 408.5 MB, free: 5.051 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.518e-06/0.4316, allocations: 0 / 408.5 MB, free: 5.051 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.58e-05/0.4316, allocations: 7.719 kB / 408.5 MB, free: 5.047 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.403e-06/0.4316, allocations: 0 / 408.5 MB, free: 5.047 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.12e-05/0.4316, allocations: 11.06 kB / 408.5 MB, free: 5.047 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.105e-06/0.4316, allocations: 3.938 kB / 408.5 MB, free: 5.043 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.21e-06/0.4317, allocations: 7.688 kB / 408.5 MB, free: 5.039 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006834/0.4324, allocations: 0.552 MB / 409.1 MB, free: 4.703 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.013e-05/0.4324, allocations: 92.62 kB / 409.1 MB, free: 4.598 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.001e-05/0.4325, allocations: 18.64 kB / 409.2 MB, free: 4.594 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.4327, allocations: 22.95 kB / 409.2 MB, free: 4.586 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.218e-05/0.4328, allocations: 18.52 kB / 409.2 MB, free: 4.578 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.085e-05/0.4328, allocations: 14.88 kB / 409.2 MB, free: 4.578 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.049e-05/0.4329, allocations: 98.44 kB / 409.3 MB, free: 4.5 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.4329, allocations: 0 / 409.3 MB, free: 4.5 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004449/0.4334, allocations: 65.78 kB / 409.4 MB, free: 4.496 MB / 314.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.0001976/0.4336, allocations: 137 kB / 409.5 MB, free: 4.398 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005215/0.4341, allocations: 487.8 kB / 410 MB, free: 4.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.949e-06/0.4341, allocations: 0 / 410 MB, free: 4.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003448/0.4345, allocations: 407.9 kB / 410.4 MB, free: 3.809 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002093/0.4347, allocations: 15.08 kB / 410.4 MB, free: 3.809 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005358/0.4353, allocations: 268.6 kB / 410.7 MB, free: 3.648 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001578/0.4355, allocations: 0.7147 MB / 411.4 MB, free: 2.938 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.652e-05/0.4355, allocations: 11.28 kB / 411.4 MB, free: 2.93 MB / 314.7 MB Notification: Performance of SimCode: time 1.646e-06/0.4355, allocations: 0 / 411.4 MB, free: 2.93 MB / 314.7 MB Notification: Performance of Templates: time 0.003854/0.4394, allocations: 1.865 MB / 413.3 MB, free: 1.98 MB / 314.7 MB