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 0.9354/0.9354, allocations: 111.2 MB / 124.2 MB, free: 11.14 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.374e-05/2.385e-05, allocations: 4 kB / 154.3 MB, free: 13.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1352, allocations: 25.14 MB / 179.4 MB, free: 0.8203 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05182/0.1871, allocations: 34.59 MB / 214 MB, free: 14.53 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.1873, allocations: 67.91 kB / 214.1 MB, free: 14.46 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04838/0.2357, allocations: 13.39 MB / 227.5 MB, free: 0.9883 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.985e-06/0.2357, allocations: 0 / 227.5 MB, free: 0.9883 MB / 186.7 MB Notification: Performance of Transformations before backend: time 6.107e-05/0.2358, allocations: 27.94 kB / 227.5 MB, free: 0.9609 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.001847/0.2377, allocations: 0.9156 MB / 228.4 MB, free: 15.96 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.2377, allocations: 8.031 kB / 228.4 MB, free: 15.95 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002351/0.238, allocations: 98.83 kB / 228.5 MB, free: 15.86 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009374/0.2389, allocations: 490.2 kB / 229 MB, free: 15.34 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000124/0.2391, allocations: 86 kB / 229.1 MB, free: 15.25 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002072/0.2393, allocations: 112 kB / 229.2 MB, free: 15.14 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002341/0.2416, allocations: 1.016 MB / 230.2 MB, free: 14.1 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.69e-05/0.2417, allocations: 3.938 kB / 230.2 MB, free: 14.1 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001243/0.2418, allocations: 40 kB / 230.2 MB, free: 14.06 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.062e-05/0.2419, allocations: 31.89 kB / 230.3 MB, free: 14.03 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002044/0.2439, allocations: 0.8122 MB / 231.1 MB, free: 13.21 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00516/0.2491, allocations: 2.863 MB / 233.9 MB, free: 10.24 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001623/0.2507, allocations: 0.7155 MB / 234.7 MB, free: 9.52 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007769/0.2515, allocations: 363.1 kB / 235 MB, free: 9.164 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.287e-05/0.2516, allocations: 12.78 kB / 235 MB, free: 9.152 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009304/0.2526, allocations: 413 kB / 235.4 MB, free: 8.738 MB / 202.7 MB Notification: Performance of pre-optimization done (n=104): time 8.256e-06/0.2526, allocations: 4 kB / 235.4 MB, free: 8.734 MB / 202.7 MB Notification: Performance of matching and sorting (n=104): time 0.001659/0.2543, allocations: 0.6846 MB / 236.1 MB, free: 8.039 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.284e-05/0.2544, allocations: 76.39 kB / 236.2 MB, free: 7.953 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004529/0.2548, allocations: 314 kB / 236.5 MB, free: 7.641 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00014/0.255, allocations: 81.62 kB / 236.6 MB, free: 7.555 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003199/0.2553, allocations: 371.4 kB / 236.9 MB, free: 7.188 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003042/0.2556, allocations: 256.8 kB / 237.2 MB, free: 6.934 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.666e-05/0.2557, allocations: 24 kB / 237.2 MB, free: 6.91 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0002252/0.256, allocations: 358.8 kB / 237.6 MB, free: 6.551 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000769/0.2567, allocations: 294.6 kB / 237.9 MB, free: 6.262 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001259/0.258, allocations: 0.5178 MB / 238.4 MB, free: 5.66 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001863/0.2599, allocations: 324.6 kB / 238.7 MB, free: 5.348 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.385e-05/0.26, allocations: 0 / 238.7 MB, free: 5.348 MB / 202.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.005152/0.2651, allocations: 0.9537 MB / 239.6 MB, free: 4.387 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.511e-05/0.2652, allocations: 8 kB / 239.6 MB, free: 4.379 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.328e-05/0.2653, allocations: 8 kB / 239.7 MB, free: 4.371 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.828e-05/0.2654, allocations: 15.95 kB / 239.7 MB, free: 4.355 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/0.2666, allocations: 127.6 kB / 239.8 MB, free: 4.23 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-05/0.2667, allocations: 12 kB / 239.8 MB, free: 4.219 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/0.2679, allocations: 79.56 kB / 239.9 MB, free: 4.141 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002908/0.2682, allocations: 56.02 kB / 239.9 MB, free: 4.086 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.0008605/0.2691, allocations: 281.2 kB / 240.2 MB, free: 3.809 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002598/0.2694, allocations: 51.44 kB / 240.3 MB, free: 3.758 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004032/0.2735, allocations: 0.7613 MB / 241 MB, free: 2.992 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.913e-05/0.2735, allocations: 12 kB / 241 MB, free: 2.98 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.589e-05/0.2736, allocations: 3.953 kB / 241 MB, free: 2.977 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.238e-05/0.2736, allocations: 3.984 kB / 241 MB, free: 2.973 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008695/0.2823, allocations: 1.814 MB / 242.9 MB, free: 1.102 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.2824, allocations: 0 / 242.9 MB, free: 1.102 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008302/0.2832, allocations: 67.83 kB / 242.9 MB, free: 1.035 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-05/0.2833, allocations: 4 kB / 242.9 MB, free: 1.031 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001563/0.2835, allocations: 27.97 kB / 243 MB, free: 1.004 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.431e-05/0.2835, allocations: 8 kB / 243 MB, free: 0.9961 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.553e-06/0.2835, allocations: 3.938 kB / 243 MB, free: 0.9922 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003555/0.2871, allocations: 0.8044 MB / 243.8 MB, free: 176 kB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002367/0.2874, allocations: 128.4 kB / 243.9 MB, free: 28 kB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002207/0.2876, allocations: 16 kB / 243.9 MB, free: 12 kB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1453/0.4329, allocations: 38.95 kB / 244 MB, free: 49.57 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004156/0.4334, allocations: 136.8 kB / 244.1 MB, free: 49.57 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.4335, allocations: 33.38 kB / 244.1 MB, free: 49.57 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002301/0.4337, allocations: 165.9 kB / 244.3 MB, free: 49.49 MB / 202.7 MB Notification: Performance of sort global known variables: time 7.63e-07/0.4337, allocations: 0 / 244.3 MB, free: 49.49 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0009465/0.4347, allocations: 172.1 kB / 244.4 MB, free: 49.49 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.0002795/0.435, allocations: 174.6 kB / 244.6 MB, free: 49.39 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001781/0.4368, allocations: 0.832 MB / 245.5 MB, free: 49.39 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 2.759e-06/0.4368, allocations: 0 / 245.5 MB, free: 49.39 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006803/0.4375, allocations: 389.1 kB / 245.8 MB, free: 49.38 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004433/0.438, allocations: 68.72 kB / 245.9 MB, free: 49.38 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002558/0.4405, allocations: 1.085 MB / 247 MB, free: 49.09 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007645/0.4413, allocations: 0.9602 MB / 247.9 MB, free: 48.38 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005378/0.4419, allocations: 79.53 kB / 248 MB, free: 48.38 MB / 202.7 MB Notification: Performance of SimCode: time 2.245e-06/0.4419, allocations: 11.27 kB / 248 MB, free: 48.38 MB / 202.7 MB Notification: Performance of Templates: time 0.01813/0.46, allocations: 9.807 MB / 257.8 MB, free: 46.28 MB / 202.7 MB