Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.79/1.79, allocations: 194.9 MB / 208.4 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.105e-05/3.132e-05, allocations: 2.5 kB / 255.4 MB, free: 3.16 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07846/0.07852, allocations: 44.5 MB / 299.9 MB, free: 6.605 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8279/0.9064, allocations: 319.3 MB / 0.6047 GB, free: 88.06 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/0.9067, allocations: 87.95 kB / 0.6047 GB, free: 87.98 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8069/1.714, allocations: 190.1 MB / 0.7904 GB, free: 64.14 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.298e-06/1.714, allocations: 0 / 0.7904 GB, free: 64.14 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.125e-05/1.714, allocations: 24 kB / 0.7904 GB, free: 64.11 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003498/1.717, allocations: 1.285 MB / 0.7917 GB, free: 62.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/1.717, allocations: 8.031 kB / 0.7917 GB, free: 62.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006458/1.718, allocations: 122.7 kB / 0.7918 GB, free: 62.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002068/1.72, allocations: 0.7756 MB / 0.7926 GB, free: 61.86 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.249e-05/1.72, allocations: 45.14 kB / 0.7926 GB, free: 61.82 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001901/1.72, allocations: 63.81 kB / 0.7927 GB, free: 61.76 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002051/1.723, allocations: 1.043 MB / 0.7937 GB, free: 60.67 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/1.723, allocations: 8 kB / 0.7937 GB, free: 60.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001276/1.723, allocations: 27.83 kB / 0.7937 GB, free: 60.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001121/1.723, allocations: 65.23 kB / 0.7938 GB, free: 60.58 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001952/1.725, allocations: 0.9785 MB / 0.7948 GB, free: 59.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007652/1.732, allocations: 4.394 MB / 0.799 GB, free: 54.98 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/1.734, allocations: 0.5236 MB / 0.7996 GB, free: 54.45 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005297/1.734, allocations: 294 kB / 0.7998 GB, free: 54.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002834/1.737, allocations: 2.008 MB / 0.8018 GB, free: 51.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.993e-05/1.737, allocations: 34.89 kB / 0.8018 GB, free: 51.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 3.482e-06/1.737, allocations: 4 kB / 0.8018 GB, free: 51.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.003826/1.741, allocations: 1.45 MB / 0.8033 GB, free: 50.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/1.741, allocations: 162.2 kB / 0.8034 GB, free: 50.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/1.742, allocations: 0.7347 MB / 0.8041 GB, free: 49.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.352e-05/1.742, allocations: 37.7 kB / 0.8042 GB, free: 49.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002973/1.743, allocations: 0.5006 MB / 0.8047 GB, free: 48.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/1.743, allocations: 165.7 kB / 0.8048 GB, free: 48.75 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.637e-05/1.743, allocations: 16 kB / 0.8048 GB, free: 48.74 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.23e-05/1.743, allocations: 346.8 kB / 0.8052 GB, free: 48.39 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006215/1.744, allocations: 297.9 kB / 0.8054 GB, free: 48.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007908/1.744, allocations: 0.6424 MB / 0.8061 GB, free: 47.29 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007972/1.745, allocations: 394.9 kB / 0.8064 GB, free: 46.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.689e-06/1.745, allocations: 11.98 kB / 0.8065 GB, free: 46.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.00222/1.747, allocations: 1.008 MB / 0.8074 GB, free: 45.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008464/1.748, allocations: 4.441 MB / 0.8118 GB, free: 41.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.014e-05/1.748, allocations: 12 kB / 0.8118 GB, free: 41.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002377/1.751, allocations: 313.4 kB / 0.8121 GB, free: 40.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00096/1.752, allocations: 191.7 kB / 0.8123 GB, free: 40.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001178/1.753, allocations: 1.331 MB / 0.8136 GB, free: 39.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00122/1.754, allocations: 56.09 kB / 0.8136 GB, free: 39.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/1.754, allocations: 55.97 kB / 0.8137 GB, free: 39.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/1.754, allocations: 4 kB / 0.8137 GB, free: 39.07 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001966/1.756, allocations: 0.9323 MB / 0.8146 GB, free: 38.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.75e-05/1.756, allocations: 12 kB / 0.8146 GB, free: 38.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001995/1.758, allocations: 278.2 kB / 0.8149 GB, free: 37.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000917/1.759, allocations: 187.7 kB / 0.815 GB, free: 37.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001054/1.76, allocations: 1.28 MB / 0.8163 GB, free: 36.33 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008707/1.761, allocations: 72.03 kB / 0.8164 GB, free: 36.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/1.761, allocations: 47.98 kB / 0.8164 GB, free: 36.21 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 107 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002641/1.762, allocations: 160.7 kB / 0.8166 GB, free: 36.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002244/1.762, allocations: 90.92 kB / 0.8167 GB, free: 35.96 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002011/1.764, allocations: 0.7608 MB / 0.8174 GB, free: 35.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.178e-06/1.764, allocations: 7.984 kB / 0.8174 GB, free: 35.17 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.829e-06/1.764, allocations: 0 / 0.8174 GB, free: 35.17 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/1.764, allocations: 11.92 kB / 0.8174 GB, free: 35.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003163/1.767, allocations: 1.535 MB / 0.8189 GB, free: 33.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.035e-06/1.767, allocations: 3.984 kB / 0.8189 GB, free: 33.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005416/1.768, allocations: 79.97 kB / 0.819 GB, free: 33.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001815/1.77, allocations: 277 kB / 0.8193 GB, free: 33.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.456e-05/1.77, allocations: 15.98 kB / 0.8193 GB, free: 33.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/1.771, allocations: 1.304 MB / 0.8205 GB, free: 31.84 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.681e-06/1.771, allocations: 0 / 0.8205 GB, free: 31.84 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001954/1.773, allocations: 1.083 MB / 0.8216 GB, free: 30.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003353/1.773, allocations: 171.9 kB / 0.8218 GB, free: 30.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001832/1.773, allocations: 15.98 kB / 0.8218 GB, free: 30.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006812/1.774, allocations: 40.05 kB / 0.8218 GB, free: 30.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/1.774, allocations: 48.31 kB / 0.8219 GB, free: 30.43 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.804e-05/1.774, allocations: 23.98 kB / 0.8219 GB, free: 30.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000903/1.775, allocations: 0.5577 MB / 0.8224 GB, free: 29.85 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.13e-07/1.775, allocations: 0 / 0.8224 GB, free: 29.85 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002901/1.778, allocations: 0.8039 MB / 0.8232 GB, free: 29.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002333/1.781, allocations: 0.8132 MB / 0.824 GB, free: 28.29 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002979/1.784, allocations: 1.185 MB / 0.8252 GB, free: 27.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.758e-06/1.784, allocations: 0 / 0.8252 GB, free: 27.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001032/1.785, allocations: 350.5 kB / 0.8255 GB, free: 26.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001771/1.786, allocations: 300 kB / 0.8258 GB, free: 26.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003145/1.79, allocations: 1.378 MB / 0.8271 GB, free: 25.06 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005479/1.79, allocations: 1.049 MB / 0.8282 GB, free: 23.98 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003678/1.791, allocations: 79.41 kB / 0.8282 GB, free: 23.9 MB / 410.7 MB Notification: Performance of SimCode: time 1.771e-06/1.791, allocations: 0 / 0.8282 GB, free: 23.9 MB / 410.7 MB Notification: Performance of Templates: time 0.2641/2.055, allocations: 25.08 MB / 0.8527 GB, free: 82.22 MB / 410.7 MB