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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.01/1.01, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.187e-05/1.19e-05, allocations: 0 / 148.1 MB, free: 6.242 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04498/0.04501, allocations: 25.18 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1697/0.2147, allocations: 33.91 MB / 207.2 MB, free: 7.02 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00018/0.2149, allocations: 60.67 kB / 207.3 MB, free: 7.02 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04291/0.2579, allocations: 13.08 MB / 220.3 MB, free: 3.82 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.032e-06/0.2579, allocations: 0 / 220.3 MB, free: 3.82 MB / 170.7 MB Notification: Performance of Transformations before backend: time 4.533e-05/0.258, allocations: 23.12 kB / 220.4 MB, free: 3.816 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.001497/0.2595, allocations: 0.9194 MB / 221.3 MB, free: 3.129 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.2595, allocations: 7.625 kB / 221.3 MB, free: 3.129 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002087/0.2597, allocations: 99.98 kB / 221.4 MB, free: 3.078 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007617/0.2605, allocations: 489.3 kB / 221.9 MB, free: 2.766 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.327e-05/0.2606, allocations: 46.17 kB / 221.9 MB, free: 2.758 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000153/0.2608, allocations: 64.03 kB / 222 MB, free: 2.758 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001711/0.2625, allocations: 0.7605 MB / 222.7 MB, free: 2.684 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001826/0.2643, allocations: 0.8758 MB / 223.6 MB, free: 2.445 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.047e-05/0.2644, allocations: 7.984 kB / 223.6 MB, free: 2.438 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.713e-05/0.2645, allocations: 3.953 kB / 223.6 MB, free: 2.434 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.735e-05/0.2645, allocations: 27 kB / 223.6 MB, free: 2.434 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004203/0.2688, allocations: 2.69 MB / 226.3 MB, free: 0.8984 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/0.27, allocations: 0.6663 MB / 227 MB, free: 0.8242 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006291/0.2707, allocations: 331.3 kB / 227.3 MB, free: 0.8047 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.34e-05/0.2708, allocations: 16.16 kB / 227.3 MB, free: 0.8047 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007901/0.2716, allocations: 389.9 kB / 227.7 MB, free: 0.6797 MB / 170.7 MB Notification: Performance of pre-optimization done (n=104): time 4.949e-06/0.2716, allocations: 0 / 227.7 MB, free: 0.6797 MB / 170.7 MB Notification: Performance of matching and sorting (n=104): time 0.001456/0.2731, allocations: 0.6338 MB / 228.4 MB, free: 0.5312 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.2731, allocations: 79.52 kB / 228.4 MB, free: 476 kB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003883/0.2735, allocations: 305.4 kB / 228.7 MB, free: 308 kB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001234/0.2737, allocations: 52.09 kB / 228.8 MB, free: 272 kB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002057/0.2739, allocations: 373.8 kB / 229.1 MB, free: 4 kB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003001/0.2742, allocations: 238.4 kB / 229.4 MB, free: 15.85 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.325e-05/0.2743, allocations: 0 / 229.4 MB, free: 15.85 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0002145/0.2745, allocations: 359.7 kB / 229.7 MB, free: 15.52 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000643/0.2751, allocations: 278.8 kB / 230 MB, free: 15.51 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008144/0.276, allocations: 488.2 kB / 230.5 MB, free: 15.26 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000791/0.2768, allocations: 304.8 kB / 230.8 MB, free: 15.18 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.496e-06/0.2768, allocations: 0 / 230.8 MB, free: 15.18 MB / 186.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.00191/0.2787, allocations: 0.8437 MB / 231.6 MB, free: 15 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.2788, allocations: 11.69 kB / 231.6 MB, free: 14.99 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.2788, allocations: 7.875 kB / 231.6 MB, free: 14.99 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.938e-05/0.2788, allocations: 11.47 kB / 231.7 MB, free: 14.99 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004952/0.2793, allocations: 122.2 kB / 231.8 MB, free: 14.96 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.879e-05/0.2794, allocations: 19.34 kB / 231.8 MB, free: 14.95 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004757/0.2799, allocations: 50.78 kB / 231.8 MB, free: 14.93 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.28, allocations: 56.61 kB / 231.9 MB, free: 14.92 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.0003982/0.2804, allocations: 232.2 kB / 232.1 MB, free: 14.75 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.2806, allocations: 54.7 kB / 232.2 MB, free: 14.71 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001639/0.2822, allocations: 0.7002 MB / 232.9 MB, free: 14.48 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/0.2822, allocations: 11.38 kB / 232.9 MB, free: 14.48 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.52e-06/0.2823, allocations: 0 / 232.9 MB, free: 14.48 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.799e-05/0.2823, allocations: 7.938 kB / 232.9 MB, free: 14.47 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003655/0.286, allocations: 1.624 MB / 234.5 MB, free: 13.42 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.908e-06/0.286, allocations: 4 kB / 234.5 MB, free: 13.41 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003435/0.2864, allocations: 69.42 kB / 234.6 MB, free: 13.39 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.321e-05/0.2864, allocations: 5.969 kB / 234.6 MB, free: 13.39 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.024e-05/0.2865, allocations: 11.8 kB / 234.6 MB, free: 13.38 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.345e-06/0.2865, allocations: 3.875 kB / 234.6 MB, free: 13.38 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.889e-06/0.2865, allocations: 0 / 234.6 MB, free: 13.38 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001492/0.288, allocations: 0.7545 MB / 235.4 MB, free: 12.97 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001332/0.2881, allocations: 127.4 kB / 235.5 MB, free: 12.84 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.542e-05/0.2883, allocations: 11.75 kB / 235.5 MB, free: 12.83 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003261/0.2886, allocations: 26.94 kB / 235.5 MB, free: 12.82 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000332/0.2889, allocations: 142.3 kB / 235.7 MB, free: 12.74 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.292e-05/0.289, allocations: 30.8 kB / 235.7 MB, free: 12.73 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001907/0.2892, allocations: 152.8 kB / 235.8 MB, free: 12.62 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.59e-07/0.2893, allocations: 0 / 235.8 MB, free: 12.62 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0008183/0.2901, allocations: 139.7 kB / 236 MB, free: 12.61 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.0002859/0.2904, allocations: 153.9 kB / 236.1 MB, free: 12.48 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001615/0.292, allocations: 0.7682 MB / 236.9 MB, free: 12.17 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.227e-06/0.292, allocations: 192 / 236.9 MB, free: 12.17 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006529/0.2927, allocations: 371.1 kB / 237.3 MB, free: 12.03 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005059/0.2932, allocations: 64.94 kB / 237.3 MB, free: 12 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002911/0.2962, allocations: 1.033 MB / 238.4 MB, free: 10.97 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00081/0.297, allocations: 0.9663 MB / 239.3 MB, free: 9.977 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003928/0.2974, allocations: 79.39 kB / 239.4 MB, free: 9.898 MB / 186.7 MB Notification: Performance of SimCode: time 4.119e-06/0.2974, allocations: 0 / 239.4 MB, free: 9.898 MB / 186.7 MB Notification: Performance of Templates: time 0.01923/0.3167, allocations: 9.737 MB / 249.1 MB, free: 144 kB / 186.7 MB