Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.781/1.781, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.719e-05/3.725e-05, allocations: 4 kB / 225.1 MB, free: 2.23 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2596, allocations: 38.78 MB / 263.9 MB, free: 9.707 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9772/1.237, allocations: 316.9 MB / 0.5672 GB, free: 66.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003198/1.237, allocations: 92 kB / 0.5673 GB, free: 66.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.631/2.868, allocations: 321.4 MB / 0.8812 GB, free: 36.58 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.264e-06/2.868, allocations: 0 / 0.8812 GB, free: 36.58 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001802/2.868, allocations: 55.03 kB / 0.8812 GB, free: 36.54 MB / 362.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.01159/2.88, allocations: 2.043 MB / 0.8832 GB, free: 34.47 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.676e-05/2.88, allocations: 8.031 kB / 0.8832 GB, free: 34.46 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00101/2.881, allocations: 188.9 kB / 0.8834 GB, free: 34.28 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002006/2.883, allocations: 205.7 kB / 0.8836 GB, free: 34.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005266/2.888, allocations: 1.246 MB / 0.8848 GB, free: 32.8 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001326/2.888, allocations: 95.61 kB / 0.8849 GB, free: 32.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003736/2.889, allocations: 119.5 kB / 0.885 GB, free: 32.6 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0047/2.894, allocations: 1.911 MB / 0.8869 GB, free: 30.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.295e-05/2.894, allocations: 4 kB / 0.8869 GB, free: 30.61 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002627/2.894, allocations: 48.77 kB / 0.8869 GB, free: 30.56 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002491/2.894, allocations: 114.3 kB / 0.887 GB, free: 30.45 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004793/2.899, allocations: 1.902 MB / 0.8889 GB, free: 28.54 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01829/2.917, allocations: 7.629 MB / 0.8963 GB, free: 20.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002754/2.92, allocations: 1.12 MB / 0.8974 GB, free: 19.46 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001765/2.922, allocations: 0.7265 MB / 0.8981 GB, free: 18.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008427/2.93, allocations: 3.376 MB / 0.9014 GB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/2.931, allocations: 51.55 kB / 0.9015 GB, free: 15.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 4.518e-06/2.931, allocations: 0 / 0.9015 GB, free: 15.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.0165/2.947, allocations: 4.08 MB / 0.9055 GB, free: 10.94 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.528e-05/2.947, allocations: 171.5 kB / 0.9056 GB, free: 10.74 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002429/2.95, allocations: 1.158 MB / 0.9068 GB, free: 9.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005254/2.95, allocations: 61.7 kB / 0.9068 GB, free: 9.504 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006762/2.951, allocations: 0.7221 MB / 0.9075 GB, free: 8.781 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006916/2.952, allocations: 474.5 kB / 0.908 GB, free: 8.324 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001965/2.952, allocations: 36 kB / 0.908 GB, free: 8.289 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/2.952, allocations: 377.9 kB / 0.9084 GB, free: 7.914 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002148/2.954, allocations: 0.7263 MB / 0.9091 GB, free: 7.188 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002523/2.957, allocations: 1.185 MB / 0.9103 GB, free: 5.812 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002452/2.959, allocations: 0.8647 MB / 0.9111 GB, free: 4.949 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.726e-05/2.959, allocations: 4 kB / 0.9111 GB, free: 4.945 MB / 362.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.006839/2.966, allocations: 2.346 MB / 0.9134 GB, free: 2.578 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2963/3.263, allocations: 5.196 MB / 0.9185 GB, free: 38.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.026e-05/3.263, allocations: 12.75 kB / 0.9185 GB, free: 38.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01005/3.273, allocations: 0.9443 MB / 0.9194 GB, free: 38.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002864/3.276, allocations: 358.1 kB / 0.9197 GB, free: 38.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003574/3.279, allocations: 2.876 MB / 0.9225 GB, free: 36.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003059/3.282, allocations: 135.3 kB / 0.9227 GB, free: 36.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005008/3.283, allocations: 89.23 kB / 0.9228 GB, free: 36.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/3.283, allocations: 2.969 kB / 0.9228 GB, free: 36.31 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005627/3.289, allocations: 2.059 MB / 0.9248 GB, free: 36.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.135e-05/3.289, allocations: 13.91 kB / 0.9248 GB, free: 36.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007291/3.296, allocations: 0.6802 MB / 0.9255 GB, free: 36.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002907/3.299, allocations: 370.2 kB / 0.9258 GB, free: 36.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002641/3.302, allocations: 2.624 MB / 0.9284 GB, free: 34.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00285/3.305, allocations: 134.1 kB / 0.9285 GB, free: 34.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004176/3.305, allocations: 86.7 kB / 0.9286 GB, free: 34.13 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (207): * Single equations (assignments): 203 * 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.0006882/3.306, allocations: 225.2 kB / 0.9288 GB, free: 34.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005022/3.306, allocations: 166.3 kB / 0.929 GB, free: 34.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007289/3.314, allocations: 2.307 MB / 0.9312 GB, free: 33.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-05/3.314, allocations: 21.34 kB / 0.9312 GB, free: 33.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/3.314, allocations: 3.953 kB / 0.9312 GB, free: 33.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.09e-05/3.314, allocations: 8.062 kB / 0.9312 GB, free: 33.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01066/3.324, allocations: 3.901 MB / 0.935 GB, free: 33.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-05/3.324, allocations: 0 / 0.935 GB, free: 33.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002054/3.326, allocations: 245.7 kB / 0.9353 GB, free: 33.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006634/3.333, allocations: 0.8631 MB / 0.9361 GB, free: 33.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004319/3.334, allocations: 45.95 kB / 0.9362 GB, free: 33.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003044/3.337, allocations: 2.82 MB / 0.9389 GB, free: 31.36 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/3.337, allocations: 2.406 kB / 0.9389 GB, free: 31.36 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007535/3.344, allocations: 3.174 MB / 0.942 GB, free: 30.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007999/3.345, allocations: 266.7 kB / 0.9423 GB, free: 30.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000484/3.346, allocations: 34.38 kB / 0.9423 GB, free: 30.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001934/3.348, allocations: 109.5 kB / 0.9424 GB, free: 30.75 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004184/3.348, allocations: 149.6 kB / 0.9426 GB, free: 30.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002044/3.348, allocations: 57.11 kB / 0.9426 GB, free: 30.74 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001761/3.35, allocations: 0.8813 MB / 0.9435 GB, free: 30.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.21e-07/3.35, allocations: 0 / 0.9435 GB, free: 30.62 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006265/3.356, allocations: 1.362 MB / 0.9448 GB, free: 30.62 MB / 362.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.01281/3.369, allocations: 5.266 MB / 0.9499 GB, free: 29.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01016/3.379, allocations: 2.985 MB / 0.9529 GB, free: 29.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.386e-05/3.379, allocations: 0 / 0.9529 GB, free: 29.14 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003824/3.383, allocations: 1.036 MB / 0.9539 GB, free: 29.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006054/3.389, allocations: 0.6665 MB / 0.9545 GB, free: 29.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01164/3.401, allocations: 3.551 MB / 0.958 GB, free: 28.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002009/3.403, allocations: 1.436 MB / 0.9594 GB, free: 43.69 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00538/3.409, allocations: 0.8245 MB / 0.9602 GB, free: 43.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001611/3.41, allocations: 0.6305 MB / 0.9608 GB, free: 43.65 MB / 378.7 MB Notification: Performance of SimCode: time 1.653e-06/3.41, allocations: 1.562 kB / 0.9608 GB, free: 43.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1572/3.568, allocations: 64.33 MB / 1.024 GB, free: 22.45 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000235/3.568, allocations: 231.5 kB / 1.024 GB, free: 22.14 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.073/9.641, allocations: 3.906 kB / 1.024 GB, free: 22.14 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat