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.1_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.688/1.688, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.874e-05/2.902e-05, allocations: 0 / 225 MB, free: 2.348 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2531, allocations: 38.77 MB / 263.8 MB, free: 9.824 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.141/0.3942, allocations: 66.12 MB / 329.9 MB, free: 7.602 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002159/0.3945, allocations: 63.97 kB / 330 MB, free: 7.539 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01112/0.4056, allocations: 2.946 MB / 332.9 MB, free: 4.574 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.018e-06/0.4057, allocations: 0 / 332.9 MB, free: 4.574 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.802e-05/0.4057, allocations: 8.875 kB / 332.9 MB, free: 4.566 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.0006763/0.4064, allocations: 439 kB / 333.3 MB, free: 4.09 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.4064, allocations: 8.031 kB / 333.3 MB, free: 4.082 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.09e-05/0.4065, allocations: 23.72 kB / 333.4 MB, free: 4.059 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.4069, allocations: 226.8 kB / 333.6 MB, free: 3.797 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.522e-05/0.4069, allocations: 24.56 kB / 333.6 MB, free: 3.773 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.271e-05/0.407, allocations: 27.98 kB / 333.6 MB, free: 3.746 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005655/0.4076, allocations: 256.9 kB / 333.9 MB, free: 3.469 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.4076, allocations: 7.938 kB / 333.9 MB, free: 3.461 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.202e-05/0.4077, allocations: 8 kB / 333.9 MB, free: 3.453 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.753e-05/0.4077, allocations: 8 kB / 333.9 MB, free: 3.445 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004255/0.4081, allocations: 160.8 kB / 334.1 MB, free: 3.289 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001579/0.4097, allocations: 0.9445 MB / 335 MB, free: 2.273 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003635/0.4101, allocations: 151.1 kB / 335.2 MB, free: 2.117 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001657/0.4103, allocations: 73.31 kB / 335.2 MB, free: 2.043 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.054e-05/0.4103, allocations: 8.172 kB / 335.2 MB, free: 2.035 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002472/0.4106, allocations: 111.5 kB / 335.4 MB, free: 1.914 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 3.58e-06/0.4106, allocations: 3.938 kB / 335.4 MB, free: 1.91 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.000425/0.4111, allocations: 157.4 kB / 335.5 MB, free: 1.75 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.4111, allocations: 59.41 kB / 335.6 MB, free: 1.68 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.4113, allocations: 141.1 kB / 335.7 MB, free: 1.535 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.491e-05/0.4114, allocations: 33.7 kB / 335.7 MB, free: 1.496 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.4115, allocations: 144.2 kB / 335.9 MB, free: 1.352 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.503e-05/0.4116, allocations: 59.25 kB / 335.9 MB, free: 1.293 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.012e-05/0.4116, allocations: 8 kB / 335.9 MB, free: 1.285 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.4118, allocations: 326.8 kB / 336.3 MB, free: 0.957 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001708/0.412, allocations: 60.64 kB / 336.3 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002416/0.4122, allocations: 141.5 kB / 336.5 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.4124, allocations: 63.95 kB / 336.5 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.712e-06/0.4124, allocations: 4 kB / 336.5 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005277/0.413, allocations: 229.2 kB / 336.8 MB, free: 440 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.413, allocations: 8 kB / 336.8 MB, free: 432 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.342e-06/0.413, allocations: 0 / 336.8 MB, free: 432 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.36e-05/0.4131, allocations: 12.28 kB / 336.8 MB, free: 420 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001792/0.4133, allocations: 31.92 kB / 336.8 MB, free: 388 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.633e-05/0.4133, allocations: 11.94 kB / 336.8 MB, free: 376 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/0.4134, allocations: 15.91 kB / 336.8 MB, free: 360 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.417e-05/0.4135, allocations: 16 kB / 336.8 MB, free: 344 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,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.0001384/0.4137, allocations: 136.7 kB / 337 MB, free: 200 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.311e-05/0.4137, allocations: 15.84 kB / 337 MB, free: 184 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004505/0.4142, allocations: 190.2 kB / 337.2 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.189e-06/0.4142, allocations: 4 kB / 337.2 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.444e-06/0.4142, allocations: 0 / 337.2 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.564e-06/0.4142, allocations: 3.953 kB / 337.2 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001009/0.4152, allocations: 0.572 MB / 337.8 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.668e-06/0.4153, allocations: 0 / 337.8 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.4154, allocations: 12 kB / 337.8 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-05/0.4154, allocations: 19.89 kB / 337.8 MB, free: 15.31 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.4154, allocations: 7.938 kB / 337.8 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.137e-06/0.4154, allocations: 3.984 kB / 337.8 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4155, allocations: 3.938 kB / 337.8 MB, free: 15.3 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004399/0.4159, allocations: 271.6 kB / 338.1 MB, free: 15.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.143e-05/0.416, allocations: 85.02 kB / 338.2 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.416, allocations: 11.94 kB / 338.2 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.4162, allocations: 8 kB / 338.2 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.951e-05/0.4163, allocations: 23.97 kB / 338.2 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.206e-05/0.4163, allocations: 4 kB / 338.2 MB, free: 14.87 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.267e-05/0.4164, allocations: 106.3 kB / 338.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.4164, allocations: 0 / 338.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004225/0.4169, allocations: 44 kB / 338.3 MB, free: 14.72 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,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.0001813/0.4171, allocations: 119 kB / 338.5 MB, free: 14.6 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004292/0.4175, allocations: 172 kB / 338.6 MB, free: 14.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.528e-06/0.4175, allocations: 0 / 338.6 MB, free: 14.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001779/0.4177, allocations: 75.94 kB / 338.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002652/0.418, allocations: 23.89 kB / 338.7 MB, free: 14.33 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005974/0.4186, allocations: 226.3 kB / 339 MB, free: 14.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004539/0.4191, allocations: 0.7445 MB / 339.7 MB, free: 13.32 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001264/0.4192, allocations: 26.06 kB / 339.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.839e-05/0.4193, allocations: 19.44 kB / 339.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of SimCode: time 1.492e-06/0.4193, allocations: 7.938 kB / 339.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of Templates: time 0.006443/0.4258, allocations: 1.66 MB / 341.4 MB, free: 11.62 MB / 298.7 MB