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.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.728/1.728, allocations: 171.2 MB / 185.7 MB, free: 1.391 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.807e-05/2.8e-05, allocations: 8 kB / 228.2 MB, free: 7.316 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0821/0.08215, allocations: 38.76 MB / 266.9 MB, free: 484 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.02916/0.1114, allocations: 18.15 MB / 285.1 MB, free: 14.26 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01734/0.1288, allocations: 8.234 MB / 293.3 MB, free: 6.012 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001205/0.13, allocations: 39.69 kB / 293.3 MB, free: 5.973 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001223/0.1313, allocations: 334.2 kB / 293.7 MB, free: 5.645 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003764/0.135, allocations: 0.9849 MB / 294.6 MB, free: 4.656 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006656/0.1417, allocations: 1.699 MB / 296.3 MB, free: 2.953 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002941/0.1447, allocations: 1.078 MB / 297.4 MB, free: 1.871 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00108/0.1458, allocations: 452.4 kB / 297.9 MB, free: 1.43 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001929/0.1478, allocations: 0.6429 MB / 298.5 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001559/0.1494, allocations: 0.5766 MB / 299.1 MB, free: 212 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2257/0.3751, allocations: 1.538 MB / 300.6 MB, free: 6.145 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000877/0.376, allocations: 105.7 kB / 300.7 MB, free: 6.145 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005387/0.3766, allocations: 270.4 kB / 301 MB, free: 6.145 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004225/0.377, allocations: 100.6 kB / 301.1 MB, free: 6.145 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005435/0.3825, allocations: 1.742 MB / 302.8 MB, free: 6.02 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.3825, allocations: 2.688 kB / 302.8 MB, free: 6.02 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.3825, allocations: 0 / 302.8 MB, free: 6.02 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.705e-05/0.3826, allocations: 1.031 kB / 302.8 MB, free: 6.02 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.004329/0.3869, allocations: 1.209 MB / 304 MB, free: 5.281 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.387, allocations: 10.64 kB / 304.1 MB, free: 5.281 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007453/0.3877, allocations: 111.9 kB / 304.2 MB, free: 5.234 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00182/0.3896, allocations: 0.6718 MB / 304.8 MB, free: 4.953 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.565e-05/0.3897, allocations: 52.28 kB / 304.9 MB, free: 4.953 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001884/0.3899, allocations: 62.55 kB / 304.9 MB, free: 4.953 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00276/0.3926, allocations: 1.044 MB / 306 MB, free: 4.785 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.379e-05/0.3927, allocations: 3.188 kB / 306 MB, free: 4.785 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001489/0.3929, allocations: 30.55 kB / 306 MB, free: 4.785 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001562/0.393, allocations: 69.53 kB / 306.1 MB, free: 4.777 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002844/0.3959, allocations: 1.028 MB / 307.1 MB, free: 4.773 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.01011/0.406, allocations: 4.519 MB / 311.6 MB, free: 2.445 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.4075, allocations: 0.5377 MB / 312.2 MB, free: 2.414 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003513/0.4111, allocations: 1.925 MB / 314.1 MB, free: 1.152 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.4112, allocations: 37.98 kB / 314.1 MB, free: 1.113 MB / 250.7 MB Notification: Performance of pre-optimization done (n=40): time 2.665e-06/0.4112, allocations: 5.25 kB / 314.1 MB, free: 1.109 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.007127/0.4183, allocations: 1.892 MB / 316 MB, free: 16.46 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.4185, allocations: 160.8 kB / 316.2 MB, free: 16.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00159/0.4201, allocations: 0.7395 MB / 316.9 MB, free: 16.13 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001645/0.4203, allocations: 41.45 kB / 317 MB, free: 16.1 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004388/0.4207, allocations: 499.8 kB / 317.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002083/0.4209, allocations: 168.5 kB / 317.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.634e-05/0.421, allocations: 19.75 kB / 317.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002111/0.4212, allocations: 394.3 kB / 318 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000908/0.4222, allocations: 303.9 kB / 318.3 MB, free: 15.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001078/0.4233, allocations: 0.6716 MB / 319 MB, free: 14.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009624/0.4242, allocations: 401.9 kB / 319.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/0.4243, allocations: 7.312 kB / 319.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002883/0.4272, allocations: 1.119 MB / 320.5 MB, free: 14.83 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002041/0.4292, allocations: 4.615 MB / 325.1 MB, free: 9.992 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-05/0.4293, allocations: 20.25 kB / 325.2 MB, free: 9.988 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004052/0.4334, allocations: 369 kB / 325.5 MB, free: 9.965 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/0.4348, allocations: 199.5 kB / 325.7 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/0.4364, allocations: 1.32 MB / 327 MB, free: 8.848 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/0.4379, allocations: 58.62 kB / 327.1 MB, free: 8.836 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001449/0.4381, allocations: 50.08 kB / 327.1 MB, free: 8.832 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.4381, allocations: 5.25 kB / 327.1 MB, free: 8.832 MB / 266.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002599/0.4407, allocations: 0.9913 MB / 328.1 MB, free: 8.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.766e-05/0.4407, allocations: 12 kB / 328.1 MB, free: 8.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00373/0.4445, allocations: 351.7 kB / 328.5 MB, free: 8.543 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.4458, allocations: 196.6 kB / 328.7 MB, free: 8.516 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001524/0.4474, allocations: 1.289 MB / 330 MB, free: 7.422 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001355/0.4488, allocations: 67.03 kB / 330 MB, free: 7.402 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.4489, allocations: 50.33 kB / 330.1 MB, free: 7.398 MB / 266.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.0007702/0.4497, allocations: 291.7 kB / 330.4 MB, free: 7.262 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002121/0.4499, allocations: 84.72 kB / 330.4 MB, free: 7.219 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00261/0.4525, allocations: 0.7893 MB / 331.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.4526, allocations: 6.469 kB / 331.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.4526, allocations: 0 / 331.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.4526, allocations: 3.984 kB / 331.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003925/0.4565, allocations: 1.548 MB / 332.8 MB, free: 6.348 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.328e-06/0.4566, allocations: 6.953 kB / 332.8 MB, free: 6.344 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006762/0.4573, allocations: 71.66 kB / 332.9 MB, free: 6.336 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002408/0.4597, allocations: 301.4 kB / 333.2 MB, free: 6.238 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.956e-05/0.4598, allocations: 15.22 kB / 333.2 MB, free: 6.234 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001418/0.4612, allocations: 1.296 MB / 334.5 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.4612, allocations: 6.531 kB / 334.5 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002587/0.4638, allocations: 1.091 MB / 335.6 MB, free: 4.77 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004183/0.4643, allocations: 181.6 kB / 335.8 MB, free: 4.613 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002347/0.4645, allocations: 12.88 kB / 335.8 MB, free: 4.613 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008186/0.4653, allocations: 41.84 kB / 335.8 MB, free: 4.598 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001684/0.4655, allocations: 53.48 kB / 335.9 MB, free: 4.574 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.238e-05/0.4656, allocations: 19.42 kB / 335.9 MB, free: 4.559 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001206/0.4668, allocations: 0.5637 MB / 336.4 MB, free: 4.145 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4668, allocations: 0 / 336.4 MB, free: 4.145 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.003329/0.4702, allocations: 0.7185 MB / 337.2 MB, free: 3.473 MB / 266.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.002324/0.4725, allocations: 0.5897 MB / 337.7 MB, free: 2.938 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.004102/0.4767, allocations: 1.278 MB / 339 MB, free: 2.055 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.4767, allocations: 4.125 kB / 339 MB, free: 2.051 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009848/0.4777, allocations: 313 kB / 339.3 MB, free: 1.84 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00258/0.4803, allocations: 300.8 kB / 339.6 MB, free: 1.605 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004584/0.4849, allocations: 2.019 MB / 341.6 MB, free: 15.73 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008399/0.4858, allocations: 1.059 MB / 342.7 MB, free: 14.67 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.002488/0.4883, allocations: 411.6 kB / 343.1 MB, free: 14.26 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002533/0.4885, allocations: 63.38 kB / 343.2 MB, free: 14.2 MB / 282.7 MB Notification: Performance of SimCode: time 1.352e-06/0.4886, allocations: 0 / 343.2 MB, free: 14.2 MB / 282.7 MB Notification: Performance of Templates: time 0.05842/0.547, allocations: 21.63 MB / 364.8 MB, free: 8.738 MB / 298.7 MB