Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 1.248/1.248, allocations: 111.1 MB / 126.3 MB, free: 6.406 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.865e-05/2.848e-05, allocations: 4 kB / 154.5 MB, free: 2.828 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05297/0.05302, allocations: 25.17 MB / 179.7 MB, free: 9.621 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.02738/0.08045, allocations: 16.87 MB / 196.6 MB, free: 8.703 MB / 170.7 MB Notification: Performance of NFInst.instExpressions: time 0.01098/0.09149, allocations: 4.987 MB / 201.5 MB, free: 3.703 MB / 170.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009857/0.09253, allocations: 23.81 kB / 201.6 MB, free: 3.68 MB / 170.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00111/0.09367, allocations: 278.5 kB / 201.8 MB, free: 3.406 MB / 170.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002621/0.09631, allocations: 0.6658 MB / 202.5 MB, free: 2.738 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004252/0.1006, allocations: 1.067 MB / 203.6 MB, free: 1.668 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.002188/0.1028, allocations: 0.7894 MB / 204.4 MB, free: 0.8789 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006295/0.1035, allocations: 291.5 kB / 204.6 MB, free: 0.5938 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009735/0.1045, allocations: 423 kB / 205.1 MB, free: 180 kB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1473/0.2518, allocations: 381.1 kB / 205.4 MB, free: 4.824 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002792/0.2546, allocations: 0.7862 MB / 206.2 MB, free: 4.824 MB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006306/0.2553, allocations: 67.56 kB / 206.3 MB, free: 4.824 MB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000439/0.2558, allocations: 192.6 kB / 206.5 MB, free: 4.824 MB / 170.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003384/0.2561, allocations: 73.44 kB / 206.5 MB, free: 4.824 MB / 170.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003005/0.2591, allocations: 1.08 MB / 207.6 MB, free: 4.75 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2592, allocations: 0 / 207.6 MB, free: 4.75 MB / 170.7 MB Notification: Performance of FrontEnd: time 3.317e-06/0.2592, allocations: 0 / 207.6 MB, free: 4.75 MB / 170.7 MB Notification: Performance of Transformations before backend: time 4.457e-05/0.2593, allocations: 0.9688 kB / 207.6 MB, free: 4.75 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.003039/0.2623, allocations: 0.9148 MB / 208.5 MB, free: 4.16 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.2624, allocations: 10.62 kB / 208.6 MB, free: 4.16 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003968/0.2628, allocations: 78.06 kB / 208.6 MB, free: 4.121 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001363/0.2642, allocations: 0.5032 MB / 209.1 MB, free: 3.875 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.6e-05/0.2643, allocations: 42.91 kB / 209.2 MB, free: 3.871 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001406/0.2644, allocations: 42.98 kB / 209.2 MB, free: 3.871 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00199/0.2664, allocations: 0.7008 MB / 209.9 MB, free: 3.766 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.31e-05/0.2665, allocations: 8.281 kB / 209.9 MB, free: 3.762 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001076/0.2666, allocations: 21.95 kB / 209.9 MB, free: 3.762 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001102/0.2667, allocations: 43.59 kB / 210 MB, free: 3.762 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001839/0.2686, allocations: 0.6439 MB / 210.6 MB, free: 3.762 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.006352/0.275, allocations: 3.005 MB / 213.6 MB, free: 2.094 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/0.2763, allocations: 485.3 kB / 214.1 MB, free: 2.066 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003848/0.2767, allocations: 418.2 kB / 214.5 MB, free: 1.598 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.538e-05/0.2768, allocations: 47.19 kB / 214.6 MB, free: 1.555 MB / 170.7 MB Notification: Performance of pre-optimization done (n=48): time 3.407e-06/0.2768, allocations: 0 / 214.6 MB, free: 1.555 MB / 170.7 MB Notification: Performance of matching and sorting (n=56): time 0.008998/0.2858, allocations: 2.236 MB / 216.8 MB, free: 1.027 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/0.2859, allocations: 84.11 kB / 216.9 MB, free: 0.9336 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.2869, allocations: 0.513 MB / 217.4 MB, free: 0.8125 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002055/0.2872, allocations: 39.73 kB / 217.4 MB, free: 0.7812 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003295/0.2875, allocations: 351.1 kB / 217.8 MB, free: 16.56 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002428/0.2878, allocations: 193.9 kB / 218 MB, free: 16.44 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.106e-05/0.2878, allocations: 15.19 kB / 218 MB, free: 16.44 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.288, allocations: 343.8 kB / 218.3 MB, free: 16.12 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007895/0.2888, allocations: 282.9 kB / 218.6 MB, free: 16.12 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008672/0.2897, allocations: 439.6 kB / 219 MB, free: 15.95 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008548/0.2906, allocations: 329.4 kB / 219.3 MB, free: 15.94 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.2906, allocations: 0 / 219.3 MB, free: 15.94 MB / 186.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002357/0.293, allocations: 0.8668 MB / 220.2 MB, free: 15.86 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.219e-05/0.293, allocations: 7.062 kB / 220.2 MB, free: 15.86 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.824e-05/0.2931, allocations: 8.125 kB / 220.2 MB, free: 15.86 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004214/0.2973, allocations: 402.9 kB / 220.6 MB, free: 15.84 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/0.2985, allocations: 142.7 kB / 220.8 MB, free: 15.84 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001387/0.2999, allocations: 0.8226 MB / 221.6 MB, free: 15.27 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001148/0.3011, allocations: 41.95 kB / 221.6 MB, free: 15.27 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001147/0.3013, allocations: 30.92 kB / 221.7 MB, free: 15.26 MB / 186.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank2.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real 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: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0008233/0.3021, allocations: 277.3 kB / 221.9 MB, free: 15.11 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002399/0.3024, allocations: 70.91 kB / 222 MB, free: 15.08 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002494/0.3049, allocations: 0.8661 MB / 222.9 MB, free: 14.87 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.043e-05/0.3049, allocations: 3.969 kB / 222.9 MB, free: 14.87 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.3049, allocations: 0 / 222.9 MB, free: 14.87 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.305, allocations: 3.984 kB / 222.9 MB, free: 14.86 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004497/0.3095, allocations: 1.68 MB / 224.5 MB, free: 14.21 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.3095, allocations: 0 / 224.5 MB, free: 14.21 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009659/0.3105, allocations: 108.2 kB / 224.7 MB, free: 14.2 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002614/0.3132, allocations: 347.1 kB / 225 MB, free: 14.09 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001607/0.3134, allocations: 20.92 kB / 225 MB, free: 14.09 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001303/0.3147, allocations: 0.8098 MB / 225.8 MB, free: 13.51 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.656e-06/0.3147, allocations: 6.281 kB / 225.8 MB, free: 13.51 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00384/0.3186, allocations: 1.282 MB / 227.1 MB, free: 13.12 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004375/0.3191, allocations: 150.9 kB / 227.3 MB, free: 12.99 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002434/0.3193, allocations: 13.56 kB / 227.3 MB, free: 12.99 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009171/0.3203, allocations: 39.31 kB / 227.3 MB, free: 12.98 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.3205, allocations: 51.8 kB / 227.4 MB, free: 12.96 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.3206, allocations: 24.55 kB / 227.4 MB, free: 12.95 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0008068/0.3214, allocations: 418.5 kB / 227.8 MB, free: 12.8 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.3214, allocations: 0 / 227.8 MB, free: 12.8 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001993/0.3234, allocations: 367.9 kB / 228.2 MB, free: 12.75 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001591/0.3251, allocations: 391.8 kB / 228.5 MB, free: 12.45 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.002564/0.3277, allocations: 0.6973 MB / 229.2 MB, free: 11.96 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 9.829e-06/0.3278, allocations: 12 kB / 229.2 MB, free: 11.95 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001239/0.329, allocations: 388.4 kB / 229.6 MB, free: 11.7 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003501/0.3325, allocations: 357.8 kB / 230 MB, free: 11.41 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004715/0.3373, allocations: 1.884 MB / 231.9 MB, free: 9.68 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000829/0.3382, allocations: 0.9697 MB / 232.8 MB, free: 8.703 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004422/0.3387, allocations: 68.67 kB / 232.9 MB, free: 8.641 MB / 186.7 MB Notification: Performance of SimCode: time 1.112e-06/0.3387, allocations: 0 / 232.9 MB, free: 8.641 MB / 186.7 MB Notification: Performance of Templates: time 0.03974/0.3784, allocations: 16.64 MB / 249.5 MB, free: 8.195 MB / 202.7 MB