Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.StateGraph.Examples.ShowCompositeStep.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.ShowCompositeStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.StateGraph.Examples.ShowCompositeStep") Notification: Performance of loadModel(Modelica): time 1.065/1.065, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004522/0.0004521, allocations: 4 kB / 158.3 MB, free: 15.2 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05325/0.05374, allocations: 25.17 MB / 183.5 MB, free: 5.988 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2348/0.2886, allocations: 34.67 MB / 218.2 MB, free: 6.488 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002392/0.2889, allocations: 68.59 kB / 218.2 MB, free: 6.48 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05729/0.3462, allocations: 13.43 MB / 231.7 MB, free: 376 kB / 170.7 MB Notification: Performance of FrontEnd: time 2.401e-06/0.3463, allocations: 3.938 kB / 231.7 MB, free: 372 kB / 170.7 MB Notification: Performance of Transformations before backend: time 4.598e-05/0.3463, allocations: 27.94 kB / 231.7 MB, free: 344 kB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001702/0.348, allocations: 0.9406 MB / 232.6 MB, free: 15.41 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.3481, allocations: 12.03 kB / 232.6 MB, free: 15.4 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002442/0.3484, allocations: 94.92 kB / 232.7 MB, free: 15.3 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009443/0.3493, allocations: 492 kB / 233.2 MB, free: 14.9 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.3494, allocations: 87.56 kB / 233.3 MB, free: 14.85 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002042/0.3497, allocations: 114 kB / 233.4 MB, free: 14.77 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002409/0.3521, allocations: 1.031 MB / 234.4 MB, free: 14.05 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.932e-05/0.3521, allocations: 0 / 234.4 MB, free: 14.05 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000119/0.3523, allocations: 42.73 kB / 234.5 MB, free: 14.04 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.55e-05/0.3523, allocations: 27.95 kB / 234.5 MB, free: 14.02 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002147/0.3545, allocations: 0.8339 MB / 235.3 MB, free: 13.46 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005332/0.3598, allocations: 2.86 MB / 238.2 MB, free: 11.26 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001643/0.3615, allocations: 0.7201 MB / 238.9 MB, free: 10.81 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.406e-05/0.3616, allocations: 20.67 kB / 238.9 MB, free: 10.79 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009473/0.3626, allocations: 439.1 kB / 239.4 MB, free: 10.48 MB / 186.7 MB Notification: Performance of pre-optimization done (n=104): time 4.666e-06/0.3626, allocations: 0 / 239.4 MB, free: 10.48 MB / 186.7 MB Notification: Performance of matching and sorting (n=104): time 0.002443/0.365, allocations: 0.942 MB / 240.3 MB, free: 9.562 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.234e-05/0.3652, allocations: 80.06 kB / 240.4 MB, free: 9.477 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00051/0.3657, allocations: 316.9 kB / 240.7 MB, free: 9.164 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001488/0.3658, allocations: 77.69 kB / 240.8 MB, free: 9.082 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003332/0.3662, allocations: 375 kB / 241.1 MB, free: 8.715 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003195/0.3665, allocations: 252.8 kB / 241.4 MB, free: 8.465 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.198e-05/0.3666, allocations: 27.94 kB / 241.4 MB, free: 8.438 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0002276/0.3668, allocations: 358.8 kB / 241.8 MB, free: 8.078 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008463/0.3677, allocations: 302.5 kB / 242.1 MB, free: 7.781 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.3688, allocations: 0.5255 MB / 242.6 MB, free: 7.176 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008784/0.3697, allocations: 334 kB / 242.9 MB, free: 6.848 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-05/0.3697, allocations: 4 kB / 242.9 MB, free: 6.844 MB / 186.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002392/0.3721, allocations: 0.9847 MB / 243.9 MB, free: 5.852 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.3721, allocations: 4 kB / 243.9 MB, free: 5.848 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.3722, allocations: 8 kB / 243.9 MB, free: 5.84 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.049e-05/0.3722, allocations: 15.94 kB / 243.9 MB, free: 5.824 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005428/0.3728, allocations: 123.7 kB / 244.1 MB, free: 5.703 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.003e-05/0.3728, allocations: 23.88 kB / 244.1 MB, free: 5.68 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000804/0.3736, allocations: 75.77 kB / 244.2 MB, free: 5.605 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000235/0.3739, allocations: 51.98 kB / 244.2 MB, free: 5.555 MB / 186.7 MB Warning: Assuming fixed start value for the following 9 variables: transition2.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real transition1.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real compositeStep.transition6a.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real compositeStep.transition4a.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real compositeStep.transition6.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real compositeStep.transition5.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real compositeStep.transition4.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real compositeStep.transition3.t_start:DISCRETE(unit = "s" fixed = true protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real compositeStep.newActive:DISCRETE(fixed = true protected = true ) "Value of active in the next iteration" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 134 ($PRE.compositeStep.transition3.enableFire,$PRE.compositeStep.transition4.enableFire,$PRE.compositeStep.transition5.enableFire,$PRE.compositeStep.transition6.enableFire,$PRE.compositeStep.transition4a.enableFire,$PRE.compositeStep.transition6a.enableFire,$PRE.transition1.enableFire,$PRE.transition2.enableFire,$PRE.transition7.enableFire,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition,compositeStep.resume[1].set,compositeStep.suspend[1].reset,compositeStep.transition6a.condition,compositeStep.transition4a.condition,compositeStep.transition6.condition,compositeStep.transition5.condition,compositeStep.transition4.condition,compositeStep.transition3.condition,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.compositeStep.active,compositeStep.active,$PRE.compositeStep.newActive,compositeStep.newActive,compositeStep.activeSteps,compositeStep.transition3.enableFire,compositeStep.transition3.fire,$PRE.compositeStep.transition3.t_start,compositeStep.transition3.t_start,compositeStep.transition4.enableFire,compositeStep.transition4.fire,$PRE.compositeStep.transition4.t_start,compositeStep.transition4.t_start,$PRE.compositeStep.step3.localActive,compositeStep.step3.localActive,$PRE.compositeStep.step3.newActive,compositeStep.step3.newActive,$PRE.compositeStep.step3.oldActive,compositeStep.step3.oldActive,compositeStep.step3.active,$PRE.compositeStep.step4.localActive,compositeStep.step4.localActive,$PRE.compositeStep.step4.newActive,compositeStep.step4.newActive,$PRE.compositeStep.step4.oldActive,compositeStep.step4.oldActive,compositeStep.step4.active,compositeStep.transition5.enableFire,compositeStep.transition5.fire,$PRE.compositeStep.transition5.t_start,compositeStep.transition5.t_start,compositeStep.transition6.enableFire,compositeStep.transition6.fire,$PRE.compositeStep.transition6.t_start,compositeStep.transition6.t_start,compositeStep.transition4a.enableFire,compositeStep.transition4a.fire,$PRE.compositeStep.transition4a.t_start,compositeStep.transition4a.t_start,$PRE.compositeStep.step4a.localActive,compositeStep.step4a.localActive,$PRE.compositeStep.step4a.newActive,compositeStep.step4a.newActive,$PRE.compositeStep.step4a.oldActive,compositeStep.step4a.oldActive,compositeStep.step4a.active,compositeStep.transition6a.enableFire,compositeStep.transition6a.fire,$PRE.compositeStep.transition6a.t_start,compositeStep.transition6a.t_start,$PRE.compositeStep.initStep.localActive,compositeStep.initStep.localActive,compositeStep.initStep.outPort[1].reset,$PRE.compositeStep.initStep.newActive,compositeStep.initStep.newActive,$PRE.compositeStep.initStep.oldActive,compositeStep.initStep.oldActive,compositeStep.initStep.active,$PRE.compositeStep.exitStep.localActive,compositeStep.exitStep.localActive,compositeStep.exitStep.inPort[1].set,$PRE.compositeStep.exitStep.newActive,compositeStep.exitStep.newActive,$PRE.compositeStep.exitStep.oldActive,compositeStep.exitStep.oldActive,compositeStep.exitStep.active,compositeStep.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,$PRE.step0.localActive,step0.localActive,$PRE.step0.newActive,step0.newActive,$PRE.step0.oldActive,step0.oldActive,step0.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step1.localActive,step1.localActive,$PRE.step1.newActive,step1.newActive,$PRE.step1.oldActive,step1.oldActive,step1.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,$PRE.step6.localActive,step6.localActive,$PRE.step6.newActive,step6.newActive,$PRE.step6.oldActive,step6.oldActive,step6.active,transition7.enableFire,Parallel1.inPort.occupied,Parallel1.outPort.available,setCondition.y,stateGraphRoot.activeSteps,compositeStep.stateGraphRoot.resume,compositeStep.stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 166 * Array equations: 0 * Algorithm blocks: 0 * 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.001321/0.3752, allocations: 390.3 kB / 244.6 MB, free: 5.168 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002355/0.3755, allocations: 51.34 kB / 244.6 MB, free: 5.117 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00221/0.3777, allocations: 0.7732 MB / 245.4 MB, free: 4.336 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.742e-05/0.3778, allocations: 12 kB / 245.4 MB, free: 4.324 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.977e-06/0.3778, allocations: 0 / 245.4 MB, free: 4.324 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.038e-05/0.3778, allocations: 7.938 kB / 245.4 MB, free: 4.316 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004437/0.3823, allocations: 1.824 MB / 247.2 MB, free: 2.438 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.066e-06/0.3823, allocations: 0 / 247.2 MB, free: 2.438 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003699/0.3827, allocations: 67.83 kB / 247.3 MB, free: 2.371 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.145e-05/0.3827, allocations: 7.938 kB / 247.3 MB, free: 2.363 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.396e-05/0.3828, allocations: 27.97 kB / 247.4 MB, free: 2.336 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.063e-05/0.3828, allocations: 4 kB / 247.4 MB, free: 2.332 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.998e-06/0.3828, allocations: 0 / 247.4 MB, free: 2.332 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001927/0.3848, allocations: 0.816 MB / 248.2 MB, free: 1.5 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001451/0.385, allocations: 128.4 kB / 248.3 MB, free: 1.355 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001134/0.3851, allocations: 23.98 kB / 248.3 MB, free: 1.332 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003582/0.3854, allocations: 47.91 kB / 248.4 MB, free: 1.285 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003562/0.3858, allocations: 136.7 kB / 248.5 MB, free: 1.148 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.408e-05/0.3859, allocations: 35.98 kB / 248.5 MB, free: 1.113 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002377/0.3862, allocations: 170 kB / 248.7 MB, free: 0.9453 MB / 186.7 MB Notification: Performance of sort global known variables: time 8.06e-07/0.3862, allocations: 0 / 248.7 MB, free: 0.9453 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.000919/0.3871, allocations: 175.9 kB / 248.9 MB, free: 0.7734 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 80 (compositeStep.transition4a.enableFire,compositeStep.transition4.enableFire,step6.localActive,transition2.enableFire,transition1.enableFire,step1.localActive,step0.localActive,compositeStep.exitStep.localActive,compositeStep.transition5.enableFire,compositeStep.transition6.enableFire,compositeStep.transition6a.enableFire,compositeStep.initStep.localActive,compositeStep.transition3.enableFire,compositeStep.step4a.localActive,compositeStep.step4.localActive,compositeStep.step3.localActive,$cse1,$cse2,$cse3,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,compositeStep.active,compositeStep.newActive,compositeStep.activeSteps,compositeStep.transition3.fire,compositeStep.transition3.t_start,compositeStep.transition4.fire,compositeStep.transition4.t_start,compositeStep.step3.newActive,compositeStep.step3.oldActive,compositeStep.step3.active,compositeStep.step4.newActive,compositeStep.step4.oldActive,compositeStep.step4.active,compositeStep.transition5.fire,compositeStep.transition5.t_start,compositeStep.transition6.fire,compositeStep.transition6.t_start,compositeStep.transition4a.fire,compositeStep.transition4a.t_start,compositeStep.step4a.newActive,compositeStep.step4a.oldActive,compositeStep.step4a.active,compositeStep.transition6a.fire,compositeStep.transition6a.t_start,compositeStep.initStep.outPort[1].reset,compositeStep.initStep.newActive,compositeStep.initStep.oldActive,compositeStep.initStep.active,compositeStep.exitStep.inPort[1].set,compositeStep.exitStep.newActive,compositeStep.exitStep.oldActive,compositeStep.exitStep.active,compositeStep.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,step0.newActive,step0.oldActive,step0.active,transition1.fire,transition1.t_start,step1.newActive,step1.oldActive,step1.active,transition2.fire,transition2.t_start,step6.newActive,step6.oldActive,step6.active,transition7.enableFire,Parallel1.inPort.occupied,Parallel1.outPort.available,setCondition.y,stateGraphRoot.activeSteps) * Number of discrete states: 9 (compositeStep.step3.newActive,compositeStep.step4.newActive,compositeStep.step4a.newActive,compositeStep.initStep.newActive,compositeStep.exitStep.newActive,compositeStep.newActive,step0.newActive,step1.newActive,step6.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 16 * 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.0003181/0.3875, allocations: 175.3 kB / 249 MB, free: 0.5859 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.002222/0.3897, allocations: 0.8419 MB / 249.9 MB, free: 15.75 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 4.081e-06/0.3897, allocations: 1.625 kB / 249.9 MB, free: 15.75 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008898/0.3906, allocations: 393.6 kB / 250.3 MB, free: 15.36 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005498/0.3912, allocations: 80.41 kB / 250.4 MB, free: 15.29 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003805/0.395, allocations: 1.587 MB / 251.9 MB, free: 13.67 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008083/0.3959, allocations: 0.9628 MB / 252.9 MB, free: 12.68 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004616/0.3963, allocations: 79.39 kB / 253 MB, free: 12.6 MB / 202.7 MB Notification: Performance of SimCode: time 2.095e-06/0.3964, allocations: 0 / 253 MB, free: 12.6 MB / 202.7 MB Notification: Performance of Templates: time 0.01974/0.4161, allocations: 9.806 MB / 262.8 MB, free: 2.777 MB / 202.7 MB