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_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 2.047/2.047, allocations: 224.7 MB / 241.1 MB, free: 1.68 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.954e-05/2.914e-05, allocations: 4 kB / 294.6 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1222, allocations: 50.42 MB / 345 MB, free: 8.922 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.08232/0.2046, allocations: 31.15 MB / 376.1 MB, free: 9.68 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02789/0.2325, allocations: 12.67 MB / 388.8 MB, free: 12.98 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002348/0.2349, allocations: 67.44 kB / 388.9 MB, free: 12.92 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002715/0.2377, allocations: 0.575 MB / 389.4 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00757/0.2453, allocations: 1.779 MB / 391.2 MB, free: 10.55 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0101/0.2554, allocations: 2.478 MB / 393.7 MB, free: 8.07 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005454/0.2609, allocations: 1.997 MB / 395.7 MB, free: 6.07 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001996/0.263, allocations: 0.8664 MB / 396.6 MB, free: 5.199 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003342/0.2664, allocations: 1.111 MB / 397.7 MB, free: 4.086 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003006/0.2694, allocations: 1.083 MB / 398.8 MB, free: 3 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007064/0.2765, allocations: 2.212 MB / 401 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001646/0.2782, allocations: 168 kB / 401.1 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001373/0.2797, allocations: 0.5025 MB / 401.6 MB, free: 120 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.3612/0.6409, allocations: 181.6 kB / 401.8 MB, free: 8.012 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008297/0.6492, allocations: 2.924 MB / 404.7 MB, free: 7.789 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.6493, allocations: 0 / 404.7 MB, free: 7.789 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.6493, allocations: 0 / 404.7 MB, free: 7.789 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000123/0.6494, allocations: 1.125 kB / 404.7 MB, free: 7.789 MB / 330.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.008809/0.6583, allocations: 1.914 MB / 406.7 MB, free: 6.793 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.6583, allocations: 10.44 kB / 406.7 MB, free: 6.793 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001746/0.6601, allocations: 206.8 kB / 406.9 MB, free: 6.699 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003763/0.6639, allocations: 1.047 MB / 407.9 MB, free: 6.348 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001986/0.6641, allocations: 106.5 kB / 408 MB, free: 6.344 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007376/0.6649, allocations: 121.8 kB / 408.1 MB, free: 6.344 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006877/0.6718, allocations: 1.928 MB / 410.1 MB, free: 6.082 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.922e-05/0.6719, allocations: 1.734 kB / 410.1 MB, free: 6.082 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003376/0.6722, allocations: 55.67 kB / 410.1 MB, free: 6.082 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002953/0.6725, allocations: 115.4 kB / 410.2 MB, free: 6.078 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007204/0.6798, allocations: 1.987 MB / 412.2 MB, free: 6.062 MB / 330.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.0225/0.7023, allocations: 7.945 MB / 420.2 MB, free: 2.336 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003571/0.7059, allocations: 1.169 MB / 421.3 MB, free: 2.309 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009799/0.7158, allocations: 3.459 MB / 424.8 MB, free: 16.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.649e-05/0.7159, allocations: 58.8 kB / 424.9 MB, free: 16.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=119): time 4.128e-06/0.7159, allocations: 0 / 424.9 MB, free: 16.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=134): time 0.02338/0.7393, allocations: 5.418 MB / 430.3 MB, free: 15.62 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/0.7395, allocations: 176.7 kB / 430.4 MB, free: 15.43 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002943/0.7424, allocations: 1.259 MB / 431.7 MB, free: 15.26 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005209/0.743, allocations: 59.08 kB / 431.8 MB, free: 15.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007228/0.7437, allocations: 0.6755 MB / 432.4 MB, free: 14.88 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008123/0.7446, allocations: 466.5 kB / 432.9 MB, free: 14.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002193/0.7448, allocations: 35.84 kB / 432.9 MB, free: 14.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002316/0.7451, allocations: 378.7 kB / 433.3 MB, free: 14.28 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002456/0.7475, allocations: 0.7617 MB / 434.1 MB, free: 14.27 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002845/0.7504, allocations: 1.172 MB / 435.2 MB, free: 13.8 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002789/0.7532, allocations: 0.8786 MB / 436.1 MB, free: 13.69 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-05/0.7533, allocations: 2.562 kB / 436.1 MB, free: 13.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.00753/0.7609, allocations: 2.312 MB / 438.4 MB, free: 13.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002149/0.7631, allocations: 4.545 MB / 443 MB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.718e-05/0.7632, allocations: 10.03 kB / 443 MB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01205/0.7752, allocations: 1.109 MB / 444.1 MB, free: 8.066 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002886/0.7782, allocations: 344.7 kB / 444.4 MB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004222/0.7825, allocations: 2.894 MB / 447.3 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003254/0.7858, allocations: 132.1 kB / 447.4 MB, free: 5.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006187/0.7864, allocations: 79.59 kB / 447.5 MB, free: 5.523 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.7865, allocations: 7.938 kB / 447.5 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007182/0.7936, allocations: 2.128 MB / 449.7 MB, free: 4.129 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.046e-05/0.7937, allocations: 12 kB / 449.7 MB, free: 4.117 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01008/0.8038, allocations: 0.824 MB / 450.5 MB, free: 3.348 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003072/0.807, allocations: 364.8 kB / 450.9 MB, free: 3.031 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003312/0.8103, allocations: 2.621 MB / 453.5 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002365/0.8127, allocations: 118.4 kB / 453.6 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004502/0.8132, allocations: 84.28 kB / 453.7 MB, free: 380 kB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (203): * Single equations (assignments): 199 * 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.001639/0.8149, allocations: 457.2 kB / 454.1 MB, free: 76 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006692/0.8156, allocations: 170 kB / 454.3 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008284/0.8239, allocations: 2.361 MB / 456.6 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.602e-05/0.824, allocations: 18.19 kB / 456.7 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.824, allocations: 0 / 456.7 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.182e-05/0.824, allocations: 7.969 kB / 456.7 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01329/0.8373, allocations: 4.039 MB / 460.7 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.336e-05/0.8374, allocations: 0 / 460.7 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002282/0.8397, allocations: 239.3 kB / 460.9 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007453/0.8472, allocations: 0.9277 MB / 461.9 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004298/0.8477, allocations: 42.97 kB / 461.9 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003708/0.8514, allocations: 2.834 MB / 464.7 MB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.637e-06/0.8514, allocations: 11.36 kB / 464.8 MB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009421/0.8609, allocations: 3.255 MB / 468 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009995/0.8619, allocations: 276 kB / 468.3 MB, free: 5.074 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008205/0.8628, allocations: 39.92 kB / 468.3 MB, free: 5.059 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002468/0.8653, allocations: 101.1 kB / 468.4 MB, free: 4.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006123/0.8659, allocations: 146.2 kB / 468.6 MB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002742/0.8662, allocations: 67.27 kB / 468.6 MB, free: 4.805 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002399/0.8686, allocations: 0.9665 MB / 469.6 MB, free: 4.102 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.8686, allocations: 0 / 469.6 MB, free: 4.102 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00685/0.8755, allocations: 1.274 MB / 470.9 MB, free: 2.926 MB / 362.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.00431/0.8799, allocations: 0.9 MB / 471.8 MB, free: 2.129 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01137/0.8913, allocations: 3.038 MB / 474.8 MB, free: 15.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.385e-05/0.8913, allocations: 4 kB / 474.8 MB, free: 15.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004038/0.8954, allocations: 1.081 MB / 475.9 MB, free: 14.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006942/0.9024, allocations: 0.7423 MB / 476.6 MB, free: 13.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01136/0.9138, allocations: 4.135 MB / 480.8 MB, free: 9.355 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001718/0.9156, allocations: 1.431 MB / 482.2 MB, free: 7.895 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/0.9168, allocations: 159.4 kB / 482.4 MB, free: 7.746 MB / 378.7 MB Notification: Performance of SimCode: time 1.442e-06/0.9168, allocations: 6.953 kB / 482.4 MB, free: 7.742 MB / 378.7 MB Notification: Performance of Templates: time 0.1217/1.039, allocations: 59.12 MB / 0.5288 GB, free: 12.89 MB / 442.7 MB