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.925/1.925, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.166e-05/3.181e-05, allocations: 7.938 kB / 255.4 MB, free: 3.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0799/0.07995, allocations: 44.5 MB / 299.8 MB, free: 6.629 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3161/0.3961, allocations: 72.42 MB / 372.3 MB, free: 21.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/0.3963, allocations: 66.39 kB / 372.3 MB, free: 21.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04615/0.4425, allocations: 13.51 MB / 385.8 MB, free: 20.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.28e-06/0.4425, allocations: 0 / 385.8 MB, free: 20.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.614e-05/0.4426, allocations: 23.25 kB / 385.9 MB, free: 20.27 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.001667/0.4443, allocations: 0.9199 MB / 386.8 MB, free: 19.68 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.4443, allocations: 9.625 kB / 386.8 MB, free: 19.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002348/0.4446, allocations: 100.4 kB / 386.9 MB, free: 19.63 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008046/0.4454, allocations: 494.9 kB / 387.4 MB, free: 19.38 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000121/0.4455, allocations: 90.66 kB / 387.5 MB, free: 19.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002159/0.4458, allocations: 116.1 kB / 387.6 MB, free: 19.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002249/0.448, allocations: 0.9945 MB / 388.6 MB, free: 19.28 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3e-05/0.4481, allocations: 1.562 kB / 388.6 MB, free: 19.28 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001152/0.4482, allocations: 42.61 kB / 388.6 MB, free: 19.28 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.623e-05/0.4483, allocations: 28 kB / 388.6 MB, free: 19.27 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001907/0.4502, allocations: 0.8013 MB / 389.4 MB, free: 19.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004718/0.4549, allocations: 2.907 MB / 392.3 MB, free: 18.2 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001459/0.4564, allocations: 0.694 MB / 393 MB, free: 18.16 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007285/0.4572, allocations: 365.4 kB / 393.4 MB, free: 18.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.765e-05/0.4573, allocations: 19.42 kB / 393.4 MB, free: 18.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008525/0.4581, allocations: 412.7 kB / 393.8 MB, free: 18.08 MB / 314.7 MB Notification: Performance of pre-optimization done (n=104): time 4.956e-06/0.4582, allocations: 3.938 kB / 393.8 MB, free: 18.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.001583/0.4597, allocations: 0.6706 MB / 394.5 MB, free: 17.99 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/0.4598, allocations: 78.83 kB / 394.6 MB, free: 17.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004424/0.4603, allocations: 320.8 kB / 394.9 MB, free: 17.8 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000156/0.4604, allocations: 78.72 kB / 395 MB, free: 17.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002333/0.4607, allocations: 370.8 kB / 395.3 MB, free: 17.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002236/0.4609, allocations: 252.7 kB / 395.6 MB, free: 17.39 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.518e-05/0.461, allocations: 32.78 kB / 395.6 MB, free: 17.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.882e-05/0.4611, allocations: 366 kB / 396 MB, free: 17.07 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006892/0.4618, allocations: 302.6 kB / 396.3 MB, free: 17.07 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008685/0.4627, allocations: 0.5119 MB / 396.8 MB, free: 16.83 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007474/0.4635, allocations: 318.1 kB / 397.1 MB, free: 16.81 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.198e-06/0.4635, allocations: 4 kB / 397.1 MB, free: 16.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.001971/0.4655, allocations: 0.9216 MB / 398 MB, free: 16.68 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/0.4655, allocations: 11.75 kB / 398 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.4656, allocations: 7.422 kB / 398 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.274e-05/0.4656, allocations: 11.81 kB / 398 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004997/0.4661, allocations: 126.8 kB / 398.2 MB, free: 16.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.304e-05/0.4661, allocations: 18.8 kB / 398.2 MB, free: 16.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004866/0.4666, allocations: 76.56 kB / 398.3 MB, free: 16.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/0.4668, allocations: 53.11 kB / 398.3 MB, free: 16.64 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.0002631/0.4671, allocations: 247.6 kB / 398.5 MB, free: 16.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.4672, allocations: 50.75 kB / 398.6 MB, free: 16.45 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001613/0.4688, allocations: 0.7693 MB / 399.4 MB, free: 16.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.4688, allocations: 7.812 kB / 399.4 MB, free: 16.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.011e-06/0.4689, allocations: 3.906 kB / 399.4 MB, free: 16.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.409e-05/0.4689, allocations: 6.844 kB / 399.4 MB, free: 16.38 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003693/0.4726, allocations: 1.803 MB / 401.2 MB, free: 16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.17e-06/0.4726, allocations: 4 kB / 401.2 MB, free: 15.99 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003816/0.473, allocations: 75.16 kB / 401.3 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.27e-05/0.4731, allocations: 3.812 kB / 401.3 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.475e-05/0.4731, allocations: 18 kB / 401.3 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.376e-06/0.4732, allocations: 7.844 kB / 401.3 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.486e-06/0.4732, allocations: 0 / 401.3 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001454/0.4746, allocations: 0.7973 MB / 402.1 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.871e-05/0.4747, allocations: 135.8 kB / 402.2 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.4749, allocations: 29.44 kB / 402.3 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003581/0.4752, allocations: 38.08 kB / 402.3 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000321/0.4756, allocations: 134.4 kB / 402.4 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-05/0.4757, allocations: 34.66 kB / 402.5 MB, free: 15.66 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001793/0.4759, allocations: 163.3 kB / 402.6 MB, free: 15.57 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.54e-07/0.4759, allocations: 0 / 402.6 MB, free: 15.57 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008665/0.4768, allocations: 181.4 kB / 402.8 MB, free: 15.57 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.0002553/0.477, allocations: 171 kB / 403 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001614/0.4787, allocations: 0.7924 MB / 403.8 MB, free: 15.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.763e-06/0.4787, allocations: 4.312 kB / 403.8 MB, free: 15.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007313/0.4794, allocations: 387.3 kB / 404.1 MB, free: 15.38 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005069/0.48, allocations: 79.34 kB / 404.2 MB, free: 15.37 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002652/0.4826, allocations: 1.079 MB / 405.3 MB, free: 15.06 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004672/0.4831, allocations: 0.9624 MB / 406.3 MB, free: 14.34 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004079/0.4836, allocations: 80.72 kB / 406.3 MB, free: 14.34 MB / 314.7 MB Notification: Performance of SimCode: time 1.974e-06/0.4836, allocations: 0 / 406.3 MB, free: 14.34 MB / 314.7 MB Notification: Performance of Templates: time 0.01571/0.4993, allocations: 9.717 MB / 416 MB, free: 10.8 MB / 314.7 MB