Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.746/1.746, allocations: 171.1 MB / 186.3 MB, free: 1.406 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.231e-05/3.24e-05, allocations: 4 kB / 228.1 MB, free: 7.98 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08132/0.08138, allocations: 38.77 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.05147/0.1329, allocations: 30.86 MB / 297.7 MB, free: 2.188 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2526/0.3856, allocations: 12.6 MB / 310.3 MB, free: 3.953 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002737/0.3884, allocations: 68.22 kB / 310.4 MB, free: 3.953 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002719/0.3912, allocations: 0.5845 MB / 311 MB, free: 3.945 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007717/0.3989, allocations: 1.787 MB / 312.8 MB, free: 3.898 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01057/0.4095, allocations: 2.464 MB / 315.2 MB, free: 3.816 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00537/0.4149, allocations: 1.992 MB / 317.2 MB, free: 3.797 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002118/0.4171, allocations: 0.863 MB / 318.1 MB, free: 3.625 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003866/0.421, allocations: 1.124 MB / 319.2 MB, free: 3.422 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003366/0.4244, allocations: 1.054 MB / 320.3 MB, free: 3.062 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007926/0.4324, allocations: 2.194 MB / 322.5 MB, free: 2.496 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001639/0.4341, allocations: 165.8 kB / 322.6 MB, free: 2.496 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001232/0.4354, allocations: 0.4944 MB / 323.1 MB, free: 2.312 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001186/0.4366, allocations: 180.6 kB / 323.3 MB, free: 2.312 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007183/0.4438, allocations: 2.898 MB / 326.2 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.4438, allocations: 0 / 326.2 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.918e-06/0.4439, allocations: 0 / 326.2 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001035/0.444, allocations: 0 / 326.2 MB, free: 0.9141 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.006656/0.4507, allocations: 1.91 MB / 328.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.4507, allocations: 9.312 kB / 328.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001308/0.452, allocations: 203.2 kB / 328.3 MB, free: 15.56 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0032/0.4553, allocations: 1.056 MB / 329.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001405/0.4555, allocations: 98.05 kB / 329.5 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000435/0.4559, allocations: 126.3 kB / 329.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005438/0.4614, allocations: 1.922 MB / 331.5 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.967e-05/0.4615, allocations: 7.156 kB / 331.5 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000266/0.4617, allocations: 52.11 kB / 331.6 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002606/0.462, allocations: 119 kB / 331.7 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00618/0.4682, allocations: 1.984 MB / 333.7 MB, free: 13.01 MB / 266.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.02026/0.4885, allocations: 7.903 MB / 341.6 MB, free: 4.703 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003431/0.492, allocations: 1.149 MB / 342.7 MB, free: 3.551 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008317/0.5004, allocations: 3.393 MB / 346.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.183e-05/0.5005, allocations: 43.56 kB / 346.2 MB, free: 15.88 MB / 282.7 MB Notification: Performance of pre-optimization done (n=119): time 4.308e-06/0.5005, allocations: 0 / 346.2 MB, free: 15.88 MB / 282.7 MB Notification: Performance of matching and sorting (n=134): time 0.02263/0.5231, allocations: 5.371 MB / 351.5 MB, free: 10.41 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.5233, allocations: 171.5 kB / 351.7 MB, free: 10.2 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002704/0.526, allocations: 1.175 MB / 352.9 MB, free: 9.02 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004027/0.5264, allocations: 53.7 kB / 352.9 MB, free: 8.961 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008199/0.5273, allocations: 0.7058 MB / 353.6 MB, free: 8.258 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008071/0.5281, allocations: 472.7 kB / 354.1 MB, free: 7.801 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001993/0.5283, allocations: 36 kB / 354.1 MB, free: 7.766 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.00023/0.5286, allocations: 390.7 kB / 354.5 MB, free: 7.375 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00245/0.531, allocations: 0.7495 MB / 355.3 MB, free: 6.625 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002916/0.534, allocations: 1.232 MB / 356.5 MB, free: 5.191 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002774/0.5368, allocations: 0.8777 MB / 357.4 MB, free: 4.316 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.397e-05/0.5368, allocations: 8 kB / 357.4 MB, free: 4.309 MB / 282.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.007374/0.5442, allocations: 2.347 MB / 359.7 MB, free: 1.941 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002343/0.5466, allocations: 5.407 MB / 365.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.573e-05/0.5467, allocations: 12 kB / 365.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01188/0.5586, allocations: 1.115 MB / 366.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002832/0.5615, allocations: 363.4 kB / 366.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004339/0.5659, allocations: 2.87 MB / 369.5 MB, free: 7.648 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002746/0.5687, allocations: 136 kB / 369.6 MB, free: 7.516 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003769/0.5691, allocations: 91.91 kB / 369.7 MB, free: 7.426 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.5691, allocations: 4 kB / 369.7 MB, free: 7.422 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006609/0.5757, allocations: 2.151 MB / 371.9 MB, free: 5.258 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.339e-05/0.5758, allocations: 12 kB / 371.9 MB, free: 5.246 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00974/0.5856, allocations: 0.8307 MB / 372.7 MB, free: 4.402 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002936/0.5886, allocations: 379.4 kB / 373.1 MB, free: 4.031 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003197/0.5918, allocations: 2.604 MB / 375.7 MB, free: 1.324 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002109/0.594, allocations: 128 kB / 375.8 MB, free: 1.199 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003379/0.5943, allocations: 84.16 kB / 375.9 MB, free: 1.117 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 206 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001371/0.5957, allocations: 466.9 kB / 376.3 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005105/0.5962, allocations: 166 kB / 376.5 MB, free: 496 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008284/0.6045, allocations: 2.33 MB / 378.8 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.74e-05/0.6046, allocations: 20 kB / 378.9 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.6047, allocations: 3.984 kB / 378.9 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.179e-05/0.6047, allocations: 7.969 kB / 378.9 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01307/0.6178, allocations: 3.962 MB / 382.8 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.869e-05/0.6179, allocations: 0 / 382.8 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002226/0.6201, allocations: 251.6 kB / 383.1 MB, free: 9.824 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007548/0.6277, allocations: 0.9283 MB / 384 MB, free: 8.883 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003894/0.6281, allocations: 35.98 kB / 384 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003981/0.6321, allocations: 2.819 MB / 386.9 MB, free: 5.93 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.6322, allocations: 11.95 kB / 386.9 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009838/0.642, allocations: 3.208 MB / 390.1 MB, free: 2.625 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000898/0.643, allocations: 270.8 kB / 390.3 MB, free: 2.34 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007477/0.6438, allocations: 36 kB / 390.4 MB, free: 2.305 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00216/0.6459, allocations: 99.86 kB / 390.5 MB, free: 2.207 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006155/0.6466, allocations: 153 kB / 390.6 MB, free: 2.059 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002557/0.6469, allocations: 55.97 kB / 390.7 MB, free: 2.004 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00221/0.6491, allocations: 0.8914 MB / 391.6 MB, free: 1.113 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.6491, allocations: 0 / 391.6 MB, free: 1.113 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.005974/0.6551, allocations: 1.249 MB / 392.8 MB, free: 15.86 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.level,tank3.medium.T,tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00345/0.6586, allocations: 0.8703 MB / 393.7 MB, free: 15.04 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.01132/0.67, allocations: 3.056 MB / 396.8 MB, free: 12 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.5e-05/0.6701, allocations: 4 kB / 396.8 MB, free: 11.99 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004014/0.6741, allocations: 1.069 MB / 397.8 MB, free: 10.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006077/0.6802, allocations: 0.668 MB / 398.5 MB, free: 10.26 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01106/0.6913, allocations: 4.132 MB / 402.6 MB, free: 6.102 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001637/0.693, allocations: 1.43 MB / 404.1 MB, free: 4.637 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/0.6942, allocations: 159.4 kB / 404.2 MB, free: 4.484 MB / 330.7 MB Notification: Performance of SimCode: time 1.342e-06/0.6942, allocations: 0 / 404.2 MB, free: 4.484 MB / 330.7 MB Notification: Performance of Templates: time 0.3838/1.078, allocations: 57.86 MB / 462.1 MB, free: 121.6 MB / 362.7 MB