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.829/1.829, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.386e-05/2.399e-05, allocations: 4 kB / 255.3 MB, free: 3.211 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07769/0.07774, allocations: 44.51 MB / 299.8 MB, free: 6.641 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3814/0.4592, allocations: 72.4 MB / 372.2 MB, free: 21.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001952/0.4594, allocations: 68.89 kB / 372.3 MB, free: 21.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0456/0.5051, allocations: 13.51 MB / 385.8 MB, free: 20.74 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.946e-06/0.5051, allocations: 0 / 385.8 MB, free: 20.74 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.318e-05/0.5052, allocations: 28.38 kB / 385.8 MB, free: 20.74 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.001703/0.5069, allocations: 0.9179 MB / 386.8 MB, free: 20.15 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.5069, allocations: 9.031 kB / 386.8 MB, free: 20.15 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002556/0.5072, allocations: 98.53 kB / 386.9 MB, free: 20.1 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008655/0.5081, allocations: 0.4885 MB / 387.3 MB, free: 19.85 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001185/0.5082, allocations: 94.89 kB / 387.4 MB, free: 19.85 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001948/0.5084, allocations: 109.7 kB / 387.5 MB, free: 19.85 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002283/0.5107, allocations: 1.008 MB / 388.6 MB, free: 19.74 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.242e-05/0.5108, allocations: 3.938 kB / 388.6 MB, free: 19.74 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001164/0.5109, allocations: 45.55 kB / 388.6 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.502e-05/0.511, allocations: 28.7 kB / 388.6 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001897/0.5129, allocations: 0.8108 MB / 389.4 MB, free: 19.72 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004484/0.5174, allocations: 2.903 MB / 392.3 MB, free: 18.66 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001391/0.5188, allocations: 0.7095 MB / 393.1 MB, free: 18.62 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006859/0.5195, allocations: 365.3 kB / 393.4 MB, free: 18.61 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.662e-05/0.5196, allocations: 12.56 kB / 393.4 MB, free: 18.6 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008266/0.5204, allocations: 428.8 kB / 393.8 MB, free: 18.53 MB / 314.7 MB Notification: Performance of pre-optimization done (n=104): time 5.203e-06/0.5205, allocations: 0 / 393.8 MB, free: 18.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.001524/0.522, allocations: 0.6717 MB / 394.5 MB, free: 18.45 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/0.5221, allocations: 74.81 kB / 394.6 MB, free: 18.39 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003809/0.5225, allocations: 322 kB / 394.9 MB, free: 18.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001232/0.5226, allocations: 75.83 kB / 395 MB, free: 18.22 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.5228, allocations: 375.8 kB / 395.3 MB, free: 17.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002073/0.523, allocations: 259.7 kB / 395.6 MB, free: 17.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.879e-05/0.5231, allocations: 25.53 kB / 395.6 MB, free: 17.84 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.5232, allocations: 364.4 kB / 396 MB, free: 17.52 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007285/0.524, allocations: 300.5 kB / 396.3 MB, free: 17.52 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007941/0.5248, allocations: 0.52 MB / 396.8 MB, free: 17.29 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007213/0.5255, allocations: 322 kB / 397.1 MB, free: 17.26 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.926e-06/0.5255, allocations: 3.906 kB / 397.1 MB, free: 17.26 MB / 314.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.00192/0.5275, allocations: 0.9419 MB / 398 MB, free: 17.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.5275, allocations: 7.812 kB / 398.1 MB, free: 17.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.5275, allocations: 3.938 kB / 398.1 MB, free: 17.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.942e-05/0.5276, allocations: 15.62 kB / 398.1 MB, free: 17.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005332/0.5281, allocations: 121.9 kB / 398.2 MB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.381e-05/0.5282, allocations: 15.75 kB / 398.2 MB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004955/0.5287, allocations: 80 kB / 398.3 MB, free: 17.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.5288, allocations: 53.27 kB / 398.3 MB, free: 17.09 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.0002662/0.5291, allocations: 247 kB / 398.6 MB, free: 16.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.5292, allocations: 58.19 kB / 398.6 MB, free: 16.89 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001608/0.5308, allocations: 0.7558 MB / 399.4 MB, free: 16.83 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/0.5309, allocations: 10.95 kB / 399.4 MB, free: 16.83 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.05e-06/0.5309, allocations: 0 / 399.4 MB, free: 16.83 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.5309, allocations: 6.719 kB / 399.4 MB, free: 16.83 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003593/0.5345, allocations: 1.813 MB / 401.2 MB, free: 16.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.393e-06/0.5346, allocations: 0 / 401.2 MB, free: 16.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003747/0.5349, allocations: 77.48 kB / 401.3 MB, free: 16.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.268e-05/0.535, allocations: 3.906 kB / 401.3 MB, free: 16.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.335e-05/0.535, allocations: 22.36 kB / 401.3 MB, free: 16.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.739e-06/0.5351, allocations: 3.906 kB / 401.3 MB, free: 16.43 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5351, allocations: 0 / 401.3 MB, free: 16.43 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.5365, allocations: 0.804 MB / 402.1 MB, free: 16.24 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.583e-05/0.5366, allocations: 139.9 kB / 402.3 MB, free: 16.1 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.5367, allocations: 26.11 kB / 402.3 MB, free: 16.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003507/0.537, allocations: 37.94 kB / 402.3 MB, free: 16.1 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002901/0.5373, allocations: 130.8 kB / 402.5 MB, free: 16.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.717e-05/0.5374, allocations: 34.02 kB / 402.5 MB, free: 16.1 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001584/0.5376, allocations: 170.2 kB / 402.7 MB, free: 16.01 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.15e-07/0.5376, allocations: 0 / 402.7 MB, free: 16.01 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007935/0.5384, allocations: 172.7 kB / 402.8 MB, free: 16.01 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.0002338/0.5387, allocations: 175.5 kB / 403 MB, free: 15.89 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001481/0.5402, allocations: 0.817 MB / 403.8 MB, free: 15.83 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.999e-06/0.5402, allocations: 3.938 kB / 403.8 MB, free: 15.83 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006994/0.5409, allocations: 392.6 kB / 404.2 MB, free: 15.8 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004723/0.5414, allocations: 65.66 kB / 404.3 MB, free: 15.8 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002559/0.544, allocations: 1.088 MB / 405.4 MB, free: 15.49 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004399/0.5444, allocations: 0.9585 MB / 406.3 MB, free: 14.78 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003422/0.5448, allocations: 82.69 kB / 406.4 MB, free: 14.77 MB / 314.7 MB Notification: Performance of SimCode: time 1.752e-06/0.5448, allocations: 0 / 406.4 MB, free: 14.77 MB / 314.7 MB Notification: Performance of Templates: time 0.01535/0.5602, allocations: 9.766 MB / 416.2 MB, free: 11.21 MB / 314.7 MB