Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.646/1.646, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.205e-05/3.224e-05, allocations: 4 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2552, allocations: 38.76 MB / 263.8 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8723/1.128, allocations: 316.9 MB / 0.5671 GB, free: 67.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003043/1.128, allocations: 94.31 kB / 0.5672 GB, free: 67.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.591/2.719, allocations: 321.4 MB / 0.8811 GB, free: 37.92 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.364e-06/2.719, allocations: 0 / 0.8811 GB, free: 37.92 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002338/2.719, allocations: 47.91 kB / 0.8811 GB, free: 37.88 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.007982/2.727, allocations: 2.037 MB / 0.8831 GB, free: 35.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/2.727, allocations: 12.03 kB / 0.8831 GB, free: 35.8 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007361/2.728, allocations: 191.3 kB / 0.8833 GB, free: 35.62 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00106/2.729, allocations: 208 kB / 0.8835 GB, free: 35.42 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004555/2.734, allocations: 1.243 MB / 0.8847 GB, free: 34.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001407/2.734, allocations: 108.2 kB / 0.8848 GB, free: 34.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005042/2.734, allocations: 111.6 kB / 0.8849 GB, free: 33.94 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005344/2.74, allocations: 1.921 MB / 0.8868 GB, free: 31.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.614e-05/2.74, allocations: 7.984 kB / 0.8868 GB, free: 31.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000299/2.74, allocations: 54.08 kB / 0.8869 GB, free: 31.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002358/2.74, allocations: 110.3 kB / 0.887 GB, free: 31.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00581/2.746, allocations: 1.926 MB / 0.8889 GB, free: 29.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01914/2.766, allocations: 7.632 MB / 0.8963 GB, free: 21.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002627/2.768, allocations: 1.134 MB / 0.8974 GB, free: 20.74 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001708/2.77, allocations: 0.7227 MB / 0.8981 GB, free: 20.01 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007452/2.777, allocations: 3.377 MB / 0.9014 GB, free: 16.4 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.885e-05/2.777, allocations: 55.48 kB / 0.9015 GB, free: 16.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 4.508e-06/2.778, allocations: 2.844 kB / 0.9015 GB, free: 16.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.01342/2.791, allocations: 4.083 MB / 0.9055 GB, free: 12.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.481e-05/2.791, allocations: 171.5 kB / 0.9056 GB, free: 12.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002105/2.793, allocations: 1.166 MB / 0.9068 GB, free: 10.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003651/2.794, allocations: 57.7 kB / 0.9068 GB, free: 10.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005342/2.794, allocations: 0.6958 MB / 0.9075 GB, free: 10.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005717/2.795, allocations: 466.7 kB / 0.908 GB, free: 9.625 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001655/2.795, allocations: 36 kB / 0.908 GB, free: 9.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/2.795, allocations: 378.8 kB / 0.9083 GB, free: 9.211 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00183/2.797, allocations: 0.7302 MB / 0.9091 GB, free: 8.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002076/2.799, allocations: 1.186 MB / 0.9102 GB, free: 7.102 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002055/2.801, allocations: 0.8762 MB / 0.9111 GB, free: 6.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/2.801, allocations: 4 kB / 0.9111 GB, free: 6.227 MB / 362.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005922/2.807, allocations: 2.288 MB / 0.9133 GB, free: 3.918 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2673/3.074, allocations: 5.138 MB / 0.9183 GB, free: 39.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.337e-05/3.074, allocations: 12.62 kB / 0.9183 GB, free: 39.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009613/3.084, allocations: 0.9434 MB / 0.9193 GB, free: 39.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002816/3.087, allocations: 358.8 kB / 0.9196 GB, free: 39.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003359/3.09, allocations: 2.877 MB / 0.9224 GB, free: 37.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002911/3.093, allocations: 140.1 kB / 0.9225 GB, free: 37.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003851/3.094, allocations: 86.8 kB / 0.9226 GB, free: 37.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/3.094, allocations: 3.031 kB / 0.9226 GB, free: 37.62 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005784/3.099, allocations: 2.092 MB / 0.9247 GB, free: 37.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-05/3.1, allocations: 14.19 kB / 0.9247 GB, free: 37.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007184/3.107, allocations: 0.6682 MB / 0.9253 GB, free: 37.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002915/3.11, allocations: 372.2 kB / 0.9257 GB, free: 37.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002665/3.112, allocations: 2.609 MB / 0.9282 GB, free: 35.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002275/3.115, allocations: 134.8 kB / 0.9284 GB, free: 35.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003028/3.115, allocations: 84.77 kB / 0.9285 GB, free: 35.46 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.0006046/3.116, allocations: 220.6 kB / 0.9287 GB, free: 35.35 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004948/3.116, allocations: 165.5 kB / 0.9288 GB, free: 35.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007086/3.123, allocations: 2.312 MB / 0.9311 GB, free: 35.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-05/3.123, allocations: 17.41 kB / 0.9311 GB, free: 35.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/3.123, allocations: 0 / 0.9311 GB, free: 35.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.389e-05/3.123, allocations: 10.08 kB / 0.9311 GB, free: 35.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/3.134, allocations: 3.913 MB / 0.9349 GB, free: 34.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-05/3.134, allocations: 1.844 kB / 0.9349 GB, free: 34.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002145/3.136, allocations: 250.8 kB / 0.9352 GB, free: 34.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006652/3.143, allocations: 0.8679 MB / 0.936 GB, free: 34.74 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004177/3.144, allocations: 37.77 kB / 0.9361 GB, free: 34.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003014/3.147, allocations: 2.821 MB / 0.9388 GB, free: 32.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/3.147, allocations: 8.906 kB / 0.9388 GB, free: 32.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007583/3.154, allocations: 3.162 MB / 0.9419 GB, free: 32.26 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000777/3.155, allocations: 269 kB / 0.9422 GB, free: 32.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005201/3.156, allocations: 41.45 kB / 0.9422 GB, free: 32.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002353/3.158, allocations: 101.8 kB / 0.9423 GB, free: 32.07 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007468/3.159, allocations: 149.6 kB / 0.9424 GB, free: 32.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00026/3.159, allocations: 60.08 kB / 0.9425 GB, free: 32.07 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00206/3.161, allocations: 0.8763 MB / 0.9434 GB, free: 31.95 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.32e-07/3.161, allocations: 0 / 0.9434 GB, free: 31.95 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005728/3.167, allocations: 1.365 MB / 0.9447 GB, free: 31.95 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.0116/3.179, allocations: 5.241 MB / 0.9498 GB, free: 30.54 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009227/3.188, allocations: 2.994 MB / 0.9527 GB, free: 30.49 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/3.188, allocations: 0 / 0.9527 GB, free: 30.49 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00299/3.191, allocations: 1.046 MB / 0.9538 GB, free: 30.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005557/3.196, allocations: 0.6678 MB / 0.9544 GB, free: 30.47 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01068/3.207, allocations: 3.603 MB / 0.9579 GB, free: 29.72 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001711/3.209, allocations: 1.422 MB / 0.9593 GB, free: 45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001695/3.211, allocations: 0.6675 MB / 0.96 GB, free: 44.99 MB / 378.7 MB Notification: Performance of SimCode: time 1.453e-06/3.211, allocations: 0 / 0.96 GB, free: 44.99 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.94/7.15, allocations: 66.31 MB / 1.025 GB, free: 22.68 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat