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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 2.06/2.06, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.588e-05/2.596e-05, allocations: 4 kB / 292.2 MB, free: 8.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0921/0.09215, allocations: 50.41 MB / 342.6 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8641/0.9563, allocations: 324.6 MB / 0.6515 GB, free: 35.75 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.9566, allocations: 86.77 kB / 0.6516 GB, free: 35.71 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8666/1.823, allocations: 196 MB / 0.843 GB, free: 17.07 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.013e-06/1.823, allocations: 0 / 0.843 GB, free: 17.07 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.61e-05/1.823, allocations: 23.98 kB / 0.843 GB, free: 17.05 MB / 442.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.003021/1.826, allocations: 1.292 MB / 0.8443 GB, free: 15.71 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/1.826, allocations: 11.97 kB / 0.8443 GB, free: 15.7 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005682/1.827, allocations: 106.8 kB / 0.8444 GB, free: 15.59 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001681/1.829, allocations: 0.7297 MB / 0.8451 GB, free: 14.82 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.179e-05/1.829, allocations: 65.22 kB / 0.8452 GB, free: 14.75 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001454/1.829, allocations: 63.98 kB / 0.8452 GB, free: 14.69 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001929/1.831, allocations: 1.024 MB / 0.8462 GB, free: 13.61 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.143e-05/1.831, allocations: 4 kB / 0.8462 GB, free: 13.61 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001276/1.831, allocations: 31.98 kB / 0.8463 GB, free: 13.57 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001104/1.831, allocations: 61.27 kB / 0.8463 GB, free: 13.52 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001886/1.833, allocations: 0.9825 MB / 0.8473 GB, free: 12.53 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007529/1.841, allocations: 4.398 MB / 0.8516 GB, free: 7.875 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/1.842, allocations: 0.5534 MB / 0.8521 GB, free: 7.316 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005651/1.842, allocations: 306.1 kB / 0.8524 GB, free: 7.016 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002963/1.845, allocations: 2.082 MB / 0.8544 GB, free: 4.719 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/1.845, allocations: 38.89 kB / 0.8545 GB, free: 4.672 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 3.062e-06/1.845, allocations: 0 / 0.8545 GB, free: 4.672 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.003863/1.849, allocations: 1.501 MB / 0.856 GB, free: 3.113 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.947e-05/1.849, allocations: 158.2 kB / 0.8561 GB, free: 2.922 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001374/1.851, allocations: 0.8174 MB / 0.8569 GB, free: 2.078 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001722/1.851, allocations: 37.7 kB / 0.8569 GB, free: 2.035 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005536/1.852, allocations: 478.9 kB / 0.8574 GB, free: 1.562 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002637/1.852, allocations: 165.7 kB / 0.8576 GB, free: 1.398 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/1.852, allocations: 16 kB / 0.8576 GB, free: 1.383 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/1.852, allocations: 341.9 kB / 0.8579 GB, free: 1.043 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008296/1.853, allocations: 305.9 kB / 0.8582 GB, free: 0.7422 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007946/1.854, allocations: 0.5829 MB / 0.8588 GB, free: 36 kB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2624/2.116, allocations: 387 kB / 0.8591 GB, free: 75.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-05/2.116, allocations: 2.562 kB / 0.8591 GB, free: 75.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003646/2.12, allocations: 1.037 MB / 0.8601 GB, free: 75.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006875/2.121, allocations: 3.317 MB / 0.8634 GB, free: 72.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.245e-05/2.121, allocations: 9.094 kB / 0.8634 GB, free: 72.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002552/2.123, allocations: 319.6 kB / 0.8637 GB, free: 72.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001084/2.124, allocations: 178.6 kB / 0.8639 GB, free: 72.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001429/2.126, allocations: 1.343 MB / 0.8652 GB, free: 71.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/2.127, allocations: 66.53 kB / 0.8652 GB, free: 71.17 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001418/2.127, allocations: 41.73 kB / 0.8653 GB, free: 71.17 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/2.127, allocations: 2.75 kB / 0.8653 GB, free: 71.17 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002261/2.13, allocations: 0.9151 MB / 0.8662 GB, free: 71.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.005e-05/2.13, allocations: 11.62 kB / 0.8662 GB, free: 71.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002242/2.132, allocations: 286.6 kB / 0.8665 GB, free: 71.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009783/2.133, allocations: 181.8 kB / 0.8666 GB, free: 71.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/2.134, allocations: 1.301 MB / 0.8679 GB, free: 70.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001164/2.135, allocations: 58.91 kB / 0.868 GB, free: 70.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001349/2.135, allocations: 42.8 kB / 0.868 GB, free: 70.09 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (102): * Single equations (assignments): 100 * 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.0003241/2.136, allocations: 162.9 kB / 0.8682 GB, free: 69.98 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002352/2.136, allocations: 98.75 kB / 0.8682 GB, free: 69.98 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002313/2.138, allocations: 0.7686 MB / 0.869 GB, free: 69.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/2.138, allocations: 8.469 kB / 0.869 GB, free: 69.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.09e-06/2.138, allocations: 3.688 kB / 0.869 GB, free: 69.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/2.138, allocations: 4.625 kB / 0.869 GB, free: 69.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003681/2.142, allocations: 1.588 MB / 0.8706 GB, free: 69.56 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.292e-06/2.142, allocations: 1.406 kB / 0.8706 GB, free: 69.56 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005438/2.143, allocations: 73.36 kB / 0.8706 GB, free: 69.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002172/2.145, allocations: 288 kB / 0.8709 GB, free: 69.55 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001075/2.145, allocations: 14 kB / 0.8709 GB, free: 69.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001167/2.146, allocations: 1.311 MB / 0.8722 GB, free: 68.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.364e-06/2.146, allocations: 3.719 kB / 0.8722 GB, free: 68.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002144/2.148, allocations: 1.089 MB / 0.8733 GB, free: 68.24 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004588/2.149, allocations: 193.6 kB / 0.8735 GB, free: 68.09 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002037/2.149, allocations: 11.62 kB / 0.8735 GB, free: 68.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008274/2.15, allocations: 45.25 kB / 0.8735 GB, free: 68.09 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/2.15, allocations: 51.97 kB / 0.8736 GB, free: 68.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.416e-05/2.15, allocations: 25.3 kB / 0.8736 GB, free: 68.09 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001268/2.152, allocations: 0.631 MB / 0.8742 GB, free: 67.97 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.69e-07/2.152, allocations: 0 / 0.8742 GB, free: 67.97 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003309/2.155, allocations: 0.8364 MB / 0.875 GB, free: 67.97 MB / 442.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.002541/2.157, allocations: 0.827 MB / 0.8758 GB, free: 67.87 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003492/2.161, allocations: 1.205 MB / 0.877 GB, free: 67.85 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.841e-06/2.161, allocations: 1.031 kB / 0.877 GB, free: 67.85 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001201/2.162, allocations: 354.2 kB / 0.8773 GB, free: 67.85 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002395/2.165, allocations: 368.8 kB / 0.8777 GB, free: 67.84 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003119/2.168, allocations: 1.264 MB / 0.8789 GB, free: 67.52 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007156/2.169, allocations: 1.055 MB / 0.88 GB, free: 66.82 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002176/2.171, allocations: 425.5 kB / 0.8804 GB, free: 66.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002634/2.171, allocations: 66.84 kB / 0.8804 GB, free: 66.79 MB / 442.7 MB Notification: Performance of SimCode: time 1.694e-06/2.171, allocations: 0 / 0.8804 GB, free: 66.79 MB / 442.7 MB Notification: Performance of Templates: time 0.05576/2.227, allocations: 25.9 MB / 0.9057 GB, free: 65.87 MB / 442.7 MB