Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ShowCompositeStep,fileNamePrefix="Modelica_trunk_cpp_Modelica_StateGraph_Examples_ShowCompositeStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.061/2.061, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.193e-05/3.2e-05, allocations: 3.984 kB / 292.2 MB, free: 8.766 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1138, allocations: 50.42 MB / 342.6 MB, free: 6.332 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4903/0.6041, allocations: 77.99 MB / 420.6 MB, free: 15.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/0.6045, allocations: 67.41 kB / 420.7 MB, free: 15.81 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05855/0.663, allocations: 14.03 MB / 434.7 MB, free: 3.973 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.6631, allocations: 0 / 434.7 MB, free: 3.973 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.797e-05/0.6632, allocations: 32.14 kB / 434.7 MB, free: 3.941 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002839/0.666, allocations: 0.9406 MB / 435.7 MB, free: 2.988 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.838e-05/0.6661, allocations: 8.031 kB / 435.7 MB, free: 2.98 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004285/0.6666, allocations: 160.5 kB / 435.9 MB, free: 2.883 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003103/0.6669, allocations: 102.9 kB / 436 MB, free: 2.781 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001152/0.6681, allocations: 498.7 kB / 436.4 MB, free: 2.363 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001373/0.6682, allocations: 103 kB / 436.5 MB, free: 2.301 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002508/0.6685, allocations: 118.8 kB / 436.7 MB, free: 2.223 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003084/0.6716, allocations: 1.025 MB / 437.7 MB, free: 1.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.527e-05/0.6717, allocations: 4 kB / 437.7 MB, free: 1.496 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001354/0.6718, allocations: 44.7 kB / 437.7 MB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.431e-05/0.6719, allocations: 28 kB / 437.8 MB, free: 1.457 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002633/0.6745, allocations: 0.7804 MB / 438.5 MB, free: 0.957 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007294/0.6819, allocations: 2.954 MB / 441.5 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002009/0.6839, allocations: 0.7247 MB / 442.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009392/0.6849, allocations: 373.2 kB / 442.6 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001025/0.6851, allocations: 20.08 kB / 442.6 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001178/0.6863, allocations: 473.5 kB / 443.1 MB, free: 13.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=105): time 7.304e-06/0.6863, allocations: 0 / 443.1 MB, free: 13.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=105): time 0.002011/0.6883, allocations: 0.6821 MB / 443.7 MB, free: 13.06 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/0.6885, allocations: 104.6 kB / 443.8 MB, free: 12.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005874/0.6891, allocations: 324.3 kB / 444.2 MB, free: 12.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002664/0.6894, allocations: 77 kB / 444.2 MB, free: 12.64 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003862/0.6898, allocations: 384.1 kB / 444.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004231/0.6902, allocations: 263.9 kB / 444.9 MB, free: 12.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.054e-05/0.6903, allocations: 22.38 kB / 444.9 MB, free: 12.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.6905, allocations: 362.2 kB / 445.2 MB, free: 11.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009069/0.6914, allocations: 306.5 kB / 445.5 MB, free: 11.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/0.6926, allocations: 0.52 MB / 446.1 MB, free: 11.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009744/0.6936, allocations: 316.8 kB / 446.4 MB, free: 10.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.085e-05/0.6936, allocations: 0 / 446.4 MB, free: 10.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002587/0.6962, allocations: 0.9335 MB / 447.3 MB, free: 9.789 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.536e-05/0.6963, allocations: 8.812 kB / 447.3 MB, free: 9.781 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/0.6963, allocations: 4 kB / 447.3 MB, free: 9.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.228e-05/0.6964, allocations: 12 kB / 447.3 MB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008463/0.6972, allocations: 127.7 kB / 447.5 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.547e-05/0.6973, allocations: 15.94 kB / 447.5 MB, free: 9.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006674/0.698, allocations: 75.66 kB / 447.5 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001499/0.6981, allocations: 51.98 kB / 447.6 MB, free: 9.5 MB / 362.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: 135 ($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,$PRE.transition7.t_start,transition7.t_start,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 (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.0004283/0.6986, allocations: 244 kB / 447.8 MB, free: 9.254 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001723/0.6988, allocations: 59.33 kB / 447.9 MB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002256/0.701, allocations: 0.7614 MB / 448.7 MB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-05/0.7011, allocations: 15.98 kB / 448.7 MB, free: 8.414 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.7011, allocations: 0 / 448.7 MB, free: 8.414 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-05/0.7012, allocations: 3.984 kB / 448.7 MB, free: 8.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005144/0.7063, allocations: 1.833 MB / 450.5 MB, free: 6.523 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.788e-06/0.7064, allocations: 0 / 450.5 MB, free: 6.523 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005598/0.707, allocations: 75.83 kB / 450.6 MB, free: 6.449 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-05/0.707, allocations: 7.953 kB / 450.6 MB, free: 6.441 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.874e-05/0.7071, allocations: 23.98 kB / 450.6 MB, free: 6.418 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.217e-05/0.7071, allocations: 4 kB / 450.6 MB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.7071, allocations: 4 kB / 450.6 MB, free: 6.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001904/0.7091, allocations: 0.8148 MB / 451.4 MB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001661/0.7093, allocations: 132.3 kB / 451.6 MB, free: 5.422 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001339/0.7094, allocations: 24 kB / 451.6 MB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004678/0.7099, allocations: 43.97 kB / 451.6 MB, free: 5.355 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004197/0.7103, allocations: 132.7 kB / 451.8 MB, free: 5.223 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/0.7105, allocations: 39.97 kB / 451.8 MB, free: 5.184 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002385/0.7107, allocations: 163.1 kB / 452 MB, free: 5.027 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.7107, allocations: 0 / 452 MB, free: 5.027 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001084/0.7118, allocations: 176 kB / 452.1 MB, free: 4.855 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 81 (transition7.t_start,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: 10 (compositeStep.step3.newActive,compositeStep.step4.newActive,compositeStep.step4a.newActive,compositeStep.initStep.newActive,compositeStep.exitStep.newActive,compositeStep.newActive,step0.newActive,step1.newActive,step6.newActive,transition7.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.002515/0.7144, allocations: 1.514 MB / 453.6 MB, free: 3.301 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002308/0.7167, allocations: 0.8066 MB / 454.5 MB, free: 2.496 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.7168, allocations: 0 / 454.5 MB, free: 2.496 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.7179, allocations: 387.6 kB / 454.8 MB, free: 2.121 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006989/0.7186, allocations: 73.89 kB / 454.9 MB, free: 2.051 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00453/0.7231, allocations: 1.262 MB / 456.2 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007917/0.724, allocations: 0.9665 MB / 457.1 MB, free: 15.74 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008787/0.7249, allocations: 295.3 kB / 457.4 MB, free: 15.45 MB / 378.7 MB Notification: Performance of SimCode: time 1.393e-06/0.7249, allocations: 0 / 457.4 MB, free: 15.45 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.65/3.375, allocations: 12.8 MB / 470.2 MB, free: 2.645 MB / 378.7 MB