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.1_cpp_Modelica.StateGraph.Examples.ShowCompositeStep") Notification: Performance of loadModel(Modelica): time 1.808/1.808, allocations: 171.1 MB / 186.3 MB, free: 1.41 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.869e-05/2.862e-05, allocations: 4 kB / 228.1 MB, free: 7.992 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08878/0.08883, allocations: 38.77 MB / 266.9 MB, free: 1.141 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.ShowCompositeStep): time 0.003981/0.09287, allocations: 2.222 MB / 269.1 MB, free: 14.89 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002717/0.09564, allocations: 0.9115 MB / 270 MB, free: 13.98 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003851/0.09608, allocations: 31.88 kB / 270 MB, free: 13.95 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002848/0.09638, allocations: 91.23 kB / 270.1 MB, free: 13.86 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003496/0.09674, allocations: 55.78 kB / 270.2 MB, free: 13.8 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001333/0.09809, allocations: 387.3 kB / 270.6 MB, free: 13.42 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001258/0.09937, allocations: 0.6092 MB / 271.2 MB, free: 12.81 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001138/0.1005, allocations: 0.5832 MB / 271.8 MB, free: 12.22 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003988/0.1009, allocations: 267.4 kB / 272 MB, free: 11.96 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005577/0.1015, allocations: 306.8 kB / 272.3 MB, free: 11.66 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001987/0.1017, allocations: 55.98 kB / 272.4 MB, free: 11.61 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001275/0.1019, allocations: 40 kB / 272.4 MB, free: 11.57 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002579/0.1021, allocations: 191.4 kB / 272.6 MB, free: 11.38 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001428/0.1023, allocations: 48 kB / 272.7 MB, free: 11.33 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001452/0.1038, allocations: 0.9277 MB / 273.6 MB, free: 10.4 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1038, allocations: 0 / 273.6 MB, free: 10.4 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.387e-06/0.1038, allocations: 0 / 273.6 MB, free: 10.4 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.135e-05/0.1038, allocations: 0 / 273.6 MB, free: 10.4 MB / 234.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.002302/0.1061, allocations: 0.9111 MB / 274.5 MB, free: 9.43 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.191e-05/0.1062, allocations: 8.031 kB / 274.5 MB, free: 9.422 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002687/0.1065, allocations: 98.95 kB / 274.6 MB, free: 9.324 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.1075, allocations: 0.4935 MB / 275.1 MB, free: 8.789 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/0.1077, allocations: 94 kB / 275.2 MB, free: 8.695 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002569/0.108, allocations: 116 kB / 275.3 MB, free: 8.582 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002852/0.1108, allocations: 1.027 MB / 276.3 MB, free: 7.531 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.301e-05/0.1109, allocations: 0 / 276.3 MB, free: 7.531 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001457/0.111, allocations: 43.98 kB / 276.4 MB, free: 7.488 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.235e-05/0.1111, allocations: 27.94 kB / 276.4 MB, free: 7.461 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002586/0.1137, allocations: 0.8431 MB / 277.2 MB, free: 6.617 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006538/0.1203, allocations: 2.979 MB / 280.2 MB, free: 3.531 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002008/0.1223, allocations: 0.73 MB / 280.9 MB, free: 2.797 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001027/0.1225, allocations: 13 kB / 281 MB, free: 2.785 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001362/0.1238, allocations: 433 kB / 281.4 MB, free: 2.352 MB / 234.7 MB Notification: Performance of pre-optimization done (n=104): time 8.315e-06/0.1239, allocations: 0 / 281.4 MB, free: 2.352 MB / 234.7 MB Notification: Performance of matching and sorting (n=104): time 0.004981/0.1289, allocations: 0.9531 MB / 282.3 MB, free: 1.395 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000136/0.1291, allocations: 68.41 kB / 282.4 MB, free: 1.316 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009152/0.13, allocations: 316.9 kB / 282.7 MB, free: 0.9961 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004162/0.1305, allocations: 77.7 kB / 282.8 MB, free: 0.9141 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007094/0.1312, allocations: 379.3 kB / 283.2 MB, free: 0.5391 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007726/0.132, allocations: 260.5 kB / 283.4 MB, free: 288 kB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001674/0.1322, allocations: 24 kB / 283.4 MB, free: 264 kB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0003465/0.1326, allocations: 358.8 kB / 283.8 MB, free: 15.9 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001522/0.1341, allocations: 322.5 kB / 284.1 MB, free: 15.58 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001889/0.1361, allocations: 0.5333 MB / 284.6 MB, free: 14.96 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001566/0.1377, allocations: 318.4 kB / 284.9 MB, free: 14.66 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.14e-05/0.1377, allocations: 0 / 284.9 MB, free: 14.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002715/0.1405, allocations: 0.9607 MB / 285.9 MB, free: 13.69 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/0.1405, allocations: 4 kB / 285.9 MB, free: 13.68 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.72e-05/0.1406, allocations: 8 kB / 285.9 MB, free: 13.68 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.776e-05/0.1406, allocations: 12.75 kB / 285.9 MB, free: 13.66 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007875/0.1414, allocations: 127.6 kB / 286 MB, free: 13.54 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.277e-05/0.1415, allocations: 16 kB / 286.1 MB, free: 13.52 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006775/0.1422, allocations: 126.8 kB / 286.2 MB, free: 13.4 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001553/0.1423, allocations: 59.92 kB / 286.2 MB, free: 13.34 MB / 250.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.0007298/0.1431, allocations: 348.8 kB / 286.6 MB, free: 12.99 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001587/0.1433, allocations: 55.3 kB / 286.6 MB, free: 12.93 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002188/0.1455, allocations: 0.777 MB / 287.4 MB, free: 12.15 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.141e-05/0.1455, allocations: 11.98 kB / 287.4 MB, free: 12.14 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.1456, allocations: 0 / 287.4 MB, free: 12.14 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.449e-05/0.1456, allocations: 7.984 kB / 287.4 MB, free: 12.13 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004823/0.1504, allocations: 1.851 MB / 289.3 MB, free: 10.22 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.1505, allocations: 0 / 289.3 MB, free: 10.22 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005347/0.151, allocations: 71.83 kB / 289.4 MB, free: 10.15 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.439e-05/0.1511, allocations: 4 kB / 289.4 MB, free: 10.15 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.705e-05/0.1511, allocations: 23.98 kB / 289.4 MB, free: 10.12 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.818e-05/0.1512, allocations: 11.89 kB / 289.4 MB, free: 10.11 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.1512, allocations: 0 / 289.4 MB, free: 10.11 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001935/0.1531, allocations: 0.8123 MB / 290.2 MB, free: 9.285 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001402/0.1533, allocations: 144.2 kB / 290.4 MB, free: 9.125 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001335/0.1534, allocations: 16 kB / 290.4 MB, free: 9.109 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004865/0.1539, allocations: 39.97 kB / 290.4 MB, free: 9.07 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004057/0.1544, allocations: 144.7 kB / 290.5 MB, free: 8.93 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.447e-05/0.1545, allocations: 31.98 kB / 290.6 MB, free: 8.898 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002382/0.1547, allocations: 166 kB / 290.7 MB, free: 8.738 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1547, allocations: 0 / 290.7 MB, free: 8.738 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0009732/0.1557, allocations: 227.2 kB / 291 MB, free: 8.516 MB / 250.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.0003383/0.1561, allocations: 171.3 kB / 291.1 MB, free: 8.332 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.00245/0.1585, allocations: 0.8341 MB / 292 MB, free: 7.5 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.1586, allocations: 3.938 kB / 292 MB, free: 7.496 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.1596, allocations: 399.2 kB / 292.4 MB, free: 7.109 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006164/0.1602, allocations: 80.5 kB / 292.4 MB, free: 7.031 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003393/0.1636, allocations: 1.483 MB / 293.9 MB, free: 5.508 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000697/0.1644, allocations: 0.9628 MB / 294.9 MB, free: 4.52 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004844/0.1649, allocations: 75.41 kB / 295 MB, free: 4.445 MB / 250.7 MB Notification: Performance of SimCode: time 1.282e-06/0.1649, allocations: 0 / 295 MB, free: 4.445 MB / 250.7 MB Notification: Performance of Templates: time 0.2348/0.3997, allocations: 9.784 MB / 304.7 MB, free: 28.16 MB / 250.7 MB