Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.736/1.736, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.134e-05/4.142e-05, allocations: 8 kB / 225.1 MB, free: 2.602 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2579, allocations: 38.76 MB / 263.9 MB, free: 9.852 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9043/1.162, allocations: 318.3 MB / 0.5685 GB, free: 65.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003231/1.163, allocations: 91.77 kB / 0.5686 GB, free: 65.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8494/2.012, allocations: 164.6 MB / 0.7293 GB, free: 55.12 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.434e-06/2.012, allocations: 0 / 0.7293 GB, free: 55.12 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001198/2.012, allocations: 20 kB / 0.7294 GB, free: 55.1 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.004854/2.017, allocations: 1.115 MB / 0.7305 GB, free: 53.95 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.303e-05/2.017, allocations: 8.031 kB / 0.7305 GB, free: 53.95 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003281/2.018, allocations: 102.5 kB / 0.7306 GB, free: 53.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008448/2.019, allocations: 102.9 kB / 0.7307 GB, free: 53.73 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002416/2.021, allocations: 0.6598 MB / 0.7313 GB, free: 53.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.236e-05/2.021, allocations: 49.3 kB / 0.7313 GB, free: 53 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001411/2.021, allocations: 59.77 kB / 0.7314 GB, free: 52.95 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001869/2.023, allocations: 0.8553 MB / 0.7322 GB, free: 52.03 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.084e-05/2.023, allocations: 7.875 kB / 0.7322 GB, free: 52.02 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/2.023, allocations: 24 kB / 0.7323 GB, free: 52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.92e-05/2.023, allocations: 49.28 kB / 0.7323 GB, free: 51.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001747/2.025, allocations: 0.7599 MB / 0.7331 GB, free: 51.19 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007076/2.032, allocations: 3.832 MB / 0.7368 GB, free: 47.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001114/2.033, allocations: 474.9 kB / 0.7373 GB, free: 46.62 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005105/2.034, allocations: 241.9 kB / 0.7375 GB, free: 46.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003375/2.037, allocations: 1.977 MB / 0.7394 GB, free: 44.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/2.037, allocations: 38.56 kB / 0.7394 GB, free: 44.15 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 3.767e-06/2.037, allocations: 0 / 0.7394 GB, free: 44.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.003856/2.041, allocations: 1.237 MB / 0.7407 GB, free: 42.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.724e-05/2.041, allocations: 132.5 kB / 0.7408 GB, free: 42.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001015/2.042, allocations: 0.609 MB / 0.7414 GB, free: 42.08 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.455e-05/2.043, allocations: 33.7 kB / 0.7414 GB, free: 42.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002815/2.043, allocations: 457.4 kB / 0.7418 GB, free: 41.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/2.043, allocations: 157.9 kB / 0.742 GB, free: 41.44 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.273e-05/2.043, allocations: 12 kB / 0.742 GB, free: 41.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.7e-05/2.043, allocations: 342.8 kB / 0.7423 GB, free: 41.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005812/2.044, allocations: 237.9 kB / 0.7426 GB, free: 40.85 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007253/2.044, allocations: 0.5462 MB / 0.7431 GB, free: 40.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000706/2.045, allocations: 323 kB / 0.7434 GB, free: 39.85 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/2.045, allocations: 0 / 0.7434 GB, free: 39.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001967/2.047, allocations: 0.8041 MB / 0.7442 GB, free: 39.03 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007459/2.048, allocations: 3.919 MB / 0.748 GB, free: 34.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.038e-05/2.048, allocations: 12 kB / 0.748 GB, free: 34.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001298/2.049, allocations: 124.7 kB / 0.7481 GB, free: 34.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002291/2.052, allocations: 235.7 kB / 0.7484 GB, free: 34.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009799/2.053, allocations: 1.212 MB / 0.7496 GB, free: 33.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001273/2.054, allocations: 63.97 kB / 0.7496 GB, free: 33.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/2.054, allocations: 43.94 kB / 0.7497 GB, free: 33.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/2.054, allocations: 8.734 kB / 0.7497 GB, free: 33.07 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001843/2.056, allocations: 0.7519 MB / 0.7504 GB, free: 32.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/2.056, allocations: 12 kB / 0.7504 GB, free: 32.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001145/2.057, allocations: 113.5 kB / 0.7505 GB, free: 32.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001552/2.059, allocations: 227.7 kB / 0.7507 GB, free: 31.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004222/2.059, allocations: 0.5914 MB / 0.7513 GB, free: 31.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008677/2.06, allocations: 59.83 kB / 0.7514 GB, free: 31.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.354e-05/2.06, allocations: 39.98 kB / 0.7514 GB, free: 31.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (98): * Single equations (assignments): 96 * 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.0002665/2.06, allocations: 168.8 kB / 0.7516 GB, free: 31.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002112/2.061, allocations: 75.14 kB / 0.7516 GB, free: 31 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002154/2.063, allocations: 0.7415 MB / 0.7524 GB, free: 30.24 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.386e-05/2.063, allocations: 11.88 kB / 0.7524 GB, free: 30.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/2.063, allocations: 0 / 0.7524 GB, free: 30.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.188e-06/2.063, allocations: 3.984 kB / 0.7524 GB, free: 30.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003176/2.066, allocations: 1.422 MB / 0.7538 GB, free: 28.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/2.066, allocations: 0 / 0.7538 GB, free: 28.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/2.067, allocations: 139.8 kB / 0.7539 GB, free: 28.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007223/2.068, allocations: 88.88 kB / 0.754 GB, free: 28.51 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.369e-05/2.068, allocations: 19.94 kB / 0.754 GB, free: 28.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006829/2.069, allocations: 1.177 MB / 0.7552 GB, free: 27.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/2.069, allocations: 3.984 kB / 0.7552 GB, free: 27.26 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002155/2.071, allocations: 1.004 MB / 0.7561 GB, free: 26.21 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003543/2.071, allocations: 160.1 kB / 0.7563 GB, free: 26.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001887/2.072, allocations: 19.98 kB / 0.7563 GB, free: 26.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008117/2.073, allocations: 39.95 kB / 0.7564 GB, free: 25.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001728/2.073, allocations: 52.48 kB / 0.7564 GB, free: 25.92 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.602e-05/2.073, allocations: 19.98 kB / 0.7564 GB, free: 25.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008344/2.074, allocations: 471.1 kB / 0.7569 GB, free: 25.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/2.074, allocations: 0 / 0.7569 GB, free: 25.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002799/2.076, allocations: 0.6323 MB / 0.7575 GB, free: 24.82 MB / 362.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 (55): * Single equations (assignments): 51 * 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.004233/2.081, allocations: 2.329 MB / 0.7598 GB, free: 22.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00371/2.084, allocations: 1.034 MB / 0.7608 GB, free: 21.42 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.737e-06/2.085, allocations: 1.562 kB / 0.7608 GB, free: 21.42 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001192/2.086, allocations: 326.1 kB / 0.7611 GB, free: 21.1 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002486/2.088, allocations: 282.4 kB / 0.7614 GB, free: 20.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004583/2.093, allocations: 1.505 MB / 0.7628 GB, free: 19.26 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004936/2.093, allocations: 0.9992 MB / 0.7638 GB, free: 18.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006474/2.094, allocations: 303.3 kB / 0.7641 GB, free: 17.94 MB / 362.7 MB Notification: Performance of SimCode: time 1.483e-06/2.094, allocations: 0 / 0.7641 GB, free: 17.94 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.481/5.575, allocations: 25.24 MB / 0.7887 GB, free: 71.9 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat