Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.966/1.966, allocations: 194.9 MB / 208 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.135e-05/4.146e-05, allocations: 4 kB / 255.5 MB, free: 2.621 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1204, allocations: 44.5 MB / 300 MB, free: 6.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9958/1.116, allocations: 319.3 MB / 0.6048 GB, free: 67.42 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003227/1.117, allocations: 91.06 kB / 0.6049 GB, free: 67.38 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9722/2.089, allocations: 190.2 MB / 0.7906 GB, free: 51.96 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.043e-06/2.089, allocations: 0 / 0.7906 GB, free: 51.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001303/2.089, allocations: 23.98 kB / 0.7906 GB, free: 51.94 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.005237/2.094, allocations: 1.294 MB / 0.7919 GB, free: 50.6 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.487e-05/2.094, allocations: 8.031 kB / 0.7919 GB, free: 50.59 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004675/2.095, allocations: 110.5 kB / 0.792 GB, free: 50.47 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007342/2.096, allocations: 118.8 kB / 0.7921 GB, free: 50.36 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002914/2.098, allocations: 0.7723 MB / 0.7928 GB, free: 49.54 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/2.099, allocations: 49.3 kB / 0.7929 GB, free: 49.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003377/2.099, allocations: 59.98 kB / 0.7929 GB, free: 49.44 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002762/2.102, allocations: 1.042 MB / 0.794 GB, free: 48.34 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.735e-05/2.102, allocations: 0 / 0.794 GB, free: 48.34 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001781/2.102, allocations: 27.98 kB / 0.794 GB, free: 48.31 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001544/2.102, allocations: 65.28 kB / 0.794 GB, free: 48.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002921/2.105, allocations: 0.9824 MB / 0.795 GB, free: 47.26 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0116/2.117, allocations: 4.4 MB / 0.7993 GB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/2.118, allocations: 0.5214 MB / 0.7998 GB, free: 42.07 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007584/2.119, allocations: 298 kB / 0.8001 GB, free: 41.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004053/2.123, allocations: 1.997 MB / 0.802 GB, free: 39.56 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.63e-05/2.123, allocations: 38.89 kB / 0.8021 GB, free: 39.51 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 5.22e-06/2.123, allocations: 0 / 0.8021 GB, free: 39.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.00521/2.129, allocations: 1.454 MB / 0.8035 GB, free: 38 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.134e-05/2.129, allocations: 162.2 kB / 0.8037 GB, free: 37.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001469/2.13, allocations: 0.7308 MB / 0.8044 GB, free: 37.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002025/2.13, allocations: 37.7 kB / 0.8044 GB, free: 37.03 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004374/2.131, allocations: 498.3 kB / 0.8049 GB, free: 36.53 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002885/2.131, allocations: 161.8 kB / 0.805 GB, free: 36.37 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/2.131, allocations: 20 kB / 0.8051 GB, free: 36.35 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002046/2.132, allocations: 398.7 kB / 0.8054 GB, free: 35.95 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008533/2.132, allocations: 293.9 kB / 0.8057 GB, free: 35.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001028/2.133, allocations: 0.6463 MB / 0.8063 GB, free: 34.85 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001087/2.135, allocations: 403.1 kB / 0.8067 GB, free: 34.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.148e-05/2.135, allocations: 4 kB / 0.8067 GB, free: 34.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.003078/2.138, allocations: 1.054 MB / 0.8078 GB, free: 33.39 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000974/2.139, allocations: 4.439 MB / 0.8121 GB, free: 28.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.354e-05/2.139, allocations: 8 kB / 0.8121 GB, free: 28.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003517/2.142, allocations: 317.4 kB / 0.8124 GB, free: 28.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001429/2.144, allocations: 191.7 kB / 0.8126 GB, free: 28.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001495/2.145, allocations: 1.327 MB / 0.8139 GB, free: 26.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001672/2.147, allocations: 68.03 kB / 0.814 GB, free: 26.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002623/2.148, allocations: 47.98 kB / 0.814 GB, free: 26.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/2.148, allocations: 4 kB / 0.814 GB, free: 26.59 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002609/2.15, allocations: 0.936 MB / 0.8149 GB, free: 25.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.745e-05/2.15, allocations: 12.91 kB / 0.8149 GB, free: 25.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003066/2.153, allocations: 297.4 kB / 0.8152 GB, free: 25.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001414/2.155, allocations: 183.7 kB / 0.8154 GB, free: 25.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001259/2.156, allocations: 1.288 MB / 0.8166 GB, free: 23.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001502/2.158, allocations: 64.08 kB / 0.8167 GB, free: 23.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002028/2.158, allocations: 44 kB / 0.8167 GB, free: 23.71 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.0003334/2.158, allocations: 172.5 kB / 0.8169 GB, free: 23.54 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002656/2.159, allocations: 90.97 kB / 0.817 GB, free: 23.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002567/2.161, allocations: 0.7599 MB / 0.8177 GB, free: 22.67 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/2.161, allocations: 8 kB / 0.8177 GB, free: 22.66 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/2.161, allocations: 0 / 0.8177 GB, free: 22.66 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/2.161, allocations: 7.922 kB / 0.8178 GB, free: 22.66 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004149/2.165, allocations: 1.532 MB / 0.8193 GB, free: 21.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/2.165, allocations: 3.938 kB / 0.8193 GB, free: 21.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007237/2.166, allocations: 71.91 kB / 0.8193 GB, free: 20.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002445/2.169, allocations: 281.5 kB / 0.8196 GB, free: 20.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001565/2.169, allocations: 19.95 kB / 0.8196 GB, free: 20.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001284/2.17, allocations: 1.296 MB / 0.8209 GB, free: 19.33 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/2.17, allocations: 0 / 0.8209 GB, free: 19.33 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00249/2.173, allocations: 1.091 MB / 0.8219 GB, free: 18.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004417/2.173, allocations: 175.9 kB / 0.8221 GB, free: 18.01 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002451/2.174, allocations: 19.95 kB / 0.8221 GB, free: 17.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/2.175, allocations: 40.03 kB / 0.8222 GB, free: 17.95 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/2.175, allocations: 48.38 kB / 0.8222 GB, free: 17.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.258e-05/2.175, allocations: 19.98 kB / 0.8222 GB, free: 17.88 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001129/2.176, allocations: 0.5538 MB / 0.8228 GB, free: 17.33 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.81e-07/2.176, allocations: 0 / 0.8228 GB, free: 17.33 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00389/2.18, allocations: 0.8039 MB / 0.8236 GB, free: 16.53 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.005757/2.186, allocations: 2.477 MB / 0.826 GB, free: 14.01 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00409/2.19, allocations: 1.218 MB / 0.8272 GB, free: 12.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.868e-06/2.19, allocations: 4.312 kB / 0.8272 GB, free: 12.79 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001443/2.191, allocations: 349.3 kB / 0.8275 GB, free: 12.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002828/2.194, allocations: 314.2 kB / 0.8278 GB, free: 12.15 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006208/2.201, allocations: 1.764 MB / 0.8295 GB, free: 10.33 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005831/2.201, allocations: 1.05 MB / 0.8306 GB, free: 9.254 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002451/2.204, allocations: 405.2 kB / 0.8309 GB, free: 8.855 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006844/2.204, allocations: 315.3 kB / 0.8312 GB, free: 8.547 MB / 410.7 MB Notification: Performance of SimCode: time 1.854e-06/2.204, allocations: 0 / 0.8312 GB, free: 8.547 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4811/2.686, allocations: 32.31 MB / 0.8628 GB, free: 73.06 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002218/2.686, allocations: 240.3 kB / 0.863 GB, free: 72.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.014/6.7, allocations: 0 / 0.863 GB, free: 72.75 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat