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 2.073/2.073, allocations: 194.9 MB / 210.6 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.359e-05/3.364e-05, allocations: 0 / 258.8 MB, free: 8.074 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3139, allocations: 44.51 MB / 303.3 MB, free: 12.96 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002487/0.3165, allocations: 1.379 MB / 304.7 MB, free: 11.82 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007726/0.3173, allocations: 243.6 kB / 304.9 MB, free: 11.62 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.733e-05/0.3174, allocations: 5.594 kB / 304.9 MB, free: 11.62 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001145/0.3175, allocations: 23.56 kB / 305 MB, free: 11.61 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.586e-05/0.3176, allocations: 7.984 kB / 305 MB, free: 11.6 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003805/0.318, allocations: 86.61 kB / 305 MB, free: 11.53 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002758/0.3183, allocations: 134.5 kB / 305.2 MB, free: 11.43 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002917/0.3186, allocations: 128.6 kB / 305.3 MB, free: 11.34 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.186e-05/0.3187, allocations: 56.59 kB / 305.4 MB, free: 11.31 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000157/0.3189, allocations: 64.81 kB / 305.4 MB, free: 11.26 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.994e-05/0.319, allocations: 20.69 kB / 305.4 MB, free: 11.25 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.476e-05/0.319, allocations: 13.78 kB / 305.5 MB, free: 11.25 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.701e-05/0.3191, allocations: 32.75 kB / 305.5 MB, free: 11.23 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.984e-05/0.3192, allocations: 12.84 kB / 305.5 MB, free: 11.23 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000275/0.3195, allocations: 154.2 kB / 305.7 MB, free: 11.11 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3195, allocations: 0 / 305.7 MB, free: 11.11 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.3195, allocations: 1.031 kB / 305.7 MB, free: 11.11 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.3195, allocations: 3.938 kB / 305.7 MB, free: 11.11 MB / 250.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.0007778/0.3203, allocations: 438.6 kB / 306.1 MB, free: 10.68 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.3204, allocations: 12.66 kB / 306.1 MB, free: 10.67 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.098e-05/0.3204, allocations: 19.03 kB / 306.1 MB, free: 10.66 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003376/0.3208, allocations: 237.9 kB / 306.4 MB, free: 10.41 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.482e-05/0.3209, allocations: 19.88 kB / 306.4 MB, free: 10.4 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.201e-05/0.3209, allocations: 25.84 kB / 306.4 MB, free: 10.39 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006475/0.3216, allocations: 266.7 kB / 306.7 MB, free: 10.14 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.3216, allocations: 4 kB / 306.7 MB, free: 10.14 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/0.3217, allocations: 8 kB / 306.7 MB, free: 10.13 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.3217, allocations: 4 kB / 306.7 MB, free: 10.13 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004963/0.3222, allocations: 169.6 kB / 306.8 MB, free: 9.965 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001641/0.3238, allocations: 0.956 MB / 307.8 MB, free: 8.938 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004207/0.3243, allocations: 151.3 kB / 307.9 MB, free: 8.781 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.999e-05/0.3243, allocations: 4.125 kB / 307.9 MB, free: 8.777 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002871/0.3246, allocations: 119.4 kB / 308.1 MB, free: 8.648 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 2.715e-06/0.3246, allocations: 0 / 308.1 MB, free: 8.648 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006294/0.3253, allocations: 209.3 kB / 308.3 MB, free: 8.438 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.3254, allocations: 59.41 kB / 308.3 MB, free: 8.367 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.3255, allocations: 148.7 kB / 308.5 MB, free: 8.215 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.48e-05/0.3256, allocations: 37.69 kB / 308.5 MB, free: 8.172 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.3257, allocations: 136.5 kB / 308.6 MB, free: 8.035 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.611e-05/0.3258, allocations: 63.19 kB / 308.7 MB, free: 7.973 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.92e-05/0.3258, allocations: 8 kB / 308.7 MB, free: 7.965 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.326, allocations: 326.8 kB / 309 MB, free: 7.637 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001859/0.3262, allocations: 60.62 kB / 309.1 MB, free: 7.578 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002595/0.3265, allocations: 133.9 kB / 309.2 MB, free: 7.418 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002046/0.3267, allocations: 71.94 kB / 309.3 MB, free: 7.348 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3267, allocations: 0 / 309.3 MB, free: 7.348 MB / 250.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006159/0.3273, allocations: 249.2 kB / 309.5 MB, free: 7.098 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.3274, allocations: 11.95 kB / 309.5 MB, free: 7.086 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.3274, allocations: 3.984 kB / 309.5 MB, free: 7.082 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.3274, allocations: 4.281 kB / 309.6 MB, free: 7.078 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002381/0.3277, allocations: 35.92 kB / 309.6 MB, free: 7.043 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.3277, allocations: 4 kB / 309.6 MB, free: 7.039 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001716/0.3279, allocations: 31.69 kB / 309.6 MB, free: 7.008 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.931e-05/0.3279, allocations: 23.91 kB / 309.6 MB, free: 6.984 MB / 250.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,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,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.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,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.0001974/0.3281, allocations: 152.4 kB / 309.8 MB, free: 6.824 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.125e-05/0.3282, allocations: 7.906 kB / 309.8 MB, free: 6.816 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005164/0.3287, allocations: 194.3 kB / 310 MB, free: 6.617 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.3287, allocations: 8 kB / 310 MB, free: 6.609 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3287, allocations: 3.938 kB / 310 MB, free: 6.605 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.3288, allocations: 0 / 310 MB, free: 6.605 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001117/0.3299, allocations: 0.5915 MB / 310.6 MB, free: 5.953 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3299, allocations: 0 / 310.6 MB, free: 5.953 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/0.33, allocations: 15.94 kB / 310.6 MB, free: 5.938 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.3301, allocations: 0 / 310.6 MB, free: 5.938 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.2e-05/0.3301, allocations: 11.98 kB / 310.6 MB, free: 5.926 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.79e-06/0.3301, allocations: 4 kB / 310.6 MB, free: 5.922 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.3301, allocations: 0 / 310.6 MB, free: 5.922 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004493/0.3306, allocations: 263.3 kB / 310.9 MB, free: 5.648 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.931e-05/0.3307, allocations: 96.89 kB / 311 MB, free: 5.535 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.246e-05/0.3307, allocations: 8 kB / 311 MB, free: 5.527 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.3309, allocations: 7.938 kB / 311 MB, free: 5.52 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.331, allocations: 31.89 kB / 311 MB, free: 5.488 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-05/0.331, allocations: 11.94 kB / 311 MB, free: 5.477 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.602e-05/0.3311, allocations: 96.67 kB / 311.1 MB, free: 5.383 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3312, allocations: 0 / 311.1 MB, free: 5.383 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004117/0.3316, allocations: 55.75 kB / 311.2 MB, free: 5.328 MB / 250.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,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,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.0001807/0.3318, allocations: 107.2 kB / 311.3 MB, free: 5.215 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005051/0.3323, allocations: 184.2 kB / 311.5 MB, free: 5.035 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3323, allocations: 0 / 311.5 MB, free: 5.035 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002023/0.3325, allocations: 75.92 kB / 311.5 MB, free: 4.961 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002536/0.3328, allocations: 15.98 kB / 311.6 MB, free: 4.945 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008638/0.3337, allocations: 387.8 kB / 311.9 MB, free: 4.543 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/0.3341, allocations: 0.7406 MB / 312.7 MB, free: 3.777 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.000139/0.3342, allocations: 21.95 kB / 312.7 MB, free: 3.758 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.726e-05/0.3343, allocations: 27.42 kB / 312.7 MB, free: 3.73 MB / 250.7 MB Notification: Performance of SimCode: time 6.21e-07/0.3343, allocations: 0 / 312.7 MB, free: 3.73 MB / 250.7 MB Notification: Performance of Templates: time 0.007004/0.3413, allocations: 1.645 MB / 314.4 MB, free: 2.094 MB / 250.7 MB