Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.069/2.069, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.882e-05/3.907e-05, allocations: 7.234 kB / 292.2 MB, free: 8.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1231, allocations: 50.41 MB / 342.7 MB, free: 5.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.072/1.196, allocations: 324.6 MB / 0.6516 GB, free: 32.04 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003196/1.196, allocations: 93.77 kB / 0.6517 GB, free: 32 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.083/2.279, allocations: 196 MB / 0.8431 GB, free: 43.76 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.438e-06/2.279, allocations: 3.938 kB / 0.8431 GB, free: 43.76 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001486/2.28, allocations: 23.94 kB / 0.8431 GB, free: 43.73 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.006627/2.286, allocations: 1.297 MB / 0.8444 GB, free: 42.39 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.239e-05/2.286, allocations: 8.031 kB / 0.8444 GB, free: 42.38 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005284/2.287, allocations: 110.5 kB / 0.8445 GB, free: 42.27 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001071/2.288, allocations: 114.8 kB / 0.8446 GB, free: 42.15 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002949/2.291, allocations: 0.7413 MB / 0.8453 GB, free: 41.36 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.037e-05/2.291, allocations: 49.3 kB / 0.8454 GB, free: 41.32 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001843/2.291, allocations: 59.98 kB / 0.8454 GB, free: 41.26 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002505/2.294, allocations: 1.036 MB / 0.8464 GB, free: 40.16 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.567e-05/2.294, allocations: 0 / 0.8464 GB, free: 40.16 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001408/2.294, allocations: 27.98 kB / 0.8465 GB, free: 40.14 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001408/2.294, allocations: 65.27 kB / 0.8465 GB, free: 40.07 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002367/2.297, allocations: 0.9864 MB / 0.8475 GB, free: 39.09 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009862/2.306, allocations: 4.386 MB / 0.8518 GB, free: 34.45 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001372/2.308, allocations: 0.5471 MB / 0.8523 GB, free: 33.89 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000717/2.309, allocations: 318 kB / 0.8526 GB, free: 33.58 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003851/2.312, allocations: 2.082 MB / 0.8546 GB, free: 31.28 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.324e-05/2.313, allocations: 46.81 kB / 0.8547 GB, free: 31.22 MB / 458.7 MB Notification: Performance of pre-optimization done (n=40): time 3.486e-06/2.313, allocations: 8 kB / 0.8547 GB, free: 31.21 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.004798/2.317, allocations: 1.497 MB / 0.8562 GB, free: 29.66 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.809e-05/2.318, allocations: 158.2 kB / 0.8563 GB, free: 29.47 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001526/2.319, allocations: 0.8097 MB / 0.8571 GB, free: 28.63 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001496/2.319, allocations: 37.7 kB / 0.8571 GB, free: 28.59 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003915/2.32, allocations: 478.9 kB / 0.8576 GB, free: 28.11 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/2.32, allocations: 161.7 kB / 0.8577 GB, free: 27.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.281e-05/2.32, allocations: 16 kB / 0.8578 GB, free: 27.94 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.671e-05/2.32, allocations: 346 kB / 0.8581 GB, free: 27.59 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007497/2.321, allocations: 301.9 kB / 0.8584 GB, free: 27.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009109/2.322, allocations: 0.5863 MB / 0.8589 GB, free: 26.59 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008732/2.323, allocations: 391 kB / 0.8593 GB, free: 26.21 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/2.323, allocations: 4 kB / 0.8593 GB, free: 26.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002555/2.325, allocations: 1.046 MB / 0.8603 GB, free: 25.14 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006855/2.326, allocations: 3.318 MB / 0.8636 GB, free: 21.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.89e-05/2.326, allocations: 8 kB / 0.8636 GB, free: 21.56 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003262/2.329, allocations: 313.4 kB / 0.8639 GB, free: 21.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/2.331, allocations: 175.7 kB / 0.8641 GB, free: 21.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00136/2.332, allocations: 1.35 MB / 0.8654 GB, free: 19.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001538/2.333, allocations: 59.81 kB / 0.8654 GB, free: 19.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001238/2.334, allocations: 51.98 kB / 0.8655 GB, free: 19.57 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/2.334, allocations: 4 kB / 0.8655 GB, free: 19.56 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00228/2.336, allocations: 0.9094 MB / 0.8664 GB, free: 18.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/2.336, allocations: 8 kB / 0.8664 GB, free: 18.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002972/2.339, allocations: 297.4 kB / 0.8667 GB, free: 18.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/2.34, allocations: 179.7 kB / 0.8668 GB, free: 18.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001217/2.341, allocations: 1.296 MB / 0.8681 GB, free: 16.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001325/2.343, allocations: 64 kB / 0.8682 GB, free: 16.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/2.343, allocations: 43.94 kB / 0.8682 GB, free: 16.71 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003133/2.343, allocations: 168.7 kB / 0.8684 GB, free: 16.54 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001969/2.343, allocations: 90.88 kB / 0.8685 GB, free: 16.45 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00246/2.346, allocations: 0.7659 MB / 0.8692 GB, free: 15.67 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/2.346, allocations: 7.953 kB / 0.8692 GB, free: 15.66 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/2.346, allocations: 0 / 0.8692 GB, free: 15.66 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/2.346, allocations: 3.984 kB / 0.8692 GB, free: 15.66 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004077/2.35, allocations: 1.591 MB / 0.8708 GB, free: 14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/2.35, allocations: 0 / 0.8708 GB, free: 14 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000697/2.351, allocations: 83.95 kB / 0.8708 GB, free: 13.92 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002382/2.353, allocations: 285.4 kB / 0.8711 GB, free: 13.63 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001574/2.353, allocations: 15.98 kB / 0.8711 GB, free: 13.62 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001211/2.355, allocations: 1.304 MB / 0.8724 GB, free: 12.26 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/2.355, allocations: 0 / 0.8724 GB, free: 12.26 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002358/2.357, allocations: 1.087 MB / 0.8735 GB, free: 11.13 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004582/2.358, allocations: 199.8 kB / 0.8737 GB, free: 10.91 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000221/2.358, allocations: 12 kB / 0.8737 GB, free: 10.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/2.359, allocations: 47.94 kB / 0.8737 GB, free: 10.86 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/2.359, allocations: 48.36 kB / 0.8738 GB, free: 10.81 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.894e-05/2.359, allocations: 23.98 kB / 0.8738 GB, free: 10.79 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00119/2.36, allocations: 0.6328 MB / 0.8744 GB, free: 10.14 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.41e-07/2.36, allocations: 4 kB / 0.8744 GB, free: 10.13 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003303/2.364, allocations: 0.8312 MB / 0.8752 GB, free: 9.301 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.005075/2.369, allocations: 2.511 MB / 0.8777 GB, free: 6.766 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003541/2.372, allocations: 1.201 MB / 0.8788 GB, free: 5.57 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.605e-06/2.372, allocations: 4 kB / 0.8789 GB, free: 5.566 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001315/2.374, allocations: 347.2 kB / 0.8792 GB, free: 5.227 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003119/2.377, allocations: 386.5 kB / 0.8795 GB, free: 4.848 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004984/2.382, allocations: 1.69 MB / 0.8812 GB, free: 3.109 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005897/2.383, allocations: 1.055 MB / 0.8822 GB, free: 2.027 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002278/2.385, allocations: 422.7 kB / 0.8826 GB, free: 1.613 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005911/2.385, allocations: 319.3 kB / 0.8829 GB, free: 1.301 MB / 458.7 MB Notification: Performance of SimCode: time 1.172e-06/2.386, allocations: 0 / 0.8829 GB, free: 1.301 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4299/2.815, allocations: 35.16 MB / 0.9173 GB, free: 87.58 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001991/2.816, allocations: 244.2 kB / 0.9175 GB, free: 87.27 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.572/7.387, allocations: 2.719 kB / 0.9175 GB, free: 87.27 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat