Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.096/2.096, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.91e-05/3.923e-05, allocations: 7.984 kB / 292.7 MB, free: 8.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1122, allocations: 50.42 MB / 343.2 MB, free: 5.832 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.152/1.264, allocations: 324.6 MB / 0.6521 GB, free: 31.61 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003305/1.264, allocations: 86.83 kB / 0.6522 GB, free: 31.57 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.093/2.358, allocations: 196 MB / 0.8436 GB, free: 43.54 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.705e-06/2.358, allocations: 0 / 0.8436 GB, free: 43.54 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001343/2.358, allocations: 27.94 kB / 0.8436 GB, free: 43.52 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.004862/2.363, allocations: 1.29 MB / 0.8449 GB, free: 42.18 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.07e-05/2.363, allocations: 16.03 kB / 0.8449 GB, free: 42.16 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004513/2.363, allocations: 114.4 kB / 0.845 GB, free: 42.04 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008274/2.364, allocations: 110.8 kB / 0.8451 GB, free: 41.93 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00269/2.367, allocations: 0.7335 MB / 0.8458 GB, free: 41.16 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/2.367, allocations: 53.3 kB / 0.8459 GB, free: 41.11 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003307/2.367, allocations: 59.98 kB / 0.8459 GB, free: 41.05 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002919/2.37, allocations: 1.036 MB / 0.847 GB, free: 39.95 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.903e-05/2.37, allocations: 4 kB / 0.847 GB, free: 39.95 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001733/2.371, allocations: 27.98 kB / 0.847 GB, free: 39.92 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001499/2.371, allocations: 61.28 kB / 0.847 GB, free: 39.86 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003536/2.374, allocations: 0.9785 MB / 0.848 GB, free: 38.88 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01241/2.387, allocations: 4.402 MB / 0.8523 GB, free: 34.22 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001543/2.388, allocations: 0.5471 MB / 0.8528 GB, free: 33.67 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007984/2.389, allocations: 318 kB / 0.8531 GB, free: 33.36 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004146/2.394, allocations: 2.075 MB / 0.8552 GB, free: 31.06 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.554e-05/2.394, allocations: 38.89 kB / 0.8552 GB, free: 31.02 MB / 458.7 MB Notification: Performance of pre-optimization done (n=40): time 3.236e-06/2.394, allocations: 0 / 0.8552 GB, free: 31.02 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.005387/2.399, allocations: 1.497 MB / 0.8567 GB, free: 29.46 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.368e-05/2.399, allocations: 158.2 kB / 0.8568 GB, free: 29.27 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00165/2.401, allocations: 0.8212 MB / 0.8576 GB, free: 28.42 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002098/2.401, allocations: 41.7 kB / 0.8577 GB, free: 28.38 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004167/2.402, allocations: 475 kB / 0.8581 GB, free: 27.9 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002533/2.402, allocations: 169.7 kB / 0.8583 GB, free: 27.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.347e-05/2.402, allocations: 16 kB / 0.8583 GB, free: 27.72 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.159e-05/2.402, allocations: 341.9 kB / 0.8586 GB, free: 27.38 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000834/2.403, allocations: 305.9 kB / 0.8589 GB, free: 27.08 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009623/2.404, allocations: 0.5786 MB / 0.8595 GB, free: 26.38 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001/2.405, allocations: 391.1 kB / 0.8598 GB, free: 26 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.177e-06/2.405, allocations: 4 kB / 0.8598 GB, free: 25.99 MB / 458.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003006/2.408, allocations: 1.047 MB / 0.8609 GB, free: 24.93 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006978/2.409, allocations: 3.307 MB / 0.8641 GB, free: 21.37 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.557e-05/2.409, allocations: 12 kB / 0.8641 GB, free: 21.36 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003491/2.412, allocations: 313.4 kB / 0.8644 GB, free: 21.04 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001427/2.414, allocations: 179.8 kB / 0.8646 GB, free: 20.87 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001527/2.415, allocations: 1.35 MB / 0.8659 GB, free: 19.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001694/2.417, allocations: 60 kB / 0.866 GB, free: 19.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002429/2.417, allocations: 47.92 kB / 0.866 GB, free: 19.36 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/2.417, allocations: 6.5 kB / 0.866 GB, free: 19.36 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002602/2.42, allocations: 0.9209 MB / 0.8669 GB, free: 18.43 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.843e-05/2.42, allocations: 8 kB / 0.8669 GB, free: 18.42 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004167/2.424, allocations: 293.6 kB / 0.8672 GB, free: 18.12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/2.426, allocations: 183.7 kB / 0.8674 GB, free: 17.95 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001328/2.427, allocations: 1.292 MB / 0.8686 GB, free: 16.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001579/2.429, allocations: 63.86 kB / 0.8687 GB, free: 16.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001726/2.429, allocations: 44.02 kB / 0.8687 GB, free: 16.5 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.0003702/2.429, allocations: 167.2 kB / 0.8689 GB, free: 16.33 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000328/2.43, allocations: 94.88 kB / 0.869 GB, free: 16.23 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002586/2.432, allocations: 0.7698 MB / 0.8697 GB, free: 15.45 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/2.432, allocations: 11.95 kB / 0.8697 GB, free: 15.44 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/2.432, allocations: 0 / 0.8697 GB, free: 15.44 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/2.432, allocations: 0 / 0.8697 GB, free: 15.44 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004207/2.437, allocations: 1.587 MB / 0.8713 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/2.437, allocations: 0 / 0.8713 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007134/2.437, allocations: 75.91 kB / 0.8714 GB, free: 13.71 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002457/2.44, allocations: 289.5 kB / 0.8716 GB, free: 13.42 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001532/2.44, allocations: 12 kB / 0.8717 GB, free: 13.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001318/2.441, allocations: 1.312 MB / 0.8729 GB, free: 12.05 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/2.441, allocations: 0 / 0.8729 GB, free: 12.05 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002633/2.444, allocations: 1.091 MB / 0.874 GB, free: 10.91 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005488/2.445, allocations: 191.9 kB / 0.8742 GB, free: 10.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002421/2.445, allocations: 16 kB / 0.8742 GB, free: 10.69 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/2.446, allocations: 43.88 kB / 0.8742 GB, free: 10.64 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002225/2.446, allocations: 56.42 kB / 0.8743 GB, free: 10.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/2.447, allocations: 23.98 kB / 0.8743 GB, free: 10.57 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001319/2.448, allocations: 0.6289 MB / 0.8749 GB, free: 9.922 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.92e-07/2.448, allocations: 0 / 0.8749 GB, free: 9.922 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003742/2.452, allocations: 0.8273 MB / 0.8757 GB, free: 9.094 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.005775/2.457, allocations: 2.516 MB / 0.8782 GB, free: 6.547 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003938/2.461, allocations: 1.198 MB / 0.8794 GB, free: 5.355 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/2.462, allocations: 0 / 0.8794 GB, free: 5.355 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0014/2.463, allocations: 357.7 kB / 0.8797 GB, free: 5.004 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003414/2.466, allocations: 377.3 kB / 0.8801 GB, free: 4.633 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006497/2.473, allocations: 1.694 MB / 0.8817 GB, free: 2.891 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007163/2.474, allocations: 1.051 MB / 0.8828 GB, free: 1.812 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002729/2.477, allocations: 430.6 kB / 0.8832 GB, free: 1.391 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007741/2.477, allocations: 319.3 kB / 0.8835 GB, free: 1.078 MB / 458.7 MB Notification: Performance of SimCode: time 2.294e-06/2.477, allocations: 0 / 0.8835 GB, free: 1.078 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4537/2.931, allocations: 35.15 MB / 0.9178 GB, free: 87.24 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002614/2.931, allocations: 248.1 kB / 0.918 GB, free: 86.92 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.247/7.178, allocations: 3.5 kB / 0.918 GB, free: 86.92 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat