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 0.9876/0.9876, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002739/0.000274, allocations: 8 kB / 158.4 MB, free: 15.08 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0651/0.06542, allocations: 25.17 MB / 183.6 MB, free: 5.871 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2209/0.2864, allocations: 34.67 MB / 218.3 MB, free: 6.117 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.2867, allocations: 66.89 kB / 218.3 MB, free: 6.113 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05171/0.3384, allocations: 13.42 MB / 231.7 MB, free: 15.89 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3385, allocations: 3.938 kB / 231.8 MB, free: 15.89 MB / 186.7 MB Notification: Performance of Transformations before backend: time 6.676e-05/0.3386, allocations: 24 kB / 231.8 MB, free: 15.87 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.002897/0.3415, allocations: 0.9451 MB / 232.7 MB, free: 14.93 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/0.3415, allocations: 8.031 kB / 232.7 MB, free: 14.93 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004963/0.342, allocations: 155.6 kB / 232.9 MB, free: 14.83 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003166/0.3424, allocations: 106.9 kB / 233 MB, free: 14.72 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.3436, allocations: 480 kB / 233.5 MB, free: 14.32 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001542/0.3438, allocations: 95.98 kB / 233.5 MB, free: 14.27 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002699/0.344, allocations: 111.2 kB / 233.7 MB, free: 14.2 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0032/0.3473, allocations: 1.028 MB / 234.7 MB, free: 13.48 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.701e-05/0.3473, allocations: 0 / 234.7 MB, free: 13.48 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001324/0.3475, allocations: 52.69 kB / 234.7 MB, free: 13.46 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.508e-05/0.3475, allocations: 27.95 kB / 234.8 MB, free: 13.43 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002952/0.3505, allocations: 0.8361 MB / 235.6 MB, free: 12.88 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006636/0.3572, allocations: 2.857 MB / 238.5 MB, free: 10.67 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002069/0.3593, allocations: 0.721 MB / 239.2 MB, free: 10.21 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000109/0.3595, allocations: 24.28 kB / 239.2 MB, free: 10.2 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001149/0.3606, allocations: 426.5 kB / 239.6 MB, free: 9.887 MB / 186.7 MB Notification: Performance of pre-optimization done (n=104): time 5.119e-06/0.3607, allocations: 0 / 239.6 MB, free: 9.887 MB / 186.7 MB Notification: Performance of matching and sorting (n=104): time 0.00272/0.3634, allocations: 0.9511 MB / 240.6 MB, free: 9.195 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.181e-05/0.3635, allocations: 76.39 kB / 240.6 MB, free: 9.109 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005693/0.3641, allocations: 320.9 kB / 241 MB, free: 8.793 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002398/0.3644, allocations: 73.69 kB / 241 MB, free: 8.715 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000354/0.3648, allocations: 371.4 kB / 241.4 MB, free: 8.348 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000395/0.3652, allocations: 256.8 kB / 241.6 MB, free: 8.094 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.304e-05/0.3653, allocations: 28 kB / 241.7 MB, free: 8.066 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.3655, allocations: 358.7 kB / 242 MB, free: 7.707 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000972/0.3664, allocations: 310.5 kB / 242.3 MB, free: 7.402 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/0.3676, allocations: 0.5177 MB / 242.8 MB, free: 6.805 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/0.3688, allocations: 341.9 kB / 243.2 MB, free: 6.469 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.19e-05/0.3688, allocations: 4 kB / 243.2 MB, free: 6.465 MB / 186.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002919/0.3718, allocations: 0.9724 MB / 244.1 MB, free: 5.484 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.949e-05/0.3719, allocations: 8 kB / 244.2 MB, free: 5.477 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.193e-05/0.3719, allocations: 8 kB / 244.2 MB, free: 5.469 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.001e-05/0.3719, allocations: 12.75 kB / 244.2 MB, free: 5.457 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008439/0.3728, allocations: 123.6 kB / 244.3 MB, free: 5.336 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.227e-05/0.3729, allocations: 19.94 kB / 244.3 MB, free: 5.316 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006886/0.3735, allocations: 79.66 kB / 244.4 MB, free: 5.238 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00015/0.3737, allocations: 47.98 kB / 244.4 MB, free: 5.191 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.001032/0.3748, allocations: 392.1 kB / 244.8 MB, free: 4.801 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001904/0.375, allocations: 51.34 kB / 244.9 MB, free: 4.75 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002303/0.3773, allocations: 0.7771 MB / 245.7 MB, free: 3.965 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.779e-05/0.3774, allocations: 8 kB / 245.7 MB, free: 3.957 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/0.3774, allocations: 11.94 kB / 245.7 MB, free: 3.945 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-05/0.3774, allocations: 3.984 kB / 245.7 MB, free: 3.941 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005151/0.3826, allocations: 1.82 MB / 247.5 MB, free: 2.066 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/0.3826, allocations: 8 kB / 247.5 MB, free: 2.059 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005769/0.3832, allocations: 71.83 kB / 247.6 MB, free: 1.988 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.499e-05/0.3833, allocations: 4 kB / 247.6 MB, free: 1.984 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.829e-05/0.3833, allocations: 23.98 kB / 247.6 MB, free: 1.961 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.446e-06/0.3834, allocations: 0 / 247.6 MB, free: 1.961 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.3834, allocations: 4 kB / 247.6 MB, free: 1.957 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002004/0.3854, allocations: 0.8199 MB / 248.4 MB, free: 1.121 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001781/0.3856, allocations: 128.4 kB / 248.5 MB, free: 0.9766 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001426/0.3858, allocations: 20 kB / 248.6 MB, free: 0.957 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004807/0.3863, allocations: 43.97 kB / 248.6 MB, free: 0.9141 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004359/0.3867, allocations: 136.8 kB / 248.7 MB, free: 0.7773 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001064/0.3868, allocations: 31.98 kB / 248.8 MB, free: 0.7461 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002617/0.3871, allocations: 166 kB / 248.9 MB, free: 0.582 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3871, allocations: 0 / 248.9 MB, free: 0.582 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001033/0.3882, allocations: 187.9 kB / 249.1 MB, free: 408 kB / 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.002638/0.3908, allocations: 1.427 MB / 250.5 MB, free: 14.94 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.002497/0.3934, allocations: 0.8419 MB / 251.4 MB, free: 14.1 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/0.3935, allocations: 0 / 251.4 MB, free: 14.1 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00111/0.3946, allocations: 399.2 kB / 251.8 MB, free: 13.71 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006807/0.3953, allocations: 64.53 kB / 251.8 MB, free: 13.64 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01211/0.4074, allocations: 7.6 MB / 259.4 MB, free: 5.883 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006938/0.4082, allocations: 0.9589 MB / 260.4 MB, free: 4.895 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008807/0.4091, allocations: 295.3 kB / 260.7 MB, free: 4.605 MB / 202.7 MB Notification: Performance of SimCode: time 1.172e-06/0.4091, allocations: 0 / 260.7 MB, free: 4.605 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.688/3.097, allocations: 12.55 MB / 273.2 MB, free: 8.039 MB / 218.7 MB