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_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 2.13/2.13, allocations: 224.7 MB / 241.1 MB, free: 1.68 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.698e-05/3.688e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1158, allocations: 50.41 MB / 345 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.04266/0.1585, allocations: 26.16 MB / 371.1 MB, free: 14.7 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02548/0.1841, allocations: 11.87 MB / 383 MB, free: 2.809 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002013/0.1862, allocations: 55.56 kB / 383.1 MB, free: 2.754 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002301/0.1885, allocations: 497.3 kB / 383.6 MB, free: 2.266 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006633/0.1952, allocations: 1.507 MB / 385.1 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009676/0.2049, allocations: 2.412 MB / 387.5 MB, free: 14.34 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004586/0.2095, allocations: 1.664 MB / 389.1 MB, free: 12.67 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001649/0.2112, allocations: 0.6917 MB / 389.8 MB, free: 11.98 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002961/0.2142, allocations: 0.9586 MB / 390.8 MB, free: 11.02 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002489/0.2168, allocations: 0.9 MB / 391.7 MB, free: 10.12 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006825/0.2237, allocations: 2.118 MB / 393.8 MB, free: 7.996 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001368/0.2251, allocations: 152 kB / 394 MB, free: 7.848 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001139/0.2263, allocations: 434.8 kB / 394.4 MB, free: 7.422 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007917/0.2271, allocations: 152 kB / 394.5 MB, free: 7.273 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006849/0.2339, allocations: 2.6 MB / 397.1 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.234, allocations: 0 / 397.1 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.234, allocations: 0 / 397.1 MB, free: 4.668 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.731e-05/0.2341, allocations: 0 / 397.1 MB, free: 4.668 MB / 330.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.006019/0.2401, allocations: 1.684 MB / 398.8 MB, free: 2.93 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.363e-05/0.2402, allocations: 8.031 kB / 398.8 MB, free: 2.922 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001146/0.2413, allocations: 170.1 kB / 399 MB, free: 2.754 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002796/0.2442, allocations: 0.9139 MB / 399.9 MB, free: 1.797 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/0.2443, allocations: 85.95 kB / 400 MB, free: 1.715 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000362/0.2447, allocations: 95.98 kB / 400.1 MB, free: 1.621 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3223/0.567, allocations: 1.611 MB / 401.7 MB, free: 52.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.487e-05/0.5671, allocations: 4.625 kB / 401.7 MB, free: 52.34 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002653/0.5674, allocations: 45.89 kB / 401.7 MB, free: 52.34 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002964/0.5677, allocations: 104 kB / 401.8 MB, free: 52.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006/0.5737, allocations: 1.639 MB / 403.5 MB, free: 52.19 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01751/0.5913, allocations: 6.724 MB / 410.2 MB, free: 47.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00279/0.5941, allocations: 0.9217 MB / 411.1 MB, free: 47.42 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006168/0.6003, allocations: 2.859 MB / 414 MB, free: 45.39 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.714e-05/0.6004, allocations: 41.03 kB / 414 MB, free: 45.35 MB / 330.7 MB Notification: Performance of pre-optimization done (n=80): time 4.068e-06/0.6004, allocations: 0 / 414 MB, free: 45.35 MB / 330.7 MB Notification: Performance of matching and sorting (n=90): time 0.01473/0.6152, allocations: 3.705 MB / 417.7 MB, free: 43.22 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.356e-05/0.6153, allocations: 194.9 kB / 417.9 MB, free: 43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002632/0.618, allocations: 1.152 MB / 419.1 MB, free: 42.37 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003446/0.6184, allocations: 49.2 kB / 419.1 MB, free: 42.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005852/0.619, allocations: 0.6363 MB / 419.8 MB, free: 41.73 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005368/0.6195, allocations: 320.5 kB / 420.1 MB, free: 41.47 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001654/0.6197, allocations: 31.03 kB / 420.1 MB, free: 41.45 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.6199, allocations: 369.9 kB / 420.5 MB, free: 41.09 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001793/0.6217, allocations: 0.5589 MB / 421 MB, free: 40.81 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002161/0.6239, allocations: 0.9745 MB / 422 MB, free: 40 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00201/0.626, allocations: 0.6834 MB / 422.7 MB, free: 39.65 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.602e-05/0.626, allocations: 5.812 kB / 422.7 MB, free: 39.65 MB / 330.7 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.005034/0.6311, allocations: 1.774 MB / 424.5 MB, free: 38.75 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009109/0.632, allocations: 4.62 MB / 429.1 MB, free: 33.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-05/0.6321, allocations: 13.06 kB / 429.1 MB, free: 33.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008258/0.6404, allocations: 0.7748 MB / 429.9 MB, free: 33.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002204/0.6426, allocations: 282.2 kB / 430.1 MB, free: 33.4 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002842/0.6455, allocations: 2.164 MB / 432.3 MB, free: 31.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002461/0.648, allocations: 105.4 kB / 432.4 MB, free: 31.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004318/0.6485, allocations: 63.11 kB / 432.5 MB, free: 31.42 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.6486, allocations: 7.469 kB / 432.5 MB, free: 31.42 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005027/0.6536, allocations: 1.657 MB / 434.1 MB, free: 29.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.482e-05/0.6537, allocations: 12 kB / 434.1 MB, free: 29.92 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006555/0.6603, allocations: 0.6007 MB / 434.7 MB, free: 29.31 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002162/0.6625, allocations: 291.5 kB / 435 MB, free: 29.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002057/0.6646, allocations: 1.988 MB / 437 MB, free: 26.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001666/0.6663, allocations: 96.06 kB / 437.1 MB, free: 26.87 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001926/0.6665, allocations: 71.94 kB / 437.2 MB, free: 26.8 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (166): * Single equations (assignments): 163 * 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.001004/0.6675, allocations: 397 kB / 437.6 MB, free: 26.41 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004178/0.668, allocations: 142.2 kB / 437.7 MB, free: 26.27 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004532/0.6725, allocations: 1.518 MB / 439.2 MB, free: 24.73 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.476e-05/0.6726, allocations: 12 kB / 439.2 MB, free: 24.72 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.6726, allocations: 0 / 439.2 MB, free: 24.72 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.787e-05/0.6726, allocations: 7.797 kB / 439.2 MB, free: 24.71 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008033/0.6806, allocations: 2.826 MB / 442.1 MB, free: 21.83 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.234e-05/0.6807, allocations: 7.922 kB / 442.1 MB, free: 21.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001406/0.6821, allocations: 155.7 kB / 442.2 MB, free: 21.67 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005043/0.6872, allocations: 0.6392 MB / 442.9 MB, free: 21.02 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002607/0.6875, allocations: 27.98 kB / 442.9 MB, free: 21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002341/0.6899, allocations: 2.109 MB / 445 MB, free: 18.82 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.69, allocations: 192 / 445 MB, free: 18.82 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005647/0.6956, allocations: 2.145 MB / 447.1 MB, free: 16.6 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007531/0.6964, allocations: 251.2 kB / 447.4 MB, free: 16.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007322/0.6972, allocations: 27.95 kB / 447.4 MB, free: 16.31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00197/0.6992, allocations: 79.78 kB / 447.5 MB, free: 16.23 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003984/0.6996, allocations: 92.86 kB / 447.6 MB, free: 16.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001772/0.6998, allocations: 43.97 kB / 447.6 MB, free: 16.1 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001926/0.7018, allocations: 0.8888 MB / 448.5 MB, free: 15.21 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.7018, allocations: 0 / 448.5 MB, free: 15.21 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.004547/0.7064, allocations: 1.12 MB / 449.6 MB, free: 14.19 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * 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.003066/0.7095, allocations: 0.8132 MB / 450.5 MB, free: 13.54 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006952/0.7165, allocations: 2.226 MB / 452.7 MB, free: 11.31 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.154e-05/0.7166, allocations: 7.938 kB / 452.7 MB, free: 11.3 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002286/0.7189, allocations: 0.6845 MB / 453.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004958/0.7239, allocations: 0.5737 MB / 453.9 MB, free: 10.06 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006943/0.7309, allocations: 3.208 MB / 457.2 MB, free: 6.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008465/0.7318, allocations: 1.271 MB / 458.4 MB, free: 5.516 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007719/0.7326, allocations: 131.4 kB / 458.6 MB, free: 5.387 MB / 330.7 MB Notification: Performance of SimCode: time 1.282e-06/0.7326, allocations: 0 / 458.6 MB, free: 5.387 MB / 330.7 MB Notification: Performance of Templates: time 0.09158/0.8242, allocations: 43.97 MB / 0.4907 GB, free: 9.484 MB / 378.7 MB