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.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.763/1.763, allocations: 171.2 MB / 183.3 MB, free: 12.06 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.002e-05/3.017e-05, allocations: 4 kB / 225 MB, free: 2.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2541, allocations: 38.77 MB / 263.8 MB, free: 9.809 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7871/1.041, allocations: 314 MB / 0.5642 GB, free: 72.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002708/1.042, allocations: 83.14 kB / 0.5643 GB, free: 72.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8314/1.873, allocations: 190.1 MB / 0.75 GB, free: 36.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.634e-06/1.873, allocations: 0 / 0.75 GB, free: 36.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.145e-05/1.873, allocations: 20 kB / 0.75 GB, free: 36.16 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003495/1.877, allocations: 1.294 MB / 0.7513 GB, free: 34.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/1.877, allocations: 8.031 kB / 0.7513 GB, free: 34.81 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006347/1.877, allocations: 112 kB / 0.7514 GB, free: 34.7 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002048/1.879, allocations: 0.7801 MB / 0.7521 GB, free: 33.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.707e-05/1.88, allocations: 53.3 kB / 0.7522 GB, free: 33.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/1.88, allocations: 59.98 kB / 0.7522 GB, free: 33.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002016/1.882, allocations: 1.028 MB / 0.7533 GB, free: 32.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.921e-05/1.882, allocations: 0 / 0.7533 GB, free: 32.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001316/1.882, allocations: 27.98 kB / 0.7533 GB, free: 32.65 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001103/1.882, allocations: 73.27 kB / 0.7534 GB, free: 32.58 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001941/1.884, allocations: 0.9785 MB / 0.7543 GB, free: 31.6 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007696/1.892, allocations: 4.406 MB / 0.7586 GB, free: 26.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/1.893, allocations: 0.5119 MB / 0.7591 GB, free: 26.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005318/1.893, allocations: 298 kB / 0.7594 GB, free: 26.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002897/1.896, allocations: 2.004 MB / 0.7614 GB, free: 23.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/1.896, allocations: 46.83 kB / 0.7614 GB, free: 23.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 3.794e-06/1.896, allocations: 0 / 0.7614 GB, free: 23.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.003769/1.9, allocations: 1.445 MB / 0.7628 GB, free: 22.33 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/1.9, allocations: 170.2 kB / 0.763 GB, free: 22.13 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/1.901, allocations: 0.7269 MB / 0.7637 GB, free: 21.4 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.93e-05/1.902, allocations: 37.7 kB / 0.7637 GB, free: 21.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003495/1.902, allocations: 0.4944 MB / 0.7642 GB, free: 20.85 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/1.902, allocations: 169.7 kB / 0.7644 GB, free: 20.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.349e-05/1.902, allocations: 16 kB / 0.7644 GB, free: 20.67 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/1.902, allocations: 398.7 kB / 0.7648 GB, free: 20.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006122/1.903, allocations: 293.9 kB / 0.765 GB, free: 19.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00076/1.904, allocations: 0.6424 MB / 0.7657 GB, free: 19.17 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007451/1.904, allocations: 398.9 kB / 0.766 GB, free: 18.79 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.19e-06/1.904, allocations: 4 kB / 0.766 GB, free: 18.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.002272/1.907, allocations: 1.047 MB / 0.7671 GB, free: 17.72 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008388/1.908, allocations: 4.45 MB / 0.7714 GB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.855e-05/1.908, allocations: 8 kB / 0.7714 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002357/1.91, allocations: 317.3 kB / 0.7717 GB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009553/1.911, allocations: 191.7 kB / 0.7719 GB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001155/1.912, allocations: 1.327 MB / 0.7732 GB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/1.913, allocations: 68 kB / 0.7733 GB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/1.914, allocations: 43.98 kB / 0.7733 GB, free: 10.92 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/1.914, allocations: 7.953 kB / 0.7733 GB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00199/1.916, allocations: 0.9326 MB / 0.7742 GB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/1.916, allocations: 12 kB / 0.7742 GB, free: 9.961 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002088/1.918, allocations: 293.8 kB / 0.7745 GB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009207/1.919, allocations: 183.7 kB / 0.7747 GB, free: 9.488 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00103/1.92, allocations: 1.288 MB / 0.776 GB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/1.921, allocations: 64.08 kB / 0.776 GB, free: 8.086 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/1.921, allocations: 40 kB / 0.7761 GB, free: 8.047 MB / 362.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.0002696/1.921, allocations: 168.6 kB / 0.7762 GB, free: 7.875 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/1.921, allocations: 94.88 kB / 0.7763 GB, free: 7.781 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00201/1.924, allocations: 0.7641 MB / 0.777 GB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.64e-06/1.924, allocations: 4 kB / 0.7771 GB, free: 7.004 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.862e-06/1.924, allocations: 4 kB / 0.7771 GB, free: 7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.969e-06/1.924, allocations: 7.984 kB / 0.7771 GB, free: 6.992 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003085/1.927, allocations: 1.532 MB / 0.7786 GB, free: 5.387 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.057e-06/1.927, allocations: 4.062 kB / 0.7786 GB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005025/1.927, allocations: 76.14 kB / 0.7786 GB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001786/1.929, allocations: 285.4 kB / 0.7789 GB, free: 5.023 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.755e-05/1.929, allocations: 12 kB / 0.7789 GB, free: 5.012 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00104/1.93, allocations: 1.3 MB / 0.7802 GB, free: 3.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.55e-06/1.93, allocations: 8.125 kB / 0.7802 GB, free: 3.652 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001942/1.932, allocations: 1.079 MB / 0.7813 GB, free: 2.535 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003625/1.933, allocations: 176 kB / 0.7814 GB, free: 2.344 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001789/1.933, allocations: 20.06 kB / 0.7814 GB, free: 2.324 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006853/1.933, allocations: 35.91 kB / 0.7815 GB, free: 2.289 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001331/1.934, allocations: 56.3 kB / 0.7815 GB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.798e-05/1.934, allocations: 16 kB / 0.7815 GB, free: 2.215 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009119/1.935, allocations: 0.5577 MB / 0.7821 GB, free: 1.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.44e-07/1.935, allocations: 0 / 0.7821 GB, free: 1.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002884/1.938, allocations: 0.7961 MB / 0.7829 GB, free: 0.8633 MB / 362.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.002147/1.94, allocations: 0.8277 MB / 0.7837 GB, free: 48 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.2075/2.147, allocations: 1.217 MB / 0.7849 GB, free: 63.75 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.369e-06/2.147, allocations: 0 / 0.7849 GB, free: 63.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001156/2.148, allocations: 347.2 kB / 0.7852 GB, free: 63.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002089/2.151, allocations: 308.7 kB / 0.7855 GB, free: 63.75 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003309/2.154, allocations: 1.334 MB / 0.7868 GB, free: 63.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006002/2.155, allocations: 1.054 MB / 0.7878 GB, free: 62.73 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00209/2.157, allocations: 405.8 kB / 0.7882 GB, free: 62.72 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002235/2.157, allocations: 65.8 kB / 0.7883 GB, free: 62.71 MB / 362.7 MB Notification: Performance of SimCode: time 1.77e-06/2.157, allocations: 0 / 0.7883 GB, free: 62.71 MB / 362.7 MB Notification: Performance of Templates: time 0.06997/2.227, allocations: 23.32 MB / 0.811 GB, free: 61.8 MB / 362.7 MB