Running command: translateModel(Modelica.StateGraph.Examples.ShowCompositeStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|compositeStep.transition3.enableFire|compositeStep.transition4.enableFire|compositeStep.transition4a.enableFire|compositeStep.transition5.enableFire|compositeStep.transition6.enableFire|compositeStep.transition6a.enableFire|transition1.enableFire|transition2.enableFire|transition7.enableFire",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.ShowCompositeStep") Notification: Performance of loadModel(Modelica): time 1.934/1.934, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.405e-05/3.427e-05, allocations: 8 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2853/0.2853, allocations: 44.5 MB / 294.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1138/0.3992, allocations: 71.76 MB / 365.9 MB, free: 10.22 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002193/0.3995, allocations: 67.97 kB / 365.9 MB, free: 10.16 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04883/0.4483, allocations: 13.18 MB / 379.1 MB, free: 12.89 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.889e-06/0.4484, allocations: 4 kB / 379.1 MB, free: 12.89 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.387e-05/0.4484, allocations: 27.94 kB / 379.1 MB, free: 12.86 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.001939/0.4504, allocations: 0.9075 MB / 380 MB, free: 11.88 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.4504, allocations: 12.03 kB / 380.1 MB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000261/0.4507, allocations: 102.9 kB / 380.2 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009797/0.4517, allocations: 494.1 kB / 380.6 MB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.233e-05/0.4518, allocations: 40 kB / 380.7 MB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001838/0.452, allocations: 75.92 kB / 380.8 MB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002092/0.4541, allocations: 0.7536 MB / 381.5 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002269/0.4564, allocations: 0.8792 MB / 382.4 MB, free: 9.469 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.372e-05/0.4565, allocations: 3.938 kB / 382.4 MB, free: 9.465 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.57e-05/0.4566, allocations: 0 / 382.4 MB, free: 9.465 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.358e-05/0.4566, allocations: 24 kB / 382.4 MB, free: 9.441 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005453/0.4621, allocations: 2.73 MB / 385.1 MB, free: 6.609 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001522/0.4637, allocations: 0.662 MB / 385.8 MB, free: 5.938 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007115/0.4644, allocations: 343.1 kB / 386.1 MB, free: 5.602 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.193e-05/0.4645, allocations: 8.781 kB / 386.2 MB, free: 5.594 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009108/0.4654, allocations: 394.4 kB / 386.5 MB, free: 5.195 MB / 330.7 MB Notification: Performance of pre-optimization done (n=104): time 5.384e-06/0.4654, allocations: 0 / 386.5 MB, free: 5.195 MB / 330.7 MB Notification: Performance of matching and sorting (n=104): time 0.001658/0.4671, allocations: 0.6292 MB / 387.2 MB, free: 4.559 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.535e-05/0.4672, allocations: 72.91 kB / 387.2 MB, free: 4.477 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004837/0.4677, allocations: 313.1 kB / 387.5 MB, free: 4.168 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001792/0.4679, allocations: 57.69 kB / 387.6 MB, free: 4.105 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003646/0.4683, allocations: 375.4 kB / 388 MB, free: 3.734 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003228/0.4686, allocations: 244.9 kB / 388.2 MB, free: 3.492 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.324e-05/0.4687, allocations: 0 / 388.2 MB, free: 3.492 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002296/0.4689, allocations: 362.7 kB / 388.6 MB, free: 3.129 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007606/0.4697, allocations: 274.6 kB / 388.8 MB, free: 2.859 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009518/0.4707, allocations: 0.4922 MB / 389.3 MB, free: 2.285 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008421/0.4715, allocations: 290.2 kB / 389.6 MB, free: 2.004 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.985e-06/0.4715, allocations: 4 kB / 389.6 MB, free: 2 MB / 330.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002156/0.4737, allocations: 0.8324 MB / 390.4 MB, free: 1.16 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.4738, allocations: 10.03 kB / 390.4 MB, free: 1.152 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.757e-05/0.4738, allocations: 8 kB / 390.5 MB, free: 1.145 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.853e-05/0.4738, allocations: 12 kB / 390.5 MB, free: 1.133 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005448/0.4744, allocations: 123.6 kB / 390.6 MB, free: 1.012 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.996e-05/0.4744, allocations: 12 kB / 390.6 MB, free: 1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004942/0.4749, allocations: 51.97 kB / 390.7 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000134/0.4751, allocations: 55.98 kB / 390.7 MB, free: 0.8945 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.0003288/0.4754, allocations: 211.6 kB / 390.9 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001366/0.4756, allocations: 55.33 kB / 391 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001844/0.4774, allocations: 0.691 MB / 391.7 MB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.579e-05/0.4775, allocations: 12 kB / 391.7 MB, free: 15.92 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.086e-06/0.4775, allocations: 0 / 391.7 MB, free: 15.92 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.4775, allocations: 7.922 kB / 391.7 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00393/0.4815, allocations: 1.622 MB / 393.3 MB, free: 14.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.441e-06/0.4815, allocations: 4 kB / 393.3 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003755/0.4819, allocations: 71.83 kB / 393.4 MB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.584e-05/0.4819, allocations: 7.953 kB / 393.4 MB, free: 14.16 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.939e-05/0.482, allocations: 11.98 kB / 393.4 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-06/0.482, allocations: 0 / 393.4 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.606e-06/0.482, allocations: 4 kB / 393.4 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001613/0.4836, allocations: 0.7545 MB / 394.2 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001341/0.4838, allocations: 124.4 kB / 394.3 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.716e-05/0.4839, allocations: 11.95 kB / 394.3 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003307/0.4843, allocations: 27.97 kB / 394.3 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00036/0.4846, allocations: 137.1 kB / 394.4 MB, free: 13.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.429e-05/0.4847, allocations: 31.98 kB / 394.5 MB, free: 13.03 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002057/0.485, allocations: 154 kB / 394.6 MB, free: 12.88 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.98e-07/0.485, allocations: 0 / 394.6 MB, free: 12.88 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008545/0.4858, allocations: 144 kB / 394.8 MB, free: 12.73 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.0003022/0.4862, allocations: 159.3 kB / 394.9 MB, free: 12.56 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001728/0.4879, allocations: 0.757 MB / 395.7 MB, free: 11.81 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.4879, allocations: 4.25 kB / 395.7 MB, free: 11.8 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007517/0.4887, allocations: 364.9 kB / 396 MB, free: 11.45 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005065/0.4892, allocations: 60.39 kB / 396.1 MB, free: 11.39 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002923/0.4922, allocations: 1.034 MB / 397.1 MB, free: 10.33 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008231/0.493, allocations: 0.9701 MB / 398.1 MB, free: 9.328 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004072/0.4934, allocations: 83.39 kB / 398.2 MB, free: 9.246 MB / 346.7 MB Notification: Performance of SimCode: time 2.128e-06/0.4935, allocations: 0 / 398.2 MB, free: 9.246 MB / 346.7 MB Notification: Performance of Templates: time 0.01935/0.5128, allocations: 9.694 MB / 407.9 MB, free: 15.54 MB / 362.7 MB