Bug description
Simulink MEX S-function FAST_SFunc.mexw64 fails to load on Windows due to a DLL dependency name mismatch in the OpenFAST v5.0.0 precompiled Windows binaries release assets. The MEX expects OpenFAST-Simulink_Matlab_Release.dll, but the asset provides OpenFAST-Simulink.dll. Renaming the DLL to the expected name makes the simulation work.
To Reproduce
Steps to reproduce the behavior:
- Download OpenFAST v5.0.0 from GitHub Releases → Assets → Precompiled Windows Binaries.
- Use the provided Simulink interface files from that package (
FAST_SFunc.mexw64 and the Simulink DLL).
- In MATLAB/Simulink, open a model that uses the S-Function block
FAST_SFunc (e.g., .../FAST Nonlinear Wind Turbine/S-Function) and start simulation.
- Observe error:
Invalid MEX-file 'E:\HL_Simulations\FAST_SFunc.mexw64': The specified module could not be found.
- Using the “Dependencies” tool on
FAST_SFunc.mexw64 shows it requires OpenFAST-Simulink_Matlab_Release.dll, but the release asset provides OpenFAST-Simulink.dll.
Expected behavior
The precompiled Windows binaries should contain a Simulink DLL whose filename matches what FAST_SFunc.mexw64 is linked against, so the MEX loads without manual renaming.
OpenFAST Version
**************************************************************************************************
OpenFAST
Copyright (C) 2026 National Renewable Energy Laboratory
Copyright (C) 2026 Envision Energy USA LTD
This program is licensed under Apache License Version 2.0 and comes with ABSOLUTELY NO WARRANTY.
See the "LICENSE" file distributed with this software for details.
**************************************************************************************************
OpenFAST-unversioned
Compile Info:
- Compiler: Intel(R) Fortran Compiler 20250302
- Architecture: 64 bit
- Precision: single
- OpenMP: No
- Date: Mar 13 2026
- Time: 19:07:51
Execution Info:
- Date: 03/19/2026
- Time: 13:49:12+0100
System Information
- OS: Windows 11 Pro (Build 26200)
- MATLAB/Simulink: R2025b Update 4
Additional context
- In OpenFAST v4.2.0 the dependency was
OpenFAST-Simulink_x64.dll and the provided file naming matched, so the MEX loaded without issues.
- Workaround: rename
OpenFAST-Simulink.dll to OpenFAST-Simulink_Matlab_Release.dll. After renaming, the Simulink simulation runs correctly.
Bug description
Simulink MEX S-function
FAST_SFunc.mexw64fails to load on Windows due to a DLL dependency name mismatch in the OpenFAST v5.0.0 precompiled Windows binaries release assets. The MEX expectsOpenFAST-Simulink_Matlab_Release.dll, but the asset providesOpenFAST-Simulink.dll. Renaming the DLL to the expected name makes the simulation work.To Reproduce
Steps to reproduce the behavior:
FAST_SFunc.mexw64and the Simulink DLL).FAST_SFunc(e.g.,.../FAST Nonlinear Wind Turbine/S-Function) and start simulation.FAST_SFunc.mexw64shows it requiresOpenFAST-Simulink_Matlab_Release.dll, but the release asset providesOpenFAST-Simulink.dll.Expected behavior
The precompiled Windows binaries should contain a Simulink DLL whose filename matches what
FAST_SFunc.mexw64is linked against, so the MEX loads without manual renaming.OpenFAST Version
System Information
Additional context
OpenFAST-Simulink_x64.dlland the provided file naming matched, so the MEX loaded without issues.OpenFAST-Simulink.dlltoOpenFAST-Simulink_Matlab_Release.dll. After renaming, the Simulink simulation runs correctly.