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 2.05/2.05, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.145e-05/4.16e-05, allocations: 8 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09913/0.09921, allocations: 44.5 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9478/1.047, allocations: 319.3 MB / 0.6047 GB, free: 70.81 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003065/1.047, allocations: 86.52 kB / 0.6048 GB, free: 70.77 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9548/2.002, allocations: 190.2 MB / 0.7905 GB, free: 55.24 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.683e-06/2.002, allocations: 0 / 0.7905 GB, free: 55.24 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.016e-05/2.002, allocations: 27.92 kB / 0.7906 GB, free: 55.21 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.004007/2.006, allocations: 1.297 MB / 0.7918 GB, free: 53.87 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/2.006, allocations: 8.031 kB / 0.7918 GB, free: 53.86 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002034/2.007, allocations: 110.5 kB / 0.7919 GB, free: 53.74 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005713/2.007, allocations: 118.8 kB / 0.7921 GB, free: 53.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002242/2.01, allocations: 0.7723 MB / 0.7928 GB, free: 52.81 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.254e-05/2.01, allocations: 53.3 kB / 0.7929 GB, free: 52.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001582/2.01, allocations: 59.98 kB / 0.7929 GB, free: 52.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002191/2.012, allocations: 1.032 MB / 0.7939 GB, free: 51.61 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.034e-05/2.012, allocations: 0 / 0.7939 GB, free: 51.61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001335/2.012, allocations: 31.94 kB / 0.794 GB, free: 51.58 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000126/2.012, allocations: 65.28 kB / 0.794 GB, free: 51.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002179/2.014, allocations: 0.9746 MB / 0.795 GB, free: 50.54 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008945/2.023, allocations: 4.404 MB / 0.7993 GB, free: 45.87 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/2.025, allocations: 0.5217 MB / 0.7998 GB, free: 45.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006168/2.025, allocations: 294.1 kB / 0.8001 GB, free: 45.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003264/2.029, allocations: 2.001 MB / 0.802 GB, free: 42.83 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.405e-05/2.029, allocations: 38.89 kB / 0.802 GB, free: 42.79 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 3.206e-06/2.029, allocations: 3.938 kB / 0.8021 GB, free: 42.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.004345/2.033, allocations: 1.45 MB / 0.8035 GB, free: 41.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.793e-05/2.033, allocations: 166.2 kB / 0.8036 GB, free: 41.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001244/2.034, allocations: 0.7308 MB / 0.8043 GB, free: 40.34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.458e-05/2.035, allocations: 37.7 kB / 0.8044 GB, free: 40.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003492/2.035, allocations: 0.5008 MB / 0.8049 GB, free: 39.79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00016/2.035, allocations: 157.8 kB / 0.805 GB, free: 39.63 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.12e-05/2.035, allocations: 20 kB / 0.805 GB, free: 39.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.832e-05/2.035, allocations: 354.8 kB / 0.8054 GB, free: 39.26 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007106/2.036, allocations: 293.9 kB / 0.8057 GB, free: 38.97 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008684/2.037, allocations: 0.6424 MB / 0.8063 GB, free: 38.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008455/2.038, allocations: 398.9 kB / 0.8067 GB, free: 37.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/2.038, allocations: 4 kB / 0.8067 GB, free: 37.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.002404/2.04, allocations: 1.004 MB / 0.8076 GB, free: 36.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008237/2.041, allocations: 4.449 MB / 0.812 GB, free: 31.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.083e-05/2.041, allocations: 8 kB / 0.812 GB, free: 31.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0032/2.044, allocations: 317.4 kB / 0.8123 GB, free: 31.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001339/2.046, allocations: 191.7 kB / 0.8125 GB, free: 31.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001316/2.047, allocations: 1.331 MB / 0.8138 GB, free: 30.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001414/2.048, allocations: 64.09 kB / 0.8138 GB, free: 30 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/2.048, allocations: 43.98 kB / 0.8139 GB, free: 29.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/2.049, allocations: 4 kB / 0.8139 GB, free: 29.95 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002196/2.051, allocations: 0.9322 MB / 0.8148 GB, free: 29.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/2.051, allocations: 12.91 kB / 0.8148 GB, free: 29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002731/2.053, allocations: 277.4 kB / 0.8151 GB, free: 28.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/2.055, allocations: 191.7 kB / 0.8153 GB, free: 28.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001237/2.056, allocations: 1.28 MB / 0.8165 GB, free: 27.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009923/2.057, allocations: 64.03 kB / 0.8166 GB, free: 27.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001014/2.057, allocations: 47.98 kB / 0.8166 GB, free: 27.09 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.0002847/2.057, allocations: 164.6 kB / 0.8168 GB, free: 26.93 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002467/2.058, allocations: 90.83 kB / 0.8169 GB, free: 26.84 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00241/2.06, allocations: 0.7644 MB / 0.8176 GB, free: 26.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/2.06, allocations: 4 kB / 0.8176 GB, free: 26.05 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/2.06, allocations: 4 kB / 0.8176 GB, free: 26.05 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/2.06, allocations: 3.984 kB / 0.8176 GB, free: 26.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003387/2.064, allocations: 1.536 MB / 0.8191 GB, free: 24.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/2.064, allocations: 12 kB / 0.8191 GB, free: 24.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006616/2.064, allocations: 75.91 kB / 0.8192 GB, free: 24.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002251/2.067, allocations: 285.4 kB / 0.8195 GB, free: 24.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.314e-05/2.067, allocations: 8 kB / 0.8195 GB, free: 24.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001158/2.068, allocations: 1.304 MB / 0.8208 GB, free: 22.71 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/2.068, allocations: 8.125 kB / 0.8208 GB, free: 22.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002216/2.07, allocations: 1.071 MB / 0.8218 GB, free: 21.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000316/2.07, allocations: 175.9 kB / 0.822 GB, free: 21.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001981/2.071, allocations: 20.05 kB / 0.822 GB, free: 21.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008825/2.071, allocations: 36.12 kB / 0.822 GB, free: 21.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/2.072, allocations: 56.3 kB / 0.8221 GB, free: 21.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-05/2.072, allocations: 23.97 kB / 0.8221 GB, free: 21.26 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009927/2.073, allocations: 0.5577 MB / 0.8226 GB, free: 20.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.51e-07/2.073, allocations: 0 / 0.8226 GB, free: 20.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003311/2.076, allocations: 0.8078 MB / 0.8234 GB, free: 19.9 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.004823/2.081, allocations: 2.47 MB / 0.8259 GB, free: 17.39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003493/2.084, allocations: 1.183 MB / 0.827 GB, free: 16.21 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/2.084, allocations: 0 / 0.827 GB, free: 16.21 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001216/2.086, allocations: 346.2 kB / 0.8273 GB, free: 15.88 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002343/2.088, allocations: 316.3 kB / 0.8276 GB, free: 15.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005069/2.093, allocations: 1.797 MB / 0.8294 GB, free: 13.71 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000555/2.094, allocations: 1.045 MB / 0.8304 GB, free: 12.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006311/2.094, allocations: 335.3 kB / 0.8307 GB, free: 12.31 MB / 410.7 MB Notification: Performance of SimCode: time 1.192e-06/2.094, allocations: 0 / 0.8307 GB, free: 12.31 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.607/5.701, allocations: 29.19 MB / 0.8592 GB, free: 77.57 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