Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ShowCompositeStep,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_StateGraph_Examples_ShowCompositeStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.152/2.152, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.578e-05/2.599e-05, allocations: 8 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3204, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1551/0.4756, allocations: 71.75 MB / 365.9 MB, free: 10.24 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/0.4759, allocations: 67.95 kB / 366 MB, free: 10.17 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0566/0.5325, allocations: 13.2 MB / 379.2 MB, free: 12.89 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.5326, allocations: 0 / 379.2 MB, free: 12.89 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.68e-05/0.5327, allocations: 24 kB / 379.2 MB, free: 12.87 MB / 330.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.00261/0.5353, allocations: 0.9192 MB / 380.1 MB, free: 11.88 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/0.5354, allocations: 8.031 kB / 380.2 MB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003969/0.5358, allocations: 98.88 kB / 380.2 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.537, allocations: 494.2 kB / 380.7 MB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.5371, allocations: 44 kB / 380.8 MB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000209/0.5373, allocations: 67.98 kB / 380.8 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002378/0.5397, allocations: 0.7536 MB / 381.6 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002548/0.5423, allocations: 0.8831 MB / 382.5 MB, free: 9.473 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.3e-05/0.5424, allocations: 0 / 382.5 MB, free: 9.473 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001056/0.5425, allocations: 4 kB / 382.5 MB, free: 9.469 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.382e-05/0.5426, allocations: 24 kB / 382.5 MB, free: 9.445 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006505/0.5491, allocations: 2.726 MB / 385.2 MB, free: 6.617 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001721/0.5508, allocations: 0.6622 MB / 385.9 MB, free: 5.941 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009002/0.5518, allocations: 343.2 kB / 386.2 MB, free: 5.605 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001392/0.552, allocations: 16.72 kB / 386.2 MB, free: 5.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001058/0.553, allocations: 382.4 kB / 386.6 MB, free: 5.203 MB / 330.7 MB Notification: Performance of pre-optimization done (n=104): time 5.22e-06/0.5531, allocations: 4 kB / 386.6 MB, free: 5.199 MB / 330.7 MB Notification: Performance of matching and sorting (n=104): time 0.001961/0.5551, allocations: 0.6292 MB / 387.3 MB, free: 4.562 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.92e-05/0.5552, allocations: 68.72 kB / 387.3 MB, free: 4.484 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005441/0.5558, allocations: 317.2 kB / 387.6 MB, free: 4.172 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000232/0.556, allocations: 49.7 kB / 387.7 MB, free: 4.117 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003923/0.5564, allocations: 379.4 kB / 388 MB, free: 3.742 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004009/0.5568, allocations: 240.8 kB / 388.3 MB, free: 3.504 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.572e-05/0.5569, allocations: 0 / 388.3 MB, free: 3.504 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002047/0.5571, allocations: 362.7 kB / 388.6 MB, free: 3.141 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008471/0.558, allocations: 282.6 kB / 388.9 MB, free: 2.863 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001044/0.559, allocations: 0.4923 MB / 389.4 MB, free: 2.289 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009501/0.56, allocations: 282.2 kB / 389.7 MB, free: 2.016 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.649e-05/0.5601, allocations: 4 kB / 389.7 MB, free: 2.012 MB / 330.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002296/0.5624, allocations: 0.8399 MB / 390.5 MB, free: 1.164 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.5624, allocations: 11.98 kB / 390.5 MB, free: 1.152 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.821e-05/0.5625, allocations: 4 kB / 390.5 MB, free: 1.148 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.419e-05/0.5625, allocations: 16 kB / 390.6 MB, free: 1.133 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007762/0.5633, allocations: 119.7 kB / 390.7 MB, free: 1.016 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.488e-05/0.5633, allocations: 15.94 kB / 390.7 MB, free: 1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006503/0.564, allocations: 52.55 kB / 390.7 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001488/0.5642, allocations: 59.97 kB / 390.8 MB, free: 0.8906 MB / 330.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.0003781/0.5646, allocations: 207.6 kB / 391 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001709/0.5663, allocations: 0.6214 MB / 391.6 MB, free: 52 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/0.5665, allocations: 55.59 kB / 391.7 MB, free: 15.99 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001989/0.5685, allocations: 0.6948 MB / 392.4 MB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-05/0.5685, allocations: 8 kB / 392.4 MB, free: 15.29 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.5685, allocations: 4 kB / 392.4 MB, free: 15.29 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.782e-05/0.5686, allocations: 3.984 kB / 392.4 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004428/0.573, allocations: 1.626 MB / 394 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/0.5731, allocations: 4 kB / 394 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005355/0.5736, allocations: 67.83 kB / 394.1 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.845e-05/0.5736, allocations: 4 kB / 394.1 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.564e-05/0.5737, allocations: 11.98 kB / 394.1 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.097e-06/0.5737, allocations: 4 kB / 394.1 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.704e-06/0.5738, allocations: 7.984 kB / 394.1 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001872/0.5756, allocations: 0.7546 MB / 394.9 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001394/0.5758, allocations: 128.3 kB / 395 MB, free: 12.6 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001493/0.576, allocations: 11.98 kB / 395 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004501/0.5764, allocations: 23.97 kB / 395 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004292/0.5769, allocations: 133.1 kB / 395.2 MB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-05/0.577, allocations: 35.98 kB / 395.2 MB, free: 12.4 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000217/0.5772, allocations: 154 kB / 395.3 MB, free: 12.25 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5772, allocations: 0 / 395.3 MB, free: 12.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001002/0.5783, allocations: 140 kB / 395.5 MB, free: 12.11 MB / 346.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.00241/0.5807, allocations: 1.354 MB / 396.8 MB, free: 10.72 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002/0.5827, allocations: 0.7596 MB / 397.6 MB, free: 9.961 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.5828, allocations: 3.938 kB / 397.6 MB, free: 9.957 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008956/0.5837, allocations: 362.6 kB / 397.9 MB, free: 9.605 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007026/0.5844, allocations: 64.45 kB / 398 MB, free: 9.543 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004239/0.5886, allocations: 1.133 MB / 399.1 MB, free: 8.367 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.5897, allocations: 0.9624 MB / 400.1 MB, free: 7.375 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001114/0.5909, allocations: 287.3 kB / 400.4 MB, free: 7.094 MB / 346.7 MB Notification: Performance of SimCode: time 1.192e-06/0.5909, allocations: 0 / 400.4 MB, free: 7.094 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.931/3.521, allocations: 12.6 MB / 413 MB, free: 10.47 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.ShowCompositeStep_res.mat does not exist to compare? outputFormat=mat