Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.158/2.158, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.853e-05/3.864e-05, allocations: 6.406 kB / 292.7 MB, free: 8.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1246, allocations: 50.42 MB / 343.2 MB, free: 5.805 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.152/1.277, allocations: 327.5 MB / 0.655 GB, free: 29.27 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003141/1.277, allocations: 92.06 kB / 0.655 GB, free: 29.22 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.902/3.179, allocations: 331.1 MB / 0.9783 GB, free: 68.52 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.216e-06/3.179, allocations: 0 / 0.9783 GB, free: 68.52 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002846/3.18, allocations: 46.16 kB / 0.9784 GB, free: 68.51 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.01022/3.19, allocations: 2.047 MB / 0.9804 GB, free: 67.45 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.483e-05/3.19, allocations: 10.95 kB / 0.9804 GB, free: 67.45 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001197/3.191, allocations: 182.7 kB / 0.9806 GB, free: 67.34 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002083/3.193, allocations: 202.3 kB / 0.9808 GB, free: 67.25 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005601/3.199, allocations: 1.179 MB / 0.9819 GB, free: 66.62 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002264/3.199, allocations: 110.2 kB / 0.982 GB, free: 66.57 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008309/3.2, allocations: 114.3 kB / 0.9821 GB, free: 66.54 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007249/3.207, allocations: 1.907 MB / 0.984 GB, free: 65.69 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-05/3.208, allocations: 7.438 kB / 0.984 GB, free: 65.69 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000681/3.208, allocations: 58.2 kB / 0.984 GB, free: 65.66 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002783/3.209, allocations: 118.9 kB / 0.9842 GB, free: 65.64 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006697/3.215, allocations: 1.901 MB / 0.986 GB, free: 64.98 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02256/3.238, allocations: 7.68 MB / 0.9935 GB, free: 60.03 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003368/3.241, allocations: 1.137 MB / 0.9946 GB, free: 59.6 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002163/3.244, allocations: 0.7341 MB / 0.9953 GB, free: 59.32 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009851/3.253, allocations: 3.469 MB / 0.9987 GB, free: 57.02 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.846e-05/3.254, allocations: 50.91 kB / 0.9988 GB, free: 56.97 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 4.769e-06/3.254, allocations: 2.906 kB / 0.9988 GB, free: 56.97 MB / 458.7 MB Notification: Performance of matching and sorting (n=134): time 0.01757/3.271, allocations: 4.124 MB / 1.003 GB, free: 55.31 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.533e-05/3.271, allocations: 173.9 kB / 1.003 GB, free: 55.12 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00304/3.274, allocations: 1.235 MB / 1.004 GB, free: 54.63 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005159/3.275, allocations: 63.7 kB / 1.004 GB, free: 54.58 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008332/3.276, allocations: 0.7004 MB / 1.005 GB, free: 54.02 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008973/3.277, allocations: 472.3 kB / 1.005 GB, free: 53.67 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000254/3.277, allocations: 33.41 kB / 1.005 GB, free: 53.64 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000187/3.277, allocations: 373.7 kB / 1.006 GB, free: 53.31 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002296/3.28, allocations: 0.7341 MB / 1.006 GB, free: 53.05 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002774/3.282, allocations: 1.135 MB / 1.008 GB, free: 51.94 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002654/3.285, allocations: 0.8638 MB / 1.008 GB, free: 51.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-05/3.285, allocations: 6.344 kB / 1.008 GB, free: 51.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.007863/3.293, allocations: 2.315 MB / 1.011 GB, free: 48.87 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001013/3.294, allocations: 4.346 MB / 1.015 GB, free: 44.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.01e-05/3.294, allocations: 15.5 kB / 1.015 GB, free: 44.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009832/3.304, allocations: 0.9335 MB / 1.016 GB, free: 43.36 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00291/3.307, allocations: 347.4 kB / 1.016 GB, free: 43.02 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00504/3.312, allocations: 2.899 MB / 1.019 GB, free: 40.03 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003461/3.316, allocations: 139.9 kB / 1.019 GB, free: 39.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007039/3.316, allocations: 75.97 kB / 1.019 GB, free: 39.83 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/3.316, allocations: 4 kB / 1.019 GB, free: 39.82 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00661/3.323, allocations: 2.039 MB / 1.021 GB, free: 37.78 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.301e-05/3.323, allocations: 12 kB / 1.021 GB, free: 37.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007832/3.331, allocations: 0.6739 MB / 1.022 GB, free: 37.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003007/3.334, allocations: 358.8 kB / 1.022 GB, free: 36.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002815/3.337, allocations: 2.636 MB / 1.025 GB, free: 34.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003162/3.34, allocations: 140.7 kB / 1.025 GB, free: 33.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006533/3.341, allocations: 79.97 kB / 1.025 GB, free: 33.81 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.0007249/3.342, allocations: 211.2 kB / 1.025 GB, free: 33.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006419/3.342, allocations: 177.3 kB / 1.025 GB, free: 33.43 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007822/3.35, allocations: 2.325 MB / 1.028 GB, free: 31.12 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.322e-05/3.35, allocations: 16 kB / 1.028 GB, free: 31.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/3.35, allocations: 3.953 kB / 1.028 GB, free: 31.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.992e-05/3.35, allocations: 7.969 kB / 1.028 GB, free: 31.09 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01228/3.363, allocations: 3.98 MB / 1.032 GB, free: 27.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-05/3.363, allocations: 0 / 1.032 GB, free: 27.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002288/3.365, allocations: 246.8 kB / 1.032 GB, free: 26.82 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00704/3.372, allocations: 0.8676 MB / 1.033 GB, free: 25.96 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00048/3.373, allocations: 39.98 kB / 1.033 GB, free: 25.92 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003183/3.376, allocations: 2.839 MB / 1.035 GB, free: 22.98 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/3.376, allocations: 0 / 1.035 GB, free: 22.98 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008613/3.384, allocations: 3.213 MB / 1.039 GB, free: 19.68 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009194/3.385, allocations: 278.8 kB / 1.039 GB, free: 19.39 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009358/3.386, allocations: 36 kB / 1.039 GB, free: 19.36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002851/3.389, allocations: 111.8 kB / 1.039 GB, free: 19.25 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000676/3.39, allocations: 157 kB / 1.039 GB, free: 19.09 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002754/3.39, allocations: 59.97 kB / 1.039 GB, free: 19.04 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002194/3.393, allocations: 0.9501 MB / 1.04 GB, free: 18.09 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.423e-06/3.393, allocations: 0 / 1.04 GB, free: 18.09 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008071/3.401, allocations: 1.386 MB / 1.042 GB, free: 16.7 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.022/3.423, allocations: 5.317 MB / 1.047 GB, free: 11.45 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01512/3.438, allocations: 2.969 MB / 1.05 GB, free: 8.484 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.662e-05/3.438, allocations: 2 kB / 1.05 GB, free: 8.484 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005385/3.443, allocations: 1.047 MB / 1.051 GB, free: 7.438 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01035/3.454, allocations: 0.7299 MB / 1.051 GB, free: 6.723 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01284/3.467, allocations: 3.531 MB / 1.055 GB, free: 3.168 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001136/3.468, allocations: 1.441 MB / 1.056 GB, free: 1.695 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005715/3.474, allocations: 0.8324 MB / 1.057 GB, free: 0.9023 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001715/3.475, allocations: 0.6359 MB / 1.058 GB, free: 272 kB / 458.7 MB Notification: Performance of SimCode: time 1.773e-06/3.476, allocations: 0 / 1.058 GB, free: 272 kB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.555/4.031, allocations: 67.3 MB / 1.123 GB, free: 60.63 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/4.031, allocations: 245.8 kB / 1.124 GB, free: 60.3 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.085/10.12, allocations: 0 / 1.124 GB, free: 60.3 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat