Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.927/1.927, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.44e-05/3.45e-05, allocations: 4 kB / 255.5 MB, free: 2.605 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1034, allocations: 44.51 MB / 300 MB, free: 6.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.098/1.202, allocations: 323.6 MB / 0.609 GB, free: 63.43 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004066/1.202, allocations: 89.08 kB / 0.6091 GB, free: 63.38 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8608/2.063, allocations: 164.6 MB / 0.7698 GB, free: 73.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.214e-06/2.063, allocations: 0 / 0.7698 GB, free: 73.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001002/2.063, allocations: 20 kB / 0.7698 GB, free: 73.16 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.003818/2.067, allocations: 1.111 MB / 0.7709 GB, free: 72.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/2.067, allocations: 12.03 kB / 0.7709 GB, free: 72.01 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002838/2.067, allocations: 97.88 kB / 0.771 GB, free: 71.91 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005766/2.068, allocations: 106.9 kB / 0.7711 GB, free: 71.8 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002174/2.07, allocations: 0.6541 MB / 0.7718 GB, free: 71.12 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.967e-05/2.07, allocations: 44.12 kB / 0.7718 GB, free: 71.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001696/2.07, allocations: 62.17 kB / 0.7719 GB, free: 71.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001996/2.072, allocations: 0.8648 MB / 0.7727 GB, free: 70.11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.691e-05/2.072, allocations: 4 kB / 0.7727 GB, free: 70.1 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001277/2.073, allocations: 26.89 kB / 0.7727 GB, free: 70.08 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.705e-05/2.073, allocations: 53.17 kB / 0.7728 GB, free: 70.03 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001949/2.075, allocations: 0.7702 MB / 0.7736 GB, free: 69.25 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007778/2.082, allocations: 3.83 MB / 0.7773 GB, free: 65.19 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/2.084, allocations: 490 kB / 0.7778 GB, free: 64.7 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005497/2.084, allocations: 233.5 kB / 0.778 GB, free: 64.47 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003743/2.088, allocations: 1.968 MB / 0.7799 GB, free: 62.31 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/2.088, allocations: 38.56 kB / 0.7799 GB, free: 62.26 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 3.907e-06/2.088, allocations: 0 / 0.7799 GB, free: 62.26 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.003888/2.092, allocations: 1.228 MB / 0.7811 GB, free: 60.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.464e-05/2.092, allocations: 136.5 kB / 0.7813 GB, free: 60.81 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/2.093, allocations: 0.6012 MB / 0.7819 GB, free: 60.21 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001054/2.093, allocations: 41.64 kB / 0.7819 GB, free: 60.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003254/2.094, allocations: 438.6 kB / 0.7823 GB, free: 59.73 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/2.094, allocations: 155.5 kB / 0.7825 GB, free: 59.58 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.031e-05/2.094, allocations: 20 kB / 0.7825 GB, free: 59.56 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001634/2.094, allocations: 382.7 kB / 0.7828 GB, free: 59.18 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005959/2.095, allocations: 237.9 kB / 0.7831 GB, free: 58.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007511/2.095, allocations: 0.5443 MB / 0.7836 GB, free: 58.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007227/2.096, allocations: 319 kB / 0.7839 GB, free: 57.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/2.096, allocations: 4 kB / 0.7839 GB, free: 57.94 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002209/2.098, allocations: 0.8819 MB / 0.7848 GB, free: 57.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008254/2.099, allocations: 3.926 MB / 0.7886 GB, free: 52.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.473e-05/2.099, allocations: 12 kB / 0.7886 GB, free: 52.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001323/2.101, allocations: 112.8 kB / 0.7887 GB, free: 52.69 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002351/2.103, allocations: 239.6 kB / 0.789 GB, free: 52.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00105/2.104, allocations: 1.212 MB / 0.7901 GB, free: 51.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001408/2.106, allocations: 63.81 kB / 0.7902 GB, free: 51.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001625/2.106, allocations: 39.98 kB / 0.7902 GB, free: 51.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/2.106, allocations: 4 kB / 0.7902 GB, free: 51.09 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002018/2.108, allocations: 0.7757 MB / 0.791 GB, free: 50.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.084e-05/2.108, allocations: 12 kB / 0.791 GB, free: 50.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001188/2.109, allocations: 117 kB / 0.7911 GB, free: 50.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001768/2.111, allocations: 231.6 kB / 0.7913 GB, free: 49.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005035/2.111, allocations: 0.5952 MB / 0.7919 GB, free: 49.33 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/2.113, allocations: 55.94 kB / 0.792 GB, free: 49.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/2.113, allocations: 47.98 kB / 0.792 GB, free: 49.23 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.0003091/2.113, allocations: 156.6 kB / 0.7922 GB, free: 49.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001899/2.113, allocations: 75.16 kB / 0.7922 GB, free: 49 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002263/2.116, allocations: 0.7465 MB / 0.793 GB, free: 48.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-05/2.116, allocations: 8 kB / 0.793 GB, free: 48.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/2.116, allocations: 0 / 0.793 GB, free: 48.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/2.116, allocations: 7.922 kB / 0.793 GB, free: 48.22 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00345/2.119, allocations: 1.416 MB / 0.7944 GB, free: 46.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/2.119, allocations: 0 / 0.7944 GB, free: 46.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0013/2.121, allocations: 151.9 kB / 0.7945 GB, free: 46.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007222/2.121, allocations: 80.78 kB / 0.7946 GB, free: 46.52 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.573e-05/2.121, allocations: 23.98 kB / 0.7946 GB, free: 46.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007441/2.122, allocations: 1.177 MB / 0.7958 GB, free: 45.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/2.122, allocations: 0 / 0.7958 GB, free: 45.27 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/2.124, allocations: 1.008 MB / 0.7968 GB, free: 44.21 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00035/2.125, allocations: 160.1 kB / 0.7969 GB, free: 44.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001814/2.125, allocations: 12 kB / 0.7969 GB, free: 44.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008161/2.126, allocations: 43.97 kB / 0.797 GB, free: 43.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002162/2.126, allocations: 48.48 kB / 0.797 GB, free: 43.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.053e-05/2.126, allocations: 23.98 kB / 0.797 GB, free: 43.91 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008501/2.127, allocations: 471.1 kB / 0.7975 GB, free: 43.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.72e-07/2.127, allocations: 4 kB / 0.7975 GB, free: 43.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002907/2.13, allocations: 0.6361 MB / 0.7981 GB, free: 42.82 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.004537/2.135, allocations: 2.318 MB / 0.8004 GB, free: 40.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003694/2.138, allocations: 1.085 MB / 0.8014 GB, free: 39.42 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/2.138, allocations: 8.125 kB / 0.8014 GB, free: 39.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001152/2.14, allocations: 327 kB / 0.8017 GB, free: 39.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002406/2.142, allocations: 284.2 kB / 0.802 GB, free: 38.81 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004838/2.147, allocations: 1.477 MB / 0.8035 GB, free: 37.29 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004978/2.147, allocations: 1.004 MB / 0.8044 GB, free: 36.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002198/2.15, allocations: 384.5 kB / 0.8048 GB, free: 35.87 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005955/2.15, allocations: 283.3 kB / 0.8051 GB, free: 35.59 MB / 410.7 MB Notification: Performance of SimCode: time 1.342e-06/2.15, allocations: 0 / 0.8051 GB, free: 35.59 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08272/2.233, allocations: 27.21 MB / 0.8316 GB, free: 8.406 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002439/2.233, allocations: 235.1 kB / 0.8319 GB, free: 8.098 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.88/6.113, allocations: 4 kB / 0.8319 GB, free: 8.094 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.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat