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.981/1.981, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.28e-05/4.297e-05, allocations: 4 kB / 225.1 MB, free: 2.625 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2648, allocations: 38.78 MB / 263.8 MB, free: 9.746 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1235/0.3884, allocations: 67.1 MB / 330.9 MB, free: 6.547 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002592/0.3887, allocations: 67.97 kB / 331 MB, free: 6.48 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0536/0.4423, allocations: 13.5 MB / 344.5 MB, free: 8.883 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.103e-06/0.4424, allocations: 0 / 344.5 MB, free: 8.883 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.571e-05/0.4425, allocations: 31.92 kB / 344.5 MB, free: 8.852 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.00224/0.4447, allocations: 0.9192 MB / 345.5 MB, free: 7.852 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/0.4448, allocations: 12.03 kB / 345.5 MB, free: 7.84 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003148/0.4451, allocations: 156.2 kB / 345.6 MB, free: 7.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002531/0.4454, allocations: 94.97 kB / 345.7 MB, free: 7.586 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/0.4464, allocations: 497.9 kB / 346.2 MB, free: 7.059 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001487/0.4466, allocations: 94 kB / 346.3 MB, free: 6.969 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002374/0.4469, allocations: 112 kB / 346.4 MB, free: 6.859 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002701/0.4496, allocations: 1 MB / 347.4 MB, free: 5.836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.212e-05/0.4496, allocations: 0 / 347.4 MB, free: 5.836 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001434/0.4498, allocations: 47.98 kB / 347.5 MB, free: 5.789 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.903e-05/0.4498, allocations: 24 kB / 347.5 MB, free: 5.766 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002318/0.4522, allocations: 0.8043 MB / 348.3 MB, free: 4.961 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006106/0.4583, allocations: 2.901 MB / 351.2 MB, free: 1.949 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001854/0.4602, allocations: 0.7074 MB / 351.9 MB, free: 1.227 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009053/0.4611, allocations: 363.1 kB / 352.3 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.789e-05/0.4612, allocations: 13.62 kB / 352.3 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001057/0.4623, allocations: 422.8 kB / 352.7 MB, free: 444 kB / 298.7 MB Notification: Performance of pre-optimization done (n=104): time 4.308e-06/0.4623, allocations: 4 kB / 352.7 MB, free: 440 kB / 298.7 MB Notification: Performance of matching and sorting (n=104): time 0.001903/0.4643, allocations: 0.669 MB / 353.4 MB, free: 15.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.029e-05/0.4644, allocations: 76.39 kB / 353.4 MB, free: 15.66 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005146/0.4649, allocations: 317.9 kB / 353.7 MB, free: 15.35 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000188/0.4651, allocations: 77.69 kB / 353.8 MB, free: 15.27 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003221/0.4654, allocations: 379.3 kB / 354.2 MB, free: 14.89 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003206/0.4657, allocations: 252.8 kB / 354.4 MB, free: 14.64 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.781e-05/0.4659, allocations: 24 kB / 354.5 MB, free: 14.62 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.466, allocations: 366.8 kB / 354.8 MB, free: 14.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008889/0.4669, allocations: 306.6 kB / 355.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001077/0.468, allocations: 0.5152 MB / 355.6 MB, free: 13.36 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008818/0.4689, allocations: 313 kB / 355.9 MB, free: 13.05 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-05/0.469, allocations: 4 kB / 355.9 MB, free: 13.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002382/0.4714, allocations: 0.9263 MB / 356.9 MB, free: 12.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.189e-05/0.4714, allocations: 11.98 kB / 356.9 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-05/0.4714, allocations: 8 kB / 356.9 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.093e-05/0.4715, allocations: 12 kB / 356.9 MB, free: 12.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007656/0.4723, allocations: 127.6 kB / 357 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.431e-05/0.4723, allocations: 15.94 kB / 357 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006218/0.4729, allocations: 79.75 kB / 357.1 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001697/0.4731, allocations: 51.98 kB / 357.2 MB, free: 11.82 MB / 314.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.0003846/0.4735, allocations: 239.4 kB / 357.4 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/0.4737, allocations: 51.39 kB / 357.4 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002075/0.4758, allocations: 0.773 MB / 358.2 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.4758, allocations: 12 kB / 358.2 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.4758, allocations: 0 / 358.2 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-05/0.4759, allocations: 3.984 kB / 358.2 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004485/0.4803, allocations: 1.81 MB / 360 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.4804, allocations: 0 / 360 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005267/0.4809, allocations: 79.77 kB / 360.1 MB, free: 8.789 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.685e-05/0.481, allocations: 8 kB / 360.1 MB, free: 8.781 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001172/0.4811, allocations: 23.94 kB / 360.2 MB, free: 8.758 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.076e-05/0.4811, allocations: 4 kB / 360.2 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4811, allocations: 0 / 360.2 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001769/0.4829, allocations: 0.7965 MB / 361 MB, free: 7.945 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.4831, allocations: 124.4 kB / 361.1 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001272/0.4832, allocations: 27.98 kB / 361.1 MB, free: 7.777 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004476/0.4837, allocations: 47.92 kB / 361.1 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003952/0.4841, allocations: 128.8 kB / 361.3 MB, free: 7.602 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.839e-05/0.4842, allocations: 35.98 kB / 361.3 MB, free: 7.566 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002268/0.4844, allocations: 163.1 kB / 361.5 MB, free: 7.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4844, allocations: 0 / 361.5 MB, free: 7.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009753/0.4854, allocations: 179.9 kB / 361.6 MB, free: 7.234 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.4877, allocations: 1.412 MB / 363.1 MB, free: 5.785 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002177/0.4899, allocations: 0.8034 MB / 363.9 MB, free: 4.984 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.49, allocations: 0 / 363.9 MB, free: 4.984 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009883/0.491, allocations: 383.6 kB / 364.2 MB, free: 4.609 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000667/0.4917, allocations: 76.41 kB / 364.3 MB, free: 4.535 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00425/0.4959, allocations: 1.222 MB / 365.5 MB, free: 3.266 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007339/0.4967, allocations: 0.9626 MB / 366.5 MB, free: 2.273 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008775/0.4976, allocations: 295.2 kB / 366.8 MB, free: 1.984 MB / 314.7 MB Notification: Performance of SimCode: time 1.373e-06/0.4976, allocations: 0 / 366.8 MB, free: 1.984 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.027/3.525, allocations: 12.6 MB / 379.4 MB, free: 86.08 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