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.885/1.885, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.302e-05/3.319e-05, allocations: 4 kB / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2697, allocations: 38.76 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1251/0.3948, allocations: 67.11 MB / 330.9 MB, free: 6.652 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002621/0.3952, allocations: 63.97 kB / 331 MB, free: 6.59 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06289/0.4581, allocations: 13.5 MB / 344.5 MB, free: 9.008 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4581, allocations: 0 / 344.5 MB, free: 9.008 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.887e-05/0.4582, allocations: 27.94 kB / 344.5 MB, free: 8.98 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.003319/0.4616, allocations: 0.931 MB / 345.4 MB, free: 7.969 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.231e-05/0.4617, allocations: 8.031 kB / 345.5 MB, free: 7.961 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004398/0.4621, allocations: 152.2 kB / 345.6 MB, free: 7.805 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003716/0.4625, allocations: 94.97 kB / 345.7 MB, free: 7.711 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00152/0.4641, allocations: 497.7 kB / 346.2 MB, free: 7.184 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002059/0.4643, allocations: 90 kB / 346.3 MB, free: 7.098 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003916/0.4647, allocations: 120 kB / 346.4 MB, free: 6.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004022/0.4687, allocations: 1.016 MB / 347.4 MB, free: 5.938 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.741e-05/0.4688, allocations: 3.984 kB / 347.4 MB, free: 5.934 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002091/0.4691, allocations: 36 kB / 347.4 MB, free: 5.898 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.704e-05/0.4691, allocations: 24 kB / 347.5 MB, free: 5.875 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003662/0.4728, allocations: 0.816 MB / 348.3 MB, free: 5.062 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01035/0.4832, allocations: 2.902 MB / 351.2 MB, free: 2.051 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002732/0.486, allocations: 0.7215 MB / 351.9 MB, free: 1.312 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001341/0.4874, allocations: 359.1 kB / 352.3 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001297/0.4875, allocations: 20.75 kB / 352.3 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001556/0.4891, allocations: 420.9 kB / 352.7 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of pre-optimization done (n=104): time 6.191e-06/0.4891, allocations: 4 kB / 352.7 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of matching and sorting (n=104): time 0.002147/0.4913, allocations: 0.6729 MB / 353.4 MB, free: 15.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.78e-05/0.4914, allocations: 76.34 kB / 353.4 MB, free: 15.75 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005718/0.492, allocations: 325.9 kB / 353.8 MB, free: 15.43 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002242/0.4922, allocations: 77.69 kB / 353.8 MB, free: 15.34 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003495/0.4926, allocations: 375.4 kB / 354.2 MB, free: 14.97 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003531/0.4929, allocations: 252.8 kB / 354.4 MB, free: 14.72 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.794e-05/0.493, allocations: 24 kB / 354.5 MB, free: 14.7 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002004/0.4933, allocations: 366.8 kB / 354.8 MB, free: 14.33 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009599/0.4942, allocations: 298.6 kB / 355.1 MB, free: 14.04 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00114/0.4954, allocations: 0.5256 MB / 355.6 MB, free: 13.43 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009237/0.4963, allocations: 317 kB / 356 MB, free: 13.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/0.4963, allocations: 0 / 356 MB, free: 13.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002532/0.4989, allocations: 0.9535 MB / 356.9 MB, free: 12.16 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.327e-05/0.499, allocations: 8 kB / 356.9 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.796e-05/0.499, allocations: 4 kB / 356.9 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.267e-05/0.499, allocations: 12 kB / 356.9 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007929/0.4998, allocations: 123.6 kB / 357.1 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.601e-05/0.4999, allocations: 12 kB / 357.1 MB, free: 12.01 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006306/0.5005, allocations: 79.78 kB / 357.1 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001521/0.5007, allocations: 55.98 kB / 357.2 MB, free: 11.88 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.0003996/0.5011, allocations: 239.9 kB / 357.4 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.5013, allocations: 51.39 kB / 357.5 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002141/0.5034, allocations: 0.7692 MB / 358.2 MB, free: 10.81 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.888e-05/0.5035, allocations: 8 kB / 358.3 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/0.5035, allocations: 4 kB / 358.3 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.452e-05/0.5035, allocations: 3.984 kB / 358.3 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004705/0.5082, allocations: 1.81 MB / 360.1 MB, free: 8.926 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.5083, allocations: 0 / 360.1 MB, free: 8.926 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00056/0.5089, allocations: 75.83 kB / 360.1 MB, free: 8.852 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-05/0.5089, allocations: 4 kB / 360.2 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.099e-05/0.509, allocations: 31.92 kB / 360.2 MB, free: 8.816 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.938e-06/0.509, allocations: 4 kB / 360.2 MB, free: 8.812 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.509, allocations: 0 / 360.2 MB, free: 8.812 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001892/0.5109, allocations: 0.8043 MB / 361 MB, free: 7.988 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001372/0.5111, allocations: 124.5 kB / 361.1 MB, free: 7.848 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.5112, allocations: 16 kB / 361.1 MB, free: 7.832 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004594/0.5117, allocations: 47.92 kB / 361.2 MB, free: 7.785 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004237/0.5121, allocations: 136.8 kB / 361.3 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.5123, allocations: 35.91 kB / 361.3 MB, free: 7.617 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002405/0.5125, allocations: 167.1 kB / 361.5 MB, free: 7.457 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5125, allocations: 4 kB / 361.5 MB, free: 7.453 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009348/0.5135, allocations: 175.9 kB / 361.7 MB, free: 7.281 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.002626/0.5161, allocations: 1.42 MB / 363.1 MB, free: 5.832 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002287/0.5184, allocations: 0.8152 MB / 363.9 MB, free: 5.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.5185, allocations: 0 / 363.9 MB, free: 5.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009898/0.5195, allocations: 389.6 kB / 364.3 MB, free: 4.637 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006522/0.5201, allocations: 77.66 kB / 364.4 MB, free: 4.562 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004512/0.5247, allocations: 1.231 MB / 365.6 MB, free: 3.285 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007753/0.5255, allocations: 0.9626 MB / 366.6 MB, free: 2.297 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008894/0.5264, allocations: 291.3 kB / 366.9 MB, free: 2.012 MB / 314.7 MB Notification: Performance of SimCode: time 1.272e-06/0.5264, allocations: 0 / 366.9 MB, free: 2.012 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.978/3.504, allocations: 12.65 MB / 379.5 MB, free: 86.21 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