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 0.9629/0.9629, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.774e-05/2.797e-05, allocations: 4 kB / 151.4 MB, free: 15.61 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.1437, allocations: 25.14 MB / 176.6 MB, free: 24 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5091/0.6529, allocations: 238.5 MB / 415 MB, free: 25.06 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001762/0.6531, allocations: 75.33 kB / 415.1 MB, free: 25.02 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.222/1.875, allocations: 259.4 MB / 0.6587 GB, free: 26.44 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.945e-06/1.875, allocations: 0 / 0.6587 GB, free: 26.44 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.000117/1.875, allocations: 36.3 kB / 0.6587 GB, free: 26.43 MB / 250.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.004227/1.879, allocations: 1.681 MB / 0.6603 GB, free: 25.64 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/1.879, allocations: 9.562 kB / 0.6603 GB, free: 25.64 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005037/1.88, allocations: 150.8 kB / 0.6605 GB, free: 25.57 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002532/1.882, allocations: 1.041 MB / 0.6615 GB, free: 25.23 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.848e-05/1.882, allocations: 75.69 kB / 0.6616 GB, free: 25.23 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002089/1.883, allocations: 87.84 kB / 0.6617 GB, free: 25.23 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002871/1.886, allocations: 1.496 MB / 0.6631 GB, free: 24.98 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.99e-05/1.886, allocations: 9.734 kB / 0.6631 GB, free: 24.98 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001741/1.886, allocations: 42.97 kB / 0.6632 GB, free: 24.98 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001373/1.886, allocations: 97.36 kB / 0.6633 GB, free: 24.98 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002797/1.889, allocations: 1.423 MB / 0.6647 GB, free: 24.98 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01023/1.899, allocations: 6.402 MB / 0.6709 GB, free: 21.63 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001685/1.901, allocations: 0.8683 MB / 0.6718 GB, free: 21.61 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009362/1.902, allocations: 0.5103 MB / 0.6722 GB, free: 21.59 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004198/1.906, allocations: 2.795 MB / 0.675 GB, free: 20.04 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/1.906, allocations: 45.17 kB / 0.675 GB, free: 20 MB / 250.7 MB Notification: Performance of pre-optimization done (n=80): time 4.02e-06/1.906, allocations: 1.844 kB / 0.675 GB, free: 20 MB / 250.7 MB Notification: Performance of matching and sorting (n=88): time 0.006936/1.913, allocations: 2.667 MB / 0.6776 GB, free: 19.43 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.691e-05/1.913, allocations: 189.3 kB / 0.6778 GB, free: 19.21 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001615/1.915, allocations: 0.9716 MB / 0.6788 GB, free: 19.05 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001549/1.915, allocations: 49.8 kB / 0.6788 GB, free: 19.02 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004188/1.915, allocations: 0.6451 MB / 0.6794 GB, free: 18.66 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002907/1.916, allocations: 309.7 kB / 0.6797 GB, free: 18.47 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.848e-05/1.916, allocations: 25.19 kB / 0.6798 GB, free: 18.47 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001076/1.916, allocations: 364.5 kB / 0.6801 GB, free: 18.16 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001022/1.917, allocations: 0.4941 MB / 0.6806 GB, free: 18.15 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001216/1.918, allocations: 0.9549 MB / 0.6815 GB, free: 17.6 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001195/1.919, allocations: 0.6296 MB / 0.6821 GB, free: 17.59 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-05/1.919, allocations: 9.844 kB / 0.6821 GB, free: 17.58 MB / 250.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.003726/1.923, allocations: 1.632 MB / 0.6837 GB, free: 17.48 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.133e-05/1.923, allocations: 10.88 kB / 0.6837 GB, free: 17.48 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.143e-05/1.923, allocations: 14.75 kB / 0.6838 GB, free: 17.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004811/1.928, allocations: 0.634 MB / 0.6844 GB, free: 17.45 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001551/1.93, allocations: 276 kB / 0.6846 GB, free: 17.45 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002117/1.932, allocations: 2.109 MB / 0.6867 GB, free: 15.89 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001914/1.934, allocations: 106 kB / 0.6868 GB, free: 15.88 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002248/1.934, allocations: 66.53 kB / 0.6869 GB, free: 15.88 MB / 250.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank2.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" 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 = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" 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.0004596/1.934, allocations: 230.9 kB / 0.6871 GB, free: 15.77 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002703/1.935, allocations: 137.3 kB / 0.6872 GB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003965/1.939, allocations: 1.477 MB / 0.6887 GB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/1.939, allocations: 13.44 kB / 0.6887 GB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.786e-06/1.939, allocations: 0 / 0.6887 GB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.675e-05/1.939, allocations: 13.78 kB / 0.6887 GB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006018/1.945, allocations: 2.666 MB / 0.6913 GB, free: 14.51 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.089e-06/1.945, allocations: 0 / 0.6913 GB, free: 14.51 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/1.946, allocations: 150.5 kB / 0.6914 GB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004064/1.95, allocations: 0.5934 MB / 0.692 GB, free: 14.4 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002121/1.95, allocations: 24.98 kB / 0.692 GB, free: 14.39 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00193/1.952, allocations: 2.088 MB / 0.6941 GB, free: 12.62 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/1.952, allocations: 0 / 0.6941 GB, free: 12.62 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004059/1.956, allocations: 2.056 MB / 0.6961 GB, free: 11.66 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006274/1.957, allocations: 222.1 kB / 0.6963 GB, free: 11.47 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004288/1.957, allocations: 33.33 kB / 0.6963 GB, free: 11.45 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/1.959, allocations: 71 kB / 0.6964 GB, free: 11.44 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002449/1.959, allocations: 94.38 kB / 0.6965 GB, free: 11.43 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/1.959, allocations: 36.59 kB / 0.6965 GB, free: 11.42 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001267/1.96, allocations: 0.7409 MB / 0.6972 GB, free: 11.11 MB / 250.7 MB Notification: Performance of sort global known variables: time 9.8e-07/1.96, allocations: 0 / 0.6972 GB, free: 11.11 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.002804/1.963, allocations: 0.7634 MB / 0.698 GB, free: 10.9 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * 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.00221/1.965, allocations: 0.9796 MB / 0.6989 GB, free: 10.57 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002883/1.968, allocations: 1.245 MB / 0.7002 GB, free: 10.16 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.451e-06/1.968, allocations: 3.938 kB / 0.7002 GB, free: 10.16 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001712/1.97, allocations: 0.6715 MB / 0.7008 GB, free: 9.965 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003052/1.973, allocations: 0.5568 MB / 0.7014 GB, free: 9.848 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004594/1.978, allocations: 2.19 MB / 0.7035 GB, free: 8.48 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008039/1.978, allocations: 1.27 MB / 0.7047 GB, free: 7.383 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005616/1.979, allocations: 118.5 kB / 0.7049 GB, free: 7.277 MB / 250.7 MB Notification: Performance of SimCode: time 1.599e-06/1.979, allocations: 0 / 0.7049 GB, free: 7.277 MB / 250.7 MB Notification: Performance of Templates: time 0.2128/2.192, allocations: 41.18 MB / 0.7451 GB, free: 23.12 MB / 250.7 MB