Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.184/1.184, allocations: 111.1 MB / 127.3 MB, free: 6.152 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000278/0.0002782, allocations: 8 kB / 158.9 MB, free: 15.24 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06543/0.06574, allocations: 25.16 MB / 184 MB, free: 6.035 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2495/0.3153, allocations: 34.66 MB / 218.7 MB, free: 6.496 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003472/0.3157, allocations: 66.19 kB / 218.8 MB, free: 6.488 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06617/0.3819, allocations: 13.44 MB / 232.2 MB, free: 452 kB / 170.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.382, allocations: 0 / 232.2 MB, free: 452 kB / 170.7 MB Notification: Performance of Transformations before backend: time 7.564e-05/0.3821, allocations: 28.16 kB / 232.2 MB, free: 424 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.002751/0.3848, allocations: 0.9392 MB / 233.2 MB, free: 15.49 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.3849, allocations: 12.03 kB / 233.2 MB, free: 15.48 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004395/0.3854, allocations: 98.91 kB / 233.3 MB, free: 15.38 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001142/0.3865, allocations: 484.1 kB / 233.7 MB, free: 14.98 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001464/0.3867, allocations: 95.11 kB / 233.8 MB, free: 14.92 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002374/0.3869, allocations: 109.7 kB / 233.9 MB, free: 14.85 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003128/0.3901, allocations: 1.042 MB / 235 MB, free: 14.12 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.633e-05/0.3902, allocations: 0 / 235 MB, free: 14.12 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001302/0.3903, allocations: 36.38 kB / 235 MB, free: 14.12 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.578e-05/0.3904, allocations: 27.95 kB / 235 MB, free: 14.09 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002917/0.3933, allocations: 0.8323 MB / 235.9 MB, free: 13.54 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006469/0.3998, allocations: 2.867 MB / 238.7 MB, free: 11.34 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002006/0.4019, allocations: 0.7215 MB / 239.5 MB, free: 10.88 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001103/0.402, allocations: 24.81 kB / 239.5 MB, free: 10.86 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001164/0.4032, allocations: 433.8 kB / 239.9 MB, free: 10.55 MB / 186.7 MB Notification: Performance of pre-optimization done (n=104): time 4.889e-06/0.4032, allocations: 0 / 239.9 MB, free: 10.55 MB / 186.7 MB Notification: Performance of matching and sorting (n=104): time 0.0029/0.4061, allocations: 0.9514 MB / 240.9 MB, free: 9.605 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.523e-05/0.4063, allocations: 72.41 kB / 240.9 MB, free: 9.523 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006373/0.4069, allocations: 349.5 kB / 241.3 MB, free: 9.176 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002661/0.4072, allocations: 77.69 kB / 241.3 MB, free: 9.094 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004411/0.4077, allocations: 370.6 kB / 241.7 MB, free: 8.738 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004436/0.4081, allocations: 248.8 kB / 242 MB, free: 8.492 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.101e-05/0.4082, allocations: 28 kB / 242 MB, free: 8.465 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0002044/0.4084, allocations: 362.7 kB / 242.3 MB, free: 8.102 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001009/0.4095, allocations: 306.5 kB / 242.6 MB, free: 7.805 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001242/0.4107, allocations: 0.5333 MB / 243.2 MB, free: 7.188 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00111/0.4119, allocations: 334 kB / 243.5 MB, free: 6.863 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.117e-06/0.4119, allocations: 8 kB / 243.5 MB, free: 6.855 MB / 186.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002893/0.4148, allocations: 0.973 MB / 244.5 MB, free: 5.875 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.537e-05/0.4149, allocations: 8 kB / 244.5 MB, free: 5.867 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-05/0.4149, allocations: 4 kB / 244.5 MB, free: 5.863 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.919e-05/0.415, allocations: 12 kB / 244.5 MB, free: 5.852 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008581/0.4158, allocations: 131.6 kB / 244.6 MB, free: 5.723 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.98e-05/0.4159, allocations: 12 kB / 244.6 MB, free: 5.711 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006831/0.4166, allocations: 79.84 kB / 244.7 MB, free: 5.633 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001576/0.4168, allocations: 55.98 kB / 244.8 MB, free: 5.578 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.0009676/0.4177, allocations: 384.1 kB / 245.1 MB, free: 5.195 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001725/0.4179, allocations: 55.33 kB / 245.2 MB, free: 5.141 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002313/0.4203, allocations: 0.7731 MB / 246 MB, free: 4.363 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-05/0.4203, allocations: 12 kB / 246 MB, free: 4.352 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.4203, allocations: 3.953 kB / 246 MB, free: 4.348 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.627e-05/0.4204, allocations: 7.984 kB / 246 MB, free: 4.34 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005095/0.4255, allocations: 1.82 MB / 247.8 MB, free: 2.461 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.4255, allocations: 0 / 247.8 MB, free: 2.461 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005435/0.4261, allocations: 71.83 kB / 247.9 MB, free: 2.391 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-05/0.4261, allocations: 4 kB / 247.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.103e-05/0.4262, allocations: 27.92 kB / 247.9 MB, free: 2.359 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.21e-05/0.4262, allocations: 11.88 kB / 247.9 MB, free: 2.348 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.4263, allocations: 4 kB / 247.9 MB, free: 2.344 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002069/0.4283, allocations: 0.816 MB / 248.7 MB, free: 1.512 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001647/0.4285, allocations: 124.4 kB / 248.9 MB, free: 1.371 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000152/0.4287, allocations: 23.98 kB / 248.9 MB, free: 1.348 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004694/0.4292, allocations: 47.97 kB / 248.9 MB, free: 1.301 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004371/0.4296, allocations: 128.8 kB / 249.1 MB, free: 1.176 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/0.4298, allocations: 35.98 kB / 249.1 MB, free: 1.141 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002572/0.4301, allocations: 166 kB / 249.3 MB, free: 0.9766 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4301, allocations: 0 / 249.3 MB, free: 0.9766 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001042/0.4311, allocations: 175.9 kB / 249.4 MB, free: 0.8047 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.0003954/0.4315, allocations: 187.2 kB / 249.6 MB, free: 0.6016 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.002598/0.4342, allocations: 0.8355 MB / 250.5 MB, free: 15.77 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.4342, allocations: 0 / 250.5 MB, free: 15.77 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.4354, allocations: 397.5 kB / 250.8 MB, free: 15.38 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007005/0.4361, allocations: 72.67 kB / 250.9 MB, free: 15.3 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004423/0.4405, allocations: 1.599 MB / 252.5 MB, free: 13.68 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007821/0.4414, allocations: 0.9589 MB / 253.5 MB, free: 12.7 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005496/0.442, allocations: 83.39 kB / 253.6 MB, free: 12.61 MB / 202.7 MB Notification: Performance of SimCode: time 1.543e-06/0.442, allocations: 0 / 253.6 MB, free: 12.61 MB / 202.7 MB Notification: Performance of Templates: time 0.02487/0.4668, allocations: 9.819 MB / 263.4 MB, free: 2.781 MB / 202.7 MB