Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.618/1.618, allocations: 171.2 MB / 183.8 MB, free: 11.94 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.571e-05/3.59e-05, allocations: 4 kB / 225 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.272, allocations: 38.76 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7178/0.9898, allocations: 316.9 MB / 0.5671 GB, free: 85.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.9901, allocations: 83.95 kB / 0.5671 GB, free: 85.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.433/2.424, allocations: 321.5 MB / 0.8811 GB, free: 43.49 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.461e-06/2.424, allocations: 0 / 0.8811 GB, free: 43.49 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001816/2.424, allocations: 42.73 kB / 0.8811 GB, free: 43.48 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.006888/2.431, allocations: 2.036 MB / 0.8831 GB, free: 42.35 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/2.431, allocations: 10.78 kB / 0.8831 GB, free: 42.35 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001242/2.432, allocations: 202.5 kB / 0.8833 GB, free: 42.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003776/2.436, allocations: 1.243 MB / 0.8845 GB, free: 41.6 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001333/2.436, allocations: 99.72 kB / 0.8846 GB, free: 41.56 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003935/2.436, allocations: 123.1 kB / 0.8847 GB, free: 41.53 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004397/2.441, allocations: 1.909 MB / 0.8866 GB, free: 40.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.172e-05/2.441, allocations: 0 / 0.8866 GB, free: 40.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002403/2.441, allocations: 52.59 kB / 0.8866 GB, free: 40.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001741/2.441, allocations: 112.4 kB / 0.8867 GB, free: 40.63 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004309/2.446, allocations: 1.897 MB / 0.8886 GB, free: 39.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01416/2.46, allocations: 7.63 MB / 0.896 GB, free: 31.72 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002218/2.462, allocations: 1.132 MB / 0.8971 GB, free: 30.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001333/2.463, allocations: 0.7227 MB / 0.8979 GB, free: 29.86 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005935/2.469, allocations: 3.382 MB / 0.9012 GB, free: 26.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/2.469, allocations: 51.52 kB / 0.9012 GB, free: 26.19 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 5.053e-06/2.469, allocations: 4 kB / 0.9012 GB, free: 26.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.01139/2.481, allocations: 4.071 MB / 0.9052 GB, free: 22.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.72e-05/2.481, allocations: 171.5 kB / 0.9053 GB, free: 21.87 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002022/2.483, allocations: 1.158 MB / 0.9065 GB, free: 20.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000338/2.483, allocations: 61.69 kB / 0.9065 GB, free: 20.64 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000466/2.484, allocations: 0.6886 MB / 0.9072 GB, free: 19.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004731/2.484, allocations: 477 kB / 0.9077 GB, free: 19.49 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/2.485, allocations: 40 kB / 0.9077 GB, free: 19.45 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000126/2.485, allocations: 381.8 kB / 0.9081 GB, free: 19.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00171/2.486, allocations: 0.734 MB / 0.9088 GB, free: 18.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002132/2.489, allocations: 1.182 MB / 0.9099 GB, free: 16.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001912/2.491, allocations: 0.8646 MB / 0.9108 GB, free: 16.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.349e-05/2.491, allocations: 4 kB / 0.9108 GB, free: 16.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004987/2.496, allocations: 2.254 MB / 0.913 GB, free: 13.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009932/2.497, allocations: 5.145 MB / 0.918 GB, free: 8.277 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.667e-05/2.497, allocations: 23.73 kB / 0.918 GB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007043/2.504, allocations: 0.932 MB / 0.9189 GB, free: 7.316 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002039/2.506, allocations: 363.4 kB / 0.9193 GB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002832/2.509, allocations: 2.869 MB / 0.9221 GB, free: 3.988 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00225/2.511, allocations: 147.9 kB / 0.9222 GB, free: 3.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002982/2.511, allocations: 83.97 kB / 0.9223 GB, free: 3.762 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/2.511, allocations: 4 kB / 0.9223 GB, free: 3.758 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00447/2.516, allocations: 2.065 MB / 0.9243 GB, free: 1.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.748e-05/2.516, allocations: 16 kB / 0.9244 GB, free: 1.664 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00489/2.521, allocations: 0.6513 MB / 0.925 GB, free: 1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002031/2.523, allocations: 371.4 kB / 0.9253 GB, free: 0.6367 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2288/2.752, allocations: 2.599 MB / 0.9279 GB, free: 40.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001847/2.754, allocations: 137.2 kB / 0.928 GB, free: 40.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003151/2.754, allocations: 80.62 kB / 0.9281 GB, free: 40.37 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 203 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005592/2.754, allocations: 229 kB / 0.9283 GB, free: 40.26 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000527/2.755, allocations: 161.8 kB / 0.9285 GB, free: 40.26 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005981/2.761, allocations: 2.311 MB / 0.9307 GB, free: 40.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.878e-05/2.761, allocations: 22.75 kB / 0.9307 GB, free: 40.13 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/2.761, allocations: 2.812 kB / 0.9307 GB, free: 40.13 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.133e-05/2.761, allocations: 6.938 kB / 0.9307 GB, free: 40.13 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009457/2.771, allocations: 3.907 MB / 0.9346 GB, free: 39.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.234e-05/2.771, allocations: 0.7656 kB / 0.9346 GB, free: 39.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001559/2.772, allocations: 241 kB / 0.9348 GB, free: 39.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005242/2.778, allocations: 0.8618 MB / 0.9356 GB, free: 39.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000325/2.778, allocations: 38.72 kB / 0.9357 GB, free: 39.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002605/2.78, allocations: 2.83 MB / 0.9384 GB, free: 37.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.74e-06/2.781, allocations: 3.125 kB / 0.9384 GB, free: 37.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006791/2.787, allocations: 3.164 MB / 0.9415 GB, free: 37.21 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007047/2.788, allocations: 265.2 kB / 0.9418 GB, free: 37.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004891/2.789, allocations: 40.73 kB / 0.9418 GB, free: 37.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001524/2.79, allocations: 107.5 kB / 0.9419 GB, free: 37.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003817/2.791, allocations: 150.6 kB / 0.9421 GB, free: 37.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002082/2.791, allocations: 56.75 kB / 0.9421 GB, free: 37.03 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001654/2.792, allocations: 0.8823 MB / 0.943 GB, free: 36.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.51e-07/2.792, allocations: 1.406 kB / 0.943 GB, free: 36.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005197/2.798, allocations: 1.358 MB / 0.9443 GB, free: 36.91 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003396/2.801, allocations: 1.254 MB / 0.9455 GB, free: 36.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007432/2.809, allocations: 2.937 MB / 0.9484 GB, free: 36.75 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.345e-06/2.809, allocations: 0 / 0.9484 GB, free: 36.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002579/2.811, allocations: 1.036 MB / 0.9494 GB, free: 36.74 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004297/2.816, allocations: 0.6691 MB / 0.9501 GB, free: 36.72 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006828/2.822, allocations: 2.884 MB / 0.9529 GB, free: 36.08 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/2.824, allocations: 1.425 MB / 0.9543 GB, free: 35.36 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009351/2.824, allocations: 162.2 kB / 0.9544 GB, free: 35.35 MB / 362.7 MB Notification: Performance of SimCode: time 1.823e-06/2.824, allocations: 0 / 0.9544 GB, free: 35.35 MB / 362.7 MB Notification: Performance of Templates: time 0.07885/2.903, allocations: 58.7 MB / 1.012 GB, free: 26.52 MB / 362.7 MB