Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 2.057/2.057, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.206e-05/3.205e-05, allocations: 7.906 kB / 258.8 MB, free: 8.703 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3086, allocations: 44.5 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.03431/0.343, allocations: 18.14 MB / 321.4 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0182/0.3613, allocations: 8.251 MB / 329.7 MB, free: 3.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001434/0.3628, allocations: 39.69 kB / 329.7 MB, free: 3.211 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001647/0.3645, allocations: 330.2 kB / 330 MB, free: 2.887 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004726/0.3692, allocations: 0.981 MB / 331 MB, free: 1.902 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007108/0.3764, allocations: 1.702 MB / 332.7 MB, free: 200 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003138/0.3795, allocations: 1.074 MB / 333.8 MB, free: 15.12 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001056/0.3807, allocations: 455.9 kB / 334.2 MB, free: 14.68 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001958/0.3826, allocations: 0.6468 MB / 334.9 MB, free: 14.03 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00164/0.3843, allocations: 0.5649 MB / 335.5 MB, free: 13.46 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005817/0.3902, allocations: 1.549 MB / 337 MB, free: 11.91 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009045/0.3911, allocations: 115.9 kB / 337.1 MB, free: 11.8 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005492/0.3917, allocations: 271.2 kB / 337.4 MB, free: 11.53 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004404/0.3922, allocations: 100 kB / 337.5 MB, free: 11.43 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00491/0.3971, allocations: 1.738 MB / 339.2 MB, free: 9.691 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.3972, allocations: 4 kB / 339.2 MB, free: 9.688 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3972, allocations: 0 / 339.2 MB, free: 9.688 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.555e-05/0.3972, allocations: 4 kB / 339.2 MB, free: 9.684 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003992/0.4012, allocations: 1.205 MB / 340.4 MB, free: 8.426 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.4013, allocations: 8.031 kB / 340.4 MB, free: 8.418 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000661/0.402, allocations: 118.7 kB / 340.6 MB, free: 8.301 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001862/0.4039, allocations: 0.6789 MB / 341.2 MB, free: 7.578 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.223e-05/0.404, allocations: 49.3 kB / 341.3 MB, free: 7.531 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001777/0.4042, allocations: 59.98 kB / 341.3 MB, free: 7.473 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002856/0.407, allocations: 1.04 MB / 342.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.251e-05/0.4071, allocations: 15.92 kB / 342.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001385/0.4073, allocations: 27.98 kB / 342.4 MB, free: 6.336 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001798/0.4074, allocations: 61.28 kB / 342.5 MB, free: 6.273 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00283/0.4103, allocations: 1.024 MB / 343.5 MB, free: 5.25 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.01138/0.4217, allocations: 4.522 MB / 348 MB, free: 456 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001659/0.4234, allocations: 0.5319 MB / 348.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004468/0.4279, allocations: 1.934 MB / 350.5 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.682e-05/0.428, allocations: 46.88 kB / 350.5 MB, free: 13.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 3.968e-06/0.428, allocations: 0 / 350.5 MB, free: 13.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.007557/0.4356, allocations: 1.885 MB / 352.4 MB, free: 11.72 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.4357, allocations: 158.2 kB / 352.6 MB, free: 11.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00163/0.4374, allocations: 0.7423 MB / 353.3 MB, free: 10.78 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001741/0.4376, allocations: 37.7 kB / 353.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005317/0.4381, allocations: 0.4969 MB / 353.9 MB, free: 10.24 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002787/0.4384, allocations: 169.7 kB / 354 MB, free: 10.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.712e-05/0.4385, allocations: 20 kB / 354 MB, free: 10.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.4387, allocations: 350.8 kB / 354.4 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009557/0.4397, allocations: 297.8 kB / 354.7 MB, free: 9.406 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/0.441, allocations: 0.6772 MB / 355.4 MB, free: 8.555 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.4422, allocations: 413.8 kB / 355.8 MB, free: 8.152 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.4422, allocations: 4 kB / 355.8 MB, free: 8.148 MB / 298.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.00322/0.4454, allocations: 1.063 MB / 356.8 MB, free: 7.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002515/0.448, allocations: 4.616 MB / 361.4 MB, free: 2.094 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.902e-05/0.4481, allocations: 12 kB / 361.5 MB, free: 2.082 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004307/0.4524, allocations: 373.2 kB / 361.8 MB, free: 1.711 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001475/0.454, allocations: 195.7 kB / 362 MB, free: 1.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001941/0.4559, allocations: 1.319 MB / 363.3 MB, free: 152 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001538/0.4575, allocations: 67.88 kB / 363.4 MB, free: 84 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001945/0.4578, allocations: 51.92 kB / 363.4 MB, free: 32 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.4578, allocations: 4 kB / 363.4 MB, free: 28 kB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00315/0.461, allocations: 0.9992 MB / 364.4 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.099e-05/0.461, allocations: 12 kB / 364.5 MB, free: 15.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003815/0.4649, allocations: 333.5 kB / 364.8 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001485/0.4664, allocations: 195.7 kB / 365 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001824/0.4683, allocations: 1.273 MB / 366.2 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00111/0.4694, allocations: 71.94 kB / 366.3 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001453/0.4696, allocations: 47.98 kB / 366.4 MB, free: 13.04 MB / 314.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: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],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 (111): * Single equations (assignments): 109 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007738/0.4704, allocations: 294.8 kB / 366.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002691/0.4707, allocations: 86.97 kB / 366.7 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002987/0.4737, allocations: 0.7824 MB / 367.5 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.608e-05/0.4738, allocations: 8 kB / 367.5 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.4738, allocations: 0 / 367.5 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.4738, allocations: 3.984 kB / 367.5 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004742/0.4785, allocations: 1.548 MB / 369.1 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.4786, allocations: 0 / 369.1 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000741/0.4794, allocations: 75.89 kB / 369.2 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002528/0.4819, allocations: 309.4 kB / 369.5 MB, free: 9.852 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001805/0.4822, allocations: 12 kB / 369.5 MB, free: 9.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002654/0.4848, allocations: 1.288 MB / 370.8 MB, free: 8.5 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.384e-05/0.4849, allocations: 7.984 kB / 370.8 MB, free: 8.492 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005177/0.4901, allocations: 1.095 MB / 371.9 MB, free: 7.355 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008587/0.491, allocations: 175.9 kB / 372 MB, free: 7.164 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005735/0.4917, allocations: 19.94 kB / 372.1 MB, free: 7.145 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001417/0.4931, allocations: 39.95 kB / 372.1 MB, free: 7.105 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002779/0.4934, allocations: 52.19 kB / 372.1 MB, free: 7.055 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/0.4936, allocations: 19.98 kB / 372.2 MB, free: 7.035 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001898/0.4955, allocations: 0.5654 MB / 372.7 MB, free: 6.477 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.293e-06/0.4955, allocations: 0 / 372.7 MB, free: 6.477 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003713/0.4993, allocations: 0.7184 MB / 373.4 MB, free: 5.758 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00231/0.5016, allocations: 0.5925 MB / 374 MB, free: 5.164 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004389/0.5061, allocations: 1.244 MB / 375.3 MB, free: 3.93 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/0.5061, allocations: 0.75 kB / 375.3 MB, free: 3.93 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.5072, allocations: 314.3 kB / 375.6 MB, free: 3.617 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00274/0.51, allocations: 305.6 kB / 375.9 MB, free: 3.316 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005316/0.5153, allocations: 2.053 MB / 377.9 MB, free: 1.227 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009024/0.5163, allocations: 1.049 MB / 379 MB, free: 152 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004793/0.5168, allocations: 87.36 kB / 379.1 MB, free: 64 kB / 314.7 MB Notification: Performance of SimCode: time 1.292e-06/0.5168, allocations: 0 / 379.1 MB, free: 64 kB / 314.7 MB Notification: Performance of Templates: time 0.05714/0.574, allocations: 24.61 MB / 403.7 MB, free: 7.445 MB / 346.7 MB