Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 1.974/1.974, allocations: 171.2 MB / 186.3 MB, free: 1.328 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 5.058e-05/5.059e-05, allocations: 6.188 kB / 228.1 MB, free: 7.977 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1186, allocations: 38.76 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.03834/0.157, allocations: 14.72 MB / 281.6 MB, free: 2.348 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01717/0.1742, allocations: 5.086 MB / 286.7 MB, free: 13.26 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00147/0.1758, allocations: 31.75 kB / 286.7 MB, free: 13.23 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001746/0.1776, allocations: 286.4 kB / 287 MB, free: 12.95 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005058/0.1827, allocations: 0.7319 MB / 287.7 MB, free: 12.21 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007406/0.1901, allocations: 1.072 MB / 288.8 MB, free: 11.14 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00355/0.1937, allocations: 0.8127 MB / 289.6 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001128/0.1949, allocations: 311.6 kB / 289.9 MB, free: 10.02 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00207/0.197, allocations: 462.9 kB / 290.4 MB, free: 9.566 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001799/0.1989, allocations: 430.8 kB / 290.8 MB, free: 9.145 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00471/0.2036, allocations: 1.006 MB / 291.8 MB, free: 8.137 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008869/0.2046, allocations: 76 kB / 291.9 MB, free: 8.062 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006757/0.2053, allocations: 207.4 kB / 292.1 MB, free: 7.859 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005429/0.2059, allocations: 76 kB / 292.2 MB, free: 7.785 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004614/0.2105, allocations: 1.208 MB / 293.4 MB, free: 6.574 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.999e-06/0.2106, allocations: 3.938 kB / 293.4 MB, free: 6.57 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.737e-06/0.2106, allocations: 3.938 kB / 293.4 MB, free: 6.566 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.599e-05/0.2107, allocations: 0 / 293.4 MB, free: 6.566 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.004414/0.2151, allocations: 0.9512 MB / 294.3 MB, free: 5.566 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.538e-05/0.2152, allocations: 8.031 kB / 294.3 MB, free: 5.559 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008378/0.2161, allocations: 83.06 kB / 294.4 MB, free: 5.477 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002221/0.2183, allocations: 0.5249 MB / 294.9 MB, free: 4.91 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001133/0.2185, allocations: 40.98 kB / 295 MB, free: 4.867 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002566/0.2188, allocations: 51.98 kB / 295 MB, free: 4.816 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003362/0.2222, allocations: 0.7294 MB / 295.8 MB, free: 4.059 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.003e-05/0.2223, allocations: 0 / 295.8 MB, free: 4.059 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001581/0.2225, allocations: 27.94 kB / 295.8 MB, free: 4.031 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001804/0.2227, allocations: 44.97 kB / 295.8 MB, free: 3.988 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003455/0.2262, allocations: 0.6908 MB / 296.5 MB, free: 3.293 MB / 250.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.01208/0.2383, allocations: 3.05 MB / 299.6 MB, free: 24 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2968/0.5352, allocations: 480.4 kB / 300 MB, free: 31.66 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005178/0.5358, allocations: 343.3 kB / 300.4 MB, free: 31.29 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.575e-05/0.5358, allocations: 43.31 kB / 300.4 MB, free: 31.25 MB / 250.7 MB Notification: Performance of pre-optimization done (n=48): time 5.841e-06/0.5359, allocations: 0 / 300.4 MB, free: 31.25 MB / 250.7 MB Notification: Performance of matching and sorting (n=58): time 0.01446/0.5504, allocations: 2.319 MB / 302.7 MB, free: 30.65 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.029e-05/0.5505, allocations: 84.23 kB / 302.8 MB, free: 30.56 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001847/0.5524, allocations: 0.553 MB / 303.4 MB, free: 30.3 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002605/0.5527, allocations: 39.02 kB / 303.4 MB, free: 30.27 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003762/0.5531, allocations: 353.4 kB / 303.8 MB, free: 29.95 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003782/0.5535, allocations: 206.1 kB / 304 MB, free: 29.8 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.242e-05/0.5536, allocations: 14.78 kB / 304 MB, free: 29.79 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.5538, allocations: 344.6 kB / 304.3 MB, free: 29.46 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001391/0.5552, allocations: 292.9 kB / 304.6 MB, free: 29.36 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001539/0.5567, allocations: 474.5 kB / 305.1 MB, free: 29.06 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001482/0.5582, allocations: 346.4 kB / 305.4 MB, free: 28.92 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.396e-05/0.5583, allocations: 5.875 kB / 305.4 MB, free: 28.92 MB / 250.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.004074/0.5624, allocations: 0.9089 MB / 306.3 MB, free: 28.55 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000569/0.563, allocations: 1.84 MB / 308.2 MB, free: 26.61 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.641e-05/0.5631, allocations: 5.781 kB / 308.2 MB, free: 26.61 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006505/0.5696, allocations: 411.5 kB / 308.6 MB, free: 26.57 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00184/0.5715, allocations: 152.4 kB / 308.7 MB, free: 26.55 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002036/0.5736, allocations: 0.8252 MB / 309.5 MB, free: 25.92 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001676/0.5753, allocations: 51.7 kB / 309.6 MB, free: 25.9 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001805/0.5756, allocations: 30.06 kB / 309.6 MB, free: 25.9 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.5756, allocations: 2.531 kB / 309.6 MB, free: 25.9 MB / 250.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003753/0.5794, allocations: 0.8178 MB / 310.4 MB, free: 25.58 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.155e-05/0.5795, allocations: 6.938 kB / 310.4 MB, free: 25.58 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004909/0.5844, allocations: 276.9 kB / 310.7 MB, free: 25.55 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001953/0.5864, allocations: 158.2 kB / 310.9 MB, free: 25.53 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.5878, allocations: 0.7064 MB / 311.6 MB, free: 24.94 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001214/0.589, allocations: 42.97 kB / 311.6 MB, free: 24.93 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001525/0.5892, allocations: 29.86 kB / 311.6 MB, free: 24.92 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0008855/0.5901, allocations: 247 kB / 311.9 MB, free: 24.73 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003521/0.5905, allocations: 76.59 kB / 312 MB, free: 24.7 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004069/0.5946, allocations: 0.8662 MB / 312.8 MB, free: 24.33 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.252e-05/0.5947, allocations: 7.594 kB / 312.8 MB, free: 24.33 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/0.5947, allocations: 96 / 312.8 MB, free: 24.33 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.971e-05/0.5948, allocations: 6.797 kB / 312.8 MB, free: 24.32 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00694/0.6017, allocations: 1.714 MB / 314.6 MB, free: 23.49 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-05/0.6018, allocations: 4.344 kB / 314.6 MB, free: 23.49 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001522/0.6033, allocations: 112.6 kB / 314.7 MB, free: 23.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004068/0.6074, allocations: 349.3 kB / 315 MB, free: 23.36 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001718/0.6077, allocations: 18.05 kB / 315 MB, free: 23.35 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001634/0.6093, allocations: 0.817 MB / 315.8 MB, free: 22.67 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.144e-06/0.6094, allocations: 3.984 kB / 315.8 MB, free: 22.66 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005012/0.6144, allocations: 1.313 MB / 317.2 MB, free: 21.88 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004975/0.615, allocations: 151.8 kB / 317.3 MB, free: 21.73 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003316/0.6153, allocations: 16.45 kB / 317.3 MB, free: 21.72 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001321/0.6167, allocations: 44.48 kB / 317.4 MB, free: 21.7 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002427/0.6169, allocations: 58.45 kB / 317.4 MB, free: 21.66 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001321/0.6171, allocations: 23.73 kB / 317.5 MB, free: 21.66 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001119/0.6182, allocations: 436.3 kB / 317.9 MB, free: 21.4 MB / 250.7 MB Notification: Performance of sort global known variables: time 9.42e-07/0.6183, allocations: 0 / 317.9 MB, free: 21.4 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.00314/0.6214, allocations: 0.5339 MB / 318.4 MB, free: 21.33 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002037/0.6235, allocations: 433.7 kB / 318.8 MB, free: 21.17 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.005459/0.629, allocations: 1.16 MB / 320 MB, free: 20.64 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-05/0.6291, allocations: 1.094 kB / 320 MB, free: 20.64 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001721/0.6308, allocations: 391.9 kB / 320.4 MB, free: 20.42 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004276/0.6352, allocations: 330.7 kB / 320.7 MB, free: 20.11 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005563/0.6408, allocations: 1.893 MB / 322.6 MB, free: 18.2 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007519/0.6416, allocations: 0.9754 MB / 323.6 MB, free: 17.2 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006211/0.6423, allocations: 75.41 kB / 323.6 MB, free: 17.12 MB / 250.7 MB Notification: Performance of SimCode: time 2.054e-06/0.6423, allocations: 0 / 323.6 MB, free: 17.12 MB / 250.7 MB Notification: Performance of Templates: time 0.05117/0.6935, allocations: 17.31 MB / 341 MB, free: 15.84 MB / 266.7 MB