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.985/1.985, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.407e-05/2.405e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3, allocations: 44.5 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9755/1.276, allocations: 323 MB / 0.6027 GB, free: 110 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000405/1.276, allocations: 95.33 kB / 0.6028 GB, free: 110 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8306/2.107, allocations: 163.5 MB / 0.7625 GB, free: 95.81 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.265e-06/2.107, allocations: 2.531 kB / 0.7625 GB, free: 95.81 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.634e-05/2.107, allocations: 21.05 kB / 0.7625 GB, free: 95.81 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.003529/2.11, allocations: 1.112 MB / 0.7636 GB, free: 95.22 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/2.11, allocations: 7.906 kB / 0.7636 GB, free: 95.22 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007628/2.111, allocations: 106.5 kB / 0.7637 GB, free: 95.18 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002201/2.113, allocations: 0.6633 MB / 0.7643 GB, free: 94.93 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.475e-05/2.114, allocations: 15.59 kB / 0.7644 GB, free: 94.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001934/2.114, allocations: 34.28 kB / 0.7644 GB, free: 94.93 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001764/2.116, allocations: 0.6984 MB / 0.7651 GB, free: 94.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001688/2.117, allocations: 0.7845 MB / 0.7658 GB, free: 94.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.385e-05/2.117, allocations: 3.281 kB / 0.7658 GB, free: 94.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000109/2.117, allocations: 11.16 kB / 0.7659 GB, free: 94.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001012/2.118, allocations: 42.03 kB / 0.7659 GB, free: 94.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007308/2.125, allocations: 3.72 MB / 0.7695 GB, free: 92.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/2.126, allocations: 460.4 kB / 0.77 GB, free: 92.6 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004664/2.126, allocations: 227 kB / 0.7702 GB, free: 92.59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003456/2.13, allocations: 1.941 MB / 0.7721 GB, free: 91.35 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.198e-05/2.13, allocations: 44.53 kB / 0.7721 GB, free: 91.31 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 2.996e-06/2.13, allocations: 3.844 kB / 0.7721 GB, free: 91.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.009746/2.14, allocations: 1.67 MB / 0.7738 GB, free: 90.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.496e-05/2.14, allocations: 137.4 kB / 0.7739 GB, free: 90.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000853/2.141, allocations: 0.5114 MB / 0.7744 GB, free: 90.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001045/2.141, allocations: 36.48 kB / 0.7744 GB, free: 90.58 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003094/2.141, allocations: 470.9 kB / 0.7749 GB, free: 90.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/2.141, allocations: 149.1 kB / 0.775 GB, free: 90.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.212e-05/2.141, allocations: 0 / 0.775 GB, free: 90.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.459e-05/2.142, allocations: 339 kB / 0.7753 GB, free: 89.87 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005205/2.142, allocations: 229.8 kB / 0.7756 GB, free: 89.87 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006759/2.143, allocations: 0.5333 MB / 0.7761 GB, free: 89.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007157/2.15, allocations: 0.9258 MB / 0.777 GB, free: 89.47 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.959e-05/2.15, allocations: 3.875 kB / 0.777 GB, free: 89.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.008621/2.159, allocations: 1.38 MB / 0.7783 GB, free: 89.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007907/2.159, allocations: 3.921 MB / 0.7822 GB, free: 85.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.161e-05/2.16, allocations: 10.09 kB / 0.7822 GB, free: 85.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000317/2.16, allocations: 58.56 kB / 0.7822 GB, free: 85.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002129/2.162, allocations: 242 kB / 0.7825 GB, free: 85.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001519/2.164, allocations: 1.282 MB / 0.7837 GB, free: 84.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001165/2.165, allocations: 50.53 kB / 0.7838 GB, free: 84.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.781e-05/2.165, allocations: 42.59 kB / 0.7838 GB, free: 84.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/2.165, allocations: 7.766 kB / 0.7838 GB, free: 84.2 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008011/2.173, allocations: 1.285 MB / 0.7851 GB, free: 84.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/2.173, allocations: 11.16 kB / 0.7851 GB, free: 84.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002/2.173, allocations: 64.2 kB / 0.7851 GB, free: 84.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001535/2.175, allocations: 221.8 kB / 0.7853 GB, free: 84.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008673/2.176, allocations: 0.6433 MB / 0.786 GB, free: 83.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009889/2.177, allocations: 41.59 kB / 0.786 GB, free: 83.65 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/2.177, allocations: 42.09 kB / 0.786 GB, free: 83.65 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.0003008/2.177, allocations: 141.5 kB / 0.7862 GB, free: 83.54 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003353/2.18, allocations: 0.6298 MB / 0.7868 GB, free: 83.45 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/2.181, allocations: 69.66 kB / 0.7869 GB, free: 83.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003013/2.184, allocations: 0.7879 MB / 0.7876 GB, free: 83.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-05/2.184, allocations: 14.8 kB / 0.7876 GB, free: 83.32 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/2.184, allocations: 3.844 kB / 0.7877 GB, free: 83.32 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/2.184, allocations: 3.375 kB / 0.7877 GB, free: 83.32 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004114/2.188, allocations: 1.38 MB / 0.789 GB, free: 83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/2.188, allocations: 7.219 kB / 0.789 GB, free: 83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001221/2.189, allocations: 142.8 kB / 0.7891 GB, free: 83 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000242/2.189, allocations: 41.09 kB / 0.7892 GB, free: 83 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.777e-05/2.189, allocations: 15.55 kB / 0.7892 GB, free: 82.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/2.19, allocations: 1.209 MB / 0.7904 GB, free: 81.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/2.191, allocations: 6.406 kB / 0.7904 GB, free: 81.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00298/2.194, allocations: 1.046 MB / 0.7914 GB, free: 81.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002944/2.194, allocations: 149.9 kB / 0.7916 GB, free: 81.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000198/2.194, allocations: 7.062 kB / 0.7916 GB, free: 81.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007236/2.195, allocations: 28.94 kB / 0.7916 GB, free: 81.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000174/2.195, allocations: 53.66 kB / 0.7916 GB, free: 81.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.241e-05/2.195, allocations: 21.12 kB / 0.7917 GB, free: 81.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006292/2.196, allocations: 395.8 kB / 0.792 GB, free: 81.39 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.51e-07/2.196, allocations: 0 / 0.792 GB, free: 81.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002696/2.198, allocations: 0.5881 MB / 0.7926 GB, free: 81.29 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.005349/2.204, allocations: 2.35 MB / 0.7949 GB, free: 80.19 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003363/2.207, allocations: 1.002 MB / 0.7959 GB, free: 80.18 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.184e-06/2.207, allocations: 0 / 0.7959 GB, free: 80.18 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/2.208, allocations: 315.2 kB / 0.7962 GB, free: 80.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002309/2.211, allocations: 267.2 kB / 0.7964 GB, free: 80.15 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004579/2.215, allocations: 1.447 MB / 0.7978 GB, free: 79.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005228/2.216, allocations: 0.9994 MB / 0.7988 GB, free: 78.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007226/2.217, allocations: 295.1 kB / 0.7991 GB, free: 78.95 MB / 410.7 MB Notification: Performance of SimCode: time 9.82e-07/2.217, allocations: 0 / 0.7991 GB, free: 78.95 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.205/5.421, allocations: 25.01 MB / 0.8235 GB, free: 70.92 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