Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.798/1.798, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.031e-05/3.048e-05, allocations: 4 kB / 255.4 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08975/0.0898, allocations: 44.5 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9216/1.011, allocations: 319.3 MB / 0.6047 GB, free: 70.89 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002968/1.012, allocations: 86.83 kB / 0.6048 GB, free: 70.85 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9366/1.948, allocations: 190.2 MB / 0.7905 GB, free: 55.31 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.723e-06/1.948, allocations: 4 kB / 0.7905 GB, free: 55.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.177e-05/1.948, allocations: 23.98 kB / 0.7905 GB, free: 55.28 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003744/1.952, allocations: 1.297 MB / 0.7918 GB, free: 53.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/1.952, allocations: 12.03 kB / 0.7918 GB, free: 53.92 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001908/1.953, allocations: 110.5 kB / 0.7919 GB, free: 53.8 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005097/1.953, allocations: 114.8 kB / 0.792 GB, free: 53.69 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002195/1.955, allocations: 0.7724 MB / 0.7928 GB, free: 52.88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.751e-05/1.955, allocations: 49.3 kB / 0.7928 GB, free: 52.83 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/1.955, allocations: 59.98 kB / 0.7929 GB, free: 52.77 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002183/1.958, allocations: 1.042 MB / 0.7939 GB, free: 51.67 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.134e-05/1.958, allocations: 0 / 0.7939 GB, free: 51.67 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001305/1.958, allocations: 31.94 kB / 0.7939 GB, free: 51.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001274/1.958, allocations: 69.27 kB / 0.794 GB, free: 51.57 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00218/1.96, allocations: 0.985 MB / 0.795 GB, free: 50.58 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008618/1.969, allocations: 4.408 MB / 0.7993 GB, free: 45.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/1.97, allocations: 0.5285 MB / 0.7998 GB, free: 45.38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006341/1.971, allocations: 290.1 kB / 0.8 GB, free: 45.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003068/1.974, allocations: 1.997 MB / 0.802 GB, free: 42.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/1.974, allocations: 42.81 kB / 0.802 GB, free: 42.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 2.364e-06/1.974, allocations: 0 / 0.802 GB, free: 42.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.004192/1.978, allocations: 1.45 MB / 0.8035 GB, free: 41.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/1.978, allocations: 166.2 kB / 0.8036 GB, free: 41.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/1.979, allocations: 0.7347 MB / 0.8043 GB, free: 40.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.895e-05/1.979, allocations: 37.7 kB / 0.8044 GB, free: 40.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003217/1.98, allocations: 0.5008 MB / 0.8049 GB, free: 39.83 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/1.98, allocations: 161.8 kB / 0.805 GB, free: 39.67 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.059e-05/1.98, allocations: 20 kB / 0.805 GB, free: 39.65 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.364e-05/1.98, allocations: 346.8 kB / 0.8054 GB, free: 39.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007/1.981, allocations: 293.9 kB / 0.8056 GB, free: 39.01 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008803/1.982, allocations: 0.6521 MB / 0.8063 GB, free: 38.19 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008348/1.983, allocations: 399 kB / 0.8067 GB, free: 37.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/1.983, allocations: 7.938 kB / 0.8067 GB, free: 37.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.002326/1.985, allocations: 1.035 MB / 0.8077 GB, free: 36.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008002/1.986, allocations: 4.441 MB / 0.812 GB, free: 31.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.018e-05/1.986, allocations: 15.98 kB / 0.812 GB, free: 31.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003171/1.989, allocations: 309.4 kB / 0.8123 GB, free: 31.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/1.99, allocations: 199.6 kB / 0.8125 GB, free: 31.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001254/1.992, allocations: 1.327 MB / 0.8138 GB, free: 30.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/1.993, allocations: 56.09 kB / 0.8139 GB, free: 30 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/1.993, allocations: 55.97 kB / 0.8139 GB, free: 29.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.778e-06/1.993, allocations: 4 kB / 0.8139 GB, free: 29.95 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002184/1.995, allocations: 0.964 MB / 0.8149 GB, free: 28.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/1.995, allocations: 12 kB / 0.8149 GB, free: 28.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002694/1.998, allocations: 277.5 kB / 0.8151 GB, free: 28.69 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/1.999, allocations: 191.7 kB / 0.8153 GB, free: 28.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/2, allocations: 1.28 MB / 0.8166 GB, free: 27.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000869/2.001, allocations: 68.02 kB / 0.8166 GB, free: 27.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.445e-05/2.001, allocations: 47.94 kB / 0.8167 GB, free: 27.05 MB / 410.7 MB 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 (109): * Single equations (assignments): 107 * 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.0002493/2.001, allocations: 163.1 kB / 0.8168 GB, free: 26.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002086/2.002, allocations: 94.83 kB / 0.8169 GB, free: 26.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0023/2.004, allocations: 0.7587 MB / 0.8177 GB, free: 26.02 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/2.004, allocations: 8 kB / 0.8177 GB, free: 26.02 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/2.004, allocations: 4 kB / 0.8177 GB, free: 26.01 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/2.004, allocations: 3.984 kB / 0.8177 GB, free: 26.01 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003188/2.007, allocations: 1.548 MB / 0.8192 GB, free: 24.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/2.007, allocations: 0 / 0.8192 GB, free: 24.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006409/2.008, allocations: 71.91 kB / 0.8193 GB, free: 24.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002204/2.01, allocations: 289.5 kB / 0.8195 GB, free: 24.03 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.195e-05/2.01, allocations: 12 kB / 0.8196 GB, free: 24.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001074/2.011, allocations: 1.3 MB / 0.8208 GB, free: 22.67 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/2.011, allocations: 4.031 kB / 0.8208 GB, free: 22.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002075/2.013, allocations: 1.079 MB / 0.8219 GB, free: 21.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/2.014, allocations: 184 kB / 0.8221 GB, free: 21.34 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001867/2.014, allocations: 12 kB / 0.8221 GB, free: 21.33 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008255/2.015, allocations: 39.92 kB / 0.8221 GB, free: 21.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001558/2.015, allocations: 48.36 kB / 0.8221 GB, free: 21.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-05/2.015, allocations: 20.19 kB / 0.8222 GB, free: 21.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009349/2.016, allocations: 0.5577 MB / 0.8227 GB, free: 20.67 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.51e-07/2.016, allocations: 0 / 0.8227 GB, free: 20.67 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002865/2.019, allocations: 0.8039 MB / 0.8235 GB, free: 19.87 MB / 410.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 (43): * Single equations (assignments): 41 * 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.004574/2.023, allocations: 2.467 MB / 0.8259 GB, free: 17.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003386/2.027, allocations: 1.225 MB / 0.8271 GB, free: 16.14 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/2.027, allocations: 0 / 0.8271 GB, free: 16.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001192/2.028, allocations: 350.5 kB / 0.8274 GB, free: 15.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002268/2.03, allocations: 302 kB / 0.8277 GB, free: 15.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004714/2.035, allocations: 1.806 MB / 0.8295 GB, free: 13.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005411/2.036, allocations: 1.049 MB / 0.8305 GB, free: 12.56 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006133/2.036, allocations: 335.3 kB / 0.8308 GB, free: 12.23 MB / 410.7 MB Notification: Performance of SimCode: time 1.213e-06/2.036, allocations: 0 / 0.8308 GB, free: 12.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.471/5.508, allocations: 29.19 MB / 0.8593 GB, free: 77.61 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat