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.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 2.07/2.07, allocations: 194.9 MB / 211.2 MB, free: 7.863 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.325e-05/3.327e-05, allocations: 7.906 kB / 258.8 MB, free: 8.211 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3883/0.3883, allocations: 44.49 MB / 303.3 MB, free: 12.7 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.03292/0.4213, allocations: 14.74 MB / 318 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01327/0.4346, allocations: 5.083 MB / 323.1 MB, free: 9.656 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001548/0.4363, allocations: 35.69 kB / 323.1 MB, free: 9.621 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001892/0.4382, allocations: 278.5 kB / 323.4 MB, free: 9.348 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004836/0.4431, allocations: 0.7319 MB / 324.1 MB, free: 8.613 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006977/0.4501, allocations: 1.079 MB / 325.2 MB, free: 7.531 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003487/0.4537, allocations: 0.8088 MB / 326 MB, free: 6.719 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001287/0.455, allocations: 331.5 kB / 326.4 MB, free: 6.395 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002111/0.4572, allocations: 458.9 kB / 326.8 MB, free: 5.945 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001912/0.4592, allocations: 426.8 kB / 327.2 MB, free: 5.527 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004939/0.4642, allocations: 1.014 MB / 328.2 MB, free: 4.512 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009041/0.4652, allocations: 76 kB / 328.3 MB, free: 4.438 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007691/0.466, allocations: 203.5 kB / 328.5 MB, free: 4.238 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005793/0.4666, allocations: 72 kB / 328.6 MB, free: 4.168 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004644/0.4713, allocations: 1.204 MB / 329.8 MB, free: 2.961 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.4714, allocations: 0 / 329.8 MB, free: 2.961 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.05e-06/0.4714, allocations: 0 / 329.8 MB, free: 2.961 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.272e-05/0.4715, allocations: 0 / 329.8 MB, free: 2.961 MB / 266.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.004497/0.476, allocations: 0.9512 MB / 330.7 MB, free: 1.961 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.188e-05/0.4761, allocations: 8.031 kB / 330.7 MB, free: 1.953 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008829/0.477, allocations: 83.06 kB / 330.8 MB, free: 1.871 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002149/0.4792, allocations: 0.5249 MB / 331.4 MB, free: 1.305 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.4794, allocations: 44.98 kB / 331.4 MB, free: 1.262 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002601/0.4797, allocations: 51.86 kB / 331.4 MB, free: 1.211 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003492/0.4832, allocations: 0.7333 MB / 332.2 MB, free: 460 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.475e-05/0.4833, allocations: 3.938 kB / 332.2 MB, free: 456 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000163/0.4835, allocations: 20 kB / 332.2 MB, free: 436 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001795/0.4837, allocations: 44.97 kB / 332.2 MB, free: 388 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003563/0.4873, allocations: 0.6909 MB / 332.9 MB, free: 15.69 MB / 282.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.01224/0.4996, allocations: 3.058 MB / 336 MB, free: 12.41 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002185/0.5018, allocations: 483.1 kB / 336.5 MB, free: 11.93 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006376/0.5025, allocations: 349.3 kB / 336.8 MB, free: 11.52 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.288e-05/0.5026, allocations: 39 kB / 336.8 MB, free: 11.47 MB / 282.7 MB Notification: Performance of pre-optimization done (n=48): time 5.33e-06/0.5027, allocations: 0 / 336.8 MB, free: 11.47 MB / 282.7 MB Notification: Performance of matching and sorting (n=58): time 0.01534/0.518, allocations: 2.312 MB / 339.2 MB, free: 9.078 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.5182, allocations: 85.67 kB / 339.2 MB, free: 8.977 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001862/0.5201, allocations: 0.5539 MB / 339.8 MB, free: 8.418 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002701/0.5204, allocations: 37.7 kB / 339.8 MB, free: 8.375 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005744/0.521, allocations: 354.9 kB / 340.2 MB, free: 8.023 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005244/0.5216, allocations: 205 kB / 340.4 MB, free: 7.82 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/0.5217, allocations: 16 kB / 340.4 MB, free: 7.805 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002655/0.522, allocations: 338.8 kB / 340.7 MB, free: 7.465 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001639/0.5237, allocations: 301.8 kB / 341 MB, free: 7.172 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001765/0.5255, allocations: 469.8 kB / 341.5 MB, free: 6.645 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001697/0.5273, allocations: 351.1 kB / 341.8 MB, free: 6.305 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.339e-05/0.5274, allocations: 3.953 kB / 341.8 MB, free: 6.301 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00447/0.5318, allocations: 0.9112 MB / 342.7 MB, free: 5.379 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001212/0.5331, allocations: 1.832 MB / 344.6 MB, free: 3.398 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.183e-05/0.5332, allocations: 7.953 kB / 344.6 MB, free: 3.391 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006691/0.5399, allocations: 420.3 kB / 345 MB, free: 2.977 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001905/0.5419, allocations: 147.8 kB / 345.1 MB, free: 2.832 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002306/0.5443, allocations: 0.8255 MB / 346 MB, free: 1.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001845/0.5462, allocations: 43.97 kB / 346 MB, free: 1.938 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002442/0.5465, allocations: 35.92 kB / 346 MB, free: 1.902 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.5466, allocations: 8.062 kB / 346 MB, free: 1.895 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004265/0.5508, allocations: 0.809 MB / 346.9 MB, free: 1.082 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.682e-05/0.5509, allocations: 8.031 kB / 346.9 MB, free: 1.074 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004417/0.5554, allocations: 284.4 kB / 347.1 MB, free: 0.793 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001501/0.5569, allocations: 151.8 kB / 347.3 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001417/0.5584, allocations: 0.7084 MB / 348 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001185/0.5597, allocations: 44.05 kB / 348 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001963/0.5599, allocations: 31.98 kB / 348.1 MB, free: 15.84 MB / 298.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.0008667/0.5608, allocations: 247.6 kB / 348.3 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003506/0.5612, allocations: 75.11 kB / 348.4 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003754/0.5649, allocations: 0.8658 MB / 349.2 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-05/0.565, allocations: 4 kB / 349.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.5651, allocations: 0 / 349.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.752e-05/0.5651, allocations: 7.984 kB / 349.3 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007415/0.5725, allocations: 1.719 MB / 351 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.288e-05/0.5726, allocations: 3.938 kB / 351 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00137/0.574, allocations: 107.9 kB / 351.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003848/0.5779, allocations: 360.6 kB / 351.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001855/0.5781, allocations: 15.98 kB / 351.5 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001766/0.5799, allocations: 0.806 MB / 352.3 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.027e-05/0.58, allocations: 4.031 kB / 352.3 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004892/0.5849, allocations: 1.306 MB / 353.6 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005033/0.5855, allocations: 160.2 kB / 353.7 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003529/0.5858, allocations: 16 kB / 353.7 MB, free: 9.996 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/0.5871, allocations: 39.97 kB / 353.8 MB, free: 9.957 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002472/0.5874, allocations: 52.44 kB / 353.8 MB, free: 9.902 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001425/0.5875, allocations: 27.98 kB / 353.9 MB, free: 9.875 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001228/0.5888, allocations: 443 kB / 354.3 MB, free: 9.445 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.01e-07/0.5888, allocations: 0 / 354.3 MB, free: 9.445 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.003167/0.592, allocations: 0.5271 MB / 354.8 MB, free: 8.918 MB / 298.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.001976/0.594, allocations: 434.8 kB / 355.2 MB, free: 8.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.005281/0.5993, allocations: 1.168 MB / 356.4 MB, free: 7.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.365e-05/0.5994, allocations: 1.562 kB / 356.4 MB, free: 7.32 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001629/0.6011, allocations: 390.9 kB / 356.8 MB, free: 6.934 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003728/0.6048, allocations: 326 kB / 357.1 MB, free: 6.621 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005647/0.6105, allocations: 1.885 MB / 359 MB, free: 4.699 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000986/0.6116, allocations: 0.9754 MB / 360 MB, free: 3.695 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005396/0.6121, allocations: 71.42 kB / 360 MB, free: 3.625 MB / 298.7 MB Notification: Performance of SimCode: time 1.252e-06/0.6121, allocations: 0 / 360 MB, free: 3.625 MB / 298.7 MB Notification: Performance of Templates: time 0.05095/0.6631, allocations: 17.31 MB / 377.4 MB, free: 2.32 MB / 314.7 MB