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.248/1.248, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.83e-05/2.844e-05, allocations: 0 / 151.5 MB, free: 15.55 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1831/0.1831, allocations: 25.16 MB / 176.6 MB, free: 15.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06349/0.2467, allocations: 34.6 MB / 211.2 MB, free: 14.77 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/0.247, allocations: 63.97 kB / 211.3 MB, free: 14.71 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05497/0.302, allocations: 13.39 MB / 224.7 MB, free: 1.242 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.302, allocations: 0 / 224.7 MB, free: 1.242 MB / 186.7 MB Notification: Performance of Transformations before backend: time 6.211e-05/0.3021, allocations: 27.94 kB / 224.7 MB, free: 1.215 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.002212/0.3044, allocations: 0.9195 MB / 225.6 MB, free: 216 kB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/0.3044, allocations: 8.031 kB / 225.6 MB, free: 208 kB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003076/0.3048, allocations: 160.2 kB / 225.8 MB, free: 40 kB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002767/0.305, allocations: 98.86 kB / 225.9 MB, free: 15.94 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.3061, allocations: 482.2 kB / 226.4 MB, free: 15.43 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001444/0.3063, allocations: 90 kB / 226.4 MB, free: 15.34 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002415/0.3065, allocations: 112 kB / 226.6 MB, free: 15.23 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002667/0.3092, allocations: 1.008 MB / 227.6 MB, free: 14.2 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.255e-05/0.3093, allocations: 0 / 227.6 MB, free: 14.2 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001409/0.3094, allocations: 39.94 kB / 227.6 MB, free: 14.16 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.699e-05/0.3095, allocations: 27.95 kB / 227.6 MB, free: 14.13 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00234/0.3118, allocations: 0.8044 MB / 228.4 MB, free: 13.33 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006039/0.3179, allocations: 2.859 MB / 231.3 MB, free: 10.36 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001844/0.3198, allocations: 0.6974 MB / 232 MB, free: 9.652 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008692/0.3207, allocations: 360.2 kB / 232.3 MB, free: 9.301 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.19e-05/0.3208, allocations: 16.78 kB / 232.4 MB, free: 9.285 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001037/0.3218, allocations: 422.8 kB / 232.8 MB, free: 8.859 MB / 202.7 MB Notification: Performance of pre-optimization done (n=104): time 4.589e-06/0.3218, allocations: 0 / 232.8 MB, free: 8.859 MB / 202.7 MB Notification: Performance of matching and sorting (n=104): time 0.001931/0.3238, allocations: 0.6766 MB / 233.5 MB, free: 8.18 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.316e-05/0.3239, allocations: 72.41 kB / 233.5 MB, free: 8.094 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005361/0.3244, allocations: 318 kB / 233.8 MB, free: 7.777 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001718/0.3246, allocations: 77.7 kB / 233.9 MB, free: 7.695 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003429/0.325, allocations: 375.3 kB / 234.3 MB, free: 7.324 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003295/0.3253, allocations: 252.8 kB / 234.5 MB, free: 7.074 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.157e-05/0.3254, allocations: 24 kB / 234.5 MB, free: 7.051 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.3256, allocations: 358.8 kB / 234.9 MB, free: 6.691 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009064/0.3265, allocations: 298.6 kB / 235.2 MB, free: 6.398 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001108/0.3277, allocations: 0.5074 MB / 235.7 MB, free: 5.812 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009258/0.3286, allocations: 328.7 kB / 236 MB, free: 5.492 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.919e-06/0.3286, allocations: 4 kB / 236 MB, free: 5.488 MB / 202.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002506/0.3311, allocations: 0.9336 MB / 237 MB, free: 4.547 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/0.3312, allocations: 8 kB / 237 MB, free: 4.539 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.691e-05/0.3312, allocations: 7.938 kB / 237 MB, free: 4.531 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.403e-05/0.3313, allocations: 24.64 kB / 237 MB, free: 4.508 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007469/0.332, allocations: 119.7 kB / 237.1 MB, free: 4.391 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.355e-05/0.3321, allocations: 23.94 kB / 237.1 MB, free: 4.367 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006261/0.3327, allocations: 75.56 kB / 237.2 MB, free: 4.293 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001446/0.3329, allocations: 55.98 kB / 237.3 MB, free: 4.238 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.0004965/0.3334, allocations: 266.4 kB / 237.5 MB, free: 3.973 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.3335, allocations: 55.36 kB / 237.6 MB, free: 3.918 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002132/0.3357, allocations: 0.7653 MB / 238.3 MB, free: 3.145 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.604e-05/0.3357, allocations: 11.95 kB / 238.4 MB, free: 3.133 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.3357, allocations: 0 / 238.4 MB, free: 3.133 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.475e-05/0.3358, allocations: 3.984 kB / 238.4 MB, free: 3.129 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004588/0.3404, allocations: 1.81 MB / 240.2 MB, free: 1.262 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.3404, allocations: 0 / 240.2 MB, free: 1.262 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005261/0.341, allocations: 79.77 kB / 240.2 MB, free: 1.184 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.662e-05/0.341, allocations: 4 kB / 240.2 MB, free: 1.18 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.547e-05/0.3411, allocations: 23.98 kB / 240.3 MB, free: 1.156 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.084e-05/0.3411, allocations: 4 kB / 240.3 MB, free: 1.152 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.3411, allocations: 0 / 240.3 MB, free: 1.152 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001837/0.343, allocations: 0.8044 MB / 241.1 MB, free: 340 kB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.3431, allocations: 124.4 kB / 241.2 MB, free: 196 kB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001263/0.3432, allocations: 27.92 kB / 241.2 MB, free: 168 kB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004445/0.3437, allocations: 43.97 kB / 241.3 MB, free: 124 kB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004248/0.3441, allocations: 132.8 kB / 241.4 MB, free: 15.99 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.782e-05/0.3443, allocations: 31.94 kB / 241.4 MB, free: 15.96 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0002451/0.3445, allocations: 171.1 kB / 241.6 MB, free: 15.79 MB / 218.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3445, allocations: 0 / 241.6 MB, free: 15.79 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.000941/0.3455, allocations: 176 kB / 241.8 MB, free: 15.62 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.002397/0.3479, allocations: 1.408 MB / 243.2 MB, free: 14.18 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.002269/0.3502, allocations: 0.8067 MB / 244 MB, free: 13.37 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.3502, allocations: 0 / 244 MB, free: 13.37 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.3513, allocations: 387.6 kB / 244.4 MB, free: 12.99 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006683/0.3519, allocations: 70.61 kB / 244.4 MB, free: 12.93 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004049/0.356, allocations: 1.222 MB / 245.7 MB, free: 11.66 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007601/0.3568, allocations: 0.9626 MB / 246.6 MB, free: 10.67 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008578/0.3577, allocations: 291.3 kB / 246.9 MB, free: 10.39 MB / 218.7 MB Notification: Performance of SimCode: time 1.022e-06/0.3577, allocations: 0 / 246.9 MB, free: 10.39 MB / 218.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.871/3.228, allocations: 12.65 MB / 259.6 MB, free: 62.76 MB / 218.7 MB