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.957/0.957, allocations: 111.2 MB / 123.8 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 5.112e-05/5.145e-05, allocations: 4 kB / 151.4 MB, free: 15.59 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2014/0.2015, allocations: 25.15 MB / 176.5 MB, free: 16 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0533/0.2549, allocations: 34.59 MB / 211.1 MB, free: 14.87 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001979/0.2551, allocations: 63.97 kB / 211.2 MB, free: 14.8 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04827/0.3034, allocations: 13.39 MB / 224.6 MB, free: 1.336 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3034, allocations: 0 / 224.6 MB, free: 1.336 MB / 186.7 MB Notification: Performance of Transformations before backend: time 5.787e-05/0.3035, allocations: 31.92 kB / 224.6 MB, free: 1.305 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.001833/0.3053, allocations: 0.9078 MB / 225.5 MB, free: 320 kB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.3054, allocations: 8.031 kB / 225.5 MB, free: 312 kB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002555/0.3057, allocations: 98.92 kB / 225.6 MB, free: 212 kB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009761/0.3067, allocations: 490.1 kB / 226.1 MB, free: 15.69 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/0.3068, allocations: 90 kB / 226.2 MB, free: 15.6 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002097/0.307, allocations: 116 kB / 226.3 MB, free: 15.49 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002403/0.3095, allocations: 1 MB / 227.3 MB, free: 14.46 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.839e-05/0.3095, allocations: 0 / 227.3 MB, free: 14.46 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001308/0.3096, allocations: 47.98 kB / 227.4 MB, free: 14.41 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.035e-05/0.3097, allocations: 31.89 kB / 227.4 MB, free: 14.38 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002082/0.3118, allocations: 0.7966 MB / 228.2 MB, free: 13.59 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005372/0.3172, allocations: 2.862 MB / 231 MB, free: 10.61 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001653/0.3189, allocations: 0.6967 MB / 231.7 MB, free: 9.906 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007877/0.3197, allocations: 361 kB / 232.1 MB, free: 9.555 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.865e-05/0.3198, allocations: 12.78 kB / 232.1 MB, free: 9.543 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009935/0.3208, allocations: 423.5 kB / 232.5 MB, free: 9.117 MB / 202.7 MB Notification: Performance of pre-optimization done (n=104): time 4.934e-06/0.3208, allocations: 0 / 232.5 MB, free: 9.117 MB / 202.7 MB Notification: Performance of matching and sorting (n=104): time 0.001735/0.3225, allocations: 0.6727 MB / 233.2 MB, free: 8.441 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.015e-05/0.3226, allocations: 76.38 kB / 233.3 MB, free: 8.352 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005017/0.3232, allocations: 318 kB / 233.6 MB, free: 8.035 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001431/0.3233, allocations: 77.62 kB / 233.7 MB, free: 7.953 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003346/0.3237, allocations: 383.3 kB / 234 MB, free: 7.574 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003133/0.324, allocations: 248.8 kB / 234.3 MB, free: 7.328 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.964e-05/0.3241, allocations: 24 kB / 234.3 MB, free: 7.305 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.000223/0.3243, allocations: 358.8 kB / 234.6 MB, free: 6.945 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007855/0.3251, allocations: 298.6 kB / 234.9 MB, free: 6.652 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009984/0.3261, allocations: 0.5074 MB / 235.4 MB, free: 6.066 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008297/0.327, allocations: 328.6 kB / 235.8 MB, free: 5.746 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.159e-06/0.327, allocations: 0 / 235.8 MB, free: 5.746 MB / 202.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002251/0.3293, allocations: 0.9337 MB / 236.7 MB, free: 4.805 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.3293, allocations: 8 kB / 236.7 MB, free: 4.797 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.3293, allocations: 8 kB / 236.7 MB, free: 4.789 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.736e-05/0.3294, allocations: 15.95 kB / 236.7 MB, free: 4.773 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005825/0.33, allocations: 127.6 kB / 236.9 MB, free: 4.648 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.104e-05/0.33, allocations: 16.53 kB / 236.9 MB, free: 4.633 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005113/0.3305, allocations: 83.56 kB / 237 MB, free: 4.551 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001468/0.3307, allocations: 55.98 kB / 237 MB, free: 4.496 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.0004426/0.3312, allocations: 270.5 kB / 237.3 MB, free: 4.227 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.3313, allocations: 47.44 kB / 237.3 MB, free: 4.18 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001863/0.3332, allocations: 0.7691 MB / 238.1 MB, free: 3.402 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.525e-05/0.3332, allocations: 12 kB / 238.1 MB, free: 3.391 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.911e-06/0.3332, allocations: 3.953 kB / 238.1 MB, free: 3.387 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.3333, allocations: 3.984 kB / 238.1 MB, free: 3.383 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004102/0.3374, allocations: 1.81 MB / 239.9 MB, free: 1.516 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.151e-05/0.3374, allocations: 7.984 kB / 239.9 MB, free: 1.508 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003995/0.3378, allocations: 71.77 kB / 240 MB, free: 1.438 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.526e-05/0.3379, allocations: 8 kB / 240 MB, free: 1.43 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.108e-05/0.3379, allocations: 23.98 kB / 240 MB, free: 1.406 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.655e-06/0.338, allocations: 4 kB / 240 MB, free: 1.402 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.401e-06/0.338, allocations: 0 / 240 MB, free: 1.402 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001658/0.3396, allocations: 0.8005 MB / 240.8 MB, free: 0.5859 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/0.3398, allocations: 128.4 kB / 241 MB, free: 452 kB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.3399, allocations: 19.98 kB / 241 MB, free: 432 kB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003441/0.3403, allocations: 47.97 kB / 241 MB, free: 384 kB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003543/0.3406, allocations: 132.8 kB / 241.1 MB, free: 252 kB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.421e-05/0.3407, allocations: 27.98 kB / 241.2 MB, free: 224 kB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002248/0.341, allocations: 167.1 kB / 241.3 MB, free: 56 kB / 202.7 MB Notification: Performance of sort global known variables: time 7.63e-07/0.341, allocations: 0 / 241.3 MB, free: 56 kB / 202.7 MB Notification: Performance of remove unused functions: time 0.0008884/0.3419, allocations: 176.1 kB / 241.5 MB, free: 15.88 MB / 218.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.0003105/0.3422, allocations: 179.2 kB / 241.7 MB, free: 15.69 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.001883/0.3441, allocations: 0.8076 MB / 242.5 MB, free: 14.88 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.3441, allocations: 0 / 242.5 MB, free: 14.88 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008165/0.345, allocations: 376.1 kB / 242.9 MB, free: 14.52 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005091/0.3455, allocations: 76.47 kB / 242.9 MB, free: 14.44 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002919/0.3484, allocations: 1.084 MB / 244 MB, free: 13.33 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007864/0.3492, allocations: 0.9587 MB / 245 MB, free: 12.35 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004073/0.3497, allocations: 87.41 kB / 245.1 MB, free: 12.26 MB / 218.7 MB Notification: Performance of SimCode: time 2.328e-06/0.3497, allocations: 0 / 245.1 MB, free: 12.26 MB / 218.7 MB Notification: Performance of Templates: time 0.02007/0.3698, allocations: 9.761 MB / 254.8 MB, free: 2.492 MB / 218.7 MB