Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_ConstantPropertyLiquidWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.32/2.32, allocations: 235 MB / 247.6 MB, free: 14.54 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.425e-05/4.429e-05, allocations: 8 kB / 305 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4023/0.4023, allocations: 54.85 MB / 359.9 MB, free: 2.621 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.803/1.205, allocations: 347.8 MB / 0.6911 GB, free: 4.492 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003286/1.206, allocations: 89.75 kB / 0.6912 GB, free: 4.441 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.749/1.955, allocations: 129.3 MB / 0.8175 GB, free: 100.8 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.275e-06/1.955, allocations: 4 kB / 0.8175 GB, free: 100.8 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.645e-05/1.955, allocations: 20.38 kB / 0.8175 GB, free: 100.7 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002459/1.957, allocations: 0.8919 MB / 0.8184 GB, free: 99.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/1.958, allocations: 12.03 kB / 0.8184 GB, free: 99.79 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001845/1.958, allocations: 98.5 kB / 0.8185 GB, free: 99.68 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005094/1.958, allocations: 91.09 kB / 0.8186 GB, free: 99.59 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001614/1.96, allocations: 0.5442 MB / 0.8191 GB, free: 99 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001231/1.96, allocations: 100.4 kB / 0.8192 GB, free: 98.89 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001279/1.96, allocations: 51.94 kB / 0.8193 GB, free: 98.84 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/1.962, allocations: 0.8002 MB / 0.82 GB, free: 97.96 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/1.962, allocations: 7.922 kB / 0.8201 GB, free: 97.95 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001073/1.962, allocations: 27.94 kB / 0.8201 GB, free: 97.93 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.411e-05/1.962, allocations: 52.92 kB / 0.8201 GB, free: 97.87 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001433/1.964, allocations: 0.5874 MB / 0.8207 GB, free: 97.29 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00605/1.97, allocations: 4.026 MB / 0.8246 GB, free: 93.02 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008126/1.971, allocations: 315.2 kB / 0.8249 GB, free: 92.71 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003567/1.971, allocations: 165.4 kB / 0.8251 GB, free: 92.54 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002757/1.974, allocations: 1.816 MB / 0.8269 GB, free: 90.48 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/1.974, allocations: 42.5 kB / 0.8269 GB, free: 90.43 MB / 490.7 MB Notification: Performance of pre-optimization done (n=23): time 3.467e-06/1.974, allocations: 4 kB / 0.8269 GB, free: 90.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=33): time 0.004005/1.978, allocations: 1.108 MB / 0.828 GB, free: 89.26 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/1.978, allocations: 140.5 kB / 0.8281 GB, free: 89.09 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008865/1.979, allocations: 0.5422 MB / 0.8287 GB, free: 88.55 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.967e-05/1.979, allocations: 41.7 kB / 0.8287 GB, free: 88.5 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002475/1.979, allocations: 448.3 kB / 0.8291 GB, free: 88.05 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.832e-05/1.979, allocations: 122.3 kB / 0.8292 GB, free: 87.93 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.252e-05/1.979, allocations: 16 kB / 0.8293 GB, free: 87.92 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.296e-05/1.979, allocations: 342.8 kB / 0.8296 GB, free: 87.57 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003951/1.98, allocations: 173.5 kB / 0.8297 GB, free: 87.41 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005759/1.98, allocations: 0.554 MB / 0.8303 GB, free: 86.66 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005823/1.981, allocations: 291.6 kB / 0.8306 GB, free: 86.37 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.016e-05/1.981, allocations: 4 kB / 0.8306 GB, free: 86.37 MB / 490.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001539/1.983, allocations: 0.6926 MB / 0.8312 GB, free: 85.67 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/1.983, allocations: 15.94 kB / 0.8313 GB, free: 85.65 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.771e-05/1.983, allocations: 15.94 kB / 0.8313 GB, free: 85.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.278e-05/1.983, allocations: 20 kB / 0.8313 GB, free: 85.62 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/1.984, allocations: 208.4 kB / 0.8315 GB, free: 85.41 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.171e-05/1.984, allocations: 31.86 kB / 0.8315 GB, free: 85.38 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009843/1.985, allocations: 51.83 kB / 0.8316 GB, free: 85.33 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.64e-05/1.985, allocations: 43.98 kB / 0.8316 GB, free: 85.29 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 95 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002045/1.986, allocations: 168.6 kB / 0.8318 GB, free: 85.12 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/1.986, allocations: 63.25 kB / 0.8318 GB, free: 85.05 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001063/1.987, allocations: 418.3 kB / 0.8322 GB, free: 84.63 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/1.987, allocations: 4 kB / 0.8322 GB, free: 84.62 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/1.987, allocations: 0 / 0.8322 GB, free: 84.62 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/1.987, allocations: 3.984 kB / 0.8322 GB, free: 84.62 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002217/1.989, allocations: 1.202 MB / 0.8334 GB, free: 83.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.637e-06/1.989, allocations: 7.953 kB / 0.8334 GB, free: 83.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005208/1.99, allocations: 71.84 kB / 0.8335 GB, free: 83.22 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002683/1.99, allocations: 40.83 kB / 0.8335 GB, free: 83.18 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.34e-05/1.99, allocations: 11.94 kB / 0.8335 GB, free: 83.17 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003725/1.99, allocations: 0.5606 MB / 0.8341 GB, free: 82.58 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/1.99, allocations: 7.938 kB / 0.8341 GB, free: 82.57 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001244/1.992, allocations: 0.8288 MB / 0.8349 GB, free: 81.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003675/1.992, allocations: 192.2 kB / 0.8351 GB, free: 81.39 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001357/1.992, allocations: 12 kB / 0.8351 GB, free: 81.38 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006567/1.993, allocations: 28.05 kB / 0.8351 GB, free: 81.36 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.157e-05/1.993, allocations: 35.86 kB / 0.8352 GB, free: 81.32 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.353e-05/1.993, allocations: 19.98 kB / 0.8352 GB, free: 81.3 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0007366/1.994, allocations: 419.2 kB / 0.8356 GB, free: 80.89 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.994, allocations: 0 / 0.8356 GB, free: 80.89 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001324/1.995, allocations: 215.9 kB / 0.8358 GB, free: 80.68 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 1 (volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 34 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002207/1.997, allocations: 2.492 MB / 0.8382 GB, free: 78.08 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001101/1.998, allocations: 431.4 kB / 0.8386 GB, free: 77.66 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.096e-06/1.998, allocations: 4 kB / 0.8386 GB, free: 77.66 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005009/1.999, allocations: 151.8 kB / 0.8388 GB, free: 77.51 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002211/2.001, allocations: 265.7 kB / 0.839 GB, free: 77.25 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003065/2.004, allocations: 1.11 MB / 0.8401 GB, free: 76.05 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000471/2.005, allocations: 0.9492 MB / 0.841 GB, free: 75.08 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004685/2.005, allocations: 231.4 kB / 0.8413 GB, free: 74.85 MB / 490.7 MB Notification: Performance of SimCode: time 1.072e-06/2.005, allocations: 0 / 0.8413 GB, free: 74.85 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.1/5.106, allocations: 15.32 MB / 0.8562 GB, free: 59.55 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.ConstantPropertyLiquidWater_res.mat does not exist to compare? outputFormat=mat