Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 2.093/2.093, allocations: 225.8 MB / 239.4 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.765e-05/2.784e-05, allocations: 4 kB / 292.6 MB, free: 8.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09166/0.09171, allocations: 50.41 MB / 343.1 MB, free: 5.926 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3638/0.4556, allocations: 76.86 MB / 419.9 MB, free: 1.301 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001912/0.4558, allocations: 67.03 kB / 420 MB, free: 1.27 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01121/0.467, allocations: 3.052 MB / 423 MB, free: 14.61 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.942e-06/0.4671, allocations: 0 / 423 MB, free: 14.61 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.008e-05/0.4671, allocations: 4 kB / 423 MB, free: 14.61 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006415/0.4678, allocations: 442.6 kB / 423.5 MB, free: 14.15 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.582e-05/0.4679, allocations: 8.031 kB / 423.5 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.549e-05/0.4679, allocations: 19.81 kB / 423.5 MB, free: 14.12 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003319/0.4683, allocations: 222 kB / 423.7 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.376e-05/0.4684, allocations: 23.81 kB / 423.7 MB, free: 13.87 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.021e-05/0.4684, allocations: 31.48 kB / 423.8 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005532/0.469, allocations: 273.8 kB / 424 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.469, allocations: 0 / 424 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.32e-05/0.4691, allocations: 11.44 kB / 424.1 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.588e-05/0.4691, allocations: 7.984 kB / 424.1 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000389/0.4695, allocations: 162.1 kB / 424.2 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001527/0.471, allocations: 0.9504 MB / 425.2 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000365/0.4714, allocations: 167.8 kB / 425.3 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.4716, allocations: 76.16 kB / 425.4 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.183e-05/0.4717, allocations: 8.188 kB / 425.4 MB, free: 12.42 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000263/0.4719, allocations: 134.5 kB / 425.5 MB, free: 12.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.177e-06/0.472, allocations: 0 / 425.5 MB, free: 12.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004597/0.4724, allocations: 178 kB / 425.7 MB, free: 12.15 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.533e-05/0.4725, allocations: 81.11 kB / 425.8 MB, free: 12.05 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001518/0.4727, allocations: 143.7 kB / 425.9 MB, free: 11.92 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.463e-05/0.4727, allocations: 36.7 kB / 426 MB, free: 11.88 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.4729, allocations: 143.2 kB / 426.1 MB, free: 11.75 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.841e-05/0.4729, allocations: 57.94 kB / 426.2 MB, free: 11.7 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.012e-05/0.473, allocations: 10.94 kB / 426.2 MB, free: 11.7 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.4732, allocations: 326 kB / 426.5 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.4733, allocations: 57.94 kB / 426.6 MB, free: 11.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002198/0.4735, allocations: 135.9 kB / 426.7 MB, free: 11.2 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001801/0.4737, allocations: 73.56 kB / 426.8 MB, free: 11.15 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.4738, allocations: 0 / 426.8 MB, free: 11.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005241/0.4743, allocations: 243.1 kB / 427 MB, free: 10.95 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.4743, allocations: 4 kB / 427 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.33e-06/0.4743, allocations: 4.281 kB / 427 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.4744, allocations: 8 kB / 427 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001828/0.4746, allocations: 35.86 kB / 427.1 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.931e-05/0.4746, allocations: 15.88 kB / 427.1 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001533/0.4748, allocations: 18.59 kB / 427.1 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.294e-05/0.4748, allocations: 15.25 kB / 427.1 MB, free: 10.86 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0001309/0.475, allocations: 126.2 kB / 427.2 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.481e-05/0.475, allocations: 11.91 kB / 427.2 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004324/0.4755, allocations: 194.2 kB / 427.4 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.632e-06/0.4755, allocations: 4 kB / 427.4 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.955e-06/0.4755, allocations: 0 / 427.4 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.33e-06/0.4755, allocations: 3.953 kB / 427.4 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001018/0.4765, allocations: 0.5847 MB / 428 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.81e-06/0.4766, allocations: 0 / 428 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.4767, allocations: 19.94 kB / 428 MB, free: 9.984 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/0.4767, allocations: 7.938 kB / 428 MB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.4767, allocations: 11.31 kB / 428.1 MB, free: 9.969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.159e-06/0.4768, allocations: 0 / 428.1 MB, free: 9.969 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.196e-06/0.4768, allocations: 0 / 428.1 MB, free: 9.969 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000431/0.4772, allocations: 291.7 kB / 428.3 MB, free: 9.695 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.997e-05/0.4773, allocations: 96.81 kB / 428.4 MB, free: 9.582 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.266e-05/0.4773, allocations: 7 kB / 428.4 MB, free: 9.578 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001462/0.4775, allocations: 11.86 kB / 428.5 MB, free: 9.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.401e-05/0.4776, allocations: 23.09 kB / 428.5 MB, free: 9.551 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.44e-05/0.4776, allocations: 4 kB / 428.5 MB, free: 9.547 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.491e-05/0.4777, allocations: 98.33 kB / 428.6 MB, free: 9.457 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.24e-07/0.4778, allocations: 0 / 428.6 MB, free: 9.457 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004395/0.4782, allocations: 46.31 kB / 428.6 MB, free: 9.418 MB / 346.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: 20 (transition2.t_start,step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001887/0.4784, allocations: 118.8 kB / 428.7 MB, free: 9.301 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004154/0.4788, allocations: 171.9 kB / 428.9 MB, free: 9.172 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.061e-06/0.4789, allocations: 0 / 428.9 MB, free: 9.172 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001831/0.479, allocations: 82.89 kB / 429 MB, free: 9.113 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00025/0.4793, allocations: 15.73 kB / 429 MB, free: 9.102 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006193/0.4799, allocations: 243.2 kB / 429.2 MB, free: 8.871 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005176/0.4805, allocations: 0.7443 MB / 430 MB, free: 8.102 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000193/0.4807, allocations: 22.08 kB / 430 MB, free: 8.082 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.4808, allocations: 26.3 kB / 430 MB, free: 8.059 MB / 346.7 MB Notification: Performance of SimCode: time 2.231e-06/0.4809, allocations: 3.938 kB / 430 MB, free: 8.055 MB / 346.7 MB Notification: Performance of Templates: time 0.007017/0.4879, allocations: 1.668 MB / 431.7 MB, free: 6.402 MB / 346.7 MB