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.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.808/1.808, allocations: 194.9 MB / 208 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.776e-05/2.789e-05, allocations: 4 kB / 255.4 MB, free: 2.691 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08021/0.08026, allocations: 44.5 MB / 299.9 MB, free: 6.125 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9475/1.028, allocations: 319.6 MB / 0.605 GB, free: 70.84 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/1.028, allocations: 89.02 kB / 0.6051 GB, free: 70.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.406/2.434, allocations: 279 MB / 0.8776 GB, free: 57.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.573e-06/2.434, allocations: 0 / 0.8776 GB, free: 57.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002124/2.434, allocations: 36.78 kB / 0.8776 GB, free: 57.89 MB / 410.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.008784/2.443, allocations: 1.789 MB / 0.8794 GB, free: 57.14 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.454e-05/2.443, allocations: 11.75 kB / 0.8794 GB, free: 57.14 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001816/2.445, allocations: 167.9 kB / 0.8795 GB, free: 57.06 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005784/2.451, allocations: 1.083 MB / 0.8806 GB, free: 56.78 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001693/2.451, allocations: 84.59 kB / 0.8807 GB, free: 56.78 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004584/2.452, allocations: 93.38 kB / 0.8808 GB, free: 56.78 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006332/2.458, allocations: 1.593 MB / 0.8823 GB, free: 56.52 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.002e-05/2.458, allocations: 6.734 kB / 0.8823 GB, free: 56.52 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003844/2.458, allocations: 45.73 kB / 0.8824 GB, free: 56.52 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003083/2.459, allocations: 103.6 kB / 0.8825 GB, free: 56.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006675/2.465, allocations: 1.564 MB / 0.884 GB, free: 56.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02188/2.487, allocations: 6.515 MB / 0.8904 GB, free: 53.49 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003323/2.491, allocations: 0.8658 MB / 0.8912 GB, free: 53.46 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001982/2.493, allocations: 0.5235 MB / 0.8917 GB, free: 53.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00787/2.501, allocations: 2.822 MB / 0.8945 GB, free: 52.01 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.742e-05/2.501, allocations: 46.84 kB / 0.8945 GB, free: 51.97 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 4.678e-06/2.501, allocations: 0 / 0.8945 GB, free: 51.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=90): time 0.00766/2.508, allocations: 2.76 MB / 0.8972 GB, free: 51.42 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.905e-05/2.509, allocations: 196.7 kB / 0.8974 GB, free: 51.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002009/2.511, allocations: 1.034 MB / 0.8984 GB, free: 51.03 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002551/2.511, allocations: 54.48 kB / 0.8985 GB, free: 51 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005184/2.511, allocations: 0.6615 MB / 0.8991 GB, free: 50.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003409/2.512, allocations: 323.9 kB / 0.8994 GB, free: 50.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/2.512, allocations: 30.16 kB / 0.8994 GB, free: 50.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/2.512, allocations: 365.4 kB / 0.8998 GB, free: 50.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001252/2.513, allocations: 0.5287 MB / 0.9003 GB, free: 50.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001558/2.515, allocations: 1.002 MB / 0.9013 GB, free: 49.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001394/2.516, allocations: 0.6655 MB / 0.9019 GB, free: 49.63 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-05/2.516, allocations: 3.719 kB / 0.9019 GB, free: 49.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004654/2.521, allocations: 1.802 MB / 0.9037 GB, free: 49.47 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001138/2.522, allocations: 5.584 MB / 0.9092 GB, free: 43.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.388e-05/2.522, allocations: 16.5 kB / 0.9092 GB, free: 43.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005225/2.527, allocations: 0.6458 MB / 0.9098 GB, free: 43.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001725/2.529, allocations: 293.2 kB / 0.9101 GB, free: 43.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002257/2.532, allocations: 2.14 MB / 0.9122 GB, free: 42.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002098/2.534, allocations: 112 kB / 0.9123 GB, free: 42.08 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002325/2.534, allocations: 75.19 kB / 0.9123 GB, free: 42.08 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/2.534, allocations: 3.844 kB / 0.9123 GB, free: 42.08 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003881/2.538, allocations: 1.602 MB / 0.9139 GB, free: 42.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.227e-05/2.538, allocations: 15.58 kB / 0.9139 GB, free: 42.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003858/2.542, allocations: 0.4925 MB / 0.9144 GB, free: 42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001616/2.543, allocations: 311.8 kB / 0.9147 GB, free: 42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001718/2.545, allocations: 1.982 MB / 0.9166 GB, free: 40.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001838/2.547, allocations: 101.2 kB / 0.9167 GB, free: 40.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002981/2.547, allocations: 70.53 kB / 0.9168 GB, free: 40.44 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * 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 (171): * Single equations (assignments): 168 * 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.0004513/2.548, allocations: 202.6 kB / 0.917 GB, free: 40.33 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003588/2.548, allocations: 135.6 kB / 0.9171 GB, free: 40.26 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003991/2.552, allocations: 1.49 MB / 0.9186 GB, free: 40.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.456e-05/2.552, allocations: 9.875 kB / 0.9186 GB, free: 40.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.864e-06/2.552, allocations: 3.375 kB / 0.9186 GB, free: 40.14 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.778e-05/2.552, allocations: 7 kB / 0.9186 GB, free: 40.14 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006507/2.559, allocations: 2.733 MB / 0.9213 GB, free: 39.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/2.559, allocations: 3.562 kB / 0.9213 GB, free: 39.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/2.56, allocations: 160.5 kB / 0.9214 GB, free: 39.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004263/2.564, allocations: 0.5889 MB / 0.922 GB, free: 39.72 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002247/2.565, allocations: 29.83 kB / 0.922 GB, free: 39.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002007/2.567, allocations: 2.106 MB / 0.9241 GB, free: 38.15 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.421e-06/2.567, allocations: 3.75 kB / 0.9241 GB, free: 38.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004337/2.571, allocations: 2.098 MB / 0.9261 GB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006255/2.572, allocations: 231.9 kB / 0.9264 GB, free: 37.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003615/2.572, allocations: 26.47 kB / 0.9264 GB, free: 37.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001163/2.573, allocations: 77.88 kB / 0.9265 GB, free: 37.61 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000252/2.573, allocations: 94.5 kB / 0.9266 GB, free: 37.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001393/2.574, allocations: 35.17 kB / 0.9266 GB, free: 37.61 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001509/2.575, allocations: 0.7895 MB / 0.9274 GB, free: 37.49 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.22e-07/2.575, allocations: 1.656 kB / 0.9274 GB, free: 37.49 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004602/2.58, allocations: 1.18 MB / 0.9285 GB, free: 37.3 MB / 410.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.002962/2.583, allocations: 1.131 MB / 0.9296 GB, free: 36.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005435/2.588, allocations: 2.168 MB / 0.9317 GB, free: 36.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.513e-06/2.588, allocations: 2.844 kB / 0.9317 GB, free: 36.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002064/2.59, allocations: 0.6851 MB / 0.9324 GB, free: 36.88 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003305/2.594, allocations: 0.4989 MB / 0.9329 GB, free: 36.86 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004871/2.599, allocations: 2.195 MB / 0.935 GB, free: 36.34 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008765/2.6, allocations: 1.287 MB / 0.9363 GB, free: 35.62 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003357/2.603, allocations: 0.6384 MB / 0.9369 GB, free: 35.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003927/2.603, allocations: 98.72 kB / 0.937 GB, free: 35.59 MB / 410.7 MB Notification: Performance of SimCode: time 1.697e-06/2.603, allocations: 0 / 0.937 GB, free: 35.59 MB / 410.7 MB Notification: Performance of Templates: time 0.07676/2.68, allocations: 37.55 MB / 0.9737 GB, free: 21.05 MB / 410.7 MB