Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.774/1.774, allocations: 194.9 MB / 210.6 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.506e-05/2.514e-05, allocations: 4 kB / 258.8 MB, free: 8.051 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2821, allocations: 44.49 MB / 303.3 MB, free: 12.81 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.03818/0.3203, allocations: 25.92 MB / 329.2 MB, free: 3.508 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02328/0.3436, allocations: 11.81 MB / 341 MB, free: 7.676 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00168/0.3454, allocations: 59.5 kB / 341.1 MB, free: 7.617 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001628/0.347, allocations: 493.3 kB / 341.6 MB, free: 7.133 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005302/0.3523, allocations: 1.499 MB / 343.1 MB, free: 5.629 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00866/0.361, allocations: 2.396 MB / 345.5 MB, free: 3.227 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003939/0.365, allocations: 1.656 MB / 347.1 MB, free: 1.566 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001253/0.3663, allocations: 0.6956 MB / 347.8 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002134/0.3684, allocations: 0.9625 MB / 348.8 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001853/0.3703, allocations: 0.8921 MB / 349.7 MB, free: 15.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005777/0.3761, allocations: 2.103 MB / 351.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008358/0.3769, allocations: 148 kB / 351.9 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006934/0.3777, allocations: 426.8 kB / 352.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006/0.3783, allocations: 152 kB / 352.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005497/0.3838, allocations: 2.557 MB / 355.1 MB, free: 9.633 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.3838, allocations: 0 / 355.1 MB, free: 9.633 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3838, allocations: 0 / 355.1 MB, free: 9.633 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.243e-05/0.3839, allocations: 0 / 355.1 MB, free: 9.633 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.005167/0.389, allocations: 1.684 MB / 356.7 MB, free: 7.895 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.3891, allocations: 8.031 kB / 356.7 MB, free: 7.887 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007359/0.3898, allocations: 166.2 kB / 356.9 MB, free: 7.723 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00228/0.3921, allocations: 0.9256 MB / 357.8 MB, free: 6.754 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/0.3923, allocations: 77.97 kB / 357.9 MB, free: 6.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002796/0.3925, allocations: 107.9 kB / 358 MB, free: 6.574 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003944/0.3965, allocations: 1.609 MB / 359.6 MB, free: 4.883 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.94e-05/0.3966, allocations: 7.938 kB / 359.6 MB, free: 4.875 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002023/0.3968, allocations: 47.91 kB / 359.7 MB, free: 4.828 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002218/0.397, allocations: 101.9 kB / 359.8 MB, free: 4.727 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004419/0.4014, allocations: 1.635 MB / 361.4 MB, free: 3.094 MB / 298.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.01525/0.4167, allocations: 6.729 MB / 368.1 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002487/0.4192, allocations: 0.8909 MB / 369 MB, free: 11.06 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006138/0.4254, allocations: 2.766 MB / 371.8 MB, free: 8.039 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.095e-05/0.4255, allocations: 43.22 kB / 371.8 MB, free: 7.988 MB / 314.7 MB Notification: Performance of pre-optimization done (n=80): time 3.697e-06/0.4255, allocations: 0 / 371.8 MB, free: 7.988 MB / 314.7 MB Notification: Performance of matching and sorting (n=90): time 0.01462/0.4401, allocations: 3.643 MB / 375.5 MB, free: 4.23 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.4403, allocations: 188.9 kB / 375.7 MB, free: 4.004 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002348/0.4427, allocations: 1.055 MB / 376.7 MB, free: 2.941 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002318/0.4429, allocations: 49.69 kB / 376.8 MB, free: 2.887 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007756/0.4437, allocations: 0.6658 MB / 377.4 MB, free: 2.211 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004814/0.4442, allocations: 331.4 kB / 377.8 MB, free: 1.883 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001563/0.4444, allocations: 36 kB / 377.8 MB, free: 1.848 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002112/0.4446, allocations: 365.9 kB / 378.2 MB, free: 1.484 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001718/0.4463, allocations: 0.5465 MB / 378.7 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002107/0.4484, allocations: 1.036 MB / 379.7 MB, free: 15.68 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001996/0.4505, allocations: 0.686 MB / 380.4 MB, free: 15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.214e-05/0.4505, allocations: 4 kB / 380.4 MB, free: 15 MB / 330.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.005531/0.456, allocations: 1.885 MB / 382.3 MB, free: 13.09 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002669/0.4588, allocations: 5.842 MB / 388.2 MB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.695e-05/0.4588, allocations: 16 kB / 388.2 MB, free: 6.781 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008209/0.4671, allocations: 0.7593 MB / 388.9 MB, free: 6.012 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002257/0.4694, allocations: 307.5 kB / 389.2 MB, free: 5.711 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002901/0.4723, allocations: 2.133 MB / 391.4 MB, free: 3.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002602/0.4749, allocations: 104 kB / 391.5 MB, free: 3.398 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003559/0.4753, allocations: 76.08 kB / 391.5 MB, free: 3.324 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.4753, allocations: 7.938 kB / 391.5 MB, free: 3.316 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004968/0.4803, allocations: 1.685 MB / 393.2 MB, free: 1.621 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.813e-05/0.4804, allocations: 16 kB / 393.2 MB, free: 1.605 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006956/0.4874, allocations: 0.6038 MB / 393.9 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002163/0.4895, allocations: 311.4 kB / 394.2 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002419/0.492, allocations: 1.985 MB / 396.1 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001829/0.4938, allocations: 108.1 kB / 396.2 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001959/0.494, allocations: 75.97 kB / 396.3 MB, free: 14.45 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (174): * Single equations (assignments): 171 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0009951/0.495, allocations: 401.3 kB / 396.7 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003131/0.4954, allocations: 134.3 kB / 396.8 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004934/0.5003, allocations: 1.528 MB / 398.4 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.642e-05/0.5004, allocations: 12 kB / 398.4 MB, free: 12.35 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.5004, allocations: 0 / 398.4 MB, free: 12.35 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.381e-05/0.5004, allocations: 3.984 kB / 398.4 MB, free: 12.35 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007228/0.5076, allocations: 2.759 MB / 401.1 MB, free: 9.516 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.5077, allocations: 4 kB / 401.2 MB, free: 9.512 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/0.509, allocations: 147.8 kB / 401.3 MB, free: 9.367 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004988/0.514, allocations: 0.6386 MB / 401.9 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/0.5142, allocations: 35.94 kB / 402 MB, free: 8.684 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002589/0.5168, allocations: 2.094 MB / 404.1 MB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.5168, allocations: 4.188 kB / 404.1 MB, free: 6.508 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0054/0.5222, allocations: 2.115 MB / 406.2 MB, free: 4.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005009/0.5227, allocations: 235.2 kB / 406.4 MB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003613/0.5231, allocations: 27.98 kB / 406.4 MB, free: 4.062 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/0.5245, allocations: 67.91 kB / 406.5 MB, free: 3.996 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002988/0.5248, allocations: 96.8 kB / 406.6 MB, free: 3.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001286/0.5249, allocations: 35.98 kB / 406.6 MB, free: 3.863 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001676/0.5266, allocations: 0.7974 MB / 407.4 MB, free: 3.062 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5266, allocations: 4 kB / 407.4 MB, free: 3.059 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00421/0.5308, allocations: 1.078 MB / 408.5 MB, free: 1.98 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00359/0.5344, allocations: 0.7945 MB / 409.3 MB, free: 1.188 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009378/0.5438, allocations: 2.275 MB / 411.6 MB, free: 14.92 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.5439, allocations: 1 kB / 411.6 MB, free: 14.92 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01093/0.5548, allocations: 0.6771 MB / 412.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008953/0.5638, allocations: 0.5067 MB / 412.8 MB, free: 13.74 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0168/0.5806, allocations: 3.165 MB / 415.9 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001577/0.5823, allocations: 1.288 MB / 417.2 MB, free: 9.215 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.01309/0.5954, allocations: 0.6494 MB / 417.9 MB, free: 8.562 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006141/0.596, allocations: 95.42 kB / 418 MB, free: 8.469 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5961, allocations: 4 kB / 418 MB, free: 8.465 MB / 362.7 MB Notification: Performance of Templates: time 0.3646/0.9607, allocations: 35.09 MB / 453.1 MB, free: 91.22 MB / 362.7 MB