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.998/1.998, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.285e-05/3.298e-05, allocations: 0 / 255.4 MB, free: 2.633 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09608/0.09616, allocations: 44.51 MB / 300 MB, free: 6.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.085/1.181, allocations: 319.3 MB / 0.6047 GB, free: 67.94 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003385/1.181, allocations: 85.52 kB / 0.6048 GB, free: 67.89 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.006/2.187, allocations: 190.2 MB / 0.7905 GB, free: 52.44 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.734e-06/2.187, allocations: 0 / 0.7905 GB, free: 52.44 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.725e-05/2.187, allocations: 24 kB / 0.7906 GB, free: 52.41 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.004119/2.191, allocations: 1.301 MB / 0.7918 GB, free: 51.06 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/2.192, allocations: 8.031 kB / 0.7918 GB, free: 51.05 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002843/2.192, allocations: 110.5 kB / 0.7919 GB, free: 50.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006107/2.192, allocations: 118.8 kB / 0.7921 GB, free: 50.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002587/2.195, allocations: 0.7685 MB / 0.7928 GB, free: 50.01 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.011e-05/2.195, allocations: 49.3 kB / 0.7928 GB, free: 49.96 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001912/2.195, allocations: 59.98 kB / 0.7929 GB, free: 49.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002394/2.198, allocations: 1.047 MB / 0.7939 GB, free: 48.8 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.417e-05/2.198, allocations: 7.938 kB / 0.7939 GB, free: 48.79 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001451/2.198, allocations: 31.97 kB / 0.794 GB, free: 48.76 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001315/2.198, allocations: 57.28 kB / 0.794 GB, free: 48.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002369/2.201, allocations: 0.9928 MB / 0.795 GB, free: 47.71 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009842/2.21, allocations: 4.4 MB / 0.7993 GB, free: 43.04 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/2.212, allocations: 0.5324 MB / 0.7998 GB, free: 42.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006379/2.212, allocations: 290.1 kB / 0.8001 GB, free: 42.22 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003482/2.216, allocations: 1.997 MB / 0.802 GB, free: 40 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/2.216, allocations: 46.81 kB / 0.8021 GB, free: 39.95 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 4.198e-06/2.216, allocations: 0 / 0.8021 GB, free: 39.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.004532/2.221, allocations: 1.442 MB / 0.8035 GB, free: 38.45 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.2e-05/2.221, allocations: 166.2 kB / 0.8036 GB, free: 38.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/2.222, allocations: 0.7386 MB / 0.8044 GB, free: 37.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001073/2.222, allocations: 41.64 kB / 0.8044 GB, free: 37.46 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003827/2.222, allocations: 494.3 kB / 0.8049 GB, free: 36.96 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001703/2.223, allocations: 165.8 kB / 0.805 GB, free: 36.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.139e-05/2.223, allocations: 16 kB / 0.8051 GB, free: 36.79 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/2.223, allocations: 398.7 kB / 0.8054 GB, free: 36.39 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007373/2.224, allocations: 297.9 kB / 0.8057 GB, free: 36.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009025/2.225, allocations: 0.6483 MB / 0.8063 GB, free: 35.28 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009112/2.225, allocations: 407 kB / 0.8067 GB, free: 34.88 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/2.225, allocations: 4 kB / 0.8067 GB, free: 34.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.00266/2.228, allocations: 1.081 MB / 0.8078 GB, free: 33.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008976/2.229, allocations: 4.439 MB / 0.8121 GB, free: 28.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.274e-05/2.229, allocations: 12 kB / 0.8121 GB, free: 28.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003282/2.232, allocations: 317.4 kB / 0.8124 GB, free: 28.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/2.234, allocations: 195.7 kB / 0.8126 GB, free: 28.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001377/2.235, allocations: 1.319 MB / 0.8139 GB, free: 27.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001468/2.237, allocations: 64.09 kB / 0.814 GB, free: 27.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/2.237, allocations: 47.98 kB / 0.814 GB, free: 26.99 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/2.237, allocations: 4 kB / 0.814 GB, free: 26.99 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002349/2.239, allocations: 0.9717 MB / 0.815 GB, free: 26.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.925e-05/2.239, allocations: 12.16 kB / 0.815 GB, free: 26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002904/2.242, allocations: 289.4 kB / 0.8153 GB, free: 25.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/2.244, allocations: 187.7 kB / 0.8154 GB, free: 25.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001196/2.245, allocations: 1.292 MB / 0.8167 GB, free: 24.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/2.246, allocations: 60.02 kB / 0.8168 GB, free: 24.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/2.246, allocations: 44 kB / 0.8168 GB, free: 24.08 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.0003034/2.247, allocations: 176.5 kB / 0.817 GB, free: 23.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001963/2.247, allocations: 86.97 kB / 0.8171 GB, free: 23.82 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002453/2.249, allocations: 0.765 MB / 0.8178 GB, free: 23.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.898e-06/2.249, allocations: 8 kB / 0.8178 GB, free: 23.03 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/2.249, allocations: 0 / 0.8178 GB, free: 23.03 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/2.249, allocations: 4.219 kB / 0.8178 GB, free: 23.03 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003628/2.253, allocations: 1.536 MB / 0.8193 GB, free: 21.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/2.253, allocations: 3.938 kB / 0.8193 GB, free: 21.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000703/2.254, allocations: 79.91 kB / 0.8194 GB, free: 21.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002276/2.256, allocations: 293.4 kB / 0.8197 GB, free: 21.05 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.915e-05/2.256, allocations: 15.95 kB / 0.8197 GB, free: 21.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001208/2.257, allocations: 1.292 MB / 0.821 GB, free: 19.69 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/2.257, allocations: 3.938 kB / 0.821 GB, free: 19.69 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002328/2.26, allocations: 1.079 MB / 0.822 GB, free: 18.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003456/2.26, allocations: 180 kB / 0.8222 GB, free: 18.37 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001962/2.26, allocations: 15.95 kB / 0.8222 GB, free: 18.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008537/2.261, allocations: 47.97 kB / 0.8222 GB, free: 18.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001815/2.261, allocations: 48.3 kB / 0.8223 GB, free: 18.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.41e-05/2.262, allocations: 16 kB / 0.8223 GB, free: 18.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001007/2.263, allocations: 0.5577 MB / 0.8229 GB, free: 17.69 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.81e-07/2.263, allocations: 0 / 0.8229 GB, free: 17.69 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003243/2.266, allocations: 0.8039 MB / 0.8236 GB, free: 16.89 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.005057/2.271, allocations: 2.462 MB / 0.826 GB, free: 14.38 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003792/2.275, allocations: 1.26 MB / 0.8273 GB, free: 13.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/2.275, allocations: 4 kB / 0.8273 GB, free: 13.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00131/2.276, allocations: 343.4 kB / 0.8276 GB, free: 12.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002564/2.279, allocations: 307.8 kB / 0.8279 GB, free: 12.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005559/2.284, allocations: 1.765 MB / 0.8296 GB, free: 10.67 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006067/2.285, allocations: 1.054 MB / 0.8306 GB, free: 9.59 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002332/2.287, allocations: 410.8 kB / 0.831 GB, free: 9.188 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005643/2.288, allocations: 319.3 kB / 0.8313 GB, free: 8.875 MB / 410.7 MB Notification: Performance of SimCode: time 1.222e-06/2.288, allocations: 0 / 0.8313 GB, free: 8.875 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3833/2.671, allocations: 32.35 MB / 0.8629 GB, free: 73.51 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003073/2.672, allocations: 246.6 kB / 0.8632 GB, free: 73.19 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.241/6.913, allocations: 3.562 kB / 0.8632 GB, free: 73.19 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