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_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.692/1.692, allocations: 171.1 MB / 186.3 MB, free: 1.414 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.525e-05/4.527e-05, allocations: 4 kB / 228.1 MB, free: 7.988 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09526/0.09534, allocations: 38.78 MB / 266.9 MB, free: 1.129 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.03182/0.1272, allocations: 18.14 MB / 285 MB, free: 14.93 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01874/0.146, allocations: 8.23 MB / 293.3 MB, free: 6.684 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001496/0.1476, allocations: 47.62 kB / 293.3 MB, free: 6.637 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001689/0.1493, allocations: 330.2 kB / 293.6 MB, free: 6.312 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004402/0.1538, allocations: 0.9849 MB / 294.6 MB, free: 5.324 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007182/0.161, allocations: 1.706 MB / 296.3 MB, free: 3.613 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00313/0.1641, allocations: 1.07 MB / 297.4 MB, free: 2.539 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001194/0.1654, allocations: 455.2 kB / 297.8 MB, free: 2.094 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002126/0.1675, allocations: 0.6429 MB / 298.5 MB, free: 1.449 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001718/0.1693, allocations: 0.5727 MB / 299.1 MB, free: 0.875 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2365/0.4059, allocations: 1.538 MB / 300.6 MB, free: 5.852 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001001/0.4069, allocations: 104.5 kB / 300.7 MB, free: 5.852 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006942/0.4076, allocations: 275.1 kB / 301 MB, free: 5.852 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005781/0.4082, allocations: 101.9 kB / 301.1 MB, free: 5.852 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005771/0.414, allocations: 1.74 MB / 302.8 MB, free: 5.727 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.4141, allocations: 0 / 302.8 MB, free: 5.727 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.178e-06/0.4141, allocations: 1.344 kB / 302.8 MB, free: 5.727 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.919e-05/0.4142, allocations: 0 / 302.8 MB, free: 5.727 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.005337/0.4195, allocations: 1.216 MB / 304 MB, free: 4.988 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/0.4196, allocations: 10.12 kB / 304 MB, free: 4.988 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001144/0.4208, allocations: 107.5 kB / 304.1 MB, free: 4.941 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002421/0.4232, allocations: 0.675 MB / 304.8 MB, free: 4.66 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/0.4234, allocations: 49.83 kB / 304.9 MB, free: 4.66 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003094/0.4237, allocations: 60.2 kB / 304.9 MB, free: 4.66 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003806/0.4275, allocations: 1.049 MB / 306 MB, free: 4.488 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.273e-05/0.4276, allocations: 4.812 kB / 306 MB, free: 4.488 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001919/0.4278, allocations: 28.45 kB / 306 MB, free: 4.488 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002178/0.4281, allocations: 65.12 kB / 306.1 MB, free: 4.484 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003263/0.4313, allocations: 1.031 MB / 307.1 MB, free: 4.48 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.01289/0.4443, allocations: 4.515 MB / 311.6 MB, free: 2.152 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001855/0.4462, allocations: 0.538 MB / 312.1 MB, free: 2.121 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004555/0.4508, allocations: 1.926 MB / 314.1 MB, free: 16.86 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.788e-05/0.4509, allocations: 41.61 kB / 314.1 MB, free: 16.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 3.396e-06/0.451, allocations: 0 / 314.1 MB, free: 16.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.007935/0.4589, allocations: 1.89 MB / 316 MB, free: 16.17 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.4591, allocations: 162.8 kB / 316.2 MB, free: 15.98 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001654/0.4607, allocations: 0.7372 MB / 316.9 MB, free: 15.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000205/0.461, allocations: 39.27 kB / 316.9 MB, free: 15.81 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004326/0.4614, allocations: 0.5083 MB / 317.4 MB, free: 15.49 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.4617, allocations: 170.6 kB / 317.6 MB, free: 15.39 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.078e-05/0.4617, allocations: 19.25 kB / 317.6 MB, free: 15.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.462, allocations: 347.9 kB / 318 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009364/0.4629, allocations: 302 kB / 318.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001192/0.4641, allocations: 0.6727 MB / 318.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.4653, allocations: 407.1 kB / 319.3 MB, free: 14.59 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-05/0.4653, allocations: 2.75 kB / 319.3 MB, free: 14.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.003168/0.4685, allocations: 1.067 MB / 320.4 MB, free: 14.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002539/0.4711, allocations: 4.619 MB / 325 MB, free: 9.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.327e-05/0.4712, allocations: 10.19 kB / 325 MB, free: 9.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004434/0.4757, allocations: 378 kB / 325.4 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001555/0.4773, allocations: 194.3 kB / 325.6 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002055/0.4794, allocations: 1.326 MB / 326.9 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001917/0.4814, allocations: 60.06 kB / 327 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003455/0.4818, allocations: 48.41 kB / 327 MB, free: 8.586 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.4818, allocations: 5.812 kB / 327 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003275/0.4851, allocations: 0.9967 MB / 328 MB, free: 8.543 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.82e-05/0.4852, allocations: 9.094 kB / 328 MB, free: 8.543 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003881/0.4891, allocations: 342.7 kB / 328.4 MB, free: 8.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001427/0.4906, allocations: 190.3 kB / 328.6 MB, free: 8.516 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001801/0.4925, allocations: 1.279 MB / 329.8 MB, free: 7.418 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001258/0.4938, allocations: 59.88 kB / 329.9 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002045/0.494, allocations: 53.36 kB / 329.9 MB, free: 7.402 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.0009379/0.495, allocations: 285.9 kB / 330.2 MB, free: 7.266 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003473/0.4953, allocations: 86.38 kB / 330.3 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002888/0.4982, allocations: 0.7883 MB / 331.1 MB, free: 6.988 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-05/0.4983, allocations: 8.656 kB / 331.1 MB, free: 6.988 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.4983, allocations: 0 / 331.1 MB, free: 6.988 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-05/0.4983, allocations: 0 / 331.1 MB, free: 6.988 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004938/0.5033, allocations: 1.557 MB / 332.7 MB, free: 6.344 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.415e-06/0.5034, allocations: 0 / 332.7 MB, free: 6.344 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007635/0.5041, allocations: 76.73 kB / 332.7 MB, free: 6.332 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002621/0.5068, allocations: 302.6 kB / 333 MB, free: 6.234 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001616/0.507, allocations: 10.12 kB / 333 MB, free: 6.234 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00157/0.5086, allocations: 1.299 MB / 334.3 MB, free: 5.148 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.5086, allocations: 3.094 kB / 334.3 MB, free: 5.148 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002787/0.5114, allocations: 1.086 MB / 335.4 MB, free: 4.773 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005857/0.5121, allocations: 181.8 kB / 335.6 MB, free: 4.617 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003437/0.5124, allocations: 19.8 kB / 335.6 MB, free: 4.613 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000998/0.5134, allocations: 34.38 kB / 335.7 MB, free: 4.605 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002147/0.5137, allocations: 54.22 kB / 335.7 MB, free: 4.582 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.25e-05/0.5138, allocations: 18.12 kB / 335.7 MB, free: 4.582 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001237/0.515, allocations: 0.5654 MB / 336.3 MB, free: 4.398 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.034e-06/0.5151, allocations: 3.406 kB / 336.3 MB, free: 4.398 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.003723/0.5188, allocations: 0.7217 MB / 337 MB, free: 4.004 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.002747/0.5216, allocations: 0.5851 MB / 337.6 MB, free: 3.469 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.004407/0.5261, allocations: 1.243 MB / 338.9 MB, free: 2.617 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/0.5261, allocations: 4.062 kB / 338.9 MB, free: 2.617 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001103/0.5272, allocations: 309.4 kB / 339.2 MB, free: 2.402 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00293/0.5302, allocations: 315.3 kB / 339.5 MB, free: 2.164 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005266/0.5355, allocations: 2.054 MB / 341.5 MB, free: 264 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008946/0.5365, allocations: 1.056 MB / 342.6 MB, free: 15.2 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004934/0.537, allocations: 82.98 kB / 342.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of SimCode: time 1.092e-06/0.537, allocations: 0 / 342.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of Templates: time 0.05396/0.591, allocations: 24.6 MB / 367.3 MB, free: 6.77 MB / 298.7 MB