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_trunk_cpp_Modelica.StateGraph.Examples.ShowCompositeStep") Notification: Performance of loadModel(Modelica): time 2.324/2.324, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.305e-05/4.307e-05, allocations: 4 kB / 294.6 MB, free: 11.44 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1138, allocations: 50.4 MB / 345 MB, free: 8.992 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.ShowCompositeStep): time 0.00403/0.1179, allocations: 2.281 MB / 347.2 MB, free: 6.695 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002914/0.1208, allocations: 0.9662 MB / 348.2 MB, free: 5.727 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006118/0.1215, allocations: 27.94 kB / 348.2 MB, free: 5.699 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002955/0.1218, allocations: 91.19 kB / 348.3 MB, free: 5.609 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004243/0.1223, allocations: 59.7 kB / 348.4 MB, free: 5.551 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001498/0.1238, allocations: 379.5 kB / 348.7 MB, free: 5.18 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001633/0.1255, allocations: 0.6248 MB / 349.4 MB, free: 4.555 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001241/0.1268, allocations: 0.5987 MB / 350 MB, free: 3.938 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004613/0.1273, allocations: 267.4 kB / 350.2 MB, free: 3.676 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005469/0.1278, allocations: 322.7 kB / 350.5 MB, free: 3.359 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002471/0.1281, allocations: 51.94 kB / 350.6 MB, free: 3.309 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001759/0.1283, allocations: 40 kB / 350.6 MB, free: 3.27 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002674/0.1286, allocations: 191.4 kB / 350.8 MB, free: 3.082 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001456/0.1287, allocations: 52 kB / 350.9 MB, free: 3.031 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001472/0.1302, allocations: 0.9394 MB / 351.8 MB, free: 2.09 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1302, allocations: 0 / 351.8 MB, free: 2.09 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.1302, allocations: 0 / 351.8 MB, free: 2.09 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.35e-05/0.1303, allocations: 4 kB / 351.8 MB, free: 2.086 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002569/0.1329, allocations: 0.9388 MB / 352.8 MB, free: 1.082 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.1329, allocations: 12.03 kB / 352.8 MB, free: 1.07 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000354/0.1333, allocations: 102.8 kB / 352.9 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.1344, allocations: 0.4938 MB / 353.4 MB, free: 444 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001434/0.1346, allocations: 98 kB / 353.5 MB, free: 344 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002577/0.1348, allocations: 116 kB / 353.6 MB, free: 228 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003154/0.138, allocations: 1.06 MB / 354.6 MB, free: 15.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.916e-05/0.1381, allocations: 0 / 354.6 MB, free: 15.11 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001425/0.1383, allocations: 43.92 kB / 354.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.249e-05/0.1383, allocations: 24 kB / 354.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002714/0.141, allocations: 0.8237 MB / 355.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006993/0.1481, allocations: 3.029 MB / 358.6 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002118/0.1502, allocations: 0.7596 MB / 359.3 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001079/0.1504, allocations: 13 kB / 359.3 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001255/0.1517, allocations: 490.2 kB / 359.8 MB, free: 9.805 MB / 298.7 MB Notification: Performance of pre-optimization done (n=105): time 5.39e-06/0.1517, allocations: 0 / 359.8 MB, free: 9.805 MB / 298.7 MB Notification: Performance of matching and sorting (n=105): time 0.002869/0.1546, allocations: 0.9568 MB / 360.8 MB, free: 8.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.1547, allocations: 102.1 kB / 360.9 MB, free: 8.723 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005652/0.1553, allocations: 320.8 kB / 361.2 MB, free: 8.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002126/0.1555, allocations: 81.69 kB / 361.3 MB, free: 8.324 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003563/0.1559, allocations: 383.4 kB / 361.6 MB, free: 7.945 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000396/0.1563, allocations: 260.6 kB / 361.9 MB, free: 7.688 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.66e-05/0.1564, allocations: 28 kB / 361.9 MB, free: 7.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.1566, allocations: 366.9 kB / 362.3 MB, free: 7.293 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009808/0.1576, allocations: 314.4 kB / 362.6 MB, free: 6.984 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/0.1588, allocations: 0.5372 MB / 363.1 MB, free: 6.367 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/0.1599, allocations: 322.3 kB / 363.4 MB, free: 6.055 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.1599, allocations: 0 / 363.4 MB, free: 6.055 MB / 298.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.00266/0.1626, allocations: 0.9684 MB / 364.4 MB, free: 5.078 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.588e-05/0.1627, allocations: 8 kB / 364.4 MB, free: 5.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.087e-05/0.1627, allocations: 8.812 kB / 364.4 MB, free: 5.062 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.733e-05/0.1627, allocations: 12 kB / 364.4 MB, free: 5.051 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007903/0.1635, allocations: 131.6 kB / 364.6 MB, free: 4.922 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.348e-05/0.1636, allocations: 15.98 kB / 364.6 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006978/0.1643, allocations: 122.9 kB / 364.7 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001434/0.1645, allocations: 55.98 kB / 364.7 MB, free: 4.73 MB / 298.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: 135 ($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,$PRE.transition7.t_start,transition7.t_start,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 (166): * Single equations (assignments): 166 * 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.0007669/0.1652, allocations: 349 kB / 365.1 MB, free: 4.379 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001791/0.1654, allocations: 51.39 kB / 365.1 MB, free: 4.328 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002216/0.1677, allocations: 0.7886 MB / 365.9 MB, free: 3.531 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.898e-05/0.1677, allocations: 12 kB / 365.9 MB, free: 3.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.1677, allocations: 0 / 365.9 MB, free: 3.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/0.1678, allocations: 3.984 kB / 365.9 MB, free: 3.516 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005009/0.1728, allocations: 1.878 MB / 367.8 MB, free: 1.582 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.929e-06/0.1729, allocations: 0 / 367.8 MB, free: 1.582 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005525/0.1734, allocations: 75.77 kB / 367.9 MB, free: 1.508 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.421e-05/0.1734, allocations: 4 kB / 367.9 MB, free: 1.504 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.988e-05/0.1735, allocations: 23.98 kB / 367.9 MB, free: 1.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.318e-05/0.1736, allocations: 7.953 kB / 367.9 MB, free: 1.473 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1736, allocations: 0 / 367.9 MB, free: 1.473 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00203/0.1756, allocations: 0.8421 MB / 368.8 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001463/0.1758, allocations: 132.3 kB / 368.9 MB, free: 464 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/0.176, allocations: 31.94 kB / 368.9 MB, free: 432 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004651/0.1764, allocations: 43.97 kB / 369 MB, free: 388 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004189/0.1769, allocations: 136.7 kB / 369.1 MB, free: 252 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.808e-05/0.177, allocations: 31.98 kB / 369.1 MB, free: 220 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002491/0.1773, allocations: 166 kB / 369.3 MB, free: 52 kB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1773, allocations: 0 / 369.3 MB, free: 52 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009984/0.1783, allocations: 223.2 kB / 369.5 MB, free: 15.83 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 81 (transition7.t_start,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: 10 (compositeStep.step3.newActive,compositeStep.step4.newActive,compositeStep.step4a.newActive,compositeStep.initStep.newActive,compositeStep.exitStep.newActive,compositeStep.newActive,step0.newActive,step1.newActive,step6.newActive,transition7.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.0003428/0.1786, allocations: 179.3 kB / 369.7 MB, free: 15.64 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002383/0.181, allocations: 0.8392 MB / 370.5 MB, free: 14.8 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.1811, allocations: 4 kB / 370.5 MB, free: 14.8 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.1822, allocations: 401.9 kB / 370.9 MB, free: 14.41 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006312/0.1829, allocations: 80.47 kB / 371 MB, free: 14.33 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00357/0.1864, allocations: 1.523 MB / 372.5 MB, free: 12.77 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007464/0.1872, allocations: 0.9707 MB / 373.5 MB, free: 11.77 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005424/0.1878, allocations: 83.39 kB / 373.6 MB, free: 11.68 MB / 314.7 MB Notification: Performance of SimCode: time 1.473e-06/0.1878, allocations: 0 / 373.6 MB, free: 11.68 MB / 314.7 MB Notification: Performance of Templates: time 0.02507/0.2129, allocations: 9.91 MB / 383.5 MB, free: 1.77 MB / 314.7 MB