Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.84/1.84, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.429e-05/3.433e-05, allocations: 8 kB / 255.5 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09277/0.09284, allocations: 44.51 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9651/1.058, allocations: 323.6 MB / 0.609 GB, free: 64.62 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003557/1.058, allocations: 94.19 kB / 0.6091 GB, free: 64.57 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8732/1.932, allocations: 164.6 MB / 0.7698 GB, free: 74.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.845e-06/1.932, allocations: 0 / 0.7698 GB, free: 74.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.734e-05/1.932, allocations: 31.77 kB / 0.7698 GB, free: 74.14 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003219/1.935, allocations: 1.099 MB / 0.7709 GB, free: 73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/1.935, allocations: 8.031 kB / 0.7709 GB, free: 72.99 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002062/1.935, allocations: 108.8 kB / 0.771 GB, free: 72.88 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005214/1.936, allocations: 102.9 kB / 0.7711 GB, free: 72.78 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001962/1.938, allocations: 0.6559 MB / 0.7718 GB, free: 72.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.851e-05/1.938, allocations: 44.83 kB / 0.7718 GB, free: 72.05 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/1.938, allocations: 61.7 kB / 0.7719 GB, free: 71.99 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001919/1.94, allocations: 0.8573 MB / 0.7727 GB, free: 71.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.946e-05/1.94, allocations: 0 / 0.7727 GB, free: 71.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001196/1.94, allocations: 31.67 kB / 0.7727 GB, free: 71.06 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.471e-05/1.94, allocations: 45.25 kB / 0.7728 GB, free: 71.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001751/1.942, allocations: 0.7599 MB / 0.7735 GB, free: 70.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007742/1.95, allocations: 3.835 MB / 0.7773 GB, free: 66.19 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001349/1.951, allocations: 483.4 kB / 0.7777 GB, free: 65.71 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005563/1.952, allocations: 237.5 kB / 0.778 GB, free: 65.47 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003787/1.956, allocations: 1.967 MB / 0.7799 GB, free: 63.31 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/1.956, allocations: 34.55 kB / 0.7799 GB, free: 63.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 4.188e-06/1.956, allocations: 3.938 kB / 0.7799 GB, free: 63.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.00404/1.96, allocations: 1.225 MB / 0.7811 GB, free: 61.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/1.96, allocations: 136.5 kB / 0.7812 GB, free: 61.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001092/1.961, allocations: 0.609 MB / 0.7818 GB, free: 61.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001669/1.961, allocations: 37.7 kB / 0.7819 GB, free: 61.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003165/1.961, allocations: 460.6 kB / 0.7823 GB, free: 60.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001792/1.962, allocations: 149.3 kB / 0.7825 GB, free: 60.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.428e-05/1.962, allocations: 16 kB / 0.7825 GB, free: 60.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.348e-05/1.962, allocations: 346.8 kB / 0.7828 GB, free: 60.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006724/1.963, allocations: 245.8 kB / 0.783 GB, free: 59.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007603/1.963, allocations: 0.5424 MB / 0.7836 GB, free: 59.27 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007578/1.964, allocations: 319 kB / 0.7839 GB, free: 58.96 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/1.964, allocations: 4 kB / 0.7839 GB, free: 58.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002234/1.966, allocations: 0.8046 MB / 0.7847 GB, free: 58.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008374/1.967, allocations: 3.928 MB / 0.7885 GB, free: 53.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.373e-05/1.967, allocations: 12 kB / 0.7885 GB, free: 53.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001412/1.969, allocations: 116.8 kB / 0.7886 GB, free: 53.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00242/1.971, allocations: 243.6 kB / 0.7888 GB, free: 53.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001047/1.972, allocations: 1.209 MB / 0.79 GB, free: 52.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001431/1.974, allocations: 63.81 kB / 0.7901 GB, free: 52.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001918/1.974, allocations: 44.05 kB / 0.7901 GB, free: 52.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/1.974, allocations: 4 kB / 0.7901 GB, free: 52.17 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001974/1.976, allocations: 0.7486 MB / 0.7909 GB, free: 51.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-05/1.976, allocations: 12 kB / 0.7909 GB, free: 51.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/1.977, allocations: 108.8 kB / 0.791 GB, free: 51.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001723/1.979, allocations: 239.6 kB / 0.7912 GB, free: 51.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004162/1.979, allocations: 0.5874 MB / 0.7918 GB, free: 50.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008889/1.98, allocations: 59.94 kB / 0.7918 GB, free: 50.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-05/1.981, allocations: 43.98 kB / 0.7919 GB, free: 50.35 MB / 410.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.0002724/1.981, allocations: 162.6 kB / 0.792 GB, free: 50.19 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002128/1.981, allocations: 71.16 kB / 0.7921 GB, free: 50.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002157/1.983, allocations: 0.7485 MB / 0.7928 GB, free: 49.36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-05/1.983, allocations: 4 kB / 0.7928 GB, free: 49.35 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/1.983, allocations: 4 kB / 0.7928 GB, free: 49.35 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/1.983, allocations: 3.984 kB / 0.7928 GB, free: 49.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003164/1.986, allocations: 1.42 MB / 0.7942 GB, free: 47.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/1.986, allocations: 0 / 0.7942 GB, free: 47.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001266/1.988, allocations: 143.8 kB / 0.7944 GB, free: 47.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007179/1.988, allocations: 92.78 kB / 0.7945 GB, free: 47.63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.106e-05/1.989, allocations: 8 kB / 0.7945 GB, free: 47.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006861/1.989, allocations: 1.181 MB / 0.7956 GB, free: 46.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/1.989, allocations: 0 / 0.7956 GB, free: 46.39 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002088/1.991, allocations: 1 MB / 0.7966 GB, free: 45.35 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002998/1.992, allocations: 164.1 kB / 0.7968 GB, free: 45.17 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001744/1.992, allocations: 16 kB / 0.7968 GB, free: 45.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007919/1.993, allocations: 39.91 kB / 0.7968 GB, free: 45.11 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001596/1.993, allocations: 48.48 kB / 0.7969 GB, free: 45.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.185e-05/1.993, allocations: 23.98 kB / 0.7969 GB, free: 45.04 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007989/1.994, allocations: 475.1 kB / 0.7973 GB, free: 44.58 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.994, allocations: 0 / 0.7973 GB, free: 44.58 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002717/1.997, allocations: 0.6322 MB / 0.7979 GB, free: 43.95 MB / 410.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.004155/2.001, allocations: 2.334 MB / 0.8002 GB, free: 41.61 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00347/2.004, allocations: 1.039 MB / 0.8012 GB, free: 40.58 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/2.004, allocations: 0 / 0.8012 GB, free: 40.58 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001115/2.005, allocations: 329.8 kB / 0.8016 GB, free: 40.26 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002358/2.008, allocations: 282.3 kB / 0.8018 GB, free: 39.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004714/2.013, allocations: 1.505 MB / 0.8033 GB, free: 38.42 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004956/2.013, allocations: 0.9992 MB / 0.8043 GB, free: 37.39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007316/2.014, allocations: 295.3 kB / 0.8046 GB, free: 37.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.222e-06/2.014, allocations: 0 / 0.8046 GB, free: 37.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.397/5.41, allocations: 25.24 MB / 0.8292 GB, free: 11.86 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.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat