Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,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.TankWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.672/1.672, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.58e-05/4.587e-05, allocations: 4 kB / 225 MB, free: 2.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.2126, allocations: 38.78 MB / 263.8 MB, free: 9.816 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7962/1.009, allocations: 318.3 MB / 0.5684 GB, free: 83.69 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004228/1.009, allocations: 95.88 kB / 0.5685 GB, free: 83.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8041/1.813, allocations: 164.6 MB / 0.7293 GB, free: 65.23 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.964e-06/1.814, allocations: 0 / 0.7293 GB, free: 65.23 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.801e-05/1.814, allocations: 20 kB / 0.7293 GB, free: 65.21 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002573/1.816, allocations: 1.107 MB / 0.7304 GB, free: 64.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/1.816, allocations: 8.031 kB / 0.7304 GB, free: 64.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005394/1.817, allocations: 94.97 kB / 0.7305 GB, free: 63.97 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001649/1.818, allocations: 0.6675 MB / 0.7311 GB, free: 63.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.557e-05/1.819, allocations: 53.22 kB / 0.7312 GB, free: 63.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/1.819, allocations: 52 kB / 0.7312 GB, free: 63.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001601/1.82, allocations: 0.8569 MB / 0.7321 GB, free: 62.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.772e-05/1.82, allocations: 7.984 kB / 0.7321 GB, free: 62.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001063/1.82, allocations: 27.91 kB / 0.7321 GB, free: 62.24 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-05/1.821, allocations: 45.3 kB / 0.7321 GB, free: 62.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001502/1.822, allocations: 0.756 MB / 0.7329 GB, free: 61.44 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005773/1.828, allocations: 3.847 MB / 0.7366 GB, free: 57.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000934/1.829, allocations: 471.3 kB / 0.7371 GB, free: 56.89 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00043/1.829, allocations: 237.5 kB / 0.7373 GB, free: 56.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002837/1.832, allocations: 1.969 MB / 0.7392 GB, free: 54.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/1.832, allocations: 42.56 kB / 0.7393 GB, free: 54.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 3.514e-06/1.832, allocations: 0 / 0.7393 GB, free: 54.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.003136/1.835, allocations: 1.229 MB / 0.7405 GB, free: 53.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.44e-05/1.835, allocations: 140.5 kB / 0.7406 GB, free: 52.99 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009237/1.836, allocations: 0.605 MB / 0.7412 GB, free: 52.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.859e-05/1.836, allocations: 41.64 kB / 0.7412 GB, free: 52.34 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002926/1.837, allocations: 434.8 kB / 0.7417 GB, free: 51.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/1.837, allocations: 153.8 kB / 0.7418 GB, free: 51.76 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.451e-05/1.837, allocations: 16 kB / 0.7418 GB, free: 51.74 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/1.837, allocations: 382.8 kB / 0.7422 GB, free: 51.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005234/1.838, allocations: 237.9 kB / 0.7424 GB, free: 51.12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000656/1.838, allocations: 0.5424 MB / 0.7429 GB, free: 50.44 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006327/1.839, allocations: 323 kB / 0.7433 GB, free: 50.12 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.964e-06/1.839, allocations: 4 kB / 0.7433 GB, free: 50.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001882/1.841, allocations: 0.847 MB / 0.7441 GB, free: 49.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000764/1.842, allocations: 3.923 MB / 0.7479 GB, free: 45.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/1.842, allocations: 8 kB / 0.7479 GB, free: 45.03 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009481/1.843, allocations: 120.7 kB / 0.748 GB, free: 44.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001573/1.844, allocations: 247.5 kB / 0.7483 GB, free: 44.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008107/1.845, allocations: 1.205 MB / 0.7494 GB, free: 43.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/1.846, allocations: 64.03 kB / 0.7495 GB, free: 43.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/1.846, allocations: 43.94 kB / 0.7496 GB, free: 43.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/1.846, allocations: 4 kB / 0.7496 GB, free: 43.3 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001615/1.848, allocations: 0.7523 MB / 0.7503 GB, free: 42.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/1.848, allocations: 11.94 kB / 0.7503 GB, free: 42.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000842/1.849, allocations: 117 kB / 0.7504 GB, free: 42.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/1.85, allocations: 219.7 kB / 0.7506 GB, free: 42.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004/1.851, allocations: 0.5952 MB / 0.7512 GB, free: 41.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008992/1.851, allocations: 59.97 kB / 0.7513 GB, free: 41.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/1.852, allocations: 40 kB / 0.7513 GB, free: 41.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (98): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002488/1.852, allocations: 176.1 kB / 0.7515 GB, free: 41.31 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001679/1.852, allocations: 79.06 kB / 0.7515 GB, free: 41.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00185/1.854, allocations: 0.737 MB / 0.7523 GB, free: 40.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.529e-05/1.854, allocations: 15.97 kB / 0.7523 GB, free: 40.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.618e-06/1.854, allocations: 0 / 0.7523 GB, free: 40.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.053e-06/1.854, allocations: 0 / 0.7523 GB, free: 40.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002841/1.857, allocations: 1.422 MB / 0.7537 GB, free: 38.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.729e-06/1.857, allocations: 0 / 0.7537 GB, free: 38.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009914/1.858, allocations: 143.8 kB / 0.7538 GB, free: 38.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005688/1.858, allocations: 92.86 kB / 0.7539 GB, free: 38.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.412e-05/1.859, allocations: 15.95 kB / 0.7539 GB, free: 38.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006376/1.859, allocations: 1.181 MB / 0.7551 GB, free: 37.51 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.302e-06/1.859, allocations: 0 / 0.7551 GB, free: 37.51 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001741/1.861, allocations: 0.9963 MB / 0.756 GB, free: 36.46 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003258/1.861, allocations: 160.1 kB / 0.7562 GB, free: 36.29 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/1.862, allocations: 16 kB / 0.7562 GB, free: 36.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000654/1.862, allocations: 35.92 kB / 0.7562 GB, free: 36.24 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/1.862, allocations: 60.48 kB / 0.7563 GB, free: 36.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.498e-05/1.862, allocations: 19.98 kB / 0.7563 GB, free: 36.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007389/1.863, allocations: 471.1 kB / 0.7568 GB, free: 35.7 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.72e-07/1.863, allocations: 0 / 0.7568 GB, free: 35.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002377/1.866, allocations: 0.6361 MB / 0.7574 GB, free: 35.06 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001752/1.867, allocations: 0.6767 MB / 0.758 GB, free: 34.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002916/1.87, allocations: 1.052 MB / 0.7591 GB, free: 33.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.099e-06/1.87, allocations: 4 kB / 0.7591 GB, free: 33.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009457/1.871, allocations: 331.8 kB / 0.7594 GB, free: 33.06 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001695/1.873, allocations: 278 kB / 0.7597 GB, free: 32.79 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002603/1.876, allocations: 1.151 MB / 0.7608 GB, free: 31.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004874/1.876, allocations: 0.9964 MB / 0.7618 GB, free: 30.58 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001809/1.878, allocations: 378.3 kB / 0.7621 GB, free: 30.21 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000233/1.878, allocations: 71.34 kB / 0.7622 GB, free: 30.14 MB / 362.7 MB Notification: Performance of SimCode: time 1.909e-06/1.878, allocations: 0 / 0.7622 GB, free: 30.14 MB / 362.7 MB Notification: Performance of Templates: time 0.03981/1.918, allocations: 19.28 MB / 0.781 GB, free: 10.89 MB / 362.7 MB