Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.953/1.953, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.847e-05/3.862e-05, allocations: 4 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1193, allocations: 44.51 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9715/1.091, allocations: 322.2 MB / 0.6076 GB, free: 65.25 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003093/1.091, allocations: 86.27 kB / 0.6077 GB, free: 65.2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.66/2.751, allocations: 321.4 MB / 0.9216 GB, free: 57.04 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.164e-06/2.751, allocations: 0 / 0.9216 GB, free: 57.04 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002326/2.751, allocations: 46.88 kB / 0.9217 GB, free: 57.04 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.008605/2.76, allocations: 2.042 MB / 0.9236 GB, free: 56.1 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/2.76, allocations: 10.72 kB / 0.9237 GB, free: 56.1 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009133/2.761, allocations: 186.9 kB / 0.9238 GB, free: 56.06 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001381/2.762, allocations: 198.3 kB / 0.924 GB, free: 55.97 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005112/2.767, allocations: 1.243 MB / 0.9252 GB, free: 55.56 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002054/2.768, allocations: 97.12 kB / 0.9253 GB, free: 55.55 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007206/2.768, allocations: 127.2 kB / 0.9255 GB, free: 55.55 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005855/2.774, allocations: 1.904 MB / 0.9273 GB, free: 54.92 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.773e-05/2.774, allocations: 4.078 kB / 0.9273 GB, free: 54.92 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003268/2.775, allocations: 56.97 kB / 0.9274 GB, free: 54.88 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002345/2.775, allocations: 113.8 kB / 0.9275 GB, free: 54.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005941/2.781, allocations: 1.902 MB / 0.9293 GB, free: 54.21 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0208/2.802, allocations: 7.616 MB / 0.9368 GB, free: 49.27 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003029/2.805, allocations: 1.131 MB / 0.9379 GB, free: 48.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001992/2.807, allocations: 0.7241 MB / 0.9386 GB, free: 48.56 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008449/2.815, allocations: 3.379 MB / 0.9419 GB, free: 46.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.851e-05/2.815, allocations: 48.81 kB / 0.9419 GB, free: 46.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 4.548e-06/2.815, allocations: 0 / 0.9419 GB, free: 46.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.01635/2.832, allocations: 4.076 MB / 0.9459 GB, free: 44.62 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.779e-05/2.832, allocations: 169.2 kB / 0.9461 GB, free: 44.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002788/2.835, allocations: 1.163 MB / 0.9472 GB, free: 43.96 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004769/2.835, allocations: 67.75 kB / 0.9473 GB, free: 43.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000657/2.836, allocations: 0.6883 MB / 0.9479 GB, free: 43.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007489/2.837, allocations: 473.3 kB / 0.9484 GB, free: 42.95 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002153/2.837, allocations: 35.91 kB / 0.9484 GB, free: 42.92 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001632/2.837, allocations: 388.3 kB / 0.9488 GB, free: 42.58 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002105/2.839, allocations: 0.7271 MB / 0.9495 GB, free: 42.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002714/2.842, allocations: 1.176 MB / 0.9507 GB, free: 41.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002461/2.845, allocations: 0.8718 MB / 0.9515 GB, free: 40.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.741e-05/2.845, allocations: 4 kB / 0.9515 GB, free: 40.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.007228/2.852, allocations: 2.254 MB / 0.9537 GB, free: 38.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001119/2.853, allocations: 5.141 MB / 0.9587 GB, free: 33.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.306e-05/2.853, allocations: 14.66 kB / 0.9587 GB, free: 33.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009512/2.863, allocations: 0.9404 MB / 0.9597 GB, free: 32.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002861/2.865, allocations: 360.5 kB / 0.96 GB, free: 32.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003598/2.869, allocations: 2.873 MB / 0.9628 GB, free: 29.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003091/2.872, allocations: 136.1 kB / 0.9629 GB, free: 29.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005647/2.873, allocations: 85.52 kB / 0.963 GB, free: 29.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/2.873, allocations: 12.88 kB / 0.963 GB, free: 29.2 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006322/2.879, allocations: 2.062 MB / 0.9651 GB, free: 27.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.755e-05/2.879, allocations: 15.94 kB / 0.9651 GB, free: 27.37 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007302/2.887, allocations: 0.6618 MB / 0.9657 GB, free: 26.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002919/2.89, allocations: 363.9 kB / 0.9661 GB, free: 26.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002644/2.892, allocations: 2.614 MB / 0.9686 GB, free: 23.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002403/2.895, allocations: 141.1 kB / 0.9688 GB, free: 23.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000423/2.895, allocations: 86.73 kB / 0.9688 GB, free: 23.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (207): * Single equations (assignments): 203 * 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.00069/2.896, allocations: 218.2 kB / 0.969 GB, free: 23.58 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005767/2.897, allocations: 162 kB / 0.9692 GB, free: 23.42 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007899/2.904, allocations: 2.312 MB / 0.9715 GB, free: 21.46 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.2e-05/2.905, allocations: 16 kB / 0.9715 GB, free: 21.44 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/2.905, allocations: 3.062 kB / 0.9715 GB, free: 21.44 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.878e-05/2.905, allocations: 14.92 kB / 0.9715 GB, free: 21.44 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01184/2.916, allocations: 3.894 MB / 0.9753 GB, free: 17.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/2.917, allocations: 4.188 kB / 0.9753 GB, free: 17.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002187/2.919, allocations: 243.6 kB / 0.9755 GB, free: 17.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0069/2.926, allocations: 0.8722 MB / 0.9764 GB, free: 16.53 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004332/2.926, allocations: 43.97 kB / 0.9764 GB, free: 16.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002985/2.929, allocations: 2.814 MB / 0.9792 GB, free: 13.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.293e-06/2.929, allocations: 7.969 kB / 0.9792 GB, free: 13.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008288/2.938, allocations: 3.177 MB / 0.9823 GB, free: 10.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008101/2.938, allocations: 258.9 kB / 0.9825 GB, free: 10.03 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008063/2.939, allocations: 42.94 kB / 0.9826 GB, free: 9.992 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002426/2.942, allocations: 111.4 kB / 0.9827 GB, free: 9.887 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005967/2.942, allocations: 153 kB / 0.9828 GB, free: 9.738 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002476/2.943, allocations: 55.97 kB / 0.9829 GB, free: 9.684 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002071/2.945, allocations: 0.8822 MB / 0.9837 GB, free: 8.801 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.61e-07/2.945, allocations: 0 / 0.9837 GB, free: 8.801 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00675/2.952, allocations: 1.362 MB / 0.9851 GB, free: 7.438 MB / 410.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.01279/2.964, allocations: 5.256 MB / 0.9902 GB, free: 2.215 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.3072/3.272, allocations: 2.926 MB / 0.9931 GB, free: 54.47 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.271e-05/3.272, allocations: 1.031 kB / 0.9931 GB, free: 54.47 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004036/3.276, allocations: 1.033 MB / 0.9941 GB, free: 54.47 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006271/3.282, allocations: 0.6593 MB / 0.9947 GB, free: 54.47 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01239/3.295, allocations: 3.599 MB / 0.9982 GB, free: 53.78 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001503/3.296, allocations: 1.422 MB / 0.9996 GB, free: 53.06 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001911/3.298, allocations: 0.67 MB / 1 GB, free: 53.06 MB / 410.7 MB Notification: Performance of SimCode: time 1.603e-06/3.298, allocations: 0 / 1 GB, free: 53.06 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.993/7.292, allocations: 66.31 MB / 1.065 GB, free: 47.78 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.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat