Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.994/1.994, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.131e-05/3.147e-05, allocations: 4 kB / 292.2 MB, free: 8.773 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1086, allocations: 50.42 MB / 342.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.029/1.137, allocations: 327.6 MB / 0.6545 GB, free: 29.04 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003077/1.138, allocations: 90.95 kB / 0.6546 GB, free: 28.99 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.708/2.845, allocations: 331 MB / 0.9779 GB, free: 68.44 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.633e-06/2.845, allocations: 0 / 0.9779 GB, free: 68.44 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002163/2.846, allocations: 51.58 kB / 0.9779 GB, free: 68.43 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.008259/2.854, allocations: 2.042 MB / 0.9799 GB, free: 67.38 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/2.854, allocations: 14.97 kB / 0.9799 GB, free: 67.38 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007729/2.855, allocations: 183.4 kB / 0.9801 GB, free: 67.27 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001078/2.856, allocations: 201.3 kB / 0.9803 GB, free: 67.18 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00415/2.86, allocations: 1.18 MB / 0.9815 GB, free: 66.54 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/2.86, allocations: 102.4 kB / 0.9815 GB, free: 66.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004403/2.861, allocations: 118.1 kB / 0.9817 GB, free: 66.47 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004839/2.865, allocations: 1.91 MB / 0.9835 GB, free: 65.61 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.724e-05/2.866, allocations: 5.25 kB / 0.9835 GB, free: 65.61 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002694/2.866, allocations: 52.25 kB / 0.9836 GB, free: 65.58 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002249/2.866, allocations: 120.1 kB / 0.9837 GB, free: 65.56 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005438/2.872, allocations: 1.901 MB / 0.9856 GB, free: 64.91 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01978/2.891, allocations: 7.686 MB / 0.9931 GB, free: 59.96 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002941/2.894, allocations: 1.139 MB / 0.9942 GB, free: 59.53 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001782/2.896, allocations: 0.7336 MB / 0.9949 GB, free: 59.25 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007889/2.904, allocations: 3.47 MB / 0.9983 GB, free: 56.95 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.082e-05/2.904, allocations: 51.38 kB / 0.9983 GB, free: 56.9 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 4.258e-06/2.904, allocations: 0 / 0.9983 GB, free: 56.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=134): time 0.0154/2.92, allocations: 4.122 MB / 1.002 GB, free: 55.24 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.352e-05/2.92, allocations: 178.7 kB / 1.003 GB, free: 55.05 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002482/2.922, allocations: 1.232 MB / 1.004 GB, free: 54.56 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004665/2.923, allocations: 60.11 kB / 1.004 GB, free: 54.51 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005634/2.923, allocations: 0.6642 MB / 1.004 GB, free: 53.93 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006516/2.924, allocations: 472.7 kB / 1.005 GB, free: 53.57 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001877/2.924, allocations: 35.44 kB / 1.005 GB, free: 53.55 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001367/2.924, allocations: 376 kB / 1.005 GB, free: 53.21 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001995/2.926, allocations: 0.7388 MB / 1.006 GB, free: 52.94 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002342/2.929, allocations: 1.134 MB / 1.007 GB, free: 51.84 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002211/2.931, allocations: 0.8562 MB / 1.008 GB, free: 51.13 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.197e-05/2.931, allocations: 6.953 kB / 1.008 GB, free: 51.12 MB / 458.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.006132/2.937, allocations: 2.232 MB / 1.01 GB, free: 49.04 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008623/2.938, allocations: 4.273 MB / 1.014 GB, free: 44.47 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-05/2.938, allocations: 19 kB / 1.014 GB, free: 44.46 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009211/2.947, allocations: 0.9335 MB / 1.015 GB, free: 43.53 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002747/2.95, allocations: 347.4 kB / 1.016 GB, free: 43.19 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003443/2.954, allocations: 2.885 MB / 1.018 GB, free: 40.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003089/2.957, allocations: 133.8 kB / 1.019 GB, free: 40.09 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004375/2.957, allocations: 79.97 kB / 1.019 GB, free: 40.01 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/2.957, allocations: 4 kB / 1.019 GB, free: 40 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005535/2.963, allocations: 2.037 MB / 1.021 GB, free: 37.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.959e-05/2.963, allocations: 18.11 kB / 1.021 GB, free: 37.95 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007087/2.97, allocations: 0.6626 MB / 1.021 GB, free: 37.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002861/2.973, allocations: 362.1 kB / 1.022 GB, free: 36.95 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002545/2.976, allocations: 2.608 MB / 1.024 GB, free: 34.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00225/2.978, allocations: 137.3 kB / 1.024 GB, free: 34.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002575/2.978, allocations: 75.97 kB / 1.024 GB, free: 34.04 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 196 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000626/2.979, allocations: 221.4 kB / 1.025 GB, free: 33.82 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005321/2.979, allocations: 169.9 kB / 1.025 GB, free: 33.65 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006955/2.986, allocations: 2.323 MB / 1.027 GB, free: 31.33 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.748e-05/2.986, allocations: 16 kB / 1.027 GB, free: 31.32 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/2.986, allocations: 7.828 kB / 1.027 GB, free: 31.31 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-05/2.986, allocations: 7.969 kB / 1.027 GB, free: 31.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01054/2.997, allocations: 3.985 MB / 1.031 GB, free: 27.28 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-05/2.997, allocations: 7.984 kB / 1.031 GB, free: 27.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002101/2.999, allocations: 235.7 kB / 1.031 GB, free: 27.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006684/3.006, allocations: 0.8808 MB / 1.032 GB, free: 26.16 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004119/3.006, allocations: 35.98 kB / 1.032 GB, free: 26.13 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002944/3.009, allocations: 2.841 MB / 1.035 GB, free: 23.19 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/3.009, allocations: 4.031 kB / 1.035 GB, free: 23.18 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007369/3.017, allocations: 3.207 MB / 1.038 GB, free: 19.89 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008045/3.018, allocations: 278.8 kB / 1.038 GB, free: 19.59 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005394/3.018, allocations: 36 kB / 1.038 GB, free: 19.56 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002206/3.02, allocations: 114.7 kB / 1.038 GB, free: 19.45 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004214/3.021, allocations: 153 kB / 1.038 GB, free: 19.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002104/3.021, allocations: 59.97 kB / 1.039 GB, free: 19.24 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001933/3.023, allocations: 0.9501 MB / 1.039 GB, free: 18.29 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.61e-07/3.023, allocations: 0 / 1.039 GB, free: 18.29 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005939/3.029, allocations: 1.389 MB / 1.041 GB, free: 16.91 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01177/3.041, allocations: 5.308 MB / 1.046 GB, free: 11.66 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008769/3.05, allocations: 2.919 MB / 1.049 GB, free: 8.746 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/3.05, allocations: 4 kB / 1.049 GB, free: 8.742 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002991/3.053, allocations: 1.047 MB / 1.05 GB, free: 7.695 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006238/3.059, allocations: 0.7389 MB / 1.051 GB, free: 6.977 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01074/3.07, allocations: 3.562 MB / 1.054 GB, free: 3.379 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/3.071, allocations: 1.427 MB / 1.055 GB, free: 1.922 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001684/3.072, allocations: 0.6672 MB / 1.056 GB, free: 1.254 MB / 458.7 MB Notification: Performance of SimCode: time 1.563e-06/3.072, allocations: 0 / 1.056 GB, free: 1.254 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.254/7.326, allocations: 67.59 MB / 1.122 GB, free: 60.3 MB / 458.7 MB