Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.264/2.264, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.5e-05/3.538e-05, allocations: 7.234 kB / 292.2 MB, free: 8.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1291, allocations: 50.41 MB / 342.6 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.165/1.294, allocations: 327.5 MB / 0.6545 GB, free: 28.68 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/1.294, allocations: 94.67 kB / 0.6546 GB, free: 28.63 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.818/3.112, allocations: 331.1 MB / 0.9779 GB, free: 68.41 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.296e-06/3.112, allocations: 0 / 0.9779 GB, free: 68.41 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001999/3.112, allocations: 50 kB / 0.9779 GB, free: 68.4 MB / 458.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.008598/3.121, allocations: 2.042 MB / 0.9799 GB, free: 67.37 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/3.121, allocations: 11.62 kB / 0.9799 GB, free: 67.37 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007919/3.122, allocations: 179.6 kB / 0.9801 GB, free: 67.26 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001219/3.123, allocations: 197 kB / 0.9803 GB, free: 67.17 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004459/3.127, allocations: 1.192 MB / 0.9814 GB, free: 66.53 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/3.128, allocations: 103.9 kB / 0.9815 GB, free: 66.49 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005831/3.128, allocations: 115.8 kB / 0.9816 GB, free: 66.46 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005291/3.133, allocations: 1.912 MB / 0.9835 GB, free: 65.6 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.185e-05/3.134, allocations: 7.719 kB / 0.9835 GB, free: 65.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002922/3.134, allocations: 54.05 kB / 0.9836 GB, free: 65.57 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000241/3.134, allocations: 118 kB / 0.9837 GB, free: 65.55 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005167/3.139, allocations: 1.902 MB / 0.9855 GB, free: 64.89 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01908/3.158, allocations: 7.677 MB / 0.993 GB, free: 59.95 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002938/3.161, allocations: 1.143 MB / 0.9942 GB, free: 59.52 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001771/3.163, allocations: 0.7294 MB / 0.9949 GB, free: 59.24 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007802/3.171, allocations: 3.472 MB / 0.9983 GB, free: 56.94 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.333e-05/3.171, allocations: 53.09 kB / 0.9983 GB, free: 56.89 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 5.25e-06/3.171, allocations: 0 / 0.9983 GB, free: 56.89 MB / 458.7 MB Notification: Performance of matching and sorting (n=134): time 0.0152/3.186, allocations: 4.135 MB / 1.002 GB, free: 55.22 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.036e-05/3.187, allocations: 169.8 kB / 1.003 GB, free: 55.04 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002568/3.189, allocations: 1.243 MB / 1.004 GB, free: 54.54 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004745/3.19, allocations: 53.48 kB / 1.004 GB, free: 54.49 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006509/3.19, allocations: 0.7016 MB / 1.004 GB, free: 53.94 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006139/3.191, allocations: 468.8 kB / 1.005 GB, free: 53.58 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/3.191, allocations: 35.62 kB / 1.005 GB, free: 53.55 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/3.191, allocations: 381.2 kB / 1.005 GB, free: 53.22 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00196/3.193, allocations: 0.7356 MB / 1.006 GB, free: 52.76 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00214/3.195, allocations: 1.126 MB / 1.007 GB, free: 51.55 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002128/3.198, allocations: 0.8649 MB / 1.008 GB, free: 50.71 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.175e-05/3.198, allocations: 4 kB / 1.008 GB, free: 50.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.006114/3.204, allocations: 2.326 MB / 1.01 GB, free: 48.37 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009732/3.205, allocations: 4.341 MB / 1.014 GB, free: 43.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.121e-05/3.205, allocations: 12 kB / 1.014 GB, free: 43.79 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009543/3.214, allocations: 0.9353 MB / 1.015 GB, free: 42.87 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00283/3.217, allocations: 339.5 kB / 1.016 GB, free: 42.54 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003537/3.221, allocations: 2.903 MB / 1.019 GB, free: 39.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003202/3.224, allocations: 134.3 kB / 1.019 GB, free: 39.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004946/3.225, allocations: 79.97 kB / 1.019 GB, free: 39.34 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/3.225, allocations: 7.938 kB / 1.019 GB, free: 39.33 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005557/3.23, allocations: 2.043 MB / 1.021 GB, free: 37.29 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.121e-05/3.23, allocations: 12 kB / 1.021 GB, free: 37.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0074/3.238, allocations: 0.6718 MB / 1.021 GB, free: 36.61 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002952/3.241, allocations: 357.6 kB / 1.022 GB, free: 36.26 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002722/3.244, allocations: 2.638 MB / 1.024 GB, free: 33.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003013/3.247, allocations: 135.3 kB / 1.024 GB, free: 33.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005028/3.247, allocations: 79.97 kB / 1.025 GB, free: 33.32 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (200): * Single equations (assignments): 196 * 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.0006741/3.248, allocations: 212.8 kB / 1.025 GB, free: 33.11 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006005/3.248, allocations: 169.9 kB / 1.025 GB, free: 32.94 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007217/3.256, allocations: 2.324 MB / 1.027 GB, free: 30.62 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.253e-05/3.256, allocations: 26.77 kB / 1.027 GB, free: 30.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/3.256, allocations: 7.891 kB / 1.027 GB, free: 30.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.728e-05/3.256, allocations: 7.969 kB / 1.027 GB, free: 30.59 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01141/3.267, allocations: 3.974 MB / 1.031 GB, free: 26.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/3.267, allocations: 4.656 kB / 1.031 GB, free: 26.56 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002167/3.27, allocations: 243.4 kB / 1.031 GB, free: 26.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006843/3.276, allocations: 0.8635 MB / 1.032 GB, free: 25.46 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004621/3.277, allocations: 43.97 kB / 1.032 GB, free: 25.42 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003051/3.28, allocations: 2.845 MB / 1.035 GB, free: 22.48 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/3.28, allocations: 4.031 kB / 1.035 GB, free: 22.47 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007901/3.288, allocations: 3.199 MB / 1.038 GB, free: 19.19 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009514/3.289, allocations: 278.7 kB / 1.038 GB, free: 18.89 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006634/3.29, allocations: 39.98 kB / 1.038 GB, free: 18.86 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002457/3.292, allocations: 111.8 kB / 1.039 GB, free: 18.75 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005916/3.293, allocations: 149 kB / 1.039 GB, free: 18.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002513/3.293, allocations: 59.97 kB / 1.039 GB, free: 18.54 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002023/3.295, allocations: 0.954 MB / 1.04 GB, free: 17.59 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.51e-07/3.295, allocations: 0 / 1.04 GB, free: 17.59 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006499/3.302, allocations: 1.392 MB / 1.041 GB, free: 16.2 MB / 458.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.01227/3.314, allocations: 5.317 MB / 1.046 GB, free: 10.94 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009227/3.323, allocations: 2.966 MB / 1.049 GB, free: 7.977 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/3.323, allocations: 4 kB / 1.049 GB, free: 7.973 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003073/3.326, allocations: 1.045 MB / 1.05 GB, free: 6.934 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006524/3.333, allocations: 0.738 MB / 1.051 GB, free: 6.219 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01126/3.344, allocations: 3.522 MB / 1.054 GB, free: 2.664 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00109/3.345, allocations: 1.433 MB / 1.056 GB, free: 1.199 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005015/3.35, allocations: 0.8332 MB / 1.057 GB, free: 412 kB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3598/3.71, allocations: 0.6338 MB / 1.057 GB, free: 63.09 MB / 458.7 MB Notification: Performance of SimCode: time 1.643e-06/3.71, allocations: 0 / 1.057 GB, free: 63.09 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1854/3.896, allocations: 67.32 MB / 1.123 GB, free: 60.2 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003039/3.896, allocations: 242.5 kB / 1.123 GB, free: 59.88 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.405/10.3, allocations: 0 / 1.123 GB, free: 59.88 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat