Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.837/1.837, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.889e-05/2.91e-05, allocations: 0 / 255.4 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07881/0.07886, allocations: 44.5 MB / 299.9 MB, free: 6.617 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9202/0.9991, allocations: 322.2 MB / 0.6075 GB, free: 68.79 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/0.9994, allocations: 90 kB / 0.6076 GB, free: 68.74 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.495/2.494, allocations: 321.5 MB / 0.9215 GB, free: 57.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.641e-06/2.494, allocations: 0 / 0.9215 GB, free: 57.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002053/2.495, allocations: 46.66 kB / 0.9216 GB, free: 57.47 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.007098/2.502, allocations: 2.04 MB / 0.9236 GB, free: 56.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/2.502, allocations: 10.75 kB / 0.9236 GB, free: 56.5 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001317/2.503, allocations: 195.9 kB / 0.9238 GB, free: 56.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003949/2.507, allocations: 1.246 MB / 0.925 GB, free: 55.99 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001629/2.507, allocations: 100.4 kB / 0.9251 GB, free: 55.99 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005144/2.508, allocations: 122.7 kB / 0.9252 GB, free: 55.98 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004483/2.512, allocations: 1.906 MB / 0.9271 GB, free: 55.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.413e-05/2.512, allocations: 0 / 0.9271 GB, free: 55.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000273/2.513, allocations: 56.62 kB / 0.9271 GB, free: 55.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001942/2.513, allocations: 121.9 kB / 0.9272 GB, free: 55.69 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004905/2.518, allocations: 1.897 MB / 0.9291 GB, free: 55.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01664/2.535, allocations: 7.619 MB / 0.9365 GB, free: 50.58 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002535/2.537, allocations: 1.122 MB / 0.9376 GB, free: 50.15 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00164/2.539, allocations: 0.7233 MB / 0.9383 GB, free: 49.87 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00679/2.546, allocations: 3.379 MB / 0.9416 GB, free: 47.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/2.546, allocations: 53.66 kB / 0.9417 GB, free: 47.56 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 5.041e-06/2.546, allocations: 0 / 0.9417 GB, free: 47.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.01282/2.559, allocations: 4.07 MB / 0.9456 GB, free: 45.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.768e-05/2.559, allocations: 174 kB / 0.9458 GB, free: 45.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002098/2.561, allocations: 1.151 MB / 0.9469 GB, free: 45.27 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003524/2.561, allocations: 61.38 kB / 0.947 GB, free: 45.22 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000543/2.562, allocations: 0.6984 MB / 0.9477 GB, free: 44.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006222/2.562, allocations: 469.7 kB / 0.9481 GB, free: 44.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000173/2.563, allocations: 35.19 kB / 0.9482 GB, free: 44.24 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001339/2.563, allocations: 382.3 kB / 0.9485 GB, free: 43.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001606/2.564, allocations: 0.7389 MB / 0.9492 GB, free: 43.62 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002011/2.566, allocations: 1.179 MB / 0.9504 GB, free: 42.81 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002004/2.568, allocations: 0.8668 MB / 0.9512 GB, free: 42.51 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.419e-05/2.568, allocations: 3.938 kB / 0.9512 GB, free: 42.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005551/2.574, allocations: 2.261 MB / 0.9535 GB, free: 41.12 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001038/2.575, allocations: 5.136 MB / 0.9585 GB, free: 35.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.867e-05/2.575, allocations: 12 kB / 0.9585 GB, free: 35.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007377/2.583, allocations: 0.9341 MB / 0.9594 GB, free: 34.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002001/2.585, allocations: 366.1 kB / 0.9597 GB, free: 34.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002877/2.588, allocations: 2.878 MB / 0.9626 GB, free: 31.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002378/2.59, allocations: 141.5 kB / 0.9627 GB, free: 31.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004324/2.59, allocations: 82.17 kB / 0.9628 GB, free: 31.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/2.59, allocations: 6.344 kB / 0.9628 GB, free: 31.66 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004631/2.595, allocations: 2.06 MB / 0.9648 GB, free: 29.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.461e-05/2.595, allocations: 15.94 kB / 0.9648 GB, free: 29.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005069/2.6, allocations: 0.6602 MB / 0.9654 GB, free: 29.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002049/2.602, allocations: 364.9 kB / 0.9658 GB, free: 29.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002142/2.605, allocations: 2.614 MB / 0.9683 GB, free: 26.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001786/2.606, allocations: 134.2 kB / 0.9685 GB, free: 26.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003384/2.607, allocations: 86.22 kB / 0.9686 GB, free: 26.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 203 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005364/2.607, allocations: 225 kB / 0.9688 GB, free: 26.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000451/2.608, allocations: 162 kB / 0.9689 GB, free: 25.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005805/2.614, allocations: 2.322 MB / 0.9712 GB, free: 23.92 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.488e-05/2.614, allocations: 16 kB / 0.9712 GB, free: 23.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.286e-06/2.614, allocations: 0.6562 kB / 0.9712 GB, free: 23.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.513e-05/2.614, allocations: 11.27 kB / 0.9712 GB, free: 23.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008969/2.623, allocations: 3.899 MB / 0.975 GB, free: 20.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-05/2.623, allocations: 4 kB / 0.975 GB, free: 20.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001471/2.624, allocations: 246.2 kB / 0.9753 GB, free: 20.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005563/2.63, allocations: 0.8698 MB / 0.9761 GB, free: 19.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003481/2.63, allocations: 43.97 kB / 0.9762 GB, free: 19.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002692/2.633, allocations: 2.803 MB / 0.9789 GB, free: 16.84 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.243e-06/2.633, allocations: 8.219 kB / 0.9789 GB, free: 16.83 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006542/2.64, allocations: 3.176 MB / 0.982 GB, free: 13.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000711/2.64, allocations: 262.8 kB / 0.9823 GB, free: 13.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006073/2.641, allocations: 40 kB / 0.9823 GB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001738/2.643, allocations: 107.8 kB / 0.9824 GB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004635/2.643, allocations: 149 kB / 0.9825 GB, free: 13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002569/2.643, allocations: 55.97 kB / 0.9826 GB, free: 12.94 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001725/2.645, allocations: 0.8822 MB / 0.9835 GB, free: 12.06 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.85e-07/2.645, allocations: 0 / 0.9835 GB, free: 12.06 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005801/2.651, allocations: 1.361 MB / 0.9848 GB, free: 10.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003638/2.655, allocations: 1.258 MB / 0.986 GB, free: 9.559 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007369/2.662, allocations: 2.935 MB / 0.9889 GB, free: 6.637 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/2.662, allocations: 8.312 kB / 0.9889 GB, free: 6.629 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002453/2.665, allocations: 1.032 MB / 0.9899 GB, free: 5.598 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003964/2.669, allocations: 0.6661 MB / 0.9905 GB, free: 4.945 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006539/2.675, allocations: 2.883 MB / 0.9934 GB, free: 2.043 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001023/2.676, allocations: 1.43 MB / 0.9948 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008822/2.677, allocations: 163.4 kB / 0.9949 GB, free: 440 kB / 410.7 MB Notification: Performance of SimCode: time 1.676e-06/2.677, allocations: 0 / 0.9949 GB, free: 440 kB / 410.7 MB Notification: Performance of Templates: time 0.3341/3.011, allocations: 58.69 MB / 1.052 GB, free: 50.06 MB / 410.7 MB