Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.938/1.938, allocations: 194.9 MB / 208 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.528e-05/3.538e-05, allocations: 4 kB / 255.5 MB, free: 2.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1013, allocations: 44.5 MB / 300 MB, free: 6.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.025/1.127, allocations: 319.6 MB / 0.6051 GB, free: 67.06 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002927/1.127, allocations: 85.95 kB / 0.6052 GB, free: 67.02 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.758/2.885, allocations: 279 MB / 0.8777 GB, free: 58.35 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.958e-06/2.885, allocations: 0 / 0.8777 GB, free: 58.35 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002816/2.886, allocations: 44.78 kB / 0.8777 GB, free: 58.35 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.01002/2.896, allocations: 1.785 MB / 0.8795 GB, free: 57.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.749e-05/2.896, allocations: 11.03 kB / 0.8795 GB, free: 57.57 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001028/2.897, allocations: 157.4 kB / 0.8796 GB, free: 57.53 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002076/2.899, allocations: 167.9 kB / 0.8798 GB, free: 57.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006419/2.905, allocations: 1.089 MB / 0.8809 GB, free: 57.17 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002419/2.906, allocations: 77.2 kB / 0.8809 GB, free: 57.17 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008021/2.907, allocations: 97.77 kB / 0.881 GB, free: 57.17 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007575/2.914, allocations: 1.587 MB / 0.8826 GB, free: 56.92 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.954e-05/2.914, allocations: 5.281 kB / 0.8826 GB, free: 56.92 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006661/2.915, allocations: 43.83 kB / 0.8826 GB, free: 56.92 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003391/2.915, allocations: 101.8 kB / 0.8827 GB, free: 56.92 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007277/2.923, allocations: 1.571 MB / 0.8843 GB, free: 56.91 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02645/2.949, allocations: 6.514 MB / 0.8906 GB, free: 53.88 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003447/2.953, allocations: 0.8734 MB / 0.8915 GB, free: 53.86 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002069/2.955, allocations: 0.527 MB / 0.892 GB, free: 53.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01025/2.965, allocations: 2.816 MB / 0.8947 GB, free: 52.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.097e-05/2.965, allocations: 51.84 kB / 0.8948 GB, free: 52.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 6.261e-06/2.965, allocations: 0 / 0.8948 GB, free: 52.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=90): time 0.01543/2.981, allocations: 2.758 MB / 0.8975 GB, free: 51.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/2.981, allocations: 192.2 kB / 0.8977 GB, free: 51.56 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003422/2.984, allocations: 1.033 MB / 0.8987 GB, free: 51.39 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004102/2.985, allocations: 55.98 kB / 0.8987 GB, free: 51.36 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001026/2.986, allocations: 0.6684 MB / 0.8994 GB, free: 51.06 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007294/2.987, allocations: 328.5 kB / 0.8997 GB, free: 50.86 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002656/2.987, allocations: 28.47 kB / 0.8997 GB, free: 50.86 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00019/2.987, allocations: 363.9 kB / 0.9001 GB, free: 50.55 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002318/2.99, allocations: 0.5288 MB / 0.9006 GB, free: 50.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002944/2.993, allocations: 1.003 MB / 0.9016 GB, free: 50 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002756/2.995, allocations: 0.6647 MB / 0.9022 GB, free: 49.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.038e-05/2.996, allocations: 7.125 kB / 0.9022 GB, free: 49.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.008244/3.004, allocations: 1.799 MB / 0.904 GB, free: 49.83 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001683/3.006, allocations: 5.582 MB / 0.9094 GB, free: 44.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.963e-05/3.006, allocations: 18.72 kB / 0.9094 GB, free: 44.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009367/3.015, allocations: 0.6413 MB / 0.9101 GB, free: 44.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003158/3.018, allocations: 300.1 kB / 0.9104 GB, free: 44.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003795/3.022, allocations: 2.139 MB / 0.9124 GB, free: 42.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003826/3.026, allocations: 109 kB / 0.9125 GB, free: 42.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006134/3.027, allocations: 70.03 kB / 0.9126 GB, free: 42.44 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/3.027, allocations: 3.906 kB / 0.9126 GB, free: 42.44 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007593/3.034, allocations: 1.604 MB / 0.9142 GB, free: 42.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.298e-05/3.035, allocations: 15.73 kB / 0.9142 GB, free: 42.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007975/3.043, allocations: 0.4983 MB / 0.9147 GB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003295/3.046, allocations: 304.1 kB / 0.915 GB, free: 42.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003056/3.049, allocations: 1.981 MB / 0.9169 GB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00346/3.053, allocations: 110.5 kB / 0.917 GB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000629/3.053, allocations: 68.67 kB / 0.9171 GB, free: 40.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (171): * Single equations (assignments): 168 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007857/3.054, allocations: 198.8 kB / 0.9173 GB, free: 40.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000627/3.055, allocations: 138 kB / 0.9174 GB, free: 40.61 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00747/3.062, allocations: 1.492 MB / 0.9189 GB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.884e-05/3.062, allocations: 9.906 kB / 0.9189 GB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/3.062, allocations: 0.75 kB / 0.9189 GB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.154e-05/3.062, allocations: 14.19 kB / 0.9189 GB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01185/3.074, allocations: 2.72 MB / 0.9215 GB, free: 40.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.642e-05/3.074, allocations: 0 / 0.9215 GB, free: 40.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002071/3.077, allocations: 159.5 kB / 0.9217 GB, free: 40.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007126/3.084, allocations: 0.5974 MB / 0.9223 GB, free: 40.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003881/3.084, allocations: 27.75 kB / 0.9223 GB, free: 40.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003348/3.088, allocations: 2.112 MB / 0.9244 GB, free: 38.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/3.088, allocations: 0 / 0.9244 GB, free: 38.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007927/3.096, allocations: 2.098 MB / 0.9264 GB, free: 38.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001014/3.097, allocations: 236.4 kB / 0.9266 GB, free: 37.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009439/3.098, allocations: 25.88 kB / 0.9267 GB, free: 37.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002811/3.1, allocations: 74.53 kB / 0.9267 GB, free: 37.96 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006198/3.101, allocations: 95.53 kB / 0.9268 GB, free: 37.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002172/3.101, allocations: 37.94 kB / 0.9269 GB, free: 37.96 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002799/3.104, allocations: 0.7878 MB / 0.9276 GB, free: 37.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.643e-06/3.104, allocations: 0 / 0.9276 GB, free: 37.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.008539/3.113, allocations: 1.188 MB / 0.9288 GB, free: 37.64 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01403/3.127, allocations: 3.93 MB / 0.9326 GB, free: 36.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01069/3.138, allocations: 2.171 MB / 0.9348 GB, free: 35.49 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.344e-05/3.138, allocations: 0 / 0.9348 GB, free: 35.49 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003822/3.142, allocations: 0.69 MB / 0.9354 GB, free: 35.28 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006319/3.148, allocations: 0.4973 MB / 0.9359 GB, free: 35.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/3.16, allocations: 2.806 MB / 0.9387 GB, free: 34.04 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009467/3.161, allocations: 1.288 MB / 0.9399 GB, free: 33.29 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004415/3.166, allocations: 0.6486 MB / 0.9405 GB, free: 33.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00128/3.167, allocations: 0.5065 MB / 0.941 GB, free: 32.87 MB / 410.7 MB Notification: Performance of SimCode: time 1.363e-06/3.167, allocations: 0 / 0.941 GB, free: 32.87 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1565/3.323, allocations: 51.16 MB / 0.991 GB, free: 440 kB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002011/3.324, allocations: 242 kB / 0.9912 GB, free: 120 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.067/8.391, allocations: 0 / 0.9912 GB, free: 120 kB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat