Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ShowCompositeStep,fileNamePrefix="Modelica_3_2_1_Modelica_StateGraph_Examples_ShowCompositeStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.757/1.757, allocations: 171.3 MB / 178.4 MB, free: 156 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.15e-05/2.156e-05, allocations: 8 kB / 219.6 MB, free: 6.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2594, allocations: 38.77 MB / 258.3 MB, free: 12.19 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1264/0.3858, allocations: 66.43 MB / 324.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.3862, allocations: 67.97 kB / 324.8 MB, free: 11.29 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05354/0.4397, allocations: 13.18 MB / 338 MB, free: 14.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4398, allocations: 0 / 338 MB, free: 14.03 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.091e-05/0.4398, allocations: 27.94 kB / 338 MB, free: 14 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.002306/0.4422, allocations: 0.9308 MB / 339 MB, free: 12.99 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.4422, allocations: 12.03 kB / 339 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002964/0.4425, allocations: 94.97 kB / 339.1 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.4437, allocations: 490.1 kB / 339.6 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.994e-05/0.4438, allocations: 47.97 kB / 339.6 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002083/0.444, allocations: 68 kB / 339.7 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00227/0.4463, allocations: 0.7614 MB / 340.4 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002397/0.4487, allocations: 0.8792 MB / 341.3 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.129e-05/0.4488, allocations: 0 / 341.3 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001059/0.4489, allocations: 4 kB / 341.3 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.818e-05/0.4489, allocations: 24 kB / 341.3 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006564/0.4555, allocations: 2.726 MB / 344.1 MB, free: 7.734 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/0.4572, allocations: 0.6615 MB / 344.7 MB, free: 7.059 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007725/0.458, allocations: 331.1 kB / 345 MB, free: 6.734 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.144e-05/0.4581, allocations: 20.72 kB / 345.1 MB, free: 6.715 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009746/0.459, allocations: 390.3 kB / 345.5 MB, free: 6.316 MB / 298.7 MB Notification: Performance of pre-optimization done (n=104): time 3.827e-06/0.4591, allocations: 0 / 345.5 MB, free: 6.316 MB / 298.7 MB Notification: Performance of matching and sorting (n=104): time 0.001733/0.4608, allocations: 0.6215 MB / 346.1 MB, free: 5.688 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.778e-05/0.4609, allocations: 80.69 kB / 346.2 MB, free: 5.598 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004812/0.4614, allocations: 313.1 kB / 346.5 MB, free: 5.285 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000151/0.4616, allocations: 57.69 kB / 346.5 MB, free: 5.223 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003256/0.4619, allocations: 313 kB / 346.8 MB, free: 4.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003183/0.4622, allocations: 240.8 kB / 347.1 MB, free: 4.672 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.249e-05/0.4623, allocations: 0 / 347.1 MB, free: 4.672 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002151/0.4625, allocations: 370.8 kB / 347.4 MB, free: 4.301 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007981/0.4633, allocations: 282.5 kB / 347.7 MB, free: 4.023 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/0.4644, allocations: 0.4884 MB / 348.2 MB, free: 3.457 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000884/0.4653, allocations: 286.2 kB / 348.5 MB, free: 3.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.4653, allocations: 4 kB / 348.5 MB, free: 3.176 MB / 298.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002236/0.4675, allocations: 0.8439 MB / 349.3 MB, free: 2.324 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.188e-05/0.4676, allocations: 15.55 kB / 349.3 MB, free: 2.312 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.681e-05/0.4676, allocations: 4 kB / 349.3 MB, free: 2.309 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.712e-05/0.4676, allocations: 16 kB / 349.3 MB, free: 2.293 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007363/0.4684, allocations: 123.6 kB / 349.5 MB, free: 2.172 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.499e-05/0.4684, allocations: 15.94 kB / 349.5 MB, free: 2.156 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005497/0.469, allocations: 52.5 kB / 349.5 MB, free: 2.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000142/0.4692, allocations: 55.98 kB / 349.6 MB, free: 2.051 MB / 298.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.0003401/0.4695, allocations: 203.9 kB / 349.8 MB, free: 1.844 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001637/0.4712, allocations: 0.6331 MB / 350.4 MB, free: 1.203 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.4713, allocations: 51.39 kB / 350.5 MB, free: 1.152 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001926/0.4732, allocations: 0.6909 MB / 351.2 MB, free: 468 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.491e-05/0.4733, allocations: 12 kB / 351.2 MB, free: 456 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.4733, allocations: 0 / 351.2 MB, free: 456 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.767e-05/0.4733, allocations: 3.984 kB / 351.2 MB, free: 452 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004203/0.4775, allocations: 1.63 MB / 352.8 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.4776, allocations: 0 / 352.8 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005104/0.4781, allocations: 67.83 kB / 352.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-05/0.4781, allocations: 4 kB / 352.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.253e-05/0.4782, allocations: 15.97 kB / 352.9 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.051e-05/0.4782, allocations: 7.953 kB / 352.9 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.4782, allocations: 3.984 kB / 352.9 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.4799, allocations: 0.7585 MB / 353.7 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/0.4801, allocations: 116.5 kB / 353.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/0.4802, allocations: 11.98 kB / 353.8 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004129/0.4806, allocations: 27.97 kB / 353.8 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004061/0.4811, allocations: 133.1 kB / 353.9 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.684e-05/0.4812, allocations: 35.98 kB / 354 MB, free: 13.55 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002081/0.4814, allocations: 162 kB / 354.1 MB, free: 13.4 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4814, allocations: 0 / 354.1 MB, free: 13.4 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009314/0.4823, allocations: 135.9 kB / 354.3 MB, free: 13.27 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.002263/0.4846, allocations: 1.353 MB / 355.6 MB, free: 11.88 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001938/0.4866, allocations: 0.7556 MB / 356.4 MB, free: 11.13 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.4866, allocations: 4 kB / 356.4 MB, free: 11.12 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008458/0.4875, allocations: 374.6 kB / 356.7 MB, free: 10.76 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006074/0.4881, allocations: 72.34 kB / 356.8 MB, free: 10.69 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003722/0.4918, allocations: 1.135 MB / 358 MB, free: 9.52 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007565/0.4926, allocations: 0.9741 MB / 358.9 MB, free: 8.516 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006542/0.4933, allocations: 118.2 kB / 359 MB, free: 8.398 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007356/0.494, allocations: 283.3 kB / 359.3 MB, free: 8.121 MB / 314.7 MB Notification: Performance of SimCode: time 1.022e-06/0.494, allocations: 0 / 359.3 MB, free: 8.121 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3278/0.8219, allocations: 12.96 MB / 372.3 MB, free: 90.03 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002257/0.8222, allocations: 131.8 kB / 372.4 MB, free: 89.84 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.839/3.662, allocations: 0 / 372.4 MB, free: 89.84 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.StateGraph.Examples.ShowCompositeStep_res.mat does not exist to compare? outputFormat=mat