Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 1.845/1.845, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.358e-05/3.367e-05, allocations: 8 kB / 225 MB, free: 2.352 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2348, allocations: 38.76 MB / 263.8 MB, free: 9.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.106/0.3408, allocations: 66.15 MB / 329.9 MB, free: 7.598 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/0.3411, allocations: 63.97 kB / 330 MB, free: 7.535 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01104/0.3522, allocations: 2.927 MB / 332.9 MB, free: 4.586 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.031e-06/0.3522, allocations: 0 / 332.9 MB, free: 4.586 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.108e-05/0.3522, allocations: 8 kB / 332.9 MB, free: 4.578 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0006492/0.3529, allocations: 431.9 kB / 333.3 MB, free: 4.109 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.353, allocations: 8.031 kB / 333.3 MB, free: 4.102 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.552e-05/0.353, allocations: 23.72 kB / 333.4 MB, free: 4.078 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003257/0.3534, allocations: 222.8 kB / 333.6 MB, free: 3.82 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.406e-05/0.3534, allocations: 20.56 kB / 333.6 MB, free: 3.801 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.014e-05/0.3535, allocations: 28 kB / 333.6 MB, free: 3.773 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005541/0.3541, allocations: 264.9 kB / 333.9 MB, free: 3.488 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.3541, allocations: 3.938 kB / 333.9 MB, free: 3.484 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.078e-05/0.3541, allocations: 4 kB / 333.9 MB, free: 3.48 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.3542, allocations: 8 kB / 333.9 MB, free: 3.473 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004064/0.3546, allocations: 160.8 kB / 334.1 MB, free: 3.316 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001477/0.3561, allocations: 0.9368 MB / 335 MB, free: 2.309 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003523/0.3565, allocations: 155 kB / 335.1 MB, free: 2.148 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.3566, allocations: 73.23 kB / 335.2 MB, free: 2.074 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.3567, allocations: 4.188 kB / 335.2 MB, free: 2.07 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002366/0.3569, allocations: 111.5 kB / 335.3 MB, free: 1.949 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 6.113e-06/0.3569, allocations: 0 / 335.3 MB, free: 1.949 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004268/0.3574, allocations: 169.2 kB / 335.5 MB, free: 1.777 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.3575, allocations: 59.39 kB / 335.6 MB, free: 1.707 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.3576, allocations: 144.8 kB / 335.7 MB, free: 1.559 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.315e-05/0.3577, allocations: 33.7 kB / 335.7 MB, free: 1.52 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.3578, allocations: 140.3 kB / 335.9 MB, free: 1.379 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.104e-05/0.3579, allocations: 55.25 kB / 335.9 MB, free: 1.324 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.88e-05/0.3579, allocations: 12 kB / 335.9 MB, free: 1.312 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.3581, allocations: 322.8 kB / 336.2 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.3583, allocations: 56.66 kB / 336.3 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.3585, allocations: 137.5 kB / 336.4 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001768/0.3587, allocations: 67.95 kB / 336.5 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.475e-06/0.3587, allocations: 0 / 336.5 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000532/0.3593, allocations: 237.2 kB / 336.7 MB, free: 472 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.3593, allocations: 8 kB / 336.7 MB, free: 464 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.3593, allocations: 0 / 336.7 MB, free: 464 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.3594, allocations: 8 kB / 336.8 MB, free: 456 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.3596, allocations: 28.2 kB / 336.8 MB, free: 428 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/0.3596, allocations: 11.95 kB / 336.8 MB, free: 416 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.3598, allocations: 23.84 kB / 336.8 MB, free: 392 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-05/0.3598, allocations: 15.98 kB / 336.8 MB, free: 376 kB / 282.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: 30 ($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,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001346/0.36, allocations: 136 kB / 337 MB, free: 232 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.116e-05/0.36, allocations: 7.906 kB / 337 MB, free: 224 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004327/0.3604, allocations: 182.3 kB / 337.1 MB, free: 40 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.63e-06/0.3605, allocations: 7.984 kB / 337.2 MB, free: 32 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.725e-06/0.3605, allocations: 4 kB / 337.2 MB, free: 28 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.3605, allocations: 7.938 kB / 337.2 MB, free: 20 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.3616, allocations: 0.5758 MB / 337.7 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3616, allocations: 0 / 337.7 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.3617, allocations: 19.92 kB / 337.8 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.569e-06/0.3617, allocations: 0 / 337.8 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.633e-05/0.3618, allocations: 11.95 kB / 337.8 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.764e-06/0.3618, allocations: 4 kB / 337.8 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.3618, allocations: 7.875 kB / 337.8 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004108/0.3622, allocations: 267.7 kB / 338 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.71e-05/0.3623, allocations: 88.92 kB / 338.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.348e-05/0.3623, allocations: 4 kB / 338.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.3625, allocations: 11.95 kB / 338.2 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.096e-05/0.3626, allocations: 23.95 kB / 338.2 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.332e-05/0.3626, allocations: 8 kB / 338.2 MB, free: 14.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.93e-05/0.3627, allocations: 99.78 kB / 338.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.3627, allocations: 0 / 338.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004269/0.3632, allocations: 47.98 kB / 338.3 MB, free: 14.76 MB / 298.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: 19 (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: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001847/0.3634, allocations: 111 kB / 338.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004438/0.3638, allocations: 168.3 kB / 338.6 MB, free: 14.48 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.884e-06/0.3639, allocations: 64 / 338.6 MB, free: 14.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001752/0.3641, allocations: 83.92 kB / 338.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002433/0.3643, allocations: 12 kB / 338.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005867/0.3649, allocations: 234.3 kB / 338.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004661/0.3654, allocations: 0.748 MB / 339.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001251/0.3655, allocations: 26.02 kB / 339.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.371e-05/0.3656, allocations: 27.42 kB / 339.7 MB, free: 13.31 MB / 298.7 MB Notification: Performance of SimCode: time 1.539e-06/0.3656, allocations: 0 / 339.7 MB, free: 13.31 MB / 298.7 MB Notification: Performance of Templates: time 0.006616/0.3723, allocations: 1.644 MB / 341.4 MB, free: 11.68 MB / 298.7 MB