Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.06/1.06, allocations: 111.1 MB / 126.3 MB, free: 6.406 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.459e-05/2.436e-05, allocations: 4 kB / 154.5 MB, free: 2.824 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05347/0.05352, allocations: 25.18 MB / 179.7 MB, free: 9.609 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.1941/0.2477, allocations: 27.68 MB / 207.4 MB, free: 4.09 MB / 170.7 MB Notification: Performance of NFInst.instExpressions: time 0.02216/0.2699, allocations: 11.29 MB / 218.7 MB, free: 3.902 MB / 170.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002037/0.272, allocations: 55.06 kB / 218.7 MB, free: 3.875 MB / 170.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002189/0.2743, allocations: 484.6 kB / 219.2 MB, free: 3.766 MB / 170.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005291/0.2796, allocations: 1.288 MB / 220.5 MB, free: 3.664 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01002/0.2897, allocations: 2.364 MB / 222.8 MB, free: 2.895 MB / 170.7 MB Notification: Performance of NFFlatten.flatten: time 0.004172/0.2939, allocations: 1.555 MB / 224.4 MB, free: 2.066 MB / 170.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001293/0.2952, allocations: 0.6262 MB / 225 MB, free: 1.676 MB / 170.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002695/0.2979, allocations: 0.8998 MB / 225.9 MB, free: 1.234 MB / 170.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002364/0.3004, allocations: 0.7735 MB / 226.7 MB, free: 0.8359 MB / 170.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005751/0.3061, allocations: 1.495 MB / 228.2 MB, free: 184 kB / 170.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001119/0.3073, allocations: 121 kB / 228.3 MB, free: 184 kB / 170.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009565/0.3083, allocations: 406.2 kB / 228.7 MB, free: 15.93 MB / 186.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008668/0.3092, allocations: 148.3 kB / 228.9 MB, free: 15.93 MB / 186.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005879/0.3151, allocations: 2.181 MB / 231 MB, free: 14.68 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3151, allocations: 0 / 231 MB, free: 14.68 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.836e-06/0.3151, allocations: 0 / 231 MB, free: 14.68 MB / 186.7 MB Notification: Performance of Transformations before backend: time 5.54e-05/0.3152, allocations: 0 / 231 MB, free: 14.68 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.005196/0.3204, allocations: 1.573 MB / 232.6 MB, free: 13.54 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.3205, allocations: 9.438 kB / 232.6 MB, free: 13.54 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006065/0.3211, allocations: 156.3 kB / 232.8 MB, free: 13.46 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00257/0.3237, allocations: 0.8889 MB / 233.7 MB, free: 12.8 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/0.3239, allocations: 77.39 kB / 233.7 MB, free: 12.77 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003502/0.3242, allocations: 93.97 kB / 233.8 MB, free: 12.73 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004359/0.3286, allocations: 1.507 MB / 235.3 MB, free: 11.5 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.638e-05/0.3287, allocations: 11.88 kB / 235.4 MB, free: 11.49 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002179/0.3289, allocations: 47.58 kB / 235.4 MB, free: 11.45 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000242/0.3292, allocations: 105.9 kB / 235.5 MB, free: 11.34 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005134/0.3343, allocations: 1.487 MB / 237 MB, free: 9.855 MB / 186.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.01933/0.3537, allocations: 6.603 MB / 243.6 MB, free: 2.848 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002725/0.3565, allocations: 0.8895 MB / 244.5 MB, free: 1.949 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006105/0.3627, allocations: 2.744 MB / 247.2 MB, free: 14.96 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.335e-05/0.3628, allocations: 51.14 kB / 247.3 MB, free: 14.91 MB / 202.7 MB Notification: Performance of pre-optimization done (n=80): time 6.071e-06/0.3628, allocations: 3.984 kB / 247.3 MB, free: 14.9 MB / 202.7 MB Notification: Performance of matching and sorting (n=88): time 0.01411/0.3769, allocations: 3.544 MB / 250.8 MB, free: 11.27 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.3771, allocations: 188.9 kB / 251 MB, free: 11.05 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00221/0.3793, allocations: 0.9868 MB / 252 MB, free: 10.05 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002751/0.3796, allocations: 49.69 kB / 252 MB, free: 9.996 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007194/0.3803, allocations: 0.6404 MB / 252.7 MB, free: 9.355 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004846/0.3808, allocations: 315.5 kB / 253 MB, free: 9.051 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.381, allocations: 32 kB / 253 MB, free: 9.02 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0002115/0.3812, allocations: 366.7 kB / 253.4 MB, free: 8.652 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001601/0.3828, allocations: 0.5075 MB / 253.9 MB, free: 8.148 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00198/0.3848, allocations: 0.9785 MB / 254.9 MB, free: 6.961 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00191/0.3868, allocations: 0.6353 MB / 255.5 MB, free: 6.336 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-05/0.3868, allocations: 4 kB / 255.5 MB, free: 6.332 MB / 202.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.005161/0.392, allocations: 1.698 MB / 257.2 MB, free: 4.617 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.188e-05/0.3921, allocations: 15.98 kB / 257.2 MB, free: 4.602 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.261e-05/0.3921, allocations: 12 kB / 257.2 MB, free: 4.59 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00796/0.4001, allocations: 0.7479 MB / 258 MB, free: 3.832 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002054/0.4022, allocations: 279.5 kB / 258.3 MB, free: 3.559 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002954/0.4052, allocations: 2.114 MB / 260.4 MB, free: 1.367 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002105/0.4073, allocations: 92 kB / 260.5 MB, free: 1.277 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001942/0.4075, allocations: 71.94 kB / 260.5 MB, free: 1.207 MB / 202.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: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (160): * Single equations (assignments): 157 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001069/0.4086, allocations: 415.3 kB / 260.9 MB, free: 0.7891 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003429/0.409, allocations: 142.2 kB / 261.1 MB, free: 0.6484 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004935/0.4139, allocations: 1.497 MB / 262.6 MB, free: 15.13 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.521e-05/0.414, allocations: 8 kB / 262.6 MB, free: 15.12 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.414, allocations: 0 / 262.6 MB, free: 15.12 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.765e-05/0.414, allocations: 11.97 kB / 262.6 MB, free: 15.11 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007418/0.4214, allocations: 2.702 MB / 265.3 MB, free: 12.36 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/0.4215, allocations: 8.062 kB / 265.3 MB, free: 12.35 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001354/0.4229, allocations: 147.8 kB / 265.4 MB, free: 12.21 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00507/0.4279, allocations: 0.6289 MB / 266.1 MB, free: 11.57 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002226/0.4282, allocations: 27.98 kB / 266.1 MB, free: 11.54 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002807/0.431, allocations: 2.085 MB / 268.2 MB, free: 9.383 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/0.4311, allocations: 0 / 268.2 MB, free: 9.383 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005688/0.4368, allocations: 2.101 MB / 270.3 MB, free: 7.227 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006338/0.4375, allocations: 227.3 kB / 270.5 MB, free: 6.984 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004534/0.4379, allocations: 23.98 kB / 270.5 MB, free: 6.961 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001429/0.4394, allocations: 67.95 kB / 270.6 MB, free: 6.895 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002924/0.4397, allocations: 92.86 kB / 270.7 MB, free: 6.805 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001518/0.4398, allocations: 35.98 kB / 270.7 MB, free: 6.77 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.001641/0.4415, allocations: 0.7576 MB / 271.5 MB, free: 6.008 MB / 218.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.4415, allocations: 0 / 271.5 MB, free: 6.008 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.002883/0.4444, allocations: 0.6793 MB / 272.2 MB, free: 5.328 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002376/0.4468, allocations: 0.665 MB / 272.8 MB, free: 4.699 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.004523/0.4514, allocations: 1.3 MB / 274.1 MB, free: 3.402 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/0.4515, allocations: 0 / 274.1 MB, free: 3.402 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002458/0.4539, allocations: 0.6803 MB / 274.8 MB, free: 2.73 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004817/0.4588, allocations: 0.5613 MB / 275.4 MB, free: 2.176 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007828/0.4666, allocations: 3.176 MB / 278.5 MB, free: 14.96 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001224/0.4679, allocations: 1.262 MB / 279.8 MB, free: 13.66 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007059/0.4687, allocations: 123.3 kB / 279.9 MB, free: 13.54 MB / 234.7 MB Notification: Performance of SimCode: time 1.092e-06/0.4687, allocations: 0 / 279.9 MB, free: 13.54 MB / 234.7 MB Notification: Performance of Templates: time 0.2538/0.7224, allocations: 40.3 MB / 320.2 MB, free: 91.63 MB / 250.7 MB