Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|tank.aboveLevel.1.|tank.ports_m_flow_out.1.|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadModel(Modelica): time 1.969/1.969, allocations: 194.9 MB / 208 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.921e-05/2.931e-05, allocations: 7.984 kB / 255.4 MB, free: 2.68 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07849/0.07854, allocations: 44.5 MB / 299.9 MB, free: 6.117 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8415/0.9201, allocations: 321.4 MB / 0.6067 GB, free: 69.12 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.9204, allocations: 91.77 kB / 0.6068 GB, free: 69.07 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6891/1.609, allocations: 141.4 MB / 0.7449 GB, free: 101.9 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.57e-06/1.61, allocations: 0 / 0.7449 GB, free: 101.9 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.611e-05/1.61, allocations: 26.52 kB / 0.745 GB, free: 101.9 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.00232/1.612, allocations: 1.072 MB / 0.746 GB, free: 100.8 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/1.612, allocations: 8.031 kB / 0.746 GB, free: 100.8 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000508/1.613, allocations: 95.48 kB / 0.7461 GB, free: 100.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001568/1.614, allocations: 0.6457 MB / 0.7467 GB, free: 100 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.964e-05/1.614, allocations: 91.61 kB / 0.7468 GB, free: 99.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/1.614, allocations: 47.98 kB / 0.7469 GB, free: 99.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/1.616, allocations: 0.7901 MB / 0.7476 GB, free: 99.03 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/1.616, allocations: 0 / 0.7476 GB, free: 99.03 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001101/1.616, allocations: 20 kB / 0.7477 GB, free: 99.01 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.135e-05/1.616, allocations: 44.97 kB / 0.7477 GB, free: 98.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/1.617, allocations: 0.6538 MB / 0.7483 GB, free: 98.31 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005278/1.623, allocations: 3.426 MB / 0.7517 GB, free: 94.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007407/1.624, allocations: 394.1 kB / 0.7521 GB, free: 94.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004098/1.624, allocations: 241.1 kB / 0.7523 GB, free: 94.06 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001939/1.626, allocations: 1.341 MB / 0.7536 GB, free: 92.59 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005069/1.626, allocations: 296.8 kB / 0.7539 GB, free: 92.29 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 3.823e-06/1.626, allocations: 0 / 0.7539 GB, free: 92.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.003461/1.63, allocations: 1.404 MB / 0.7553 GB, free: 90.81 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/1.63, allocations: 162.5 kB / 0.7554 GB, free: 90.61 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009451/1.631, allocations: 0.6051 MB / 0.756 GB, free: 90 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.948e-05/1.631, allocations: 33.7 kB / 0.756 GB, free: 89.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002849/1.631, allocations: 424.2 kB / 0.7564 GB, free: 89.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/1.632, allocations: 137.2 kB / 0.7566 GB, free: 89.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.237e-05/1.632, allocations: 16 kB / 0.7566 GB, free: 89.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/1.632, allocations: 390.7 kB / 0.757 GB, free: 89.01 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005031/1.632, allocations: 245.5 kB / 0.7572 GB, free: 88.77 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005985/1.633, allocations: 0.5161 MB / 0.7577 GB, free: 88.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006094/1.634, allocations: 352 kB / 0.758 GB, free: 87.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/1.634, allocations: 11.88 kB / 0.758 GB, free: 87.76 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002002/1.636, allocations: 0.8965 MB / 0.7589 GB, free: 86.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007052/1.636, allocations: 3.526 MB / 0.7624 GB, free: 83.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/1.636, allocations: 8 kB / 0.7624 GB, free: 83.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006926/1.637, allocations: 124.8 kB / 0.7625 GB, free: 82.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007004/1.638, allocations: 155.7 kB / 0.7626 GB, free: 82.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006115/1.638, allocations: 0.6693 MB / 0.7633 GB, free: 82.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008941/1.639, allocations: 51.91 kB / 0.7633 GB, free: 82.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/1.639, allocations: 40 kB / 0.7634 GB, free: 81.97 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/1.639, allocations: 8.062 kB / 0.7634 GB, free: 81.96 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002022/1.642, allocations: 0.837 MB / 0.7642 GB, free: 81.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/1.642, allocations: 16.06 kB / 0.7642 GB, free: 81.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005031/1.642, allocations: 116.7 kB / 0.7643 GB, free: 80.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006361/1.643, allocations: 139.8 kB / 0.7645 GB, free: 80.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005167/1.643, allocations: 0.6616 MB / 0.7651 GB, free: 80.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008106/1.644, allocations: 51.83 kB / 0.7652 GB, free: 80.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.807e-05/1.644, allocations: 39.98 kB / 0.7652 GB, free: 80.07 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000332/1.645, allocations: 206.8 kB / 0.7654 GB, free: 79.86 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/1.645, allocations: 75.16 kB / 0.7655 GB, free: 79.78 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001592/1.646, allocations: 0.654 MB / 0.7661 GB, free: 79.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.344e-06/1.646, allocations: 7.953 kB / 0.7661 GB, free: 79.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.699e-06/1.646, allocations: 0 / 0.7661 GB, free: 79.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.04e-06/1.646, allocations: 3.984 kB / 0.7661 GB, free: 79.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002537/1.649, allocations: 1.331 MB / 0.7674 GB, free: 77.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.074e-06/1.649, allocations: 11.94 kB / 0.7674 GB, free: 77.69 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003765/1.649, allocations: 47.98 kB / 0.7675 GB, free: 77.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005876/1.65, allocations: 132.8 kB / 0.7676 GB, free: 77.51 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.327e-05/1.65, allocations: 15.94 kB / 0.7676 GB, free: 77.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005394/1.651, allocations: 0.6616 MB / 0.7683 GB, free: 76.81 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.209e-06/1.651, allocations: 0 / 0.7683 GB, free: 76.81 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00174/1.652, allocations: 1.001 MB / 0.7692 GB, free: 75.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002128/1.653, allocations: 148.3 kB / 0.7694 GB, free: 75.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/1.653, allocations: 12 kB / 0.7694 GB, free: 75.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005384/1.653, allocations: 31.88 kB / 0.7694 GB, free: 75.56 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/1.653, allocations: 40.02 kB / 0.7695 GB, free: 75.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.438e-05/1.654, allocations: 23.98 kB / 0.7695 GB, free: 75.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006915/1.654, allocations: 475.1 kB / 0.7699 GB, free: 75.04 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.9e-07/1.654, allocations: 0 / 0.7699 GB, free: 75.04 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002095/1.656, allocations: 0.5604 MB / 0.7705 GB, free: 74.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001518/1.658, allocations: 0.5886 MB / 0.7711 GB, free: 73.93 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002568/1.66, allocations: 1.16 MB / 0.7722 GB, free: 72.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.517e-06/1.661, allocations: 4 kB / 0.7722 GB, free: 72.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007391/1.661, allocations: 347.2 kB / 0.7725 GB, free: 72.39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001468/1.663, allocations: 242.7 kB / 0.7728 GB, free: 72.15 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002403/1.665, allocations: 1.096 MB / 0.7738 GB, free: 71.02 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004809/1.666, allocations: 0.9821 MB / 0.7748 GB, free: 70.01 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001397/1.667, allocations: 285.6 kB / 0.7751 GB, free: 69.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001429/1.667, allocations: 47.42 kB / 0.7751 GB, free: 69.68 MB / 410.7 MB Notification: Performance of SimCode: time 1.976e-06/1.667, allocations: 0 / 0.7751 GB, free: 69.68 MB / 410.7 MB Notification: Performance of Templates: time 0.03533/1.703, allocations: 16.93 MB / 0.7916 GB, free: 52.8 MB / 410.7 MB