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.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 2.006/2.006, allocations: 194.9 MB / 211.2 MB, free: 8.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.689e-05/2.683e-05, allocations: 4 kB / 258.8 MB, free: 8.508 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.2981, allocations: 44.5 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.04969/0.3479, allocations: 30.86 MB / 334.1 MB, free: 14.71 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02702/0.375, allocations: 12.62 MB / 346.8 MB, free: 2.078 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002501/0.3775, allocations: 67.44 kB / 346.8 MB, free: 2.012 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002781/0.3803, allocations: 0.5788 MB / 347.4 MB, free: 1.43 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007366/0.3877, allocations: 1.775 MB / 349.2 MB, free: 15.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009754/0.3975, allocations: 2.466 MB / 351.7 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005161/0.4027, allocations: 1.981 MB / 353.6 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001967/0.4047, allocations: 0.8588 MB / 354.5 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003316/0.4081, allocations: 1.126 MB / 355.6 MB, free: 9.203 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003022/0.4111, allocations: 1.052 MB / 356.7 MB, free: 8.148 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007152/0.4183, allocations: 2.196 MB / 358.9 MB, free: 5.949 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001472/0.4198, allocations: 168 kB / 359 MB, free: 5.785 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00125/0.4211, allocations: 0.4947 MB / 359.5 MB, free: 5.289 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009968/0.4221, allocations: 184 kB / 359.7 MB, free: 5.109 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007042/0.4292, allocations: 2.896 MB / 362.6 MB, free: 2.207 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.4293, allocations: 0 / 362.6 MB, free: 2.207 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.125e-06/0.4293, allocations: 0 / 362.6 MB, free: 2.207 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.712e-05/0.4294, allocations: 0 / 362.6 MB, free: 2.207 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.006891/0.4363, allocations: 1.918 MB / 364.5 MB, free: 244 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.4364, allocations: 8.031 kB / 364.5 MB, free: 236 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001248/0.4376, allocations: 201.8 kB / 364.7 MB, free: 32 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003187/0.4408, allocations: 1.059 MB / 365.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001586/0.441, allocations: 94.28 kB / 365.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004597/0.4415, allocations: 128 kB / 366 MB, free: 14.7 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006355/0.4479, allocations: 1.924 MB / 367.9 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.194e-05/0.448, allocations: 7.938 kB / 367.9 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002679/0.4483, allocations: 51.97 kB / 368 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002807/0.4486, allocations: 114.3 kB / 368.1 MB, free: 12.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006285/0.4549, allocations: 1.98 MB / 370.1 MB, free: 10.52 MB / 314.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.01994/0.4749, allocations: 7.914 MB / 378 MB, free: 2.121 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003263/0.4782, allocations: 1.157 MB / 379.1 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008062/0.4863, allocations: 3.389 MB / 382.5 MB, free: 13.3 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.83e-05/0.4864, allocations: 47.56 kB / 382.6 MB, free: 13.24 MB / 330.7 MB Notification: Performance of pre-optimization done (n=119): time 4.809e-06/0.4864, allocations: 0 / 382.6 MB, free: 13.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=134): time 0.02219/0.5086, allocations: 5.377 MB / 388 MB, free: 7.734 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.5088, allocations: 167.5 kB / 388.1 MB, free: 7.535 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002557/0.5113, allocations: 1.171 MB / 389.3 MB, free: 6.355 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003751/0.5117, allocations: 65.69 kB / 389.4 MB, free: 6.285 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007581/0.5125, allocations: 0.7002 MB / 390.1 MB, free: 5.578 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007771/0.5133, allocations: 473.3 kB / 390.5 MB, free: 5.109 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001874/0.5135, allocations: 36 kB / 390.6 MB, free: 5.074 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002097/0.5137, allocations: 386.8 kB / 390.9 MB, free: 4.688 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002312/0.5161, allocations: 0.7495 MB / 391.7 MB, free: 3.938 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002832/0.5189, allocations: 1.227 MB / 392.9 MB, free: 2.512 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002687/0.5216, allocations: 0.8803 MB / 393.8 MB, free: 1.633 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.667e-05/0.5217, allocations: 4 kB / 393.8 MB, free: 1.629 MB / 330.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.007189/0.5289, allocations: 2.343 MB / 396.1 MB, free: 15.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002266/0.5312, allocations: 5.412 MB / 401.5 MB, free: 9.434 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.346e-05/0.5313, allocations: 12 kB / 401.6 MB, free: 9.422 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0121/0.5434, allocations: 1.115 MB / 402.7 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002908/0.5464, allocations: 363.4 kB / 403 MB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004273/0.5507, allocations: 2.869 MB / 405.9 MB, free: 4.965 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002743/0.5535, allocations: 136 kB / 406 MB, free: 4.832 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003163/0.5539, allocations: 87.97 kB / 406.1 MB, free: 4.746 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.5539, allocations: 6.031 kB / 406.1 MB, free: 4.742 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006385/0.5603, allocations: 2.155 MB / 408.3 MB, free: 2.574 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.634e-05/0.5604, allocations: 12 kB / 408.3 MB, free: 2.562 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009924/0.5703, allocations: 0.8269 MB / 409.1 MB, free: 1.723 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002991/0.5734, allocations: 371.4 kB / 409.5 MB, free: 1.359 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003268/0.5767, allocations: 2.615 MB / 412.1 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002087/0.5788, allocations: 136 kB / 412.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002657/0.5791, allocations: 83.97 kB / 412.3 MB, free: 14.42 MB / 362.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.001284/0.5804, allocations: 450.9 kB / 412.7 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005049/0.5809, allocations: 166 kB / 412.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007865/0.5888, allocations: 2.343 MB / 415.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-05/0.5889, allocations: 16 kB / 415.3 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.5889, allocations: 0 / 415.3 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.112e-05/0.5889, allocations: 7.969 kB / 415.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01177/0.6007, allocations: 3.971 MB / 419.2 MB, free: 7.352 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.275e-05/0.6008, allocations: 0 / 419.2 MB, free: 7.352 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002185/0.603, allocations: 243.7 kB / 419.5 MB, free: 7.113 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007453/0.6105, allocations: 0.9324 MB / 420.4 MB, free: 6.168 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003501/0.6109, allocations: 43.97 kB / 420.5 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003849/0.6147, allocations: 2.814 MB / 423.3 MB, free: 3.207 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.056e-05/0.6148, allocations: 8.172 kB / 423.3 MB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2771/0.8919, allocations: 3.203 MB / 426.5 MB, free: 110 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007496/0.8927, allocations: 265.5 kB / 426.7 MB, free: 109.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007496/0.8935, allocations: 36.8 kB / 426.8 MB, free: 109.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002251/0.8958, allocations: 103.2 kB / 426.9 MB, free: 109.9 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006824/0.8965, allocations: 152.5 kB / 427 MB, free: 109.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002726/0.8968, allocations: 57.48 kB / 427.1 MB, free: 109.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002577/0.8994, allocations: 0.8961 MB / 428 MB, free: 109.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.01e-07/0.8994, allocations: 0.5312 kB / 428 MB, free: 109.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005703/0.9052, allocations: 1.252 MB / 429.2 MB, free: 109.8 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.003033/0.9082, allocations: 0.8712 MB / 430.1 MB, free: 109.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008801/0.9171, allocations: 3.045 MB / 433.2 MB, free: 108.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/0.9171, allocations: 0 / 433.2 MB, free: 108.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003169/0.9203, allocations: 1.073 MB / 434.2 MB, free: 108.6 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005632/0.926, allocations: 0.6685 MB / 434.9 MB, free: 108.4 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008737/0.9348, allocations: 4.138 MB / 439 MB, free: 106.4 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001043/0.9359, allocations: 1.429 MB / 440.5 MB, free: 105.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/0.9369, allocations: 159.5 kB / 440.6 MB, free: 105.4 MB / 362.7 MB Notification: Performance of SimCode: time 1.613e-06/0.9369, allocations: 0 / 440.6 MB, free: 105.4 MB / 362.7 MB Notification: Performance of Templates: time 0.09093/1.028, allocations: 57.86 MB / 498.5 MB, free: 47.82 MB / 362.7 MB