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 2.087/2.087, allocations: 194.9 MB / 210.6 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.516e-05/2.503e-05, allocations: 4 kB / 258.8 MB, free: 8.062 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.3049, allocations: 44.51 MB / 303.3 MB, free: 12.95 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.ShowCompositeStep): time 0.004008/0.309, allocations: 2.222 MB / 305.5 MB, free: 11.16 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002667/0.3117, allocations: 0.9086 MB / 306.4 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004249/0.3122, allocations: 31.97 kB / 306.5 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002946/0.3125, allocations: 91.23 kB / 306.6 MB, free: 10.34 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003319/0.3129, allocations: 55.78 kB / 306.6 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001299/0.3142, allocations: 391.4 kB / 307 MB, free: 9.906 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001256/0.3154, allocations: 0.6131 MB / 307.6 MB, free: 9.293 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001139/0.3166, allocations: 0.5871 MB / 308.2 MB, free: 8.691 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003873/0.317, allocations: 263.4 kB / 308.4 MB, free: 8.434 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005/0.3175, allocations: 310.8 kB / 308.8 MB, free: 8.129 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001985/0.3177, allocations: 55.98 kB / 308.8 MB, free: 8.074 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001257/0.3179, allocations: 44 kB / 308.9 MB, free: 8.031 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002567/0.3182, allocations: 187.4 kB / 309 MB, free: 7.848 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.3183, allocations: 48 kB / 309.1 MB, free: 7.801 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001386/0.3197, allocations: 0.922 MB / 310 MB, free: 6.879 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.3197, allocations: 0 / 310 MB, free: 6.879 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3197, allocations: 0 / 310 MB, free: 6.879 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.042e-05/0.3198, allocations: 0 / 310 MB, free: 6.879 MB / 250.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.002245/0.322, allocations: 0.919 MB / 310.9 MB, free: 5.898 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.3221, allocations: 8.031 kB / 310.9 MB, free: 5.891 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002592/0.3224, allocations: 98.88 kB / 311 MB, free: 5.793 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009605/0.3233, allocations: 0.4897 MB / 311.5 MB, free: 5.262 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/0.3235, allocations: 94 kB / 311.6 MB, free: 5.168 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002369/0.3237, allocations: 116 kB / 311.7 MB, free: 5.055 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002742/0.3265, allocations: 1.031 MB / 312.8 MB, free: 4 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.267e-05/0.3265, allocations: 0 / 312.8 MB, free: 4 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001377/0.3267, allocations: 39.98 kB / 312.8 MB, free: 3.961 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.034e-05/0.3267, allocations: 24 kB / 312.8 MB, free: 3.938 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002528/0.3293, allocations: 0.8431 MB / 313.7 MB, free: 3.094 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006638/0.3359, allocations: 2.971 MB / 316.6 MB, free: 16 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0021/0.3381, allocations: 0.722 MB / 317.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001053/0.3383, allocations: 20.97 kB / 317.4 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/0.3394, allocations: 425 kB / 317.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=104): time 4.398e-06/0.3395, allocations: 4.469 kB / 317.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=104): time 0.002832/0.3423, allocations: 0.949 MB / 318.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.387e-05/0.3424, allocations: 68.41 kB / 318.8 MB, free: 13.8 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005372/0.343, allocations: 328.7 kB / 319.1 MB, free: 13.47 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002086/0.3432, allocations: 77.69 kB / 319.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003608/0.3436, allocations: 313 kB / 319.5 MB, free: 13.08 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000372/0.344, allocations: 260.6 kB / 319.8 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.3441, allocations: 24 kB / 319.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.3443, allocations: 378.7 kB / 320.2 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009651/0.3453, allocations: 318.5 kB / 320.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001169/0.3465, allocations: 0.5333 MB / 321 MB, free: 11.49 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009695/0.3474, allocations: 314.4 kB / 321.3 MB, free: 11.18 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.675e-06/0.3475, allocations: 4 kB / 321.3 MB, free: 11.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002701/0.3502, allocations: 0.9684 MB / 322.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.711e-05/0.3503, allocations: 8.938 kB / 322.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.451e-05/0.3503, allocations: 12.75 kB / 322.3 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.772e-05/0.3504, allocations: 12 kB / 322.3 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008033/0.3512, allocations: 127.6 kB / 322.4 MB, free: 10.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.14e-05/0.3512, allocations: 15.94 kB / 322.5 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006861/0.3519, allocations: 122.9 kB / 322.6 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001812/0.3521, allocations: 47.98 kB / 322.6 MB, free: 9.863 MB / 266.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.transition6a.condition,compositeStep.transition4a.condition,compositeStep.transition6.condition,compositeStep.transition5.condition,compositeStep.transition4.condition,compositeStep.transition3.condition,compositeStep.resume[1].set,compositeStep.suspend[1].reset,$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,compositeStep.step3.active,$PRE.compositeStep.step3.localActive,compositeStep.step3.localActive,$PRE.compositeStep.step3.newActive,compositeStep.step3.newActive,$PRE.compositeStep.step3.oldActive,compositeStep.step3.oldActive,compositeStep.step4.active,$PRE.compositeStep.step4.localActive,compositeStep.step4.localActive,$PRE.compositeStep.step4.newActive,compositeStep.step4.newActive,$PRE.compositeStep.step4.oldActive,compositeStep.step4.oldActive,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,compositeStep.step4a.active,$PRE.compositeStep.step4a.localActive,compositeStep.step4a.localActive,$PRE.compositeStep.step4a.newActive,compositeStep.step4a.newActive,$PRE.compositeStep.step4a.oldActive,compositeStep.step4a.oldActive,compositeStep.transition6a.enableFire,compositeStep.transition6a.fire,$PRE.compositeStep.transition6a.t_start,compositeStep.transition6a.t_start,compositeStep.initStep.active,$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.exitStep.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.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,step0.active,$PRE.step0.localActive,step0.localActive,$PRE.step0.newActive,step0.newActive,$PRE.step0.oldActive,step0.oldActive,transition1.enableFire,transition1.fire,transition1.outPort.occupied,$PRE.transition1.t_start,transition1.t_start,step1.active,$PRE.step1.localActive,step1.localActive,$PRE.step1.newActive,step1.newActive,$PRE.step1.oldActive,step1.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,step6.active,$PRE.step6.localActive,step6.localActive,$PRE.step6.newActive,step6.newActive,$PRE.step6.oldActive,step6.oldActive,transition7.condition,transition7.enableFire,Parallel1.outPort.available,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.0008476/0.353, allocations: 356.8 kB / 323 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001854/0.3532, allocations: 51.34 kB / 323 MB, free: 9.453 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002272/0.3555, allocations: 0.777 MB / 323.8 MB, free: 8.668 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.052e-05/0.3555, allocations: 12 kB / 323.8 MB, free: 8.656 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.3556, allocations: 0 / 323.8 MB, free: 8.656 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.795e-05/0.3556, allocations: 7.969 kB / 323.8 MB, free: 8.648 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00492/0.3605, allocations: 1.862 MB / 325.7 MB, free: 6.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.675e-06/0.3606, allocations: 0 / 325.7 MB, free: 6.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005493/0.3611, allocations: 79.72 kB / 325.8 MB, free: 6.652 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.497e-05/0.3612, allocations: 4 kB / 325.8 MB, free: 6.648 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.527e-05/0.3612, allocations: 19.98 kB / 325.8 MB, free: 6.629 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.227e-05/0.3613, allocations: 4 kB / 325.8 MB, free: 6.625 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3613, allocations: 0 / 325.8 MB, free: 6.625 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001974/0.3633, allocations: 0.8162 MB / 326.6 MB, free: 5.793 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001659/0.3635, allocations: 136.2 kB / 326.7 MB, free: 5.641 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.3636, allocations: 27.95 kB / 326.8 MB, free: 5.613 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004886/0.3641, allocations: 39.97 kB / 326.8 MB, free: 5.574 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004342/0.3646, allocations: 136.8 kB / 326.9 MB, free: 5.438 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.3647, allocations: 35.98 kB / 327 MB, free: 5.402 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002482/0.365, allocations: 166 kB / 327.1 MB, free: 5.238 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.365, allocations: 0 / 327.1 MB, free: 5.238 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000976/0.366, allocations: 219.2 kB / 327.3 MB, free: 5.023 MB / 266.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.active,compositeStep.step3.newActive,compositeStep.step3.oldActive,compositeStep.step4.active,compositeStep.step4.newActive,compositeStep.step4.oldActive,compositeStep.transition5.fire,compositeStep.transition5.t_start,compositeStep.transition6.fire,compositeStep.transition6.t_start,compositeStep.transition4a.fire,compositeStep.transition4a.t_start,compositeStep.step4a.active,compositeStep.step4a.newActive,compositeStep.step4a.oldActive,compositeStep.transition6a.fire,compositeStep.transition6a.t_start,compositeStep.initStep.active,compositeStep.initStep.outPort[1].reset,compositeStep.initStep.newActive,compositeStep.initStep.oldActive,compositeStep.exitStep.active,compositeStep.exitStep.inPort[1].set,compositeStep.exitStep.newActive,compositeStep.exitStep.oldActive,compositeStep.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,step0.active,step0.newActive,step0.oldActive,transition1.fire,transition1.outPort.occupied,transition1.t_start,step1.active,step1.newActive,step1.oldActive,transition2.fire,transition2.t_start,step6.active,step6.newActive,step6.oldActive,transition7.condition,transition7.enableFire,Parallel1.outPort.available,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.0003642/0.3664, allocations: 167.3 kB / 327.5 MB, free: 4.844 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002385/0.3688, allocations: 0.838 MB / 328.3 MB, free: 4.008 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.3688, allocations: 0 / 328.3 MB, free: 4.008 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.37, allocations: 407.2 kB / 328.7 MB, free: 3.617 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006647/0.3707, allocations: 84.39 kB / 328.8 MB, free: 3.535 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003636/0.3743, allocations: 1.473 MB / 330.3 MB, free: 2.027 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007378/0.3751, allocations: 0.9667 MB / 331.3 MB, free: 1.031 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000721/0.3759, allocations: 118.2 kB / 331.4 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004233/0.3763, allocations: 75.39 kB / 331.5 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of SimCode: time 1.092e-06/0.3763, allocations: 3.938 kB / 331.5 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of Templates: time 0.02576/0.4021, allocations: 7.448 MB / 338.9 MB, free: 9.41 MB / 282.7 MB