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_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.925/1.925, allocations: 205.8 MB / 218.9 MB, free: 9.277 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.745e-05/2.771e-05, allocations: 4 kB / 269.4 MB, free: 6.395 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08763/0.08767, allocations: 47.57 MB / 316.9 MB, free: 6.734 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.83/0.9178, allocations: 324.1 MB / 0.6261 GB, free: 43.48 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/0.918, allocations: 85.58 kB / 0.6261 GB, free: 43.43 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.424/2.342, allocations: 282.1 MB / 0.9016 GB, free: 64.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.232e-06/2.342, allocations: 0 / 0.9016 GB, free: 64.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001342/2.342, allocations: 45.62 kB / 0.9016 GB, free: 64.81 MB / 426.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.005156/2.347, allocations: 1.787 MB / 0.9034 GB, free: 63.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/2.347, allocations: 11.84 kB / 0.9034 GB, free: 63.93 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001026/2.348, allocations: 165.2 kB / 0.9036 GB, free: 63.86 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002793/2.351, allocations: 1.028 MB / 0.9046 GB, free: 63.52 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.908e-05/2.351, allocations: 84.03 kB / 0.9046 GB, free: 63.52 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002417/2.351, allocations: 94.45 kB / 0.9047 GB, free: 63.52 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003293/2.355, allocations: 1.591 MB / 0.9063 GB, free: 63.27 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.759e-05/2.355, allocations: 10.53 kB / 0.9063 GB, free: 63.27 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001874/2.355, allocations: 39.88 kB / 0.9063 GB, free: 63.27 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001544/2.355, allocations: 98.27 kB / 0.9064 GB, free: 63.27 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003379/2.359, allocations: 1.569 MB / 0.908 GB, free: 63.26 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01304/2.372, allocations: 6.537 MB / 0.9143 GB, free: 60.24 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/2.373, allocations: 0.9012 MB / 0.9152 GB, free: 60.21 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009803/2.374, allocations: 0.5436 MB / 0.9158 GB, free: 60.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004637/2.379, allocations: 2.904 MB / 0.9186 GB, free: 58.73 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/2.379, allocations: 48.25 kB / 0.9186 GB, free: 58.69 MB / 426.7 MB Notification: Performance of pre-optimization done (n=80): time 4.073e-06/2.379, allocations: 0 / 0.9186 GB, free: 58.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=90): time 0.007959/2.387, allocations: 2.818 MB / 0.9214 GB, free: 58.11 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.871e-05/2.387, allocations: 195 kB / 0.9216 GB, free: 57.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/2.389, allocations: 1.129 MB / 0.9227 GB, free: 57.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002848/2.39, allocations: 56.56 kB / 0.9227 GB, free: 57.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005156/2.39, allocations: 0.6353 MB / 0.9234 GB, free: 57.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003263/2.391, allocations: 324.8 kB / 0.9237 GB, free: 57.21 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/2.391, allocations: 28.5 kB / 0.9237 GB, free: 57.21 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/2.391, allocations: 361.8 kB / 0.924 GB, free: 56.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001254/2.392, allocations: 0.5495 MB / 0.9246 GB, free: 56.88 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001427/2.394, allocations: 0.9294 MB / 0.9255 GB, free: 56.21 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001335/2.395, allocations: 0.6643 MB / 0.9261 GB, free: 55.98 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.326e-06/2.395, allocations: 3.281 kB / 0.9261 GB, free: 55.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004142/2.399, allocations: 1.783 MB / 0.9279 GB, free: 55.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008455/2.4, allocations: 4.39 MB / 0.9322 GB, free: 50.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/2.4, allocations: 10.69 kB / 0.9322 GB, free: 50.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004996/2.405, allocations: 0.656 MB / 0.9328 GB, free: 50.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/2.407, allocations: 278.5 kB / 0.9331 GB, free: 50.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002203/2.409, allocations: 2.165 MB / 0.9352 GB, free: 48.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001935/2.411, allocations: 114.1 kB / 0.9353 GB, free: 48.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002288/2.411, allocations: 61.8 kB / 0.9354 GB, free: 48.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/2.411, allocations: 0 / 0.9354 GB, free: 48.8 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003625/2.415, allocations: 1.575 MB / 0.9369 GB, free: 48.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.121e-05/2.415, allocations: 9.938 kB / 0.9369 GB, free: 48.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003984/2.419, allocations: 0.5032 MB / 0.9374 GB, free: 48.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001563/2.421, allocations: 283.8 kB / 0.9377 GB, free: 48.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001738/2.422, allocations: 2.005 MB / 0.9396 GB, free: 46.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001849/2.424, allocations: 97 kB / 0.9397 GB, free: 46.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002213/2.424, allocations: 68.45 kB / 0.9398 GB, free: 46.36 MB / 426.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.0004566/2.425, allocations: 196.7 kB / 0.94 GB, free: 46.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003632/2.425, allocations: 139.8 kB / 0.9401 GB, free: 46.11 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003752/2.429, allocations: 1.511 MB / 0.9416 GB, free: 45.53 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/2.429, allocations: 7.906 kB / 0.9416 GB, free: 45.53 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.398e-06/2.429, allocations: 3.906 kB / 0.9416 GB, free: 45.53 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.602e-05/2.429, allocations: 7.5 kB / 0.9416 GB, free: 45.53 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005992/2.435, allocations: 2.797 MB / 0.9443 GB, free: 44.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.09e-06/2.435, allocations: 1.938 kB / 0.9443 GB, free: 44.31 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/2.436, allocations: 154.9 kB / 0.9445 GB, free: 44.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003984/2.44, allocations: 0.6044 MB / 0.9451 GB, free: 44.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001553/2.44, allocations: 30.59 kB / 0.9451 GB, free: 44.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001949/2.442, allocations: 2.108 MB / 0.9472 GB, free: 42.41 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.613e-06/2.442, allocations: 0 / 0.9472 GB, free: 42.41 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004155/2.447, allocations: 2.122 MB / 0.9492 GB, free: 41.39 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006195/2.447, allocations: 245.8 kB / 0.9495 GB, free: 41.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003239/2.448, allocations: 30.73 kB / 0.9495 GB, free: 41.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/2.449, allocations: 78.92 kB / 0.9496 GB, free: 41.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002327/2.449, allocations: 98.62 kB / 0.9497 GB, free: 41.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001337/2.449, allocations: 42.83 kB / 0.9497 GB, free: 41.13 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001515/2.451, allocations: 0.8802 MB / 0.9506 GB, free: 40.77 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.02e-07/2.451, allocations: 0 / 0.9506 GB, free: 40.77 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003943/2.455, allocations: 1.215 MB / 0.9517 GB, free: 40.47 MB / 426.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.003004/2.458, allocations: 1.138 MB / 0.9529 GB, free: 40.07 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004954/2.463, allocations: 2.146 MB / 0.955 GB, free: 38.55 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.062e-06/2.463, allocations: 0 / 0.955 GB, free: 38.55 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001764/2.465, allocations: 0.6943 MB / 0.9556 GB, free: 37.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003397/2.468, allocations: 0.5822 MB / 0.9562 GB, free: 37.53 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004416/2.472, allocations: 2.108 MB / 0.9583 GB, free: 35.73 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008947/2.473, allocations: 1.286 MB / 0.9595 GB, free: 34.62 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00304/2.476, allocations: 0.65 MB / 0.9602 GB, free: 34.19 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003659/2.477, allocations: 99.31 kB / 0.9602 GB, free: 34.1 MB / 426.7 MB Notification: Performance of SimCode: time 2.436e-06/2.477, allocations: 3.938 kB / 0.9602 GB, free: 34.1 MB / 426.7 MB Notification: Performance of Templates: time 0.3543/2.831, allocations: 40.59 MB / 0.9999 GB, free: 62.1 MB / 426.7 MB