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: "" <> 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.172/1.172, allocations: 111.2 MB / 124.2 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.957e-05/2.969e-05, allocations: 4 kB / 154.4 MB, free: 13.11 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1786/0.1787, allocations: 25.16 MB / 179.5 MB, free: 0.8203 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06613/0.2449, allocations: 34.57 MB / 214.1 MB, free: 14.54 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.2452, allocations: 67.97 kB / 214.2 MB, free: 14.47 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0552/0.3004, allocations: 13.39 MB / 227.6 MB, free: 1 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3005, allocations: 0 / 227.6 MB, free: 1 MB / 186.7 MB Notification: Performance of Transformations before backend: time 7.837e-05/0.3006, allocations: 27.94 kB / 227.6 MB, free: 0.9727 MB / 186.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.002708/0.3033, allocations: 0.9196 MB / 228.5 MB, free: 15.96 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.828e-05/0.3034, allocations: 8.031 kB / 228.5 MB, free: 15.96 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004407/0.3038, allocations: 164.1 kB / 228.7 MB, free: 15.79 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002897/0.3041, allocations: 94.88 kB / 228.8 MB, free: 15.7 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.3053, allocations: 486.2 kB / 229.2 MB, free: 15.18 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001405/0.3054, allocations: 90 kB / 229.3 MB, free: 15.1 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000248/0.3057, allocations: 112 kB / 229.4 MB, free: 14.99 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002971/0.3087, allocations: 1.012 MB / 230.4 MB, free: 13.95 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.51e-05/0.3088, allocations: 7.938 kB / 230.5 MB, free: 13.94 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001387/0.3089, allocations: 40 kB / 230.5 MB, free: 13.9 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.621e-05/0.309, allocations: 27.95 kB / 230.5 MB, free: 13.88 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002572/0.3116, allocations: 0.816 MB / 231.3 MB, free: 13.06 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006638/0.3182, allocations: 2.862 MB / 234.2 MB, free: 10.09 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001912/0.3202, allocations: 0.7075 MB / 234.9 MB, free: 9.371 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009166/0.3211, allocations: 363.8 kB / 235.3 MB, free: 9.016 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.99e-05/0.3213, allocations: 16.75 kB / 235.3 MB, free: 9 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001108/0.3224, allocations: 425.4 kB / 235.7 MB, free: 8.574 MB / 202.7 MB Notification: Performance of pre-optimization done (n=104): time 5.32e-06/0.3224, allocations: 0 / 235.7 MB, free: 8.574 MB / 202.7 MB Notification: Performance of matching and sorting (n=104): time 0.002006/0.3244, allocations: 0.6766 MB / 236.4 MB, free: 7.887 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.815e-05/0.3246, allocations: 80.33 kB / 236.4 MB, free: 7.797 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006196/0.3252, allocations: 318 kB / 236.8 MB, free: 7.48 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002528/0.3255, allocations: 77.69 kB / 236.8 MB, free: 7.398 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003952/0.3259, allocations: 371.4 kB / 237.2 MB, free: 7.031 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004479/0.3263, allocations: 256.8 kB / 237.4 MB, free: 6.777 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.723e-05/0.3264, allocations: 24 kB / 237.5 MB, free: 6.754 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0002097/0.3267, allocations: 362.8 kB / 237.8 MB, free: 6.391 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009596/0.3276, allocations: 290.6 kB / 238.1 MB, free: 6.105 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001192/0.3289, allocations: 0.5178 MB / 238.6 MB, free: 5.504 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001091/0.33, allocations: 324.6 kB / 238.9 MB, free: 5.191 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.11e-05/0.33, allocations: 4 kB / 238.9 MB, free: 5.188 MB / 202.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002844/0.3329, allocations: 0.9496 MB / 239.9 MB, free: 4.23 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.685e-05/0.333, allocations: 8 kB / 239.9 MB, free: 4.223 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.048e-05/0.333, allocations: 8 kB / 239.9 MB, free: 4.215 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.682e-05/0.3331, allocations: 15.95 kB / 239.9 MB, free: 4.199 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008615/0.3339, allocations: 127.6 kB / 240.1 MB, free: 4.074 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.498e-05/0.334, allocations: 15.94 kB / 240.1 MB, free: 4.059 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006957/0.3347, allocations: 79.81 kB / 240.1 MB, free: 3.98 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001649/0.3349, allocations: 55.98 kB / 240.2 MB, free: 3.926 MB / 202.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.0005921/0.3355, allocations: 266.4 kB / 240.5 MB, free: 3.66 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/0.3357, allocations: 51.42 kB / 240.5 MB, free: 3.609 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002173/0.3379, allocations: 0.7691 MB / 241.3 MB, free: 2.836 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.149e-05/0.338, allocations: 15.95 kB / 241.3 MB, free: 2.82 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.888e-06/0.338, allocations: 0 / 241.3 MB, free: 2.82 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.797e-05/0.338, allocations: 7.984 kB / 241.3 MB, free: 2.812 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004947/0.343, allocations: 1.814 MB / 243.1 MB, free: 0.9414 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.139e-05/0.343, allocations: 4 kB / 243.1 MB, free: 0.9375 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005763/0.3436, allocations: 67.83 kB / 243.2 MB, free: 0.8711 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-05/0.3436, allocations: 4 kB / 243.2 MB, free: 0.8672 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.862e-05/0.3437, allocations: 27.97 kB / 243.2 MB, free: 0.8398 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.606e-06/0.3438, allocations: 4 kB / 243.2 MB, free: 0.8359 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.3438, allocations: 4 kB / 243.2 MB, free: 0.832 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001869/0.3456, allocations: 0.7927 MB / 244 MB, free: 24 kB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1534/0.4991, allocations: 119.8 kB / 244.1 MB, free: 49.52 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002478/0.4994, allocations: 23.73 kB / 244.2 MB, free: 49.52 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004853/0.4999, allocations: 44.3 kB / 244.2 MB, free: 49.52 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005053/0.5004, allocations: 131.6 kB / 244.3 MB, free: 49.52 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001229/0.5006, allocations: 34.02 kB / 244.4 MB, free: 49.52 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002755/0.5008, allocations: 167.2 kB / 244.5 MB, free: 49.44 MB / 202.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5009, allocations: 0 / 244.5 MB, free: 49.44 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001076/0.5019, allocations: 181.7 kB / 244.7 MB, free: 49.44 MB / 202.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.002382/0.5043, allocations: 1.417 MB / 246.1 MB, free: 48.77 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001973/0.5063, allocations: 0.826 MB / 246.9 MB, free: 48.75 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.5064, allocations: 0 / 246.9 MB, free: 48.75 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008344/0.5072, allocations: 390.2 kB / 247.3 MB, free: 48.74 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005932/0.5078, allocations: 74.64 kB / 247.4 MB, free: 48.74 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003498/0.5113, allocations: 1.218 MB / 248.6 MB, free: 48.41 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004697/0.5118, allocations: 0.9653 MB / 249.6 MB, free: 47.7 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006609/0.5125, allocations: 288.9 kB / 249.9 MB, free: 47.7 MB / 202.7 MB Notification: Performance of SimCode: time 1.142e-06/0.5125, allocations: 0 / 249.9 MB, free: 47.7 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.946/3.459, allocations: 12.7 MB / 262.6 MB, free: 42.16 MB / 202.7 MB