Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 1.74/1.74, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.079e-05/3.099e-05, allocations: 4 kB / 225 MB, free: 2.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3418, allocations: 38.77 MB / 263.8 MB, free: 9.844 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7144/1.056, allocations: 311.9 MB / 0.5621 GB, free: 90.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/1.056, allocations: 83.95 kB / 0.5622 GB, free: 90.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.672/1.729, allocations: 135.7 MB / 0.6948 GB, free: 93.42 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.082e-06/1.729, allocations: 0 / 0.6948 GB, free: 93.42 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.765e-05/1.729, allocations: 15.34 kB / 0.6948 GB, free: 93.42 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002354/1.731, allocations: 1.021 MB / 0.6958 GB, free: 92.74 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/1.731, allocations: 11.66 kB / 0.6958 GB, free: 92.74 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004688/1.732, allocations: 84.59 kB / 0.6959 GB, free: 92.7 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/1.733, allocations: 0.5745 MB / 0.6965 GB, free: 92.33 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.707e-05/1.733, allocations: 43.48 kB / 0.6965 GB, free: 92.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/1.733, allocations: 45.34 kB / 0.6965 GB, free: 92.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/1.734, allocations: 0.7181 MB / 0.6972 GB, free: 91.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.747e-05/1.735, allocations: 11.75 kB / 0.6973 GB, free: 91.97 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-05/1.735, allocations: 18.61 kB / 0.6973 GB, free: 91.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.372e-05/1.735, allocations: 45.11 kB / 0.6973 GB, free: 91.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001405/1.736, allocations: 0.663 MB / 0.698 GB, free: 91.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005111/1.741, allocations: 2.85 MB / 0.7007 GB, free: 89.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008698/1.742, allocations: 461.3 kB / 0.7012 GB, free: 89.64 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004758/1.743, allocations: 248.3 kB / 0.7014 GB, free: 89.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002717/1.743, allocations: 345.6 kB / 0.7018 GB, free: 89.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/1.743, allocations: 42.84 kB / 0.7018 GB, free: 89.11 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 3.805e-06/1.743, allocations: 0 / 0.7018 GB, free: 89.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.004825/1.748, allocations: 1.823 MB / 0.7036 GB, free: 88.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/1.748, allocations: 87.98 kB / 0.7037 GB, free: 88.19 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009068/1.749, allocations: 0.5384 MB / 0.7042 GB, free: 87.94 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001139/1.749, allocations: 45.42 kB / 0.7042 GB, free: 87.9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002352/1.749, allocations: 323.7 kB / 0.7045 GB, free: 87.64 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/1.749, allocations: 206.6 kB / 0.7047 GB, free: 87.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.685e-05/1.75, allocations: 14.95 kB / 0.7047 GB, free: 87.47 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/1.75, allocations: 386.8 kB / 0.7051 GB, free: 87.13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006049/1.75, allocations: 280.6 kB / 0.7054 GB, free: 87.03 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006926/1.751, allocations: 439.2 kB / 0.7058 GB, free: 86.74 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006833/1.752, allocations: 338.9 kB / 0.7061 GB, free: 86.55 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.991e-06/1.752, allocations: 0 / 0.7061 GB, free: 86.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001918/1.754, allocations: 0.898 MB / 0.707 GB, free: 85.74 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003489/1.754, allocations: 1.748 MB / 0.7087 GB, free: 83.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/1.754, allocations: 10.62 kB / 0.7087 GB, free: 83.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002651/1.757, allocations: 351.4 kB / 0.7091 GB, free: 83.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008922/1.758, allocations: 151.2 kB / 0.7092 GB, free: 83.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001037/1.759, allocations: 0.8145 MB / 0.71 GB, free: 82.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000873/1.76, allocations: 46.12 kB / 0.71 GB, free: 82.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/1.76, allocations: 35.89 kB / 0.7101 GB, free: 82.65 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/1.76, allocations: 4 kB / 0.7101 GB, free: 82.64 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001634/1.761, allocations: 0.7639 MB / 0.7108 GB, free: 81.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/1.761, allocations: 4 kB / 0.7108 GB, free: 81.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001707/1.763, allocations: 223.9 kB / 0.711 GB, free: 81.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008354/1.764, allocations: 162.9 kB / 0.7112 GB, free: 81.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006526/1.765, allocations: 0.6877 MB / 0.7119 GB, free: 81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007844/1.765, allocations: 46.83 kB / 0.7119 GB, free: 80.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.908e-05/1.766, allocations: 38.75 kB / 0.7119 GB, free: 80.93 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002467/1.766, allocations: 149.2 kB / 0.7121 GB, free: 80.78 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001928/1.766, allocations: 75.11 kB / 0.7122 GB, free: 80.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001857/1.768, allocations: 0.839 MB / 0.713 GB, free: 79.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.703e-06/1.768, allocations: 12.38 kB / 0.713 GB, free: 79.97 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.687e-06/1.768, allocations: 0 / 0.713 GB, free: 79.97 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.724e-06/1.768, allocations: 0 / 0.713 GB, free: 79.97 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003265/1.771, allocations: 1.645 MB / 0.7146 GB, free: 78.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.808e-06/1.771, allocations: 0 / 0.7146 GB, free: 78.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006575/1.772, allocations: 111.3 kB / 0.7147 GB, free: 78.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002105/1.774, allocations: 328.5 kB / 0.715 GB, free: 78.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.397e-05/1.774, allocations: 19.8 kB / 0.715 GB, free: 78.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008871/1.775, allocations: 0.7999 MB / 0.7158 GB, free: 77.42 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.8e-06/1.775, allocations: 0 / 0.7158 GB, free: 77.42 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002323/1.777, allocations: 1.239 MB / 0.717 GB, free: 76.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002858/1.778, allocations: 164.1 kB / 0.7172 GB, free: 76.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001656/1.778, allocations: 14.62 kB / 0.7172 GB, free: 76.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007041/1.779, allocations: 35.97 kB / 0.7172 GB, free: 76.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/1.779, allocations: 52.48 kB / 0.7173 GB, free: 75.97 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.092e-05/1.779, allocations: 27.98 kB / 0.7173 GB, free: 75.94 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006829/1.78, allocations: 435.1 kB / 0.7177 GB, free: 75.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.95e-07/1.78, allocations: 0 / 0.7177 GB, free: 75.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002215/1.782, allocations: 0.5854 MB / 0.7183 GB, free: 74.94 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001494/1.783, allocations: 0.6088 MB / 0.7189 GB, free: 74.37 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002487/1.786, allocations: 1.107 MB / 0.72 GB, free: 73.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.532e-06/1.786, allocations: 0.8125 kB / 0.72 GB, free: 73.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007744/1.787, allocations: 366 kB / 0.7203 GB, free: 72.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001917/1.789, allocations: 329.9 kB / 0.7206 GB, free: 72.59 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002406/1.791, allocations: 1.184 MB / 0.7218 GB, free: 71.4 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004686/1.792, allocations: 0.9879 MB / 0.7228 GB, free: 70.39 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001503/1.793, allocations: 335.2 kB / 0.7231 GB, free: 70.08 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002046/1.793, allocations: 51.42 kB / 0.7231 GB, free: 70.03 MB / 362.7 MB Notification: Performance of SimCode: time 2.05e-06/1.793, allocations: 0 / 0.7231 GB, free: 70.03 MB / 362.7 MB Notification: Performance of Templates: time 0.04109/1.834, allocations: 20.7 MB / 0.7433 GB, free: 49.46 MB / 362.7 MB