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.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadModel(Modelica): time 1.618/1.618, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.111e-05/3.132e-05, allocations: 4 kB / 225 MB, free: 2.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2174, allocations: 38.77 MB / 263.8 MB, free: 9.699 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7676/0.985, allocations: 316 MB / 0.5662 GB, free: 85.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.9854, allocations: 84.52 kB / 0.5663 GB, free: 85.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6651/1.65, allocations: 141.3 MB / 0.7044 GB, free: 88.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.92e-06/1.651, allocations: 3.812 kB / 0.7044 GB, free: 88.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.947e-05/1.651, allocations: 19.69 kB / 0.7044 GB, free: 88.98 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.002355/1.653, allocations: 1.058 MB / 0.7054 GB, free: 88.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/1.653, allocations: 11.38 kB / 0.7054 GB, free: 88.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005077/1.654, allocations: 94.73 kB / 0.7055 GB, free: 88.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/1.655, allocations: 0.6347 MB / 0.7061 GB, free: 87.43 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.048e-05/1.655, allocations: 100.2 kB / 0.7062 GB, free: 87.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/1.655, allocations: 51.78 kB / 0.7063 GB, free: 87.28 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/1.657, allocations: 0.7724 MB / 0.707 GB, free: 86.46 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/1.657, allocations: 3.938 kB / 0.707 GB, free: 86.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/1.657, allocations: 27.91 kB / 0.7071 GB, free: 86.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.661e-05/1.657, allocations: 44.91 kB / 0.7071 GB, free: 86.39 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/1.658, allocations: 0.6422 MB / 0.7077 GB, free: 85.74 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005264/1.664, allocations: 3.397 MB / 0.711 GB, free: 82.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007492/1.664, allocations: 393.1 kB / 0.7114 GB, free: 81.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000407/1.665, allocations: 232.8 kB / 0.7116 GB, free: 81.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001986/1.667, allocations: 1.339 MB / 0.7129 GB, free: 80.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004874/1.667, allocations: 293.1 kB / 0.7132 GB, free: 79.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.495e-06/1.667, allocations: 0 / 0.7132 GB, free: 79.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.003566/1.671, allocations: 1.488 MB / 0.7147 GB, free: 78.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/1.671, allocations: 162.2 kB / 0.7148 GB, free: 78.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000904/1.672, allocations: 0.6051 MB / 0.7154 GB, free: 77.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.786e-05/1.672, allocations: 37.7 kB / 0.7155 GB, free: 77.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002755/1.672, allocations: 418.5 kB / 0.7159 GB, free: 76.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/1.672, allocations: 133.9 kB / 0.716 GB, free: 76.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.972e-05/1.673, allocations: 12 kB / 0.716 GB, free: 76.81 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001249/1.673, allocations: 386.8 kB / 0.7164 GB, free: 76.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000483/1.673, allocations: 241.5 kB / 0.7166 GB, free: 76.19 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006059/1.674, allocations: 0.5189 MB / 0.7171 GB, free: 75.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006113/1.674, allocations: 343.9 kB / 0.7174 GB, free: 75.19 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/1.674, allocations: 0 / 0.7174 GB, free: 75.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002102/1.677, allocations: 0.9544 MB / 0.7184 GB, free: 74.22 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007019/1.677, allocations: 3.511 MB / 0.7218 GB, free: 70.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/1.677, allocations: 8 kB / 0.7218 GB, free: 70.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006877/1.678, allocations: 128.8 kB / 0.7219 GB, free: 70.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006752/1.679, allocations: 151 kB / 0.7221 GB, free: 70.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006138/1.679, allocations: 0.6695 MB / 0.7227 GB, free: 69.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008902/1.68, allocations: 51.88 kB / 0.7228 GB, free: 69.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/1.68, allocations: 36 kB / 0.7228 GB, free: 69.37 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/1.68, allocations: 7.953 kB / 0.7228 GB, free: 69.36 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00206/1.682, allocations: 0.8874 MB / 0.7237 GB, free: 68.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/1.682, allocations: 8 kB / 0.7237 GB, free: 68.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004997/1.683, allocations: 117 kB / 0.7238 GB, free: 68.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006292/1.684, allocations: 151.7 kB / 0.7239 GB, free: 68.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005252/1.684, allocations: 0.646 MB / 0.7246 GB, free: 67.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008057/1.685, allocations: 55.84 kB / 0.7246 GB, free: 67.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.659e-05/1.685, allocations: 39.98 kB / 0.7247 GB, free: 67.43 MB / 362.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: 10 ($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) * 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.0003357/1.685, allocations: 206.2 kB / 0.7249 GB, free: 67.22 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/1.686, allocations: 71.16 kB / 0.7249 GB, free: 67.15 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001643/1.687, allocations: 0.6995 MB / 0.7256 GB, free: 66.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.126e-06/1.687, allocations: 4 kB / 0.7256 GB, free: 66.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.54e-06/1.687, allocations: 7.953 kB / 0.7256 GB, free: 66.42 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.075e-06/1.687, allocations: 3.984 kB / 0.7256 GB, free: 66.42 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002635/1.69, allocations: 1.367 MB / 0.727 GB, free: 64.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.015e-06/1.69, allocations: 4.031 kB / 0.727 GB, free: 64.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003932/1.69, allocations: 55.91 kB / 0.727 GB, free: 64.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006097/1.691, allocations: 123.7 kB / 0.7271 GB, free: 64.81 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.545e-05/1.691, allocations: 15.98 kB / 0.7272 GB, free: 64.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005545/1.692, allocations: 0.6578 MB / 0.7278 GB, free: 64.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.698e-06/1.692, allocations: 0 / 0.7278 GB, free: 64.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00183/1.694, allocations: 1.019 MB / 0.7288 GB, free: 63.06 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002598/1.694, allocations: 152.3 kB / 0.7289 GB, free: 62.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000152/1.694, allocations: 12 kB / 0.729 GB, free: 62.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006326/1.695, allocations: 31.97 kB / 0.729 GB, free: 62.85 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/1.695, allocations: 31.95 kB / 0.729 GB, free: 62.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.785e-05/1.695, allocations: 23.97 kB / 0.729 GB, free: 62.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006982/1.696, allocations: 471.1 kB / 0.7295 GB, free: 62.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.069e-06/1.696, allocations: 4 kB / 0.7295 GB, free: 62.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002183/1.698, allocations: 0.5581 MB / 0.73 GB, free: 61.78 MB / 362.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: 7 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 7 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.last,timeTable.nextEvent,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.001578/1.699, allocations: 0.5939 MB / 0.7306 GB, free: 61.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002573/1.702, allocations: 1.106 MB / 0.7317 GB, free: 60.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/1.702, allocations: 0 / 0.7317 GB, free: 60.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007168/1.703, allocations: 311.2 kB / 0.732 GB, free: 59.78 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001468/1.704, allocations: 242.5 kB / 0.7322 GB, free: 59.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002465/1.707, allocations: 1.089 MB / 0.7333 GB, free: 58.42 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004853/1.707, allocations: 0.9821 MB / 0.7342 GB, free: 57.41 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001393/1.709, allocations: 272 kB / 0.7345 GB, free: 57.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001503/1.709, allocations: 51.42 kB / 0.7346 GB, free: 57.09 MB / 362.7 MB Notification: Performance of SimCode: time 2.541e-06/1.709, allocations: 0 / 0.7346 GB, free: 57.09 MB / 362.7 MB Notification: Performance of Templates: time 0.03508/1.744, allocations: 16.75 MB / 0.7509 GB, free: 40.39 MB / 362.7 MB