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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ShowCompositeStep,fileNamePrefix="Modelica_3_1_cpp_Modelica_StateGraph_Examples_ShowCompositeStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.02/1.02, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.207e-05/2.218e-05, allocations: 0 / 148.2 MB, free: 6.133 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05635/0.05641, allocations: 25.17 MB / 173.4 MB, free: 12.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2285/0.285, allocations: 33.91 MB / 207.3 MB, free: 4.566 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/0.2853, allocations: 63.94 kB / 207.4 MB, free: 4.566 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05058/0.3359, allocations: 13.08 MB / 220.4 MB, free: 1.07 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3359, allocations: 0 / 220.4 MB, free: 1.07 MB / 170.7 MB Notification: Performance of Transformations before backend: time 6.558e-05/0.336, allocations: 31.88 kB / 220.5 MB, free: 1.059 MB / 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.002666/0.3387, allocations: 0.9181 MB / 221.4 MB, free: 380 kB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.3388, allocations: 7.688 kB / 221.4 MB, free: 380 kB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004686/0.3392, allocations: 99.55 kB / 221.5 MB, free: 328 kB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.3405, allocations: 488.7 kB / 222 MB, free: 12 kB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/0.3407, allocations: 50.33 kB / 222 MB, free: 0 / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002369/0.3409, allocations: 65.56 kB / 222.1 MB, free: 0 / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002427/0.3433, allocations: 0.7526 MB / 222.8 MB, free: 15.93 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002579/0.346, allocations: 0.8809 MB / 223.7 MB, free: 15.69 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.83e-05/0.3461, allocations: 3.938 kB / 223.7 MB, free: 15.68 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001074/0.3462, allocations: 3.953 kB / 223.7 MB, free: 15.68 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.372e-05/0.3462, allocations: 23.16 kB / 223.7 MB, free: 15.68 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005875/0.3521, allocations: 2.691 MB / 226.4 MB, free: 14.15 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001517/0.3537, allocations: 0.6602 MB / 227.1 MB, free: 14.08 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007173/0.3544, allocations: 339 kB / 227.4 MB, free: 14.05 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001005/0.3546, allocations: 12.53 kB / 227.4 MB, free: 14.05 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009204/0.3555, allocations: 404.8 kB / 227.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of pre-optimization done (n=104): time 5.009e-06/0.3555, allocations: 0 / 227.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of matching and sorting (n=104): time 0.001717/0.3573, allocations: 0.6283 MB / 228.5 MB, free: 13.78 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.382e-05/0.3574, allocations: 79.64 kB / 228.5 MB, free: 13.71 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005009/0.3579, allocations: 305.6 kB / 228.8 MB, free: 13.54 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002054/0.3581, allocations: 51.38 kB / 228.9 MB, free: 13.51 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003445/0.3585, allocations: 370.3 kB / 229.2 MB, free: 13.25 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003856/0.3589, allocations: 244.4 kB / 229.5 MB, free: 13.09 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.545e-05/0.359, allocations: 4 kB / 229.5 MB, free: 13.09 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.3592, allocations: 357.4 kB / 229.8 MB, free: 12.76 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006864/0.3599, allocations: 267.6 kB / 230.1 MB, free: 12.76 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008861/0.3608, allocations: 492.5 kB / 230.6 MB, free: 12.51 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008977/0.3617, allocations: 305 kB / 230.9 MB, free: 12.43 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.3617, allocations: 3.875 kB / 230.9 MB, free: 12.43 MB / 186.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002281/0.364, allocations: 0.84 MB / 231.7 MB, free: 12.25 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.345e-05/0.3641, allocations: 7.688 kB / 231.7 MB, free: 12.25 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.84e-05/0.3641, allocations: 7.938 kB / 231.7 MB, free: 12.24 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.151e-05/0.3642, allocations: 15.38 kB / 231.8 MB, free: 12.24 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008131/0.365, allocations: 123.4 kB / 231.9 MB, free: 12.2 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.238e-05/0.3651, allocations: 15.67 kB / 231.9 MB, free: 12.2 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006327/0.3657, allocations: 54.97 kB / 231.9 MB, free: 12.17 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001463/0.3659, allocations: 51.98 kB / 232 MB, free: 12.17 MB / 186.7 MB Warning: Assuming fixed start value for the following 9 variables: transition2.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real transition1.t_start:DISCRETE(unit = "s" fixed = false 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 = false 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 = false 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 = false 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 = false 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 = false 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 = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real compositeStep.newActive:DISCRETE(fixed = false 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 () * 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.0004925/0.3664, allocations: 239.5 kB / 232.2 MB, free: 11.99 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001634/0.368, allocations: 0.6219 MB / 232.8 MB, free: 11.85 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.3682, allocations: 48.09 kB / 232.9 MB, free: 11.83 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001937/0.3702, allocations: 0.6998 MB / 233.6 MB, free: 11.48 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/0.3702, allocations: 15.55 kB / 233.6 MB, free: 11.48 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.3703, allocations: 0 / 233.6 MB, free: 11.48 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.586e-05/0.3703, allocations: 3.984 kB / 233.6 MB, free: 11.47 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004476/0.3748, allocations: 1.627 MB / 235.2 MB, free: 10.42 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.669e-06/0.3748, allocations: 0 / 235.2 MB, free: 10.42 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005236/0.3754, allocations: 70.39 kB / 235.3 MB, free: 10.39 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.745e-05/0.3754, allocations: 3.875 kB / 235.3 MB, free: 10.39 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001058/0.3755, allocations: 15.91 kB / 235.3 MB, free: 10.38 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.254e-06/0.3755, allocations: 7.875 kB / 235.3 MB, free: 10.38 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.3756, allocations: 0 / 235.3 MB, free: 10.38 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001718/0.3773, allocations: 0.755 MB / 236.1 MB, free: 9.965 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001585/0.3775, allocations: 119.6 kB / 236.2 MB, free: 9.844 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.3776, allocations: 11.73 kB / 236.2 MB, free: 9.836 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004423/0.3781, allocations: 23 kB / 236.2 MB, free: 9.828 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004081/0.3785, allocations: 137.6 kB / 236.4 MB, free: 9.75 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.323e-05/0.3786, allocations: 34.11 kB / 236.4 MB, free: 9.738 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002004/0.3788, allocations: 156.3 kB / 236.6 MB, free: 9.621 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3789, allocations: 0 / 236.6 MB, free: 9.621 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.000959/0.3798, allocations: 137.3 kB / 236.7 MB, free: 9.613 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) * 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.002359/0.3822, allocations: 1.35 MB / 238 MB, free: 8.465 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.002218/0.3845, allocations: 0.7689 MB / 238.8 MB, free: 7.695 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 7.144e-06/0.3846, allocations: 0 / 238.8 MB, free: 7.695 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009554/0.3855, allocations: 368.9 kB / 239.2 MB, free: 7.34 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007113/0.3863, allocations: 68.5 kB / 239.2 MB, free: 7.273 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004268/0.3906, allocations: 1.132 MB / 240.4 MB, free: 6.098 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000742/0.3914, allocations: 0.9702 MB / 241.3 MB, free: 5.102 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008513/0.3923, allocations: 283.3 kB / 241.6 MB, free: 4.824 MB / 186.7 MB Notification: Performance of SimCode: time 1.503e-06/0.3923, allocations: 4 kB / 241.6 MB, free: 4.82 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.87/3.262, allocations: 12.63 MB / 254.3 MB, free: 8.168 MB / 202.7 MB