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_Modelica.StateGraph.Examples.ShowCompositeStep") Notification: Performance of loadModel(Modelica): time 1.758/1.758, allocations: 194.9 MB / 208 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.77e-05/2.793e-05, allocations: 4 kB / 255.4 MB, free: 2.719 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07688/0.07693, allocations: 44.5 MB / 299.9 MB, free: 6.152 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3186/0.3955, allocations: 72.42 MB / 372.3 MB, free: 22.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/0.3958, allocations: 67 kB / 372.4 MB, free: 22.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04553/0.4413, allocations: 13.51 MB / 385.9 MB, free: 21.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.155e-06/0.4414, allocations: 0 / 385.9 MB, free: 21.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.405e-05/0.4414, allocations: 24.62 kB / 385.9 MB, free: 21.22 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.001605/0.4431, allocations: 0.919 MB / 386.8 MB, free: 20.63 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.4431, allocations: 10.62 kB / 386.8 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002336/0.4434, allocations: 100.4 kB / 386.9 MB, free: 20.58 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008062/0.4442, allocations: 493.2 kB / 387.4 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001069/0.4443, allocations: 95.81 kB / 387.5 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001919/0.4445, allocations: 116.5 kB / 387.6 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002174/0.4467, allocations: 0.9998 MB / 388.6 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.975e-05/0.4467, allocations: 0 / 388.6 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/0.4469, allocations: 38.72 kB / 388.6 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.691e-05/0.4469, allocations: 24.03 kB / 388.7 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001909/0.4488, allocations: 0.8025 MB / 389.5 MB, free: 20.22 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005994/0.4548, allocations: 2.908 MB / 392.4 MB, free: 19.15 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002452/0.4574, allocations: 0.6951 MB / 393.1 MB, free: 19.11 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001048/0.4584, allocations: 360.8 kB / 393.4 MB, free: 19.1 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001038/0.4586, allocations: 19.73 kB / 393.4 MB, free: 19.1 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001281/0.4599, allocations: 406.9 kB / 393.8 MB, free: 19.04 MB / 314.7 MB Notification: Performance of pre-optimization done (n=104): time 7.537e-06/0.4599, allocations: 4 kB / 393.8 MB, free: 19.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.002344/0.4623, allocations: 0.679 MB / 394.5 MB, free: 18.95 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.735e-05/0.4624, allocations: 71.28 kB / 394.6 MB, free: 18.88 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000569/0.463, allocations: 319.5 kB / 394.9 MB, free: 18.75 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002176/0.4632, allocations: 80.55 kB / 395 MB, free: 18.72 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003023/0.4636, allocations: 317.3 kB / 395.3 MB, free: 18.54 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003427/0.4639, allocations: 247 kB / 395.5 MB, free: 18.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.4641, allocations: 25.34 kB / 395.6 MB, free: 18.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.4642, allocations: 380.5 kB / 395.9 MB, free: 18.09 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/0.4654, allocations: 310.7 kB / 396.2 MB, free: 18.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001296/0.4668, allocations: 0.5122 MB / 396.7 MB, free: 17.86 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.468, allocations: 313.8 kB / 397.1 MB, free: 17.83 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.267e-05/0.468, allocations: 0 / 397.1 MB, free: 17.83 MB / 314.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002655/0.4707, allocations: 0.9476 MB / 398 MB, free: 17.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.767e-05/0.4707, allocations: 7.812 kB / 398 MB, free: 17.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.4708, allocations: 3.906 kB / 398 MB, free: 17.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.334e-05/0.4708, allocations: 11.75 kB / 398 MB, free: 17.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005704/0.4714, allocations: 127.9 kB / 398.1 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.242e-05/0.4714, allocations: 11.62 kB / 398.2 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005394/0.472, allocations: 79.59 kB / 398.2 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001332/0.4721, allocations: 50.59 kB / 398.3 MB, free: 17.66 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.0002942/0.4724, allocations: 252.9 kB / 398.5 MB, free: 17.49 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.4726, allocations: 47.81 kB / 398.6 MB, free: 17.47 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001642/0.4742, allocations: 0.7717 MB / 399.3 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.4743, allocations: 7.812 kB / 399.4 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.052e-06/0.4743, allocations: 0 / 399.4 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/0.4743, allocations: 7.328 kB / 399.4 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003463/0.4778, allocations: 1.812 MB / 401.2 MB, free: 17.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.88e-06/0.4778, allocations: 0 / 401.2 MB, free: 17.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003572/0.4782, allocations: 69.64 kB / 401.2 MB, free: 17 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-05/0.4782, allocations: 7.812 kB / 401.3 MB, free: 17 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.357e-05/0.4783, allocations: 30.19 kB / 401.3 MB, free: 17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.652e-06/0.4783, allocations: 3.812 kB / 401.3 MB, free: 17 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.629e-06/0.4783, allocations: 0 / 401.3 MB, free: 17 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/0.4798, allocations: 0.7955 MB / 402.1 MB, free: 16.81 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.75e-05/0.4799, allocations: 131.9 kB / 402.2 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.48, allocations: 21.48 kB / 402.2 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000381/0.4804, allocations: 49.73 kB / 402.3 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003223/0.4807, allocations: 128.3 kB / 402.4 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.213e-05/0.4808, allocations: 34.95 kB / 402.4 MB, free: 16.68 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00018/0.481, allocations: 166.6 kB / 402.6 MB, free: 16.59 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.481, allocations: 0 / 402.6 MB, free: 16.59 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000902/0.482, allocations: 171.1 kB / 402.8 MB, free: 16.59 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.0002494/0.4822, allocations: 180.2 kB / 402.9 MB, free: 16.46 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001559/0.4838, allocations: 0.793 MB / 403.7 MB, free: 16.42 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.944e-06/0.4838, allocations: 0 / 403.7 MB, free: 16.42 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007293/0.4846, allocations: 391.5 kB / 404.1 MB, free: 16.4 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005274/0.4851, allocations: 76.05 kB / 404.2 MB, free: 16.39 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002644/0.4878, allocations: 1.067 MB / 405.3 MB, free: 16.11 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004812/0.4883, allocations: 0.9735 MB / 406.2 MB, free: 15.4 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006224/0.4889, allocations: 121.1 kB / 406.4 MB, free: 15.37 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003183/0.4893, allocations: 72.48 kB / 406.4 MB, free: 15.36 MB / 314.7 MB Notification: Performance of SimCode: time 1.668e-06/0.4893, allocations: 3.938 kB / 406.4 MB, free: 15.36 MB / 314.7 MB Notification: Performance of Templates: time 0.02032/0.5096, allocations: 7.442 MB / 413.9 MB, free: 12.87 MB / 314.7 MB