Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.023/2.023, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.27e-05/4.284e-05, allocations: 4 kB / 292.7 MB, free: 8.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1154, allocations: 50.41 MB / 343.2 MB, free: 5.809 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.119/1.235, allocations: 322.5 MB / 0.65 GB, free: 34.35 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003198/1.235, allocations: 90.12 kB / 0.6501 GB, free: 34.3 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8464/2.081, allocations: 140.2 MB / 0.787 GB, free: 102.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.124e-06/2.081, allocations: 0 / 0.787 GB, free: 102.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001038/2.082, allocations: 27.69 kB / 0.787 GB, free: 102.2 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.004074/2.086, allocations: 1.027 MB / 0.788 GB, free: 101.1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/2.086, allocations: 8.031 kB / 0.788 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003561/2.086, allocations: 88.86 kB / 0.7881 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000604/2.087, allocations: 87.05 kB / 0.7882 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002218/2.089, allocations: 0.58 MB / 0.7888 GB, free: 100.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.863e-05/2.089, allocations: 52.84 kB / 0.7888 GB, free: 100.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002424/2.089, allocations: 43.83 kB / 0.7889 GB, free: 100.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001972/2.091, allocations: 0.7155 MB / 0.7896 GB, free: 99.52 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.414e-05/2.091, allocations: 7.938 kB / 0.7896 GB, free: 99.51 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001249/2.092, allocations: 18.58 kB / 0.7896 GB, free: 99.5 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001127/2.092, allocations: 44.97 kB / 0.7896 GB, free: 99.45 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001936/2.094, allocations: 0.6578 MB / 0.7903 GB, free: 98.79 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007659/2.101, allocations: 2.858 MB / 0.7931 GB, free: 95.79 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/2.103, allocations: 461 kB / 0.7935 GB, free: 95.32 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006504/2.103, allocations: 258 kB / 0.7937 GB, free: 95.07 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003675/2.104, allocations: 344.5 kB / 0.7941 GB, free: 94.66 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.615e-05/2.104, allocations: 39 kB / 0.7941 GB, free: 94.61 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 3.396e-06/2.104, allocations: 0 / 0.7941 GB, free: 94.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=58): time 0.00743/2.111, allocations: 1.827 MB / 0.7959 GB, free: 92.74 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.48e-05/2.111, allocations: 85.67 kB / 0.796 GB, free: 92.64 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001095/2.112, allocations: 0.5423 MB / 0.7965 GB, free: 92.09 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002333/2.113, allocations: 41.7 kB / 0.7965 GB, free: 92.04 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002962/2.113, allocations: 320.5 kB / 0.7968 GB, free: 91.72 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002909/2.113, allocations: 212 kB / 0.797 GB, free: 91.52 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.382e-05/2.113, allocations: 16 kB / 0.7971 GB, free: 91.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/2.114, allocations: 382.7 kB / 0.7974 GB, free: 91.12 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008141/2.114, allocations: 277.5 kB / 0.7977 GB, free: 90.84 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009217/2.115, allocations: 437.5 kB / 0.7981 GB, free: 90.35 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008652/2.116, allocations: 341.9 kB / 0.7984 GB, free: 90.02 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/2.116, allocations: 0 / 0.7984 GB, free: 90.02 MB / 458.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002558/2.119, allocations: 0.8982 MB / 0.7993 GB, free: 89.11 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004484/2.119, allocations: 1.746 MB / 0.801 GB, free: 87.23 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.807e-05/2.119, allocations: 4 kB / 0.801 GB, free: 87.22 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003611/2.123, allocations: 348.4 kB / 0.8014 GB, free: 86.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001281/2.124, allocations: 155.7 kB / 0.8015 GB, free: 86.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00138/2.126, allocations: 0.8099 MB / 0.8023 GB, free: 85.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/2.127, allocations: 51.94 kB / 0.8023 GB, free: 85.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001634/2.127, allocations: 31.98 kB / 0.8024 GB, free: 85.81 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/2.127, allocations: 4 kB / 0.8024 GB, free: 85.8 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002145/2.13, allocations: 0.7608 MB / 0.8031 GB, free: 85.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.84e-05/2.13, allocations: 4 kB / 0.8031 GB, free: 85.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002612/2.132, allocations: 225 kB / 0.8033 GB, free: 84.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001329/2.134, allocations: 155.9 kB / 0.8035 GB, free: 84.66 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000923/2.135, allocations: 0.7005 MB / 0.8042 GB, free: 83.94 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00121/2.136, allocations: 51.97 kB / 0.8042 GB, free: 83.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001521/2.136, allocations: 35.92 kB / 0.8043 GB, free: 83.85 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003373/2.137, allocations: 150 kB / 0.8044 GB, free: 83.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002493/2.137, allocations: 75.11 kB / 0.8045 GB, free: 83.63 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002438/2.139, allocations: 0.8308 MB / 0.8053 GB, free: 82.79 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.5e-05/2.139, allocations: 8.062 kB / 0.8053 GB, free: 82.78 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/2.139, allocations: 4 kB / 0.8053 GB, free: 82.78 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/2.139, allocations: 3.984 kB / 0.8053 GB, free: 82.77 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004531/2.144, allocations: 1.639 MB / 0.8069 GB, free: 81.08 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.759e-06/2.144, allocations: 0 / 0.8069 GB, free: 81.08 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/2.145, allocations: 115.8 kB / 0.807 GB, free: 80.97 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00261/2.148, allocations: 332.6 kB / 0.8073 GB, free: 80.64 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001803/2.148, allocations: 19.98 kB / 0.8073 GB, free: 80.62 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001086/2.149, allocations: 0.7943 MB / 0.8081 GB, free: 79.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/2.149, allocations: 0 / 0.8081 GB, free: 79.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002922/2.152, allocations: 1.238 MB / 0.8093 GB, free: 78.53 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004358/2.152, allocations: 156.3 kB / 0.8095 GB, free: 78.36 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002688/2.153, allocations: 16 kB / 0.8095 GB, free: 78.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/2.154, allocations: 43.81 kB / 0.8095 GB, free: 78.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/2.154, allocations: 52.48 kB / 0.8096 GB, free: 78.25 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/2.154, allocations: 23.98 kB / 0.8096 GB, free: 78.22 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008335/2.155, allocations: 439.1 kB / 0.81 GB, free: 77.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.42e-07/2.155, allocations: 0 / 0.81 GB, free: 77.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00314/2.158, allocations: 0.5932 MB / 0.8106 GB, free: 77.2 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.007414/2.166, allocations: 2.432 MB / 0.813 GB, free: 74.78 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003571/2.169, allocations: 1.106 MB / 0.8141 GB, free: 73.67 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.142e-05/2.169, allocations: 6 kB / 0.8141 GB, free: 73.67 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001035/2.17, allocations: 357.9 kB / 0.8144 GB, free: 73.32 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003034/2.173, allocations: 341.1 kB / 0.8147 GB, free: 72.99 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005036/2.179, allocations: 1.502 MB / 0.8162 GB, free: 71.44 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004944/2.179, allocations: 0.9841 MB / 0.8172 GB, free: 70.43 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002102/2.181, allocations: 324.9 kB / 0.8175 GB, free: 70.11 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005852/2.182, allocations: 247.3 kB / 0.8177 GB, free: 69.86 MB / 458.7 MB Notification: Performance of SimCode: time 1.653e-06/2.182, allocations: 0 / 0.8177 GB, free: 69.86 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08104/2.263, allocations: 28.05 MB / 0.8451 GB, free: 42.06 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002576/2.263, allocations: 188.5 kB / 0.8453 GB, free: 41.83 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.821/6.085, allocations: 0 / 0.8453 GB, free: 41.83 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat