-
Notifications
You must be signed in to change notification settings - Fork 522
OpenFAST v5.0.0 Simulink Windows binaries: DLL name mismatch breaks FAST_SFunc.mexw64 #3274
Copy link
Copy link
Open
Milestone
Description
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.mexw64and 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.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.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.dlland the provided file naming matched, so the MEX loaded without issues. - Workaround: rename
OpenFAST-Simulink.dlltoOpenFAST-Simulink_Matlab_Release.dll. After renaming, the Simulink simulation runs correctly.
Reactions are currently unavailable