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_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.76/1.76, allocations: 194.9 MB / 210.6 MB, free: 8.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.569e-05/2.581e-05, allocations: 4 kB / 258.8 MB, free: 7.855 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.285, allocations: 44.5 MB / 303.3 MB, free: 12.98 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.03581/0.3209, allocations: 17.1 MB / 320.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02723/0.3482, allocations: 5.825 MB / 326.3 MB, free: 6.594 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001294/0.3495, allocations: 35.69 kB / 326.3 MB, free: 6.559 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001292/0.3508, allocations: 302.4 kB / 326.6 MB, free: 6.262 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007555/0.3584, allocations: 0.7825 MB / 327.4 MB, free: 5.477 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01503/0.3734, allocations: 1.227 MB / 328.6 MB, free: 4.246 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005033/0.3785, allocations: 0.9104 MB / 329.5 MB, free: 3.332 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000935/0.3795, allocations: 397.8 kB / 329.9 MB, free: 2.945 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001335/0.3808, allocations: 0.5572 MB / 330.4 MB, free: 2.387 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009264/0.3818, allocations: 458.7 kB / 330.9 MB, free: 1.938 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003062/0.3849, allocations: 1.104 MB / 332 MB, free: 0.832 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003674/0.3853, allocations: 84 kB / 332.1 MB, free: 0.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003316/0.3856, allocations: 207.4 kB / 332.3 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003224/0.3859, allocations: 88 kB / 332.4 MB, free: 472 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002664/0.3886, allocations: 1.337 MB / 333.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3886, allocations: 4 kB / 333.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3887, allocations: 0 / 333.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.94e-05/0.3887, allocations: 0 / 333.7 MB, free: 15.12 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.002962/0.3917, allocations: 1.037 MB / 334.7 MB, free: 14.03 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.3917, allocations: 11.97 kB / 334.8 MB, free: 14.02 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004959/0.3922, allocations: 98.95 kB / 334.9 MB, free: 13.92 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001358/0.3936, allocations: 0.574 MB / 335.4 MB, free: 13.3 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.567e-05/0.3937, allocations: 49.23 kB / 335.5 MB, free: 13.25 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.3938, allocations: 55.98 kB / 335.5 MB, free: 13.2 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002113/0.396, allocations: 0.8673 MB / 336.4 MB, free: 12.28 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.789e-05/0.396, allocations: 3.953 kB / 336.4 MB, free: 12.28 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001176/0.3961, allocations: 24 kB / 336.4 MB, free: 12.25 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001162/0.3963, allocations: 57.22 kB / 336.5 MB, free: 12.2 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002156/0.3984, allocations: 0.7975 MB / 337.3 MB, free: 11.4 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.007721/0.4062, allocations: 3.918 MB / 341.2 MB, free: 7.203 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.4075, allocations: 495.7 kB / 341.7 MB, free: 6.711 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003483/0.411, allocations: 1.711 MB / 343.4 MB, free: 4.863 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.4111, allocations: 38.56 kB / 343.4 MB, free: 4.816 MB / 282.7 MB Notification: Performance of pre-optimization done (n=41): time 2.735e-06/0.4111, allocations: 0 / 343.4 MB, free: 4.816 MB / 282.7 MB Notification: Performance of matching and sorting (n=46): time 0.005826/0.4169, allocations: 1.793 MB / 345.2 MB, free: 2.926 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.65e-05/0.417, allocations: 140.5 kB / 345.4 MB, free: 2.758 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001108/0.4181, allocations: 0.5932 MB / 346 MB, free: 2.16 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.286e-05/0.4182, allocations: 37.7 kB / 346 MB, free: 2.117 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004272/0.4187, allocations: 419 kB / 346.4 MB, free: 1.699 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001982/0.4189, allocations: 169.7 kB / 346.6 MB, free: 1.531 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.498e-05/0.419, allocations: 20 kB / 346.6 MB, free: 1.512 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002061/0.4192, allocations: 382.7 kB / 347 MB, free: 1.129 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007483/0.4199, allocations: 261.8 kB / 347.2 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009849/0.4209, allocations: 0.5556 MB / 347.8 MB, free: 184 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009019/0.4219, allocations: 341.9 kB / 348.1 MB, free: 15.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.4219, allocations: 4 kB / 348.1 MB, free: 15.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002541/0.4244, allocations: 0.9531 MB / 349.1 MB, free: 14.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001506/0.426, allocations: 3.656 MB / 352.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.359e-05/0.426, allocations: 12 kB / 352.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002584/0.4286, allocations: 285.3 kB / 353 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.4298, allocations: 167.7 kB / 353.2 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001432/0.4312, allocations: 1.257 MB / 354.4 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/0.4322, allocations: 59.94 kB / 354.5 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/0.4324, allocations: 43.98 kB / 354.5 MB, free: 9.062 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.4324, allocations: 4 kB / 354.5 MB, free: 9.059 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002161/0.4346, allocations: 0.8023 MB / 355.3 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.981e-05/0.4346, allocations: 11.98 kB / 355.3 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001533/0.4361, allocations: 149.5 kB / 355.5 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001591/0.4377, allocations: 219.7 kB / 355.7 MB, free: 7.875 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005379/0.4383, allocations: 0.5914 MB / 356.3 MB, free: 7.258 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008615/0.4392, allocations: 59.94 kB / 356.4 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/0.4393, allocations: 43.98 kB / 356.4 MB, free: 7.156 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.0005347/0.4398, allocations: 257.5 kB / 356.7 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001728/0.44, allocations: 79.02 kB / 356.7 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002675/0.4427, allocations: 0.8591 MB / 357.6 MB, free: 5.941 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.507e-05/0.4427, allocations: 8 kB / 357.6 MB, free: 5.934 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.4428, allocations: 4 kB / 357.6 MB, free: 5.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.4428, allocations: 3.984 kB / 357.6 MB, free: 5.926 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003765/0.4465, allocations: 1.583 MB / 359.2 MB, free: 4.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.4466, allocations: 0 / 359.2 MB, free: 4.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007401/0.4473, allocations: 99.89 kB / 359.3 MB, free: 4.172 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001665/0.449, allocations: 225.5 kB / 359.5 MB, free: 3.945 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.913e-05/0.4491, allocations: 15.98 kB / 359.5 MB, free: 3.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00116/0.4502, allocations: 1.21 MB / 360.7 MB, free: 2.668 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.4503, allocations: 7.969 kB / 360.7 MB, free: 2.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002658/0.4529, allocations: 1.142 MB / 361.9 MB, free: 1.469 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002587/0.4532, allocations: 160.1 kB / 362 MB, free: 1.293 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/0.4534, allocations: 15.95 kB / 362.1 MB, free: 1.277 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007071/0.4541, allocations: 43.94 kB / 362.1 MB, free: 1.234 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.4543, allocations: 56.42 kB / 362.2 MB, free: 1.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.941e-05/0.4544, allocations: 23.98 kB / 362.2 MB, free: 1.156 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008521/0.4553, allocations: 463 kB / 362.6 MB, free: 0.707 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4553, allocations: 0 / 362.6 MB, free: 0.707 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00217/0.4575, allocations: 0.5779 MB / 363.2 MB, free: 132 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.001518/0.459, allocations: 478.2 kB / 363.7 MB, free: 15.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00316/0.4622, allocations: 1.129 MB / 364.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.4622, allocations: 0 / 364.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009287/0.4631, allocations: 332.6 kB / 365.1 MB, free: 14.21 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002264/0.4654, allocations: 304.2 kB / 365.4 MB, free: 13.92 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003766/0.4692, allocations: 1.856 MB / 367.3 MB, free: 12.03 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007563/0.47, allocations: 1.012 MB / 368.3 MB, free: 10.99 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.002091/0.4721, allocations: 378.5 kB / 368.7 MB, free: 10.61 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002645/0.4723, allocations: 71.34 kB / 368.7 MB, free: 10.54 MB / 314.7 MB Notification: Performance of SimCode: time 8.01e-07/0.4724, allocations: 0 / 368.7 MB, free: 10.54 MB / 314.7 MB Notification: Performance of Templates: time 0.04851/0.5209, allocations: 18.98 MB / 387.7 MB, free: 7.562 MB / 330.7 MB