Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,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.TankWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 2.077/2.077, allocations: 194.9 MB / 211.2 MB, free: 8.152 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.921e-05/2.929e-05, allocations: 3.906 kB / 258.8 MB, free: 8.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3082/0.3082, allocations: 44.49 MB / 303.3 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.03165/0.3399, allocations: 17.1 MB / 320.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01342/0.3534, allocations: 5.827 MB / 326.2 MB, free: 6.672 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001237/0.3547, allocations: 35.69 kB / 326.3 MB, free: 6.637 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001464/0.3562, allocations: 302.4 kB / 326.6 MB, free: 6.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003514/0.3598, allocations: 0.7747 MB / 327.3 MB, free: 5.562 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005248/0.365, allocations: 1.235 MB / 328.6 MB, free: 4.324 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002629/0.3677, allocations: 0.9065 MB / 329.5 MB, free: 3.414 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001015/0.3688, allocations: 396 kB / 329.9 MB, free: 3.027 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001618/0.3704, allocations: 0.5494 MB / 330.4 MB, free: 2.477 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001224/0.3717, allocations: 458.7 kB / 330.9 MB, free: 2.027 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003439/0.3751, allocations: 1.108 MB / 332 MB, free: 0.918 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006834/0.3759, allocations: 80 kB / 332 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004211/0.3763, allocations: 219.3 kB / 332.3 MB, free: 0.625 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003808/0.3767, allocations: 88 kB / 332.3 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003466/0.3802, allocations: 1.333 MB / 333.7 MB, free: 15.2 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3803, allocations: 0 / 333.7 MB, free: 15.2 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.3803, allocations: 0 / 333.7 MB, free: 15.2 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.586e-05/0.3803, allocations: 0 / 333.7 MB, free: 15.2 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003485/0.3838, allocations: 1.033 MB / 334.7 MB, free: 14.12 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.795e-05/0.3839, allocations: 19.97 kB / 334.7 MB, free: 14.1 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006923/0.3846, allocations: 98.95 kB / 334.8 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001774/0.3864, allocations: 0.574 MB / 335.4 MB, free: 13.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.375e-05/0.3865, allocations: 45.3 kB / 335.4 MB, free: 13.34 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001733/0.3867, allocations: 59.92 kB / 335.5 MB, free: 13.28 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002443/0.3892, allocations: 0.8724 MB / 336.4 MB, free: 12.36 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.335e-05/0.3893, allocations: 3.953 kB / 336.4 MB, free: 12.36 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001222/0.3894, allocations: 24 kB / 336.4 MB, free: 12.33 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001135/0.3895, allocations: 45.28 kB / 336.4 MB, free: 12.29 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002377/0.3919, allocations: 0.8091 MB / 337.3 MB, free: 11.48 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.009049/0.401, allocations: 3.911 MB / 341.2 MB, free: 7.289 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001459/0.4025, allocations: 0.4897 MB / 341.7 MB, free: 6.793 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004027/0.4066, allocations: 1.711 MB / 343.4 MB, free: 4.945 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.4067, allocations: 38.56 kB / 343.4 MB, free: 4.898 MB / 282.7 MB Notification: Performance of pre-optimization done (n=41): time 5.41e-06/0.4067, allocations: 3.984 kB / 343.4 MB, free: 4.895 MB / 282.7 MB Notification: Performance of matching and sorting (n=46): time 0.007174/0.4139, allocations: 1.794 MB / 345.2 MB, free: 3.004 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.484e-05/0.414, allocations: 136.5 kB / 345.3 MB, free: 2.84 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001232/0.4152, allocations: 0.5971 MB / 345.9 MB, free: 2.238 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.4154, allocations: 33.7 kB / 346 MB, free: 2.199 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004668/0.4159, allocations: 449.5 kB / 346.4 MB, free: 1.754 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002289/0.4161, allocations: 165.7 kB / 346.6 MB, free: 1.59 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.416e-05/0.4162, allocations: 16 kB / 346.6 MB, free: 1.574 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.4164, allocations: 346.8 kB / 346.9 MB, free: 1.227 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007807/0.4172, allocations: 265.8 kB / 347.2 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001059/0.4182, allocations: 0.5517 MB / 347.7 MB, free: 284 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.4193, allocations: 342 kB / 348.1 MB, free: 15.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.4194, allocations: 0 / 348.1 MB, free: 15.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002878/0.4222, allocations: 0.9138 MB / 349 MB, free: 15.01 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001885/0.4242, allocations: 3.661 MB / 352.6 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.006e-05/0.4243, allocations: 12 kB / 352.6 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002962/0.4272, allocations: 281.3 kB / 352.9 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001336/0.4286, allocations: 171.7 kB / 353.1 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001711/0.4304, allocations: 1.253 MB / 354.3 MB, free: 9.301 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001266/0.4317, allocations: 60 kB / 354.4 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001524/0.4319, allocations: 47.92 kB / 354.4 MB, free: 9.195 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.4319, allocations: 4 kB / 354.5 MB, free: 9.191 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002457/0.4343, allocations: 0.8063 MB / 355.3 MB, free: 8.379 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.306e-05/0.4344, allocations: 8 kB / 355.3 MB, free: 8.371 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001688/0.4361, allocations: 145.4 kB / 355.4 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001887/0.438, allocations: 219.7 kB / 355.6 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006268/0.4387, allocations: 0.599 MB / 356.2 MB, free: 7.387 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009228/0.4396, allocations: 52.05 kB / 356.3 MB, free: 7.336 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.4398, allocations: 39.98 kB / 356.3 MB, free: 7.297 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (95): * Single equations (assignments): 93 * 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 2,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0006277/0.4404, allocations: 261.8 kB / 356.6 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002309/0.4407, allocations: 79.02 kB / 356.6 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002824/0.4435, allocations: 0.8591 MB / 357.5 MB, free: 6.082 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.456e-05/0.4435, allocations: 8 kB / 357.5 MB, free: 6.074 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.4436, allocations: 0 / 357.5 MB, free: 6.074 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.4436, allocations: 3.984 kB / 357.5 MB, free: 6.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004153/0.4477, allocations: 1.583 MB / 359.1 MB, free: 4.418 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.4478, allocations: 12.09 kB / 359.1 MB, free: 4.406 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008077/0.4486, allocations: 91.89 kB / 359.2 MB, free: 4.316 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001782/0.4504, allocations: 229.6 kB / 359.4 MB, free: 4.086 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.865e-05/0.4505, allocations: 19.98 kB / 359.4 MB, free: 4.066 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001357/0.4519, allocations: 1.21 MB / 360.7 MB, free: 2.805 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.4519, allocations: 3.938 kB / 360.7 MB, free: 2.801 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00292/0.4549, allocations: 1.138 MB / 361.8 MB, free: 1.613 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003227/0.4552, allocations: 164.1 kB / 362 MB, free: 1.434 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002066/0.4554, allocations: 15.95 kB / 362 MB, free: 1.418 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007898/0.4562, allocations: 43.94 kB / 362 MB, free: 1.375 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/0.4564, allocations: 56.42 kB / 362.1 MB, free: 1.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.694e-05/0.4565, allocations: 27.98 kB / 362.1 MB, free: 1.293 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009022/0.4575, allocations: 463 kB / 362.5 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4575, allocations: 0 / 362.5 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002365/0.4598, allocations: 0.5701 MB / 363.1 MB, free: 280 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * 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: 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 5,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001681/0.4616, allocations: 475.8 kB / 363.6 MB, free: 15.8 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003535/0.4651, allocations: 1.103 MB / 364.7 MB, free: 14.71 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/0.4652, allocations: 4 kB / 364.7 MB, free: 14.7 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001043/0.4662, allocations: 335 kB / 365 MB, free: 14.38 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002638/0.4689, allocations: 302.8 kB / 365.3 MB, free: 14.09 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004478/0.4734, allocations: 1.892 MB / 367.2 MB, free: 12.16 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008206/0.4743, allocations: 1.003 MB / 368.2 MB, free: 11.12 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004867/0.4748, allocations: 79.41 kB / 368.3 MB, free: 11.04 MB / 314.7 MB Notification: Performance of SimCode: time 1.112e-06/0.4748, allocations: 3.938 kB / 368.3 MB, free: 11.04 MB / 314.7 MB Notification: Performance of Templates: time 0.04862/0.5234, allocations: 21.5 MB / 389.8 MB, free: 5.527 MB / 330.7 MB