Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.885/1.885, allocations: 205.8 MB / 218.9 MB, free: 9.34 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.142e-05/3.165e-05, allocations: 4 kB / 269.3 MB, free: 6.422 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08306/0.08312, allocations: 47.57 MB / 316.9 MB, free: 6.758 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.384/0.4672, allocations: 75.71 MB / 392.6 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002039/0.4674, allocations: 62.84 kB / 392.7 MB, free: 12.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01144/0.4789, allocations: 2.992 MB / 395.7 MB, free: 9.793 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.316e-06/0.4789, allocations: 0 / 395.7 MB, free: 9.793 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.11e-05/0.479, allocations: 12.77 kB / 395.7 MB, free: 9.781 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.0006669/0.4796, allocations: 449 kB / 396.1 MB, free: 9.309 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.4797, allocations: 8.031 kB / 396.1 MB, free: 9.301 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.316e-05/0.4798, allocations: 23.72 kB / 396.2 MB, free: 9.277 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003122/0.4801, allocations: 223.3 kB / 396.4 MB, free: 9.035 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.215e-05/0.4802, allocations: 22.25 kB / 396.4 MB, free: 9.023 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.462e-05/0.4802, allocations: 29.62 kB / 396.4 MB, free: 9.004 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005535/0.4808, allocations: 264.4 kB / 396.7 MB, free: 8.797 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.4808, allocations: 4 kB / 396.7 MB, free: 8.793 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.907e-05/0.4809, allocations: 7.25 kB / 396.7 MB, free: 8.793 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.4809, allocations: 8 kB / 396.7 MB, free: 8.785 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004044/0.4813, allocations: 153.6 kB / 396.9 MB, free: 8.684 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001519/0.4829, allocations: 0.9599 MB / 397.8 MB, free: 7.781 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003564/0.4832, allocations: 147.8 kB / 398 MB, free: 7.672 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.4834, allocations: 85.09 kB / 398 MB, free: 7.613 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.4835, allocations: 4.188 kB / 398.1 MB, free: 7.609 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002386/0.4837, allocations: 104.4 kB / 398.2 MB, free: 7.516 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.576e-06/0.4837, allocations: 0 / 398.2 MB, free: 7.516 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004209/0.4842, allocations: 162.7 kB / 398.3 MB, free: 7.383 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.823e-05/0.4842, allocations: 63.38 kB / 398.4 MB, free: 7.309 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001711/0.4844, allocations: 141.6 kB / 398.5 MB, free: 7.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.748e-05/0.4845, allocations: 40.14 kB / 398.6 MB, free: 7.141 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.4846, allocations: 145.4 kB / 398.7 MB, free: 7.004 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.987e-05/0.4847, allocations: 57.33 kB / 398.7 MB, free: 6.957 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.465e-05/0.4847, allocations: 6.625 kB / 398.8 MB, free: 6.957 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.4849, allocations: 325.7 kB / 399.1 MB, free: 6.637 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/0.4851, allocations: 61.09 kB / 399.1 MB, free: 6.594 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002206/0.4853, allocations: 133 kB / 399.3 MB, free: 6.461 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.4855, allocations: 63.39 kB / 399.3 MB, free: 6.414 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.015e-06/0.4855, allocations: 4 kB / 399.3 MB, free: 6.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005385/0.4861, allocations: 247.5 kB / 399.6 MB, free: 6.207 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.4861, allocations: 8 kB / 399.6 MB, free: 6.199 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.617e-06/0.4861, allocations: 0 / 399.6 MB, free: 6.199 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.4862, allocations: 4 kB / 399.6 MB, free: 6.195 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001923/0.4864, allocations: 35.86 kB / 399.6 MB, free: 6.164 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.505e-05/0.4864, allocations: 8.219 kB / 399.6 MB, free: 6.156 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.4866, allocations: 19.78 kB / 399.6 MB, free: 6.141 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.384e-05/0.4866, allocations: 15.8 kB / 399.7 MB, free: 6.129 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,greaterEqual.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.0001387/0.4868, allocations: 134.8 kB / 399.8 MB, free: 6 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.689e-05/0.4868, allocations: 15.77 kB / 399.8 MB, free: 5.984 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004265/0.4873, allocations: 188 kB / 400 MB, free: 5.844 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.84e-06/0.4873, allocations: 4 kB / 400 MB, free: 5.84 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.068e-06/0.4873, allocations: 4 kB / 400 MB, free: 5.836 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.194e-06/0.4873, allocations: 3.984 kB / 400 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.4883, allocations: 0.5757 MB / 400.6 MB, free: 5.277 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.4884, allocations: 0 / 400.6 MB, free: 5.277 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.4885, allocations: 19.92 kB / 400.6 MB, free: 5.258 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.285e-06/0.4885, allocations: 4 kB / 400.6 MB, free: 5.254 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/0.4885, allocations: 3.938 kB / 400.6 MB, free: 5.254 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.703e-06/0.4885, allocations: 4 kB / 400.6 MB, free: 5.25 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.948e-06/0.4886, allocations: 0 / 400.6 MB, free: 5.25 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004229/0.489, allocations: 274.1 kB / 400.9 MB, free: 5 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.923e-05/0.4891, allocations: 92.86 kB / 401 MB, free: 4.891 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.154e-05/0.4891, allocations: 3.938 kB / 401 MB, free: 4.891 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.4893, allocations: 11.8 kB / 401 MB, free: 4.883 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.778e-05/0.4894, allocations: 27.89 kB / 401 MB, free: 4.855 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.4894, allocations: 15.56 kB / 401 MB, free: 4.844 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.313e-05/0.4895, allocations: 107.5 kB / 401.1 MB, free: 4.746 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.39e-07/0.4895, allocations: 0 / 401.1 MB, free: 4.746 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004299/0.49, allocations: 43.12 kB / 401.2 MB, free: 4.711 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,greaterEqual.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.0001852/0.4902, allocations: 106.9 kB / 401.3 MB, free: 4.598 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000403/0.4906, allocations: 169.5 kB / 401.4 MB, free: 4.473 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.582e-06/0.4906, allocations: 0.5625 kB / 401.4 MB, free: 4.473 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001739/0.4908, allocations: 86.36 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.0002559/0.4911, allocations: 19.39 kB / 401.5 MB, free: 4.395 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005977/0.4917, allocations: 232.2 kB / 401.8 MB, free: 4.188 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.4921, allocations: 0.7443 MB / 402.5 MB, free: 3.418 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001209/0.4923, allocations: 22.06 kB / 402.5 MB, free: 3.395 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.477e-05/0.4924, allocations: 23.44 kB / 402.6 MB, free: 3.371 MB / 314.7 MB Notification: Performance of SimCode: time 1.793e-06/0.4924, allocations: 0 / 402.6 MB, free: 3.371 MB / 314.7 MB Notification: Performance of Templates: time 0.006579/0.499, allocations: 1.652 MB / 404.2 MB, free: 1.73 MB / 314.7 MB