Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.082/1.082, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.963e-05/2.953e-05, allocations: 4 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1745/0.1745, allocations: 25.15 MB / 176.6 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6565/0.8311, allocations: 238.3 MB / 414.9 MB, free: 22.76 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/0.8314, allocations: 71.89 kB / 415 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8879/1.719, allocations: 177 MB / 0.5781 GB, free: 29.67 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.843e-06/1.719, allocations: 2.469 kB / 0.5781 GB, free: 29.67 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.502e-05/1.719, allocations: 27.83 kB / 0.5781 GB, free: 29.65 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: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.003751/1.723, allocations: 1.223 MB / 0.5793 GB, free: 28.39 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/1.723, allocations: 11.12 kB / 0.5793 GB, free: 28.38 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002532/1.724, allocations: 110.3 kB / 0.5794 GB, free: 28.27 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003344/1.724, allocations: 102.6 kB / 0.5795 GB, free: 28.17 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002114/1.726, allocations: 0.7325 MB / 0.5803 GB, free: 27.41 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.485e-05/1.726, allocations: 52.09 kB / 0.5803 GB, free: 27.37 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001493/1.726, allocations: 59.59 kB / 0.5804 GB, free: 27.32 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002169/1.728, allocations: 0.9673 MB / 0.5813 GB, free: 26.3 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.118e-05/1.728, allocations: 0 / 0.5813 GB, free: 26.3 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001375/1.729, allocations: 31.3 kB / 0.5813 GB, free: 26.28 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001296/1.729, allocations: 65.22 kB / 0.5814 GB, free: 26.21 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002083/1.731, allocations: 0.8887 MB / 0.5823 GB, free: 25.32 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007939/1.739, allocations: 4.394 MB / 0.5866 GB, free: 20.67 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/1.74, allocations: 0.5153 MB / 0.5871 GB, free: 20.15 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006231/1.741, allocations: 290 kB / 0.5873 GB, free: 19.87 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003209/1.744, allocations: 2.008 MB / 0.5893 GB, free: 17.64 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/1.744, allocations: 41.33 kB / 0.5893 GB, free: 17.59 MB / 234.7 MB Notification: Performance of pre-optimization done (n=40): time 2.675e-06/1.744, allocations: 0 / 0.5893 GB, free: 17.59 MB / 234.7 MB Notification: Performance of matching and sorting (n=44): time 0.004526/1.749, allocations: 1.396 MB / 0.5907 GB, free: 16.14 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.043e-05/1.749, allocations: 166.2 kB / 0.5909 GB, free: 15.95 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00121/1.75, allocations: 0.6869 MB / 0.5915 GB, free: 15.25 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.243e-05/1.75, allocations: 33.7 kB / 0.5916 GB, free: 15.21 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003436/1.75, allocations: 0.5022 MB / 0.5921 GB, free: 14.71 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/1.751, allocations: 160 kB / 0.5922 GB, free: 14.55 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.399e-05/1.751, allocations: 20 kB / 0.5922 GB, free: 14.54 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/1.751, allocations: 338.8 kB / 0.5925 GB, free: 14.2 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006548/1.751, allocations: 269.9 kB / 0.5928 GB, free: 13.93 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008106/1.752, allocations: 0.6266 MB / 0.5934 GB, free: 13.15 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007801/1.753, allocations: 368.1 kB / 0.5938 GB, free: 12.79 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/1.753, allocations: 11.89 kB / 0.5938 GB, free: 12.78 MB / 234.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002241/1.755, allocations: 0.9455 MB / 0.5947 GB, free: 11.82 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.897e-05/1.755, allocations: 8 kB / 0.5947 GB, free: 11.81 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/1.755, allocations: 12 kB / 0.5947 GB, free: 11.8 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003103/1.759, allocations: 313.9 kB / 0.595 GB, free: 11.49 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/1.76, allocations: 175.7 kB / 0.5952 GB, free: 11.32 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001261/1.761, allocations: 1.308 MB / 0.5965 GB, free: 9.957 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/1.762, allocations: 60 kB / 0.5965 GB, free: 9.898 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/1.763, allocations: 51.42 kB / 0.5966 GB, free: 9.852 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: 51 * 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 (102): * Single equations (assignments): 100 * 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 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003417/1.763, allocations: 178.7 kB / 0.5967 GB, free: 9.676 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001826/1.763, allocations: 86.97 kB / 0.5968 GB, free: 9.59 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002437/1.766, allocations: 0.7504 MB / 0.5976 GB, free: 8.828 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/1.766, allocations: 4 kB / 0.5976 GB, free: 8.824 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/1.766, allocations: 0 / 0.5976 GB, free: 8.824 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/1.766, allocations: 3.984 kB / 0.5976 GB, free: 8.82 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003538/1.769, allocations: 1.494 MB / 0.599 GB, free: 7.27 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.383e-06/1.769, allocations: 7.938 kB / 0.599 GB, free: 7.262 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006667/1.77, allocations: 75.89 kB / 0.5991 GB, free: 7.188 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002237/1.772, allocations: 273.5 kB / 0.5994 GB, free: 6.914 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.664e-05/1.772, allocations: 15.98 kB / 0.5994 GB, free: 6.898 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001126/1.773, allocations: 1.291 MB / 0.6006 GB, free: 5.559 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/1.773, allocations: 4.031 kB / 0.6006 GB, free: 5.555 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00226/1.776, allocations: 1.06 MB / 0.6017 GB, free: 4.449 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003355/1.776, allocations: 164.1 kB / 0.6018 GB, free: 4.27 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001962/1.776, allocations: 12 kB / 0.6018 GB, free: 4.258 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008592/1.777, allocations: 51.88 kB / 0.6019 GB, free: 4.207 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/1.777, allocations: 48.31 kB / 0.6019 GB, free: 4.16 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.912e-05/1.777, allocations: 19.98 kB / 0.602 GB, free: 4.141 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0009369/1.778, allocations: 0.5264 MB / 0.6025 GB, free: 3.621 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.778, allocations: 0 / 0.6025 GB, free: 3.621 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.002199/1.781, allocations: 0.5256 MB / 0.603 GB, free: 3.098 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * 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 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004426/1.785, allocations: 2.349 MB / 0.6053 GB, free: 0.7695 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002071/1.787, allocations: 0.6637 MB / 0.6059 GB, free: 116 kB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/1.787, allocations: 2.312 kB / 0.6059 GB, free: 116 kB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009572/1.788, allocations: 301.4 kB / 0.6062 GB, free: 15.82 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003016/1.791, allocations: 341.4 kB / 0.6065 GB, free: 15.49 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005858/1.797, allocations: 1.691 MB / 0.6082 GB, free: 13.75 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008061/1.798, allocations: 1.037 MB / 0.6092 GB, free: 12.69 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007958/1.799, allocations: 331.3 kB / 0.6095 GB, free: 12.37 MB / 250.7 MB Notification: Performance of SimCode: time 9.81e-07/1.799, allocations: 0 / 0.6095 GB, free: 12.37 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.56/5.358, allocations: 27.84 MB / 0.6367 GB, free: 42.12 MB / 250.7 MB