Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.958/1.958, allocations: 194.9 MB / 208 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.173e-05/3.177e-05, allocations: 4 kB / 255.5 MB, free: 2.602 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09447/0.09453, allocations: 44.5 MB / 300 MB, free: 6.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9917/1.086, allocations: 322.2 MB / 0.6076 GB, free: 65.47 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003449/1.087, allocations: 91.08 kB / 0.6077 GB, free: 65.42 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.772/2.859, allocations: 321.4 MB / 0.9216 GB, free: 57.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.916e-06/2.859, allocations: 0 / 0.9216 GB, free: 57.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002639/2.859, allocations: 44.23 kB / 0.9217 GB, free: 57.19 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.009125/2.868, allocations: 2.046 MB / 0.9237 GB, free: 56.13 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/2.868, allocations: 11.66 kB / 0.9237 GB, free: 56.13 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008109/2.869, allocations: 186.5 kB / 0.9239 GB, free: 56.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001236/2.87, allocations: 198.8 kB / 0.9241 GB, free: 55.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004993/2.875, allocations: 1.245 MB / 0.9253 GB, free: 55.28 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002012/2.876, allocations: 98.78 kB / 0.9254 GB, free: 55.24 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007262/2.876, allocations: 120.9 kB / 0.9255 GB, free: 55.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005706/2.882, allocations: 1.909 MB / 0.9273 GB, free: 54.35 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.686e-05/2.882, allocations: 0.5156 kB / 0.9273 GB, free: 54.35 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003178/2.882, allocations: 54.33 kB / 0.9274 GB, free: 54.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002429/2.883, allocations: 116.7 kB / 0.9275 GB, free: 54.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005958/2.889, allocations: 1.901 MB / 0.9294 GB, free: 53.64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02053/2.909, allocations: 7.629 MB / 0.9368 GB, free: 48.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00303/2.912, allocations: 1.12 MB / 0.9379 GB, free: 48.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001936/2.914, allocations: 0.7279 MB / 0.9386 GB, free: 47.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008121/2.923, allocations: 3.384 MB / 0.9419 GB, free: 45.72 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.997e-05/2.923, allocations: 45.25 kB / 0.942 GB, free: 45.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 4.589e-06/2.923, allocations: 3.875 kB / 0.942 GB, free: 45.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.01587/2.939, allocations: 4.078 MB / 0.946 GB, free: 44.04 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.76e-05/2.939, allocations: 170.9 kB / 0.9461 GB, free: 43.85 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00244/2.941, allocations: 1.153 MB / 0.9472 GB, free: 43.39 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000501/2.942, allocations: 61.39 kB / 0.9473 GB, free: 43.33 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007225/2.942, allocations: 0.7276 MB / 0.948 GB, free: 42.76 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007549/2.943, allocations: 464.5 kB / 0.9485 GB, free: 42.41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002069/2.943, allocations: 35.5 kB / 0.9485 GB, free: 42.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/2.944, allocations: 384 kB / 0.9489 GB, free: 42.05 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002015/2.946, allocations: 0.7292 MB / 0.9496 GB, free: 41.78 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002459/2.948, allocations: 1.18 MB / 0.9507 GB, free: 40.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002409/2.951, allocations: 0.868 MB / 0.9516 GB, free: 39.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.825e-05/2.951, allocations: 4 kB / 0.9516 GB, free: 39.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.00696/2.958, allocations: 2.343 MB / 0.9539 GB, free: 37.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001185/2.959, allocations: 5.201 MB / 0.9589 GB, free: 32.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.545e-05/2.959, allocations: 12 kB / 0.9589 GB, free: 32.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009569/2.968, allocations: 0.938 MB / 0.9599 GB, free: 31.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002924/2.971, allocations: 371.5 kB / 0.9602 GB, free: 31.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003609/2.975, allocations: 2.871 MB / 0.963 GB, free: 28.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003186/2.978, allocations: 138.5 kB / 0.9632 GB, free: 28.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006104/2.979, allocations: 78.19 kB / 0.9632 GB, free: 28.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/2.979, allocations: 4 kB / 0.9632 GB, free: 28.41 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005754/2.985, allocations: 2.069 MB / 0.9653 GB, free: 26.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.742e-05/2.985, allocations: 12 kB / 0.9653 GB, free: 26.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007454/2.992, allocations: 0.6787 MB / 0.9659 GB, free: 26.08 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002972/2.995, allocations: 370.8 kB / 0.9663 GB, free: 25.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002712/2.998, allocations: 2.632 MB / 0.9689 GB, free: 23.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002906/3.001, allocations: 130.3 kB / 0.969 GB, free: 23.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004589/3.002, allocations: 87.69 kB / 0.9691 GB, free: 22.96 MB / 410.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.0006446/3.002, allocations: 225.1 kB / 0.9693 GB, free: 22.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000523/3.003, allocations: 162 kB / 0.9694 GB, free: 22.57 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007696/3.011, allocations: 2.319 MB / 0.9717 GB, free: 20.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-05/3.011, allocations: 16 kB / 0.9717 GB, free: 20.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/3.011, allocations: 0 / 0.9717 GB, free: 20.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.235e-05/3.011, allocations: 7.969 kB / 0.9717 GB, free: 20.56 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01158/3.022, allocations: 3.906 MB / 0.9755 GB, free: 16.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.459e-05/3.022, allocations: 0 / 0.9755 GB, free: 16.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002195/3.025, allocations: 239.9 kB / 0.9758 GB, free: 16.37 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006894/3.032, allocations: 0.8735 MB / 0.9766 GB, free: 15.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004665/3.032, allocations: 39.97 kB / 0.9767 GB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003047/3.035, allocations: 2.824 MB / 0.9794 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/3.035, allocations: 0 / 0.9794 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008254/3.043, allocations: 3.174 MB / 0.9825 GB, free: 9.258 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008289/3.044, allocations: 258.9 kB / 0.9828 GB, free: 8.984 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007633/3.045, allocations: 39.98 kB / 0.9828 GB, free: 8.945 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002371/3.048, allocations: 107.8 kB / 0.9829 GB, free: 8.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005918/3.048, allocations: 149 kB / 0.983 GB, free: 8.695 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002283/3.048, allocations: 59.97 kB / 0.9831 GB, free: 8.637 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001882/3.05, allocations: 0.8783 MB / 0.984 GB, free: 7.758 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.242e-06/3.05, allocations: 0 / 0.984 GB, free: 7.758 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00701/3.057, allocations: 1.362 MB / 0.9853 GB, free: 6.395 MB / 410.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.01239/3.07, allocations: 5.265 MB / 0.9904 GB, free: 1.168 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.3187/3.389, allocations: 2.98 MB / 0.9933 GB, free: 54.58 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/3.389, allocations: 0.875 kB / 0.9933 GB, free: 54.58 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004053/3.393, allocations: 1.034 MB / 0.9943 GB, free: 54.58 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006695/3.4, allocations: 0.6553 MB / 0.995 GB, free: 54.58 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01501/3.415, allocations: 3.554 MB / 0.9985 GB, free: 53.91 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002265/3.417, allocations: 1.434 MB / 0.9999 GB, free: 53.2 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.006713/3.424, allocations: 0.8285 MB / 1.001 GB, free: 53.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001837/3.426, allocations: 0.6352 MB / 1.001 GB, free: 53.17 MB / 410.7 MB Notification: Performance of SimCode: time 2.645e-06/3.426, allocations: 1.062 kB / 1.001 GB, free: 53.17 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1662/3.592, allocations: 64.33 MB / 1.064 GB, free: 49.24 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003363/3.592, allocations: 238.8 kB / 1.064 GB, free: 48.93 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.878/9.47, allocations: 0 / 1.064 GB, free: 48.93 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat