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.3_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 1.962/1.962, allocations: 205.8 MB / 218.9 MB, free: 9.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.874e-05/2.884e-05, allocations: 4 kB / 269.3 MB, free: 6.41 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08264/0.08269, allocations: 47.57 MB / 316.9 MB, free: 6.754 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3344/0.4172, allocations: 75.73 MB / 392.6 MB, free: 12.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.4174, allocations: 63.97 kB / 392.7 MB, free: 12.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01113/0.4286, allocations: 2.976 MB / 395.7 MB, free: 9.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.06e-06/0.4286, allocations: 0 / 395.7 MB, free: 9.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.11e-05/0.4287, allocations: 8.656 kB / 395.7 MB, free: 9.742 MB / 314.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.0006499/0.4293, allocations: 435.1 kB / 396.1 MB, free: 9.285 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.4294, allocations: 11.97 kB / 396.1 MB, free: 9.273 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.39e-05/0.4295, allocations: 23.72 kB / 396.2 MB, free: 9.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.4298, allocations: 227.1 kB / 396.4 MB, free: 9.004 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.242e-05/0.4299, allocations: 22.31 kB / 396.4 MB, free: 8.992 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.348e-05/0.4299, allocations: 27.11 kB / 396.4 MB, free: 8.973 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005435/0.4305, allocations: 267.1 kB / 396.7 MB, free: 8.766 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.4305, allocations: 0 / 396.7 MB, free: 8.766 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.196e-05/0.4306, allocations: 9.688 kB / 396.7 MB, free: 8.762 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.4306, allocations: 4 kB / 396.7 MB, free: 8.758 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004081/0.431, allocations: 154.7 kB / 396.8 MB, free: 8.656 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001561/0.4326, allocations: 0.961 MB / 397.8 MB, free: 7.754 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003413/0.4329, allocations: 151.8 kB / 398 MB, free: 7.641 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001556/0.4331, allocations: 75.88 kB / 398 MB, free: 7.586 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.124e-05/0.4332, allocations: 4.188 kB / 398 MB, free: 7.582 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002438/0.4334, allocations: 114.6 kB / 398.1 MB, free: 7.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.379e-06/0.4334, allocations: 0 / 398.1 MB, free: 7.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.000411/0.4339, allocations: 163.2 kB / 398.3 MB, free: 7.348 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.253e-05/0.4339, allocations: 55.41 kB / 398.4 MB, free: 7.281 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/0.4341, allocations: 144.5 kB / 398.5 MB, free: 7.152 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.356e-05/0.4341, allocations: 33.52 kB / 398.5 MB, free: 7.117 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.4343, allocations: 147.5 kB / 398.7 MB, free: 6.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.891e-05/0.4344, allocations: 55.16 kB / 398.7 MB, free: 6.938 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.456e-05/0.4344, allocations: 3.75 kB / 398.7 MB, free: 6.938 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.4346, allocations: 330.5 kB / 399.1 MB, free: 6.613 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.4347, allocations: 59.2 kB / 399.1 MB, free: 6.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002192/0.435, allocations: 132.7 kB / 399.2 MB, free: 6.438 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.4351, allocations: 67.33 kB / 399.3 MB, free: 6.387 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.4352, allocations: 0 / 399.3 MB, free: 6.387 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005305/0.4357, allocations: 251 kB / 399.6 MB, free: 6.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.4357, allocations: 4 kB / 399.6 MB, free: 6.176 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.802e-06/0.4358, allocations: 4 kB / 399.6 MB, free: 6.172 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.4358, allocations: 4 kB / 399.6 MB, free: 6.168 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001892/0.436, allocations: 31.8 kB / 399.6 MB, free: 6.141 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/0.436, allocations: 4 kB / 399.6 MB, free: 6.137 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001533/0.4362, allocations: 23.77 kB / 399.6 MB, free: 6.117 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.616e-05/0.4362, allocations: 16.22 kB / 399.6 MB, free: 6.105 MB / 314.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.000133/0.4364, allocations: 135.4 kB / 399.8 MB, free: 5.977 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.384e-05/0.4365, allocations: 15.86 kB / 399.8 MB, free: 5.961 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004415/0.4369, allocations: 184.3 kB / 400 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.412e-06/0.4369, allocations: 4 kB / 400 MB, free: 5.812 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.017e-06/0.437, allocations: 0 / 400 MB, free: 5.812 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.737e-06/0.437, allocations: 0 / 400 MB, free: 5.812 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.438, allocations: 0.5918 MB / 400.6 MB, free: 5.242 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.93e-06/0.438, allocations: 0 / 400.6 MB, free: 5.242 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.4381, allocations: 19.86 kB / 400.6 MB, free: 5.227 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.818e-06/0.4382, allocations: 4 kB / 400.6 MB, free: 5.223 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.4382, allocations: 3.812 kB / 400.6 MB, free: 5.223 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.7e-06/0.4382, allocations: 0 / 400.6 MB, free: 5.223 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.514e-06/0.4382, allocations: 7.984 kB / 400.6 MB, free: 5.215 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004055/0.4386, allocations: 269.8 kB / 400.9 MB, free: 4.969 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.665e-05/0.4387, allocations: 85.02 kB / 400.9 MB, free: 4.867 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.157e-05/0.4387, allocations: 3.938 kB / 401 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.4389, allocations: 11.92 kB / 401 MB, free: 4.855 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.424e-05/0.439, allocations: 27.91 kB / 401 MB, free: 4.832 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.353e-05/0.439, allocations: 4 kB / 401 MB, free: 4.828 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.741e-05/0.4391, allocations: 98.83 kB / 401.1 MB, free: 4.738 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.69e-07/0.4391, allocations: 0 / 401.1 MB, free: 4.738 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004267/0.4396, allocations: 43.5 kB / 401.1 MB, free: 4.703 MB / 314.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.0001829/0.4398, allocations: 114.7 kB / 401.2 MB, free: 4.586 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004093/0.4402, allocations: 173.8 kB / 401.4 MB, free: 4.457 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.702e-06/0.4402, allocations: 0 / 401.4 MB, free: 4.457 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001665/0.4404, allocations: 67.62 kB / 401.5 MB, free: 4.406 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.4407, allocations: 30.42 kB / 401.5 MB, free: 4.387 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006071/0.4413, allocations: 248.4 kB / 401.8 MB, free: 4.156 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004287/0.4418, allocations: 0.7364 MB / 402.5 MB, free: 3.395 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001263/0.4419, allocations: 30.06 kB / 402.5 MB, free: 3.363 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.685e-05/0.442, allocations: 19.44 kB / 402.5 MB, free: 3.344 MB / 314.7 MB Notification: Performance of SimCode: time 1.785e-06/0.442, allocations: 0 / 402.5 MB, free: 3.344 MB / 314.7 MB Notification: Performance of Templates: time 0.006592/0.4486, allocations: 1.636 MB / 404.2 MB, free: 1.719 MB / 314.7 MB