Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_LinearFluid_LinearWater_pT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.065/2.065, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.929e-05/3.937e-05, allocations: 0 / 273.2 MB, free: 0.6211 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1121, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.961/9.074, allocations: 2.841 GB / 3.155 GB, free: 35.23 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004928/9.074, allocations: 91.77 kB / 3.155 GB, free: 35.18 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.301/14.38, allocations: 1.099 GB / 4.254 GB, free: 63.14 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.503e-06/14.38, allocations: 0.9375 kB / 4.254 GB, free: 63.14 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.965e-05/14.38, allocations: 21.64 kB / 4.254 GB, free: 63.14 MB / 442.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.007056/14.38, allocations: 1.571 MB / 4.256 GB, free: 62.26 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/14.38, allocations: 10.38 kB / 4.256 GB, free: 62.26 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001938/14.38, allocations: 99.34 kB / 4.256 GB, free: 62.22 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005173/14.38, allocations: 90.17 kB / 4.256 GB, free: 62.18 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001411/14.38, allocations: 0.5391 MB / 4.256 GB, free: 61.92 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/14.39, allocations: 104.7 kB / 4.256 GB, free: 61.86 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000124/14.39, allocations: 56.91 kB / 4.256 GB, free: 61.86 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001724/14.39, allocations: 0.7905 MB / 4.257 GB, free: 61.64 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.013e-05/14.39, allocations: 7.281 kB / 4.257 GB, free: 61.63 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/14.39, allocations: 25.2 kB / 4.257 GB, free: 61.63 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.384e-05/14.39, allocations: 44.88 kB / 4.257 GB, free: 61.62 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001448/14.39, allocations: 0.6065 MB / 4.258 GB, free: 61.62 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006758/14.4, allocations: 3.895 MB / 4.262 GB, free: 59.19 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/14.4, allocations: 380.7 kB / 4.262 GB, free: 59.17 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004504/14.4, allocations: 199.3 kB / 4.262 GB, free: 59.16 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005377/14.4, allocations: 0.5032 MB / 4.263 GB, free: 58.59 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.979e-05/14.4, allocations: 38.64 kB / 4.263 GB, free: 58.55 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 3.005e-06/14.4, allocations: 0 / 4.263 GB, free: 58.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.004252/14.4, allocations: 1.308 MB / 4.264 GB, free: 58.16 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.695e-05/14.4, allocations: 136.5 kB / 4.264 GB, free: 58 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008376/14.4, allocations: 493.2 kB / 4.265 GB, free: 57.88 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001185/14.4, allocations: 33.52 kB / 4.265 GB, free: 57.84 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002391/14.4, allocations: 403.1 kB / 4.265 GB, free: 57.58 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001745/14.4, allocations: 163.4 kB / 4.265 GB, free: 57.48 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.113e-05/14.4, allocations: 19.75 kB / 4.265 GB, free: 57.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.479e-05/14.4, allocations: 340.7 kB / 4.266 GB, free: 57.16 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005404/14.4, allocations: 214.5 kB / 4.266 GB, free: 57.09 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006942/14.41, allocations: 0.5192 MB / 4.266 GB, free: 56.61 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006817/14.41, allocations: 317.1 kB / 4.267 GB, free: 56.52 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.276e-06/14.41, allocations: 3.906 kB / 4.267 GB, free: 56.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00273/14.41, allocations: 0.8869 MB / 4.267 GB, free: 56.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/14.41, allocations: 15.34 kB / 4.267 GB, free: 56.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/14.41, allocations: 11.89 kB / 4.268 GB, free: 56.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001632/14.41, allocations: 249.6 kB / 4.268 GB, free: 56.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008932/14.41, allocations: 134.5 kB / 4.268 GB, free: 56.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/14.41, allocations: 0.8458 MB / 4.269 GB, free: 55.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/14.41, allocations: 48.72 kB / 4.269 GB, free: 55.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.729e-05/14.41, allocations: 34.34 kB / 4.269 GB, free: 55.46 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (77): * Single equations (assignments): 76 * 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 {2 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002429/14.41, allocations: 161.1 kB / 4.269 GB, free: 55.31 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001763/14.41, allocations: 72.69 kB / 4.269 GB, free: 55.28 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001926/14.42, allocations: 0.6761 MB / 4.27 GB, free: 54.98 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.52e-05/14.42, allocations: 3.719 kB / 4.27 GB, free: 54.98 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/14.42, allocations: 6.469 kB / 4.27 GB, free: 54.98 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/14.42, allocations: 3 kB / 4.27 GB, free: 54.98 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00319/14.42, allocations: 1.367 MB / 4.271 GB, free: 54.24 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/14.42, allocations: 0 / 4.271 GB, free: 54.24 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001913/14.42, allocations: 197.8 kB / 4.271 GB, free: 54.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003883/14.42, allocations: 58.64 kB / 4.271 GB, free: 54.21 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.148e-05/14.42, allocations: 14.31 kB / 4.271 GB, free: 54.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002597/14.42, allocations: 2.775 MB / 4.274 GB, free: 51.45 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/14.42, allocations: 3.375 kB / 4.274 GB, free: 51.45 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003254/14.43, allocations: 1.028 MB / 4.275 GB, free: 50.83 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005723/14.43, allocations: 205.2 kB / 4.275 GB, free: 50.67 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001514/14.43, allocations: 19.7 kB / 4.275 GB, free: 50.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000771/14.43, allocations: 22.89 kB / 4.275 GB, free: 50.65 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/14.43, allocations: 45.91 kB / 4.275 GB, free: 50.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.848e-05/14.43, allocations: 19.55 kB / 4.275 GB, free: 50.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007036/14.43, allocations: 370.6 kB / 4.276 GB, free: 50.47 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.11e-07/14.43, allocations: 3.656 kB / 4.276 GB, free: 50.47 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00164/14.43, allocations: 242.7 kB / 4.276 GB, free: 50.43 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003528/14.44, allocations: 2.361 MB / 4.278 GB, free: 48.75 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001857/14.44, allocations: 0.5682 MB / 4.279 GB, free: 48.56 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/14.44, allocations: 4 kB / 4.279 GB, free: 48.55 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001756/14.44, allocations: 442.3 kB / 4.279 GB, free: 48.36 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002683/14.44, allocations: 310.2 kB / 4.279 GB, free: 48.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003533/14.45, allocations: 1.22 MB / 4.281 GB, free: 47.73 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004895/14.45, allocations: 0.9543 MB / 4.282 GB, free: 47.01 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005465/14.45, allocations: 236 kB / 4.282 GB, free: 46.85 MB / 442.7 MB Notification: Performance of SimCode: time 1.082e-06/14.45, allocations: 0 / 4.282 GB, free: 46.85 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.209/17.66, allocations: 18.5 MB / 4.3 GB, free: 41.41 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearWater_pT_res.mat does not exist to compare? outputFormat=mat