Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ShowCompositeStep,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_StateGraph_Examples_ShowCompositeStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.811/1.811, allocations: 171.3 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.534e-05/2.561e-05, allocations: 4 kB / 219.5 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2778, allocations: 38.77 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1223/0.4001, allocations: 66.44 MB / 324.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/0.4005, allocations: 67.97 kB / 324.8 MB, free: 11.32 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05374/0.4542, allocations: 13.18 MB / 338 MB, free: 14.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4543, allocations: 0 / 338 MB, free: 14.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.943e-05/0.4544, allocations: 27.94 kB / 338 MB, free: 14.04 MB / 298.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.002446/0.4568, allocations: 0.923 MB / 338.9 MB, free: 13.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.913e-05/0.4569, allocations: 15.97 kB / 339 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003782/0.4573, allocations: 90.97 kB / 339.1 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00117/0.4585, allocations: 498.1 kB / 339.5 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.4586, allocations: 40 kB / 339.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002147/0.4588, allocations: 71.98 kB / 339.6 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00236/0.4612, allocations: 0.7614 MB / 340.4 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002489/0.4637, allocations: 0.8792 MB / 341.3 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.358e-05/0.4638, allocations: 0 / 341.3 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001096/0.4639, allocations: 3.984 kB / 341.3 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.245e-05/0.464, allocations: 27.94 kB / 341.3 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006352/0.4703, allocations: 2.722 MB / 344 MB, free: 7.773 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00169/0.4721, allocations: 0.6692 MB / 344.7 MB, free: 7.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007845/0.4729, allocations: 327.2 kB / 345 MB, free: 6.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001055/0.473, allocations: 20.7 kB / 345.1 MB, free: 6.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001033/0.4741, allocations: 390.3 kB / 345.4 MB, free: 6.352 MB / 298.7 MB Notification: Performance of pre-optimization done (n=104): time 4.97e-06/0.4741, allocations: 0 / 345.4 MB, free: 6.352 MB / 298.7 MB Notification: Performance of matching and sorting (n=104): time 0.001877/0.476, allocations: 0.6176 MB / 346 MB, free: 5.727 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.743e-05/0.4761, allocations: 84.69 kB / 346.1 MB, free: 5.633 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000538/0.4767, allocations: 309.1 kB / 346.4 MB, free: 5.324 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001698/0.4768, allocations: 57.69 kB / 346.5 MB, free: 5.262 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003393/0.4772, allocations: 375.4 kB / 346.9 MB, free: 4.891 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003421/0.4775, allocations: 240.8 kB / 347.1 MB, free: 4.652 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.478e-05/0.4776, allocations: 0 / 347.1 MB, free: 4.652 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.4778, allocations: 362.7 kB / 347.4 MB, free: 4.289 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007858/0.4786, allocations: 278.6 kB / 347.7 MB, free: 4.016 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009797/0.4796, allocations: 0.4918 MB / 348.2 MB, free: 3.445 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009077/0.4805, allocations: 286.6 kB / 348.5 MB, free: 3.168 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/0.4806, allocations: 0 / 348.5 MB, free: 3.168 MB / 298.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002372/0.4829, allocations: 0.8321 MB / 349.3 MB, free: 2.328 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.852e-05/0.483, allocations: 15.55 kB / 349.3 MB, free: 2.316 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/0.4831, allocations: 8 kB / 349.3 MB, free: 2.309 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.064e-05/0.4831, allocations: 12 kB / 349.4 MB, free: 2.297 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007697/0.4839, allocations: 119.7 kB / 349.5 MB, free: 2.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.805e-05/0.4839, allocations: 24.48 kB / 349.5 MB, free: 2.156 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006228/0.4846, allocations: 47.67 kB / 349.5 MB, free: 2.109 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000149/0.4847, allocations: 55.98 kB / 349.6 MB, free: 2.055 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 133 ($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,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 (165): * Single equations (assignments): 165 * 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.0003783/0.4851, allocations: 215.9 kB / 349.8 MB, free: 1.836 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001763/0.4869, allocations: 0.6215 MB / 350.4 MB, free: 1.207 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.4871, allocations: 55.3 kB / 350.5 MB, free: 1.152 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001998/0.4891, allocations: 0.687 MB / 351.2 MB, free: 472 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.095e-05/0.4891, allocations: 19.92 kB / 351.2 MB, free: 452 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.4891, allocations: 4 kB / 351.2 MB, free: 448 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.559e-05/0.4892, allocations: 3.984 kB / 351.2 MB, free: 444 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004373/0.4935, allocations: 1.622 MB / 352.8 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.4936, allocations: 0 / 352.8 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005414/0.4942, allocations: 71.83 kB / 352.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.598e-05/0.4942, allocations: 4 kB / 352.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.368e-05/0.4943, allocations: 11.98 kB / 352.9 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-05/0.4943, allocations: 7.953 kB / 352.9 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.4943, allocations: 0 / 352.9 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001772/0.4961, allocations: 0.7585 MB / 353.7 MB, free: 13.9 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001426/0.4963, allocations: 124.4 kB / 353.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001245/0.4964, allocations: 8 kB / 353.8 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004279/0.4968, allocations: 23.97 kB / 353.8 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004382/0.4973, allocations: 141 kB / 354 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.823e-05/0.4974, allocations: 35.98 kB / 354 MB, free: 13.55 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002034/0.4976, allocations: 154 kB / 354.1 MB, free: 13.4 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-07/0.4976, allocations: 0 / 354.1 MB, free: 13.4 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009577/0.4986, allocations: 136 kB / 354.3 MB, free: 13.27 MB / 314.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.002298/0.5009, allocations: 1.358 MB / 355.6 MB, free: 11.88 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002002/0.503, allocations: 0.7556 MB / 356.4 MB, free: 11.12 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.503, allocations: 1.625 kB / 356.4 MB, free: 11.12 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008772/0.5039, allocations: 368.9 kB / 356.8 MB, free: 10.77 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006812/0.5046, allocations: 64.36 kB / 356.8 MB, free: 10.7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003975/0.5086, allocations: 1.149 MB / 358 MB, free: 9.512 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007323/0.5094, allocations: 0.9585 MB / 358.9 MB, free: 8.523 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008236/0.5102, allocations: 283.3 kB / 359.2 MB, free: 8.246 MB / 314.7 MB Notification: Performance of SimCode: time 1.372e-06/0.5102, allocations: 4 kB / 359.2 MB, free: 8.242 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.811/3.322, allocations: 12.59 MB / 371.8 MB, free: 87.71 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.ShowCompositeStep_res.mat does not exist to compare? outputFormat=mat