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.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 2.085/2.085, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.657e-05/2.68e-05, allocations: 3.125 kB / 255.3 MB, free: 3.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07816/0.07821, allocations: 44.51 MB / 299.8 MB, free: 6.637 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3176/0.3959, allocations: 71.41 MB / 371.2 MB, free: 21.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.3961, allocations: 63.83 kB / 371.3 MB, free: 21.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01076/0.4069, allocations: 2.945 MB / 374.3 MB, free: 21.04 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.105e-06/0.4069, allocations: 2.25 kB / 374.3 MB, free: 21.04 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.407, allocations: 5.125 kB / 374.3 MB, free: 21.04 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.0005285/0.4075, allocations: 442.9 kB / 374.7 MB, free: 20.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.4075, allocations: 9.719 kB / 374.7 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.121e-05/0.4076, allocations: 19.59 kB / 374.7 MB, free: 20.65 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002397/0.4079, allocations: 234.3 kB / 374.9 MB, free: 20.44 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.984e-05/0.4079, allocations: 25.14 kB / 375 MB, free: 20.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.066e-05/0.408, allocations: 25.34 kB / 375 MB, free: 20.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005099/0.4085, allocations: 268 kB / 375.3 MB, free: 20.35 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.4086, allocations: 0 / 375.3 MB, free: 20.35 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.175e-05/0.4086, allocations: 12.33 kB / 375.3 MB, free: 20.35 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.4086, allocations: 5.562 kB / 375.3 MB, free: 20.35 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004002/0.409, allocations: 162.1 kB / 375.4 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001191/0.4102, allocations: 0.9457 MB / 376.4 MB, free: 19.7 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003267/0.4106, allocations: 150.2 kB / 376.5 MB, free: 19.67 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.4108, allocations: 84.7 kB / 376.6 MB, free: 19.65 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.4108, allocations: 2.219 kB / 376.6 MB, free: 19.65 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002132/0.411, allocations: 113.5 kB / 376.7 MB, free: 19.6 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.537e-06/0.411, allocations: 1.281 kB / 376.7 MB, free: 19.6 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003895/0.4114, allocations: 161.2 kB / 376.9 MB, free: 19.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.4115, allocations: 58.42 kB / 376.9 MB, free: 19.49 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001237/0.4116, allocations: 142.4 kB / 377.1 MB, free: 19.39 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.553e-05/0.4117, allocations: 38.64 kB / 377.1 MB, free: 19.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.036e-05/0.4118, allocations: 206.3 kB / 377.3 MB, free: 19.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.456e-05/0.4118, allocations: 62.55 kB / 377.4 MB, free: 19.15 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.631e-05/0.4119, allocations: 7.812 kB / 377.4 MB, free: 19.15 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.019e-05/0.4119, allocations: 322.8 kB / 377.7 MB, free: 18.84 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.4121, allocations: 59.03 kB / 377.8 MB, free: 18.83 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001916/0.4123, allocations: 137.3 kB / 377.9 MB, free: 18.75 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001655/0.4125, allocations: 66.8 kB / 378 MB, free: 18.74 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.287e-06/0.4125, allocations: 3.125 kB / 378 MB, free: 18.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005041/0.413, allocations: 248 kB / 378.2 MB, free: 18.68 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.4131, allocations: 5.625 kB / 378.2 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.39e-06/0.4131, allocations: 3.406 kB / 378.2 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.4131, allocations: 3.281 kB / 378.2 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001827/0.4133, allocations: 35.12 kB / 378.2 MB, free: 18.67 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.4133, allocations: 8.594 kB / 378.3 MB, free: 18.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001488/0.4135, allocations: 19.83 kB / 378.3 MB, free: 18.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.824e-05/0.4135, allocations: 13.75 kB / 378.3 MB, free: 18.66 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 9.742e-05/0.4136, allocations: 133.9 kB / 378.4 MB, free: 18.55 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.144e-05/0.4137, allocations: 14.39 kB / 378.4 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000403/0.4141, allocations: 187.1 kB / 378.6 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.495e-06/0.4141, allocations: 2.969 kB / 378.6 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.05e-06/0.4141, allocations: 1.25 kB / 378.6 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.254e-06/0.4142, allocations: 9.859 kB / 378.6 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000862/0.415, allocations: 0.5782 MB / 379.2 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.515e-06/0.4151, allocations: 5.219 kB / 379.2 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001007/0.4152, allocations: 13.62 kB / 379.2 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.454e-06/0.4152, allocations: 1.625 kB / 379.2 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.4152, allocations: 6.016 kB / 379.2 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.955e-06/0.4152, allocations: 0.875 kB / 379.2 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.4152, allocations: 5.125 kB / 379.2 MB, free: 18.13 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003597/0.4156, allocations: 275.3 kB / 379.5 MB, free: 17.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.363e-05/0.4157, allocations: 87 kB / 379.6 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.358e-05/0.4157, allocations: 6.203 kB / 379.6 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.4159, allocations: 13.11 kB / 379.6 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.044e-05/0.416, allocations: 27.48 kB / 379.6 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.416, allocations: 5.219 kB / 379.6 MB, free: 17.88 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.154e-05/0.4161, allocations: 110.7 kB / 379.8 MB, free: 17.79 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.96e-07/0.4161, allocations: 0 / 379.8 MB, free: 17.79 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004477/0.4165, allocations: 47.88 kB / 379.8 MB, free: 17.78 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.0001644/0.4167, allocations: 118.2 kB / 379.9 MB, free: 17.68 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004197/0.4172, allocations: 165.8 kB / 380.1 MB, free: 17.68 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.97e-06/0.4172, allocations: 0.5625 kB / 380.1 MB, free: 17.68 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001701/0.4174, allocations: 82.97 kB / 380.2 MB, free: 17.67 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002655/0.4176, allocations: 20.53 kB / 380.2 MB, free: 17.66 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006163/0.4183, allocations: 260.9 kB / 380.4 MB, free: 17.53 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001995/0.4185, allocations: 0.7386 MB / 381.2 MB, free: 16.82 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.372e-05/0.4186, allocations: 21.62 kB / 381.2 MB, free: 16.82 MB / 314.7 MB Notification: Performance of SimCode: time 1.875e-06/0.4186, allocations: 0 / 381.2 MB, free: 16.82 MB / 314.7 MB Notification: Performance of Templates: time 0.005195/0.4238, allocations: 2.312 MB / 383.5 MB, free: 16.62 MB / 314.7 MB