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.264/2.264, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.426e-05/3.44e-05, allocations: 8 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 44.5 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.399/0.5032, allocations: 72.41 MB / 372.3 MB, free: 21.93 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.5035, allocations: 69.3 kB / 372.4 MB, free: 21.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05911/0.5627, allocations: 13.5 MB / 385.9 MB, free: 20.8 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.027e-06/0.5627, allocations: 1.344 kB / 385.9 MB, free: 20.8 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.901e-05/0.5628, allocations: 27.06 kB / 385.9 MB, free: 20.8 MB / 314.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.002294/0.5651, allocations: 0.9272 MB / 386.9 MB, free: 20.21 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.5652, allocations: 12.91 kB / 386.9 MB, free: 20.2 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003044/0.5655, allocations: 153.1 kB / 387 MB, free: 20.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002768/0.5658, allocations: 99.86 kB / 387.1 MB, free: 20.12 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.5668, allocations: 494.7 kB / 387.6 MB, free: 19.87 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001385/0.567, allocations: 93.42 kB / 387.7 MB, free: 19.87 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002487/0.5672, allocations: 112 kB / 387.8 MB, free: 19.87 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002623/0.5699, allocations: 1.013 MB / 388.8 MB, free: 19.76 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.555e-05/0.5699, allocations: 0 / 388.8 MB, free: 19.76 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001307/0.5701, allocations: 42.91 kB / 388.8 MB, free: 19.76 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.043e-05/0.5701, allocations: 28.28 kB / 388.9 MB, free: 19.75 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002311/0.5724, allocations: 0.8134 MB / 389.7 MB, free: 19.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005545/0.578, allocations: 2.905 MB / 392.6 MB, free: 18.68 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001623/0.5797, allocations: 0.7209 MB / 393.3 MB, free: 18.62 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007407/0.5805, allocations: 357.8 kB / 393.7 MB, free: 18.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.833e-05/0.5806, allocations: 12.2 kB / 393.7 MB, free: 18.61 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009074/0.5815, allocations: 421.5 kB / 394.1 MB, free: 18.55 MB / 314.7 MB Notification: Performance of pre-optimization done (n=104): time 4.428e-06/0.5815, allocations: 0 / 394.1 MB, free: 18.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.001707/0.5833, allocations: 0.6725 MB / 394.8 MB, free: 18.46 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.761e-05/0.5833, allocations: 83.08 kB / 394.8 MB, free: 18.4 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004495/0.5838, allocations: 312.2 kB / 395.1 MB, free: 18.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001665/0.584, allocations: 80.97 kB / 395.2 MB, free: 18.24 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002225/0.5842, allocations: 375.1 kB / 395.6 MB, free: 17.99 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002448/0.5845, allocations: 261.7 kB / 395.8 MB, free: 17.86 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.589e-05/0.5846, allocations: 26.47 kB / 395.9 MB, free: 17.86 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.5847, allocations: 364.8 kB / 396.2 MB, free: 17.54 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007751/0.5855, allocations: 304.4 kB / 396.5 MB, free: 17.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009638/0.5864, allocations: 0.5164 MB / 397 MB, free: 17.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008956/0.5874, allocations: 319.4 kB / 397.4 MB, free: 17.27 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.5874, allocations: 0 / 397.4 MB, free: 17.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002282/0.5897, allocations: 0.9451 MB / 398.3 MB, free: 17.14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.558e-05/0.5898, allocations: 7.812 kB / 398.3 MB, free: 17.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.182e-05/0.5898, allocations: 3.906 kB / 398.3 MB, free: 17.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.768e-05/0.5899, allocations: 15.62 kB / 398.3 MB, free: 17.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008301/0.5907, allocations: 121.3 kB / 398.4 MB, free: 17.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.882e-05/0.5908, allocations: 12.84 kB / 398.5 MB, free: 17.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006581/0.5914, allocations: 79.62 kB / 398.5 MB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/0.5916, allocations: 54.34 kB / 398.6 MB, free: 17.11 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.0003306/0.5919, allocations: 245.1 kB / 398.8 MB, free: 16.95 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.5921, allocations: 56.02 kB / 398.9 MB, free: 16.92 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001835/0.5939, allocations: 0.7643 MB / 399.6 MB, free: 16.85 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.594, allocations: 11.72 kB / 399.7 MB, free: 16.85 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.594, allocations: 0 / 399.7 MB, free: 16.85 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.594, allocations: 3.422 kB / 399.7 MB, free: 16.85 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003949/0.598, allocations: 1.816 MB / 401.5 MB, free: 16.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/0.598, allocations: 0 / 401.5 MB, free: 16.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005195/0.5985, allocations: 70.23 kB / 401.5 MB, free: 16.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.53e-05/0.5986, allocations: 3.906 kB / 401.6 MB, free: 16.45 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.562e-05/0.5986, allocations: 29.91 kB / 401.6 MB, free: 16.44 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.606e-06/0.5987, allocations: 3.906 kB / 401.6 MB, free: 16.44 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.5987, allocations: 0 / 401.6 MB, free: 16.44 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001534/0.6002, allocations: 0.8054 MB / 402.4 MB, free: 16.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.6003, allocations: 131.7 kB / 402.5 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.6005, allocations: 22.53 kB / 402.5 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004306/0.6009, allocations: 41.48 kB / 402.6 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003659/0.6013, allocations: 133.5 kB / 402.7 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.191e-05/0.6014, allocations: 29.78 kB / 402.7 MB, free: 16.12 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002006/0.6016, allocations: 166.6 kB / 402.9 MB, free: 16.04 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.6016, allocations: 4 kB / 402.9 MB, free: 16.04 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009417/0.6026, allocations: 171.6 kB / 403.1 MB, free: 16.04 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.001932/0.6045, allocations: 1.42 MB / 404.5 MB, free: 15.28 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001927/0.6065, allocations: 0.8182 MB / 405.3 MB, free: 15.22 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.6065, allocations: 1.625 kB / 405.3 MB, free: 15.22 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007921/0.6073, allocations: 390.7 kB / 405.7 MB, free: 15.2 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006148/0.6079, allocations: 84.86 kB / 405.8 MB, free: 15.19 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00363/0.6116, allocations: 1.224 MB / 407 MB, free: 14.83 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004541/0.6121, allocations: 0.955 MB / 408 MB, free: 14.12 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006517/0.6127, allocations: 291.3 kB / 408.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of SimCode: time 1.934e-06/0.6127, allocations: 0 / 408.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.735/3.347, allocations: 12.66 MB / 420.9 MB, free: 8.93 MB / 314.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