Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.053/1.053, allocations: 111.1 MB / 126.3 MB, free: 6.402 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.618e-05/2.614e-05, allocations: 4 kB / 154.5 MB, free: 2.828 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05307/0.05312, allocations: 25.18 MB / 179.7 MB, free: 9.605 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.03214/0.08531, allocations: 20.16 MB / 199.9 MB, free: 5.398 MB / 170.7 MB Notification: Performance of NFInst.instExpressions: time 0.1688/0.2541, allocations: 7.73 MB / 207.6 MB, free: 4.055 MB / 170.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00123/0.2554, allocations: 43.03 kB / 207.6 MB, free: 4.051 MB / 170.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001353/0.2568, allocations: 329.7 kB / 207.9 MB, free: 4.051 MB / 170.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003362/0.2602, allocations: 0.8296 MB / 208.8 MB, free: 4.039 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007062/0.2673, allocations: 1.662 MB / 210.4 MB, free: 3.977 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.00286/0.2702, allocations: 1.01 MB / 211.4 MB, free: 3.969 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008373/0.271, allocations: 413 kB / 211.9 MB, free: 3.957 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001706/0.2728, allocations: 0.5925 MB / 212.4 MB, free: 3.957 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001225/0.274, allocations: 0.5003 MB / 212.9 MB, free: 3.949 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003756/0.2778, allocations: 1.137 MB / 214.1 MB, free: 3.941 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007374/0.2786, allocations: 87.47 kB / 214.2 MB, free: 3.941 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004747/0.2791, allocations: 257.5 kB / 214.4 MB, free: 3.941 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000564/0.2796, allocations: 96.38 kB / 214.5 MB, free: 3.941 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003913/0.2836, allocations: 1.489 MB / 216 MB, free: 3.508 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2836, allocations: 0 / 216 MB, free: 3.508 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.746e-06/0.2836, allocations: 0 / 216 MB, free: 3.508 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.347e-05/0.2837, allocations: 0 / 216 MB, free: 3.508 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.003433/0.2871, allocations: 1.139 MB / 217.1 MB, free: 2.695 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.2872, allocations: 9.094 kB / 217.1 MB, free: 2.695 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004018/0.2876, allocations: 101.1 kB / 217.2 MB, free: 2.648 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001597/0.2892, allocations: 0.6496 MB / 217.9 MB, free: 2.25 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.738e-05/0.2893, allocations: 50.44 kB / 217.9 MB, free: 2.25 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001452/0.2895, allocations: 58.53 kB / 218 MB, free: 2.246 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002352/0.2918, allocations: 0.975 MB / 219 MB, free: 1.895 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.336e-05/0.2919, allocations: 4.844 kB / 219 MB, free: 1.895 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000158/0.2921, allocations: 33.83 kB / 219 MB, free: 1.891 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001392/0.2922, allocations: 63.17 kB / 219.1 MB, free: 1.879 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002446/0.2947, allocations: 0.9276 MB / 220 MB, free: 1.719 MB / 170.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.008628/0.3033, allocations: 4.526 MB / 224.5 MB, free: 14.52 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001555/0.3049, allocations: 0.5358 MB / 225.1 MB, free: 14.41 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003547/0.3085, allocations: 1.945 MB / 227 MB, free: 12.83 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.3086, allocations: 47.42 kB / 227.1 MB, free: 12.78 MB / 186.7 MB Notification: Performance of pre-optimization done (n=40): time 3.317e-06/0.3086, allocations: 0 / 227.1 MB, free: 12.78 MB / 186.7 MB Notification: Performance of matching and sorting (n=44): time 0.006513/0.3151, allocations: 1.838 MB / 228.9 MB, free: 11.95 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/0.3153, allocations: 164.2 kB / 229.1 MB, free: 11.76 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001347/0.3166, allocations: 0.6943 MB / 229.8 MB, free: 11.52 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001177/0.3168, allocations: 41.16 kB / 229.8 MB, free: 11.48 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004455/0.3172, allocations: 0.4912 MB / 230.3 MB, free: 11.15 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002431/0.3175, allocations: 165.1 kB / 230.4 MB, free: 11.04 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.315e-05/0.3176, allocations: 21.06 kB / 230.5 MB, free: 11.04 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.3178, allocations: 342.2 kB / 230.8 MB, free: 10.71 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007415/0.3185, allocations: 282.8 kB / 231.1 MB, free: 10.67 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001053/0.3196, allocations: 0.6207 MB / 231.7 MB, free: 10.16 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000929/0.3205, allocations: 374.8 kB / 232.1 MB, free: 10.11 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.946e-06/0.3206, allocations: 4.875 kB / 232.1 MB, free: 10.11 MB / 186.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00255/0.3231, allocations: 0.9947 MB / 233.1 MB, free: 9.781 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.3232, allocations: 19.98 kB / 233.1 MB, free: 9.762 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.228e-05/0.3232, allocations: 8.875 kB / 233.1 MB, free: 9.754 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003982/0.3272, allocations: 363.3 kB / 233.4 MB, free: 9.418 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/0.3285, allocations: 181.5 kB / 233.6 MB, free: 9.262 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001707/0.3303, allocations: 1.307 MB / 234.9 MB, free: 8.012 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/0.3316, allocations: 65.88 kB / 235 MB, free: 7.961 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/0.3318, allocations: 47.67 kB / 235 MB, free: 7.922 MB / 186.7 MB Warning: Assuming fixed start value for the following 2 variables: tank1.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank1.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * 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 (102): * Single equations (assignments): 100 * 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.0007862/0.3326, allocations: 292.9 kB / 235.3 MB, free: 7.707 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002451/0.3328, allocations: 90.95 kB / 235.4 MB, free: 7.617 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002653/0.3355, allocations: 0.759 MB / 236.2 MB, free: 7.07 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.3355, allocations: 8 kB / 236.2 MB, free: 7.062 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.3356, allocations: 0 / 236.2 MB, free: 7.062 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.3356, allocations: 8.125 kB / 236.2 MB, free: 7.055 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004115/0.3397, allocations: 1.513 MB / 237.7 MB, free: 5.73 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/0.3398, allocations: 0 / 237.7 MB, free: 5.73 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007225/0.3405, allocations: 85.17 kB / 237.8 MB, free: 5.652 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002409/0.3429, allocations: 296.6 kB / 238.1 MB, free: 5.359 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.63e-05/0.343, allocations: 18.05 kB / 238.1 MB, free: 5.344 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001584/0.3446, allocations: 1.29 MB / 239.4 MB, free: 4.008 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.3447, allocations: 0 / 239.4 MB, free: 4.008 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002834/0.3475, allocations: 1.078 MB / 240.5 MB, free: 2.887 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004614/0.348, allocations: 175.9 kB / 240.6 MB, free: 2.695 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002368/0.3483, allocations: 12 kB / 240.6 MB, free: 2.684 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008015/0.3491, allocations: 35.97 kB / 240.7 MB, free: 2.648 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001706/0.3493, allocations: 55.47 kB / 240.7 MB, free: 2.598 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.854e-05/0.3494, allocations: 19.98 kB / 240.8 MB, free: 2.578 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.001147/0.3505, allocations: 0.5341 MB / 241.3 MB, free: 2.051 MB / 186.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.3505, allocations: 0 / 241.3 MB, free: 2.051 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.002046/0.3526, allocations: 467.8 kB / 241.7 MB, free: 1.594 MB / 186.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 (42): * Single equations (assignments): 40 * 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.00182/0.3544, allocations: 0.5016 MB / 242.2 MB, free: 1.121 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.002384/0.3568, allocations: 0.6976 MB / 242.9 MB, free: 480 kB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 5.75e-06/0.3569, allocations: 0 / 242.9 MB, free: 480 kB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00124/0.3581, allocations: 333 kB / 243.3 MB, free: 160 kB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003112/0.3613, allocations: 346.4 kB / 243.6 MB, free: 15.82 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00477/0.3661, allocations: 2.022 MB / 245.6 MB, free: 13.78 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008555/0.367, allocations: 1.045 MB / 246.7 MB, free: 12.71 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004256/0.3674, allocations: 75.42 kB / 246.7 MB, free: 12.63 MB / 202.7 MB Notification: Performance of SimCode: time 1.262e-06/0.3674, allocations: 0 / 246.7 MB, free: 12.63 MB / 202.7 MB Notification: Performance of Templates: time 0.05078/0.4182, allocations: 23.17 MB / 269.9 MB, free: 5.516 MB / 218.7 MB