Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.213/1.213, allocations: 111.1 MB / 126.3 MB, free: 6.406 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.486e-05/2.51e-05, allocations: 4 kB / 154.5 MB, free: 2.824 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05515/0.0552, allocations: 25.17 MB / 179.7 MB, free: 9.609 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1): time 0.04137/0.09662, allocations: 19.16 MB / 198.9 MB, free: 6.402 MB / 170.7 MB Notification: Performance of NFInst.instExpressions: time 0.01531/0.112, allocations: 5.387 MB / 204.2 MB, free: 1.004 MB / 170.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001196/0.1133, allocations: 31.75 kB / 204.3 MB, free: 0.9727 MB / 170.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001597/0.1149, allocations: 298.4 kB / 204.6 MB, free: 0.6797 MB / 170.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1845/0.2994, allocations: 0.7117 MB / 205.3 MB, free: 4.328 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006551/0.306, allocations: 1.156 MB / 206.4 MB, free: 4.301 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.002489/0.3086, allocations: 0.888 MB / 207.3 MB, free: 4.301 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001177/0.3098, allocations: 378.4 kB / 207.7 MB, free: 4.289 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002019/0.3118, allocations: 0.5307 MB / 208.2 MB, free: 4.289 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00167/0.3136, allocations: 429.4 kB / 208.6 MB, free: 4.285 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003468/0.3171, allocations: 0.8819 MB / 209.5 MB, free: 4.277 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007731/0.3179, allocations: 74.25 kB / 209.6 MB, free: 4.277 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004476/0.3184, allocations: 214.3 kB / 209.8 MB, free: 4.273 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005334/0.3189, allocations: 88 kB / 209.9 MB, free: 4.273 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003259/0.3222, allocations: 1.219 MB / 211.1 MB, free: 4.184 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3223, allocations: 0 / 211.1 MB, free: 4.184 MB / 170.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.3223, allocations: 1.219 kB / 211.1 MB, free: 4.184 MB / 170.7 MB Notification: Performance of Transformations before backend: time 4.386e-05/0.3223, allocations: 0 / 211.1 MB, free: 4.184 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.003284/0.3256, allocations: 1.002 MB / 212.1 MB, free: 3.547 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.3257, allocations: 8.375 kB / 212.1 MB, free: 3.547 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005079/0.3262, allocations: 88.91 kB / 212.2 MB, free: 3.504 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001681/0.3279, allocations: 0.5721 MB / 212.8 MB, free: 3.234 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.233e-05/0.3281, allocations: 50.25 kB / 212.8 MB, free: 3.23 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001607/0.3282, allocations: 57.02 kB / 212.9 MB, free: 3.23 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002308/0.3305, allocations: 0.8588 MB / 213.7 MB, free: 3.062 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.664e-05/0.3306, allocations: 4.312 kB / 213.7 MB, free: 3.062 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00013/0.3308, allocations: 26 kB / 213.8 MB, free: 3.062 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001117/0.3309, allocations: 43.81 kB / 213.8 MB, free: 3.059 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002159/0.3331, allocations: 0.7763 MB / 214.6 MB, free: 3.051 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.007263/0.3404, allocations: 4.053 MB / 218.6 MB, free: 316 kB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/0.3418, allocations: 0.4935 MB / 219.1 MB, free: 220 kB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004293/0.3462, allocations: 1.835 MB / 221 MB, free: 14.9 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.141e-05/0.3463, allocations: 41.72 kB / 221 MB, free: 14.86 MB / 186.7 MB Notification: Performance of pre-optimization done (n=41): time 3.858e-06/0.3463, allocations: 0 / 221 MB, free: 14.86 MB / 186.7 MB Notification: Performance of matching and sorting (n=45): time 0.006847/0.3532, allocations: 1.765 MB / 222.8 MB, free: 14.05 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.3533, allocations: 134 kB / 222.9 MB, free: 13.89 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001346/0.3547, allocations: 0.5804 MB / 223.5 MB, free: 13.68 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001979/0.3549, allocations: 36.67 kB / 223.5 MB, free: 13.65 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004681/0.3554, allocations: 462.6 kB / 224 MB, free: 13.33 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003086/0.3557, allocations: 157.4 kB / 224.1 MB, free: 13.22 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.197e-05/0.3558, allocations: 15.41 kB / 224.1 MB, free: 13.22 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.356, allocations: 345.9 kB / 224.5 MB, free: 12.89 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008086/0.3568, allocations: 245.8 kB / 224.7 MB, free: 12.86 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001163/0.358, allocations: 0.5584 MB / 225.3 MB, free: 12.42 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001035/0.3591, allocations: 336 kB / 225.6 MB, free: 12.36 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.264e-05/0.3592, allocations: 2.719 kB / 225.6 MB, free: 12.36 MB / 186.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002749/0.3619, allocations: 0.8978 MB / 226.5 MB, free: 12.18 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.697e-05/0.362, allocations: 14.94 kB / 226.5 MB, free: 12.18 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.128e-05/0.362, allocations: 9.906 kB / 226.5 MB, free: 12.18 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002729/0.3648, allocations: 281.8 kB / 226.8 MB, free: 12.07 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/0.3661, allocations: 164.8 kB / 227 MB, free: 12.05 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001555/0.3677, allocations: 1.252 MB / 228.2 MB, free: 10.96 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001413/0.3692, allocations: 51.8 kB / 228.3 MB, free: 10.95 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001964/0.3694, allocations: 43.14 kB / 228.3 MB, free: 10.95 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: 44 * 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 (93): * Single equations (assignments): 91 * 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 2,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0008349/0.3702, allocations: 282.3 kB / 228.6 MB, free: 10.8 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002548/0.3705, allocations: 74.91 kB / 228.7 MB, free: 10.76 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002771/0.3733, allocations: 0.8666 MB / 229.5 MB, free: 10.49 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.986e-05/0.3734, allocations: 10.66 kB / 229.5 MB, free: 10.49 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.3734, allocations: 3.953 kB / 229.5 MB, free: 10.48 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.3734, allocations: 3.984 kB / 229.5 MB, free: 10.48 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004158/0.3776, allocations: 1.556 MB / 231.1 MB, free: 9.785 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.211e-05/0.3776, allocations: 4 kB / 231.1 MB, free: 9.781 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007731/0.3784, allocations: 92.38 kB / 231.2 MB, free: 9.695 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001746/0.3802, allocations: 224.8 kB / 231.4 MB, free: 9.496 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.3803, allocations: 11.25 kB / 231.4 MB, free: 9.492 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00134/0.3817, allocations: 1.218 MB / 232.6 MB, free: 8.301 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.3817, allocations: 3.953 kB / 232.6 MB, free: 8.297 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002796/0.3845, allocations: 1.142 MB / 233.8 MB, free: 7.426 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004579/0.385, allocations: 155.2 kB / 233.9 MB, free: 7.262 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002268/0.3853, allocations: 18.44 kB / 234 MB, free: 7.258 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00079/0.3861, allocations: 43.16 kB / 234 MB, free: 7.223 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001875/0.3863, allocations: 50.61 kB / 234.1 MB, free: 7.18 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.076e-05/0.3864, allocations: 26.11 kB / 234.1 MB, free: 7.156 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0009167/0.3873, allocations: 463.5 kB / 234.5 MB, free: 6.812 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.92e-07/0.3873, allocations: 0 / 234.5 MB, free: 6.812 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.002072/0.3894, allocations: 401.6 kB / 234.9 MB, free: 6.449 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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: 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 5,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001714/0.3912, allocations: 431 kB / 235.3 MB, free: 6.066 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.00239/0.3936, allocations: 0.6695 MB / 236 MB, free: 5.602 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 8.677e-06/0.3937, allocations: 1.562 kB / 236 MB, free: 5.602 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001162/0.3948, allocations: 338.5 kB / 236.3 MB, free: 5.375 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003066/0.398, allocations: 339.1 kB / 236.7 MB, free: 5.109 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004456/0.4025, allocations: 1.882 MB / 238.6 MB, free: 3.355 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007912/0.4033, allocations: 1 MB / 239.6 MB, free: 2.352 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000487/0.4038, allocations: 82.72 kB / 239.6 MB, free: 2.273 MB / 186.7 MB Notification: Performance of SimCode: time 1.313e-06/0.4038, allocations: 3.938 kB / 239.6 MB, free: 2.27 MB / 186.7 MB Notification: Performance of Templates: time 0.04818/0.452, allocations: 21.06 MB / 260.7 MB, free: 13.39 MB / 218.7 MB