Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.973/1.973, allocations: 225.8 MB / 239.3 MB, free: 1.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.688e-05/2.699e-05, allocations: 4 kB / 292.7 MB, free: 11.48 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09316/0.09321, allocations: 50.41 MB / 343.1 MB, free: 9.074 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8645/0.9578, allocations: 324.7 MB / 0.6521 GB, free: 61.45 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002409/0.9581, allocations: 91.66 kB / 0.6522 GB, free: 61.41 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.461/2.419, allocations: 287.3 MB / 0.9328 GB, free: 59.72 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.025e-06/2.419, allocations: 3.719 kB / 0.9328 GB, free: 59.72 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001186/2.419, allocations: 37.66 kB / 0.9328 GB, free: 59.71 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004313/2.424, allocations: 1.789 MB / 0.9346 GB, free: 58.92 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/2.424, allocations: 6.75 kB / 0.9346 GB, free: 58.92 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008482/2.425, allocations: 171 kB / 0.9347 GB, free: 58.85 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002653/2.427, allocations: 1.024 MB / 0.9357 GB, free: 58.57 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.122e-05/2.427, allocations: 80.14 kB / 0.9358 GB, free: 58.57 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002258/2.428, allocations: 98.41 kB / 0.9359 GB, free: 58.57 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003166/2.431, allocations: 1.592 MB / 0.9375 GB, free: 58.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.725e-05/2.431, allocations: 6.156 kB / 0.9375 GB, free: 58.32 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001903/2.431, allocations: 47.73 kB / 0.9375 GB, free: 58.32 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001437/2.431, allocations: 98.91 kB / 0.9376 GB, free: 58.32 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00316/2.434, allocations: 1.569 MB / 0.9391 GB, free: 58.31 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01156/2.446, allocations: 6.538 MB / 0.9455 GB, free: 55.34 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001757/2.448, allocations: 0.9011 MB / 0.9464 GB, free: 55.3 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009722/2.449, allocations: 0.5435 MB / 0.9469 GB, free: 55.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005194/2.454, allocations: 2.922 MB / 0.9498 GB, free: 53.82 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/2.454, allocations: 43.72 kB / 0.9498 GB, free: 53.78 MB / 442.7 MB Notification: Performance of pre-optimization done (n=80): time 4.447e-06/2.454, allocations: 0 / 0.9498 GB, free: 53.78 MB / 442.7 MB Notification: Performance of matching and sorting (n=90): time 0.007657/2.462, allocations: 2.816 MB / 0.9526 GB, free: 53.21 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/2.462, allocations: 195.4 kB / 0.9528 GB, free: 52.99 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002021/2.464, allocations: 1.133 MB / 0.9539 GB, free: 52.81 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000204/2.464, allocations: 51.53 kB / 0.9539 GB, free: 52.78 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005065/2.465, allocations: 0.6393 MB / 0.9546 GB, free: 52.51 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000312/2.465, allocations: 324.4 kB / 0.9549 GB, free: 52.31 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/2.465, allocations: 32.12 kB / 0.9549 GB, free: 52.31 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001092/2.465, allocations: 369.5 kB / 0.9552 GB, free: 52 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/2.467, allocations: 0.5428 MB / 0.9558 GB, free: 52 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001407/2.468, allocations: 0.9396 MB / 0.9567 GB, free: 51.55 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/2.469, allocations: 0.6552 MB / 0.9573 GB, free: 51.54 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/2.469, allocations: 3.875 kB / 0.9573 GB, free: 51.54 MB / 442.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003984/2.473, allocations: 1.78 MB / 0.9591 GB, free: 51.39 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008459/2.474, allocations: 4.386 MB / 0.9634 GB, free: 46.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.047e-05/2.474, allocations: 16.06 kB / 0.9634 GB, free: 46.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004875/2.479, allocations: 0.6444 MB / 0.964 GB, free: 46.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001652/2.481, allocations: 282.6 kB / 0.9643 GB, free: 46.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002132/2.483, allocations: 2.157 MB / 0.9664 GB, free: 45.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001852/2.485, allocations: 100 kB / 0.9665 GB, free: 45.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001891/2.485, allocations: 66.48 kB / 0.9665 GB, free: 45.27 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/2.485, allocations: 4.938 kB / 0.9665 GB, free: 45.27 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00358/2.489, allocations: 1.568 MB / 0.9681 GB, free: 45.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.28e-05/2.489, allocations: 13.66 kB / 0.9681 GB, free: 45.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003709/2.492, allocations: 0.5047 MB / 0.9686 GB, free: 45.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001551/2.494, allocations: 286.7 kB / 0.9689 GB, free: 45.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00177/2.496, allocations: 2.01 MB / 0.9708 GB, free: 43.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/2.498, allocations: 103.6 kB / 0.9709 GB, free: 43.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000199/2.498, allocations: 65.72 kB / 0.971 GB, free: 43.62 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (163): * Single equations (assignments): 160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004499/2.498, allocations: 198.6 kB / 0.9712 GB, free: 43.51 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003174/2.499, allocations: 139.2 kB / 0.9713 GB, free: 43.44 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003927/2.503, allocations: 1.503 MB / 0.9728 GB, free: 43.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/2.503, allocations: 10.44 kB / 0.9728 GB, free: 43.32 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.97e-06/2.503, allocations: 0 / 0.9728 GB, free: 43.32 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/2.503, allocations: 6.938 kB / 0.9728 GB, free: 43.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006244/2.509, allocations: 2.801 MB / 0.9755 GB, free: 42.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.853e-06/2.509, allocations: 7.828 kB / 0.9755 GB, free: 42.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/2.51, allocations: 153.9 kB / 0.9757 GB, free: 42.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004123/2.514, allocations: 0.6047 MB / 0.9763 GB, free: 42.42 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001975/2.514, allocations: 26.41 kB / 0.9763 GB, free: 42.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001976/2.516, allocations: 2.11 MB / 0.9783 GB, free: 40.64 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.675e-06/2.517, allocations: 3.094 kB / 0.9784 GB, free: 40.64 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004123/2.521, allocations: 2.113 MB / 0.9804 GB, free: 39.63 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006351/2.521, allocations: 247.8 kB / 0.9807 GB, free: 39.43 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000302/2.522, allocations: 30.42 kB / 0.9807 GB, free: 39.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001213/2.523, allocations: 72.92 kB / 0.9808 GB, free: 39.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000225/2.523, allocations: 96.83 kB / 0.9808 GB, free: 39.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001435/2.523, allocations: 50 kB / 0.9809 GB, free: 39.38 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001588/2.525, allocations: 0.8805 MB / 0.9818 GB, free: 39.01 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.39e-07/2.525, allocations: 0 / 0.9818 GB, free: 39.01 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004354/2.529, allocations: 1.219 MB / 0.9829 GB, free: 38.71 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00297/2.532, allocations: 1.13 MB / 0.984 GB, free: 38.34 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005096/2.537, allocations: 2.15 MB / 0.9861 GB, free: 37.63 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/2.537, allocations: 6.516 kB / 0.9862 GB, free: 37.63 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001847/2.539, allocations: 0.6868 MB / 0.9868 GB, free: 37.43 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003553/2.543, allocations: 0.5826 MB / 0.9874 GB, free: 37.29 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004283/2.547, allocations: 2.123 MB / 0.9895 GB, free: 36.49 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008621/2.548, allocations: 1.286 MB / 0.9907 GB, free: 35.72 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003221/2.551, allocations: 0.6562 MB / 0.9914 GB, free: 35.69 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004077/2.552, allocations: 101.2 kB / 0.9915 GB, free: 35.68 MB / 442.7 MB Notification: Performance of SimCode: time 1.819e-06/2.552, allocations: 1.594 kB / 0.9915 GB, free: 35.68 MB / 442.7 MB Notification: Performance of Templates: time 0.07919/2.631, allocations: 40.58 MB / 1.031 GB, free: 10.77 MB / 442.7 MB