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.2_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 1.839/1.839, allocations: 194.9 MB / 208 MB, free: 3.191 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.605e-05/3.629e-05, allocations: 4 kB / 255.4 MB, free: 2.723 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07907/0.07913, allocations: 44.5 MB / 299.9 MB, free: 6.156 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.323/0.4022, allocations: 71.44 MB / 371.3 MB, free: 21.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/0.4024, allocations: 65.19 kB / 371.4 MB, free: 21.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01084/0.4133, allocations: 2.926 MB / 374.3 MB, free: 20.92 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.828e-06/0.4133, allocations: 1.859 kB / 374.3 MB, free: 20.92 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.789e-05/0.4134, allocations: 4.375 kB / 374.3 MB, free: 20.92 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0005174/0.4139, allocations: 438.7 kB / 374.7 MB, free: 20.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.4139, allocations: 9.531 kB / 374.7 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.673e-05/0.414, allocations: 21.55 kB / 374.8 MB, free: 20.53 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002434/0.4143, allocations: 232.3 kB / 375 MB, free: 20.31 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.767e-05/0.4143, allocations: 22.94 kB / 375 MB, free: 20.31 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.595e-05/0.4144, allocations: 30.98 kB / 375 MB, free: 20.31 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004957/0.4149, allocations: 255.3 kB / 375.3 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.4149, allocations: 2.156 kB / 375.3 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.999e-05/0.415, allocations: 10.03 kB / 375.3 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.415, allocations: 5.844 kB / 375.3 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004055/0.4154, allocations: 159.7 kB / 375.5 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/0.4167, allocations: 0.9409 MB / 376.4 MB, free: 19.58 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003321/0.417, allocations: 144.9 kB / 376.6 MB, free: 19.55 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.4172, allocations: 89.28 kB / 376.6 MB, free: 19.53 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.4172, allocations: 4.203 kB / 376.6 MB, free: 19.53 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002081/0.4174, allocations: 105.9 kB / 376.7 MB, free: 19.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.818e-06/0.4175, allocations: 0 / 376.7 MB, free: 19.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.00039/0.4179, allocations: 157.9 kB / 376.9 MB, free: 19.44 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.045e-05/0.4179, allocations: 55.75 kB / 377 MB, free: 19.38 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.418, allocations: 143.8 kB / 377.1 MB, free: 19.28 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.353e-05/0.4181, allocations: 37.77 kB / 377.1 MB, free: 19.25 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.163e-05/0.4182, allocations: 137 kB / 377.3 MB, free: 19.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.305e-05/0.4182, allocations: 54.78 kB / 377.3 MB, free: 19.11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.602e-05/0.4183, allocations: 9.781 kB / 377.3 MB, free: 19.11 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.929e-05/0.4183, allocations: 325.5 kB / 377.6 MB, free: 18.8 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.4185, allocations: 58.5 kB / 377.7 MB, free: 18.79 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001884/0.4187, allocations: 138.2 kB / 377.8 MB, free: 18.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001681/0.4189, allocations: 65.17 kB / 377.9 MB, free: 18.7 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.475e-06/0.4189, allocations: 0.9375 kB / 377.9 MB, free: 18.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005086/0.4194, allocations: 247.4 kB / 378.1 MB, free: 18.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.4195, allocations: 7.844 kB / 378.2 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.976e-06/0.4195, allocations: 3.562 kB / 378.2 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.4195, allocations: 3.875 kB / 378.2 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001801/0.4197, allocations: 30.33 kB / 378.2 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.4197, allocations: 14.83 kB / 378.2 MB, free: 18.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000148/0.4199, allocations: 21.09 kB / 378.2 MB, free: 18.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-05/0.42, allocations: 15.48 kB / 378.2 MB, free: 18.61 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 9.422e-05/0.4201, allocations: 131.5 kB / 378.4 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.314e-05/0.4201, allocations: 17.08 kB / 378.4 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004115/0.4205, allocations: 183.6 kB / 378.6 MB, free: 18.45 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.437e-06/0.4206, allocations: 6.156 kB / 378.6 MB, free: 18.45 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.222e-06/0.4206, allocations: 5.344 kB / 378.6 MB, free: 18.44 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.932e-06/0.4206, allocations: 1.969 kB / 378.6 MB, free: 18.44 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008815/0.4215, allocations: 0.5811 MB / 379.2 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.4215, allocations: 0 / 379.2 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.4216, allocations: 22.2 kB / 379.2 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.775e-06/0.4216, allocations: 1.906 kB / 379.2 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.4217, allocations: 5.031 kB / 379.2 MB, free: 18.08 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.054e-06/0.4217, allocations: 1.031 kB / 379.2 MB, free: 18.08 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.898e-06/0.4217, allocations: 1.797 kB / 379.2 MB, free: 18.08 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003559/0.4221, allocations: 274 kB / 379.5 MB, free: 17.93 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.088e-05/0.4221, allocations: 85.53 kB / 379.5 MB, free: 17.84 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.446e-05/0.4221, allocations: 6.688 kB / 379.6 MB, free: 17.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001329/0.4223, allocations: 11.84 kB / 379.6 MB, free: 17.83 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.19e-05/0.4224, allocations: 23.19 kB / 379.6 MB, free: 17.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.4224, allocations: 13.27 kB / 379.6 MB, free: 17.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.773e-05/0.4225, allocations: 95.88 kB / 379.7 MB, free: 17.75 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.79e-07/0.4225, allocations: 0 / 379.7 MB, free: 17.75 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004268/0.4229, allocations: 54.28 kB / 379.7 MB, free: 17.74 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.0001391/0.4231, allocations: 104 kB / 379.8 MB, free: 17.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004041/0.4235, allocations: 164.6 kB / 380 MB, free: 17.65 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.474e-06/0.4235, allocations: 7.75 kB / 380 MB, free: 17.64 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001753/0.4237, allocations: 78.69 kB / 380.1 MB, free: 17.64 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002459/0.424, allocations: 16.66 kB / 380.1 MB, free: 17.63 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005524/0.4246, allocations: 230.6 kB / 380.3 MB, free: 17.53 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002112/0.4248, allocations: 0.7444 MB / 381.1 MB, free: 16.82 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001216/0.4249, allocations: 21.2 kB / 381.1 MB, free: 16.82 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.539e-05/0.425, allocations: 25.44 kB / 381.1 MB, free: 16.81 MB / 314.7 MB Notification: Performance of SimCode: time 1.529e-06/0.425, allocations: 0 / 381.1 MB, free: 16.81 MB / 314.7 MB Notification: Performance of Templates: time 0.006437/0.4315, allocations: 1.641 MB / 382.8 MB, free: 16.66 MB / 314.7 MB