Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.047/1.047, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.903e-05/2.919e-05, allocations: 4 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.1839, allocations: 25.16 MB / 176.7 MB, free: 15.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6297/0.8137, allocations: 241.4 MB / 418 MB, free: 19.83 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002182/0.814, allocations: 68.47 kB / 418.1 MB, free: 19.8 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8535/1.668, allocations: 153.9 MB / 0.5585 GB, free: 35.04 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.684e-06/1.668, allocations: 0 / 0.5585 GB, free: 35.04 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.8e-05/1.668, allocations: 21.34 kB / 0.5586 GB, free: 35.04 MB / 234.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.003057/1.671, allocations: 1.082 MB / 0.5596 GB, free: 34.46 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/1.671, allocations: 11.5 kB / 0.5596 GB, free: 34.46 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001839/1.671, allocations: 98.55 kB / 0.5597 GB, free: 34.43 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002905/1.671, allocations: 100.5 kB / 0.5598 GB, free: 34.38 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001773/1.673, allocations: 0.6367 MB / 0.5604 GB, free: 34.11 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.727e-05/1.673, allocations: 46.31 kB / 0.5605 GB, free: 34.11 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/1.673, allocations: 57.62 kB / 0.5605 GB, free: 34.11 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001824/1.675, allocations: 0.8531 MB / 0.5614 GB, free: 33.92 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.186e-05/1.675, allocations: 7.5 kB / 0.5614 GB, free: 33.92 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001166/1.675, allocations: 25.03 kB / 0.5614 GB, free: 33.92 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.811e-05/1.675, allocations: 38.59 kB / 0.5614 GB, free: 33.92 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001698/1.677, allocations: 0.7342 MB / 0.5622 GB, free: 33.92 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006464/1.684, allocations: 3.998 MB / 0.5661 GB, free: 31.26 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/1.685, allocations: 462.8 kB / 0.5665 GB, free: 31.09 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000507/1.685, allocations: 233.8 kB / 0.5667 GB, free: 31 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003665/1.689, allocations: 2.106 MB / 0.5688 GB, free: 29.29 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/1.689, allocations: 34.56 kB / 0.5688 GB, free: 29.25 MB / 234.7 MB Notification: Performance of pre-optimization done (n=37): time 3.106e-06/1.689, allocations: 0 / 0.5688 GB, free: 29.25 MB / 234.7 MB Notification: Performance of matching and sorting (n=41): time 0.003533/1.693, allocations: 1.207 MB / 0.57 GB, free: 28.6 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/1.693, allocations: 135.3 kB / 0.5701 GB, free: 28.45 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001001/1.694, allocations: 0.5986 MB / 0.5707 GB, free: 28.17 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 7.377e-05/1.694, allocations: 43.86 kB / 0.5708 GB, free: 28.13 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002989/1.694, allocations: 461.9 kB / 0.5712 GB, free: 27.74 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001481/1.694, allocations: 149.6 kB / 0.5713 GB, free: 27.63 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.509e-05/1.694, allocations: 15.91 kB / 0.5714 GB, free: 27.62 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.879e-05/1.694, allocations: 347.1 kB / 0.5717 GB, free: 27.29 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005645/1.695, allocations: 223.5 kB / 0.5719 GB, free: 27.21 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007406/1.696, allocations: 0.5462 MB / 0.5724 GB, free: 26.71 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007239/1.697, allocations: 322.2 kB / 0.5727 GB, free: 26.62 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.126e-06/1.697, allocations: 6.438 kB / 0.5727 GB, free: 26.61 MB / 234.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001932/1.699, allocations: 0.801 MB / 0.5735 GB, free: 26.32 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/1.699, allocations: 7.344 kB / 0.5735 GB, free: 26.32 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.819e-05/1.699, allocations: 12.94 kB / 0.5735 GB, free: 26.32 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001227/1.7, allocations: 118.6 kB / 0.5737 GB, free: 26.31 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001843/1.702, allocations: 231.7 kB / 0.5739 GB, free: 26.29 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008264/1.703, allocations: 1.211 MB / 0.5751 GB, free: 25.14 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/1.704, allocations: 63.03 kB / 0.5751 GB, free: 25.12 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/1.704, allocations: 42.11 kB / 0.5752 GB, free: 25.11 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: 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: 48 * 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 (97): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003127/1.704, allocations: 177.5 kB / 0.5753 GB, free: 24.96 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/1.704, allocations: 71.66 kB / 0.5754 GB, free: 24.93 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002158/1.707, allocations: 0.7414 MB / 0.5761 GB, free: 24.63 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.404e-05/1.707, allocations: 3.375 kB / 0.5761 GB, free: 24.63 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/1.707, allocations: 0 / 0.5761 GB, free: 24.63 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/1.707, allocations: 7.781 kB / 0.5761 GB, free: 24.63 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003414/1.71, allocations: 1.395 MB / 0.5775 GB, free: 23.93 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/1.71, allocations: 0 / 0.5775 GB, free: 23.93 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001308/1.712, allocations: 139.5 kB / 0.5776 GB, free: 23.93 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000721/1.712, allocations: 88.09 kB / 0.5777 GB, free: 23.91 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.989e-05/1.712, allocations: 15.91 kB / 0.5777 GB, free: 23.9 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007064/1.713, allocations: 1.181 MB / 0.5789 GB, free: 22.76 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/1.713, allocations: 3.969 kB / 0.5789 GB, free: 22.76 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002066/1.715, allocations: 0.9902 MB / 0.5799 GB, free: 22.23 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002809/1.715, allocations: 150.3 kB / 0.58 GB, free: 22.09 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000175/1.716, allocations: 17.39 kB / 0.58 GB, free: 22.08 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007938/1.716, allocations: 42.41 kB / 0.5801 GB, free: 22.07 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/1.717, allocations: 57.56 kB / 0.5801 GB, free: 22.05 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.52e-05/1.717, allocations: 24.7 kB / 0.5801 GB, free: 22.05 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007869/1.718, allocations: 459.5 kB / 0.5806 GB, free: 21.85 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.82e-07/1.718, allocations: 0 / 0.5806 GB, free: 21.85 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001951/1.72, allocations: 453.3 kB / 0.581 GB, free: 21.73 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.medium.T,tank1.level) * 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 (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003989/1.724, allocations: 2.258 MB / 0.5832 GB, free: 20.34 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002111/1.726, allocations: 0.6167 MB / 0.5838 GB, free: 19.84 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.922e-06/1.726, allocations: 3.938 kB / 0.5838 GB, free: 19.84 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001063/1.727, allocations: 322.5 kB / 0.5841 GB, free: 19.56 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002741/1.73, allocations: 317.5 kB / 0.5844 GB, free: 19.35 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004436/1.734, allocations: 1.456 MB / 0.5858 GB, free: 18.11 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005079/1.735, allocations: 0.9983 MB / 0.5868 GB, free: 17.2 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006342/1.735, allocations: 299.3 kB / 0.5871 GB, free: 16.94 MB / 234.7 MB Notification: Performance of SimCode: time 1.042e-06/1.735, allocations: 0 / 0.5871 GB, free: 16.94 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.343/5.079, allocations: 24.87 MB / 0.6114 GB, free: 10.75 MB / 250.7 MB