-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible memory leak #2613
Comments
@Typhaceae Thank you for the bug report. Before I try to reproduce, could you tell me if you're running the model with binary output? If so, could you try running the model with text-based output and see if the increase in memory stops? When doing binary output, Fortran will allocate memory to store all of the output data at the beginning of the simulation, but the OS will only show that memory as being used as data is being written to it. I'm not saying this is the issue, but it's very easy to check before digging further. |
@deslaughter In fact, in my use case, I set OutFileFmt to 3, generate both text and binary files. Edited: For the case 5MW_OC3Mnpl_DLL_WTurb_WavesIrr, the phenomenon is similar. |
@Typhaceae Thank you for the detailed test cases. I'm able to reproduce the increasing memory usage on Linux with ifx 2025.2. I'm running valgrind now and hoping that I can figure out where it's coming from. |
Bug description
Memory leaks may occur when using binary compiled with the IFX compiler in Intel oneAPI 2025.0.0 or 2025.0.1.
When running the OpenFAST binary (version 4.0.0, IEA Wind 15-MW RWT) compiled with the IFX compiler, memory usage gradually increases from ~1.5 GB to approximately ~10 GB (single precision, after ~1 hour) during the time-history analysis phase.
This phenomenon also occurs with 5MW_OC3Mnpl_DLL_WTurb_WavesIrr in the r-test, but since this model is much smaller, memory usage increases from ~30 MB to ~120 MB (after ~1 minute).
This does not occur when using the precompiled binary (openfast_x64.exe) from the release. I am uncertain if this behavior should be considered a memory leak, or if it is a designed feature of OpenFAST (in my use case, the IFX version of OpenFAST has faster computation speed).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Memory usage does not increase significantly as the time-history analysis progresses when the binary is compiled with the IFX compiler.
OpenFAST Version
OpenFAST v4.0.0, git commit da685d4.
System Information (please complete the following information):
The text was updated successfully, but these errors were encountered: