FASTv8 Error Matlab: Error from Test20

Hello,

Sometimes errors appear When simulating FASTv8 from Test19 and sometimes from Test20.

This error appears in the first attempt from Test19:
Error using Run_OpenLoop (line 30)
Error reported by S-function ‘FAST_SFunc’ in ‘OpenLoop/FAST Nonlinear Wind Turbine/S-Function’:
FAST_Solution0:CalcOutputs_And_SolveForInputs:SolveOption2:SrvD_CalcOutput:Running with torque and pitch control
of the NREL offshore 5MW baseline wind turbine from DISCON.dll as written by J. Jonkman of NREL/NWTC for use in
the IEA Annex XXIII OC3 studies.
CalcOutputs_And_SolveForInputs:SolveOption1:ED_SD_HD_BD_Orca_InputOutputSolve:LAPACK_SGETRF: U( 71,
71)=0. Factor U is exactly singular.

This error appears in the first attempt from Test20:
Error using Run_OpenLoop (line 30)
Error reported by S-function ‘FAST_SFunc’ in ‘OpenLoop/FAST Nonlinear Wind Turbine/S-Function’:
FAST_Solution0:CalcOutputs_And_SolveForInputs:SolveOption2:SrvD_CalcOutput:Running with torque and pitch control
of the NREL offshore 5MW baseline wind turbine from DISCON.dll as written by J. Jonkman of NREL/NWTC for use in
the IEA Annex XXIII OC3 studies.
CalcOutputs_And_SolveForInputs:SolveOption1:ED_SD_HD_BD_Orca_InputOutputSolve:LAPACK_SGETRF: U( 953,
953)=0. Factor U is exactly singular.

Does somebody has any idea? I use MATLAB2015a.
Thank you very much

Hi, David.

I recently discovered an uninitialized variable in the Morison module. I do not know if that will solve the problem you are having, but it is very possible this is the problem.

In Morison.f90, line 4227 (FAST 8.15), add this line: m%D_F_AM = 0.0_ReKi
In context, it should look like this: ALLOCATE ( m%D_F_AM(6,y%DistribMesh%Nnodes), STAT = ErrStat ) IF ( ErrStat /= ErrID_None ) THEN ErrMsg = ' Error allocating space for D_F_AM array.' ErrStat = ErrID_Fatal RETURN END IF m%D_F_AM = 0.0_ReKi ! bjj: initialized it because it wasn't initialized for the moment calculations.
Then, you’ll have to recompile FAST_Library.dll

We will have this fixed in the next release (hopefully by the end of July).

Dear Bonnie,

thank you fo your answer. Please, how can I recompile the FAST_Library.dll ?

Thank you very much in advance for your answer

The “Compiling FAST for Simulink” section of the FAST ReadMe document describes what you need to do.

Dean Bonnie,

when ich recompile FAST_Library.dll using Mircosoft visual studio I become this error:
error #10037: could not find ‘link’

How can I change:
FAST_Library.f90 in place of FAST_Prog.f90 and
SysMatlab.f90 in place of SysIVF.f90

David,

When you get an error about not finding ‘link’, that usually means either you haven’t installed Microsoft Visual Studio properly (before installing Intel Visual Fortran) or you are trying to use Intel Visual Fortran from a command line without calling the proper batch files to set the paths to the linker (these get set when you open the Intel Command Window described in the FAST compiling instructions).

If you use the FAST_Library.vfproj file in the \Simulink\VisualStudio directory, you shouldn’t have to change which source files are in the project. You may need to change the path to the Matlab library it links with, but that is described in the FAST ReadMe.

Dear Bonnie,

after the compiling. I canot create the .mexw64 or .mexw32. I become this error. Please do you any idea? Thanks

create_FAST_SFunc
Verbose mode is on.
Neither -compatibleArrayDims nor -largeArrayDims is selected.
Using -compatibleArrayDims. In the future, MATLAB will require the use of
-largeArrayDims and remove the -compatibleArrayDims option.
For more information:
mathworks.com/help/matlab/ma … t-api.html.
… Looking for compiler ‘Microsoft Visual C++ 2012 (C)’ …
… Looking for registry setting ‘HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7’ 11.0 …Yes ('C:\Program Files (x86)\Microsoft Visual Studio 11.0').
… Looking for file ‘C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64\cl.exe’ …Yes.
… Looking for folder ‘C:\Program Files (x86)\Microsoft Visual Studio 11.0’ …Yes.
… Looking for registry setting ‘HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0’ InstallationFolder …No.
… Looking for registry setting ‘HKCU\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0’ InstallationFolder …No.
… Looking for registry setting ‘HKLM\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v8.0’ InstallationFolder …Yes ('C:\Program Files (x86)\Windows Kits\8.0').
… Looking for registry setting ‘HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7’ 11.0 …Yes ('C:\Program Files (x86)\Microsoft Visual Studio 11.0').
… Looking for registry setting ‘HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VC7’ 11.0 …No.
… Looking for registry setting ‘HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VC7’ 11.0 …No.
… Looking for registry setting ‘HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VC7’ 11.0 …Yes ('C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC').
… Looking for environment variable ‘VS110COMNTOOLS’ …Yes ('C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools').
… Looking for file ‘C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe’ …Yes.
… Looking for registry setting ‘HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7’ 11.0 …Yes ('C:\Program Files (x86)\Microsoft Visual Studio 11.0').
… Looking for file ‘C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat’ …Yes.
… Looking for folder ‘C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC’ …Yes.
Found installed compiler ‘Microsoft Visual C++ 2012 (C)’.
Set PATH = C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\Bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\Bin\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools;C:\Program Files (x86)\Windows Kits\8.0\Bin\x64;C:\Program Files (x86)\Windows Kits\8.0\Bin;;C:\Program Files (x86)\Intel\MPI\4.1.3.045\em64t\bin;C:\Program Files (x86)\Intel\MPI\4.1.3.045\ia32\bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Intel\Trace Analyzer and Collector\8.1.4.045\bin;C:\Program Files (x86)\Intel\icsxe\2013.1.046\bin;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\WIDCOMM\Bluetooth Software;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Common Files\lenovo\easyplussdk\bin;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Users\David.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin;C:\Program Files (x86)\LyX 2.1\Perl\bin;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\runtime\win64;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin;C:\Program Files\MATLAB\R2014a\runtime\win64;C:\Program Files\MATLAB\R2014a\bin;C:\Program Files (x86)\MATLAB\R2014a\runtime\win32;C:\Program Files (x86)\MATLAB\R2014a\bin;C:\Program Files (x86)\MATLAB\R2014a\polyspace\bin;C:\Program Files\MATLAB\R2014a\polyspace\bin;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\polyspace\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Intel\Trace Analyzer and Collector\8.1.4.045\dll\impi64;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon
Set INCLUDE = C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE;C:\Program Files (x86)\Windows Kits\8.0\include\shared;C:\Program Files (x86)\Windows Kits\8.0\include\um;C:\Program Files (x86)\Windows Kits\8.0\include\winrt;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include;C:\Program Files (x86)\Intel\Trace Analyzer and Collector\8.1.4.045\include
Set LIB = C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\Lib\amd64;C:\Program Files (x86)\Windows Kits\8.0\Lib\X64;C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x64;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\lib\win64;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\LIB\amd64;
Set LIBPATH = C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\Lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\LIB\amd64;C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x64;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\lib\win64;;
Options file details

Compiler location: C:\Program Files (x86)\Microsoft Visual Studio 11.0
Options file: C:\Users\David\AppData\Roaming\MathWorks\MATLAB\R2015a\mex_C_win64.xml
CMDLINE100 : cl /c /GR /W3 /EHs /nologo /MD -I../../Source -I../../Source/dependencies/OpenFOAM  -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include" -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\simulink\include"  /DMX_COMPAT_32   /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0   /DMATLAB_MEX_FILE /MT /O2 /Oy- /DNDEBUG C:\Users\David\Desktop\FAST\FASTv8\Simulink\Source\FAST_SFunc.c /FoC:\Users\David\AppData\Local\Temp\mex_48080836910517_3848\FAST_SFunc.obj
CMDLINE200 : link  /nologo /manifest /incremental:NO /DLL   /EXPORT:mexFunction C:\Users\David\AppData\Local\Temp\mex_48080836910517_3848\FAST_SFunc.obj  FAST_Library_x64.lib  /LIBPATH:../../bin   /LIBPATH:"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /out:C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.mexw64
CMDLINE250 : mt -outputresource:C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.mexw64;2 -manifest C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.mexw64.manifest
CMDLINE300 : del C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.exp C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.lib C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.mexw64.manifest C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.ilk
COMPILER : cl
COMPFLAGS : /GR /W3 /EHs /nologo /MD -I../../Source -I../../Source/dependencies/OpenFOAM  -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include" -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\simulink\include"  /DMX_COMPAT_32   /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0   /DMATLAB_MEX_FILE /MT
COMPDEFINES : /DMX_COMPAT_32   /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0   /DMATLAB_MEX_FILE
MATLABMEX :  /DMATLAB_MEX_FILE
OPTIMFLAGS : /O2 /Oy- /DNDEBUG
INCLUDE : -I../../Source -I../../Source/dependencies/OpenFOAM  -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include" -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\simulink\include"
DEBUGFLAGS : /Z7
LINKER : link
LINKFLAGS :  /nologo /manifest /incremental:NO
LINKTYPE : /DLL
LINKEXPORT :  /EXPORT:mexFunction
LINKLIBS : FAST_Library_x64.lib  /LIBPATH:../../bin   /LIBPATH:"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
LINKDEBUGFLAGS : /debug /PDB:"C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.mexw64.pdb"
LINKOPTIMFLAGS : 
OBJEXT : .obj
LDEXT : .mexw64
SETENV : set COMPILER=cl 
			set COMPFLAGS=/c /GR /W3 /EHs /nologo /MD -I../../Source -I../../Source/dependencies/OpenFOAM  -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include" -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\simulink\include"  /DMX_COMPAT_32   /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0   /DMATLAB_MEX_FILE /MT /DMX_COMPAT_32   /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0   /DMATLAB_MEX_FILE  /DMATLAB_MEX_FILE 
			set OPTIMFLAGS=/O2 /Oy- /DNDEBUG 
			set DEBUGFLAGS=/Z7 
			set LINKER=link 
			set LINKFLAGS= /nologo /manifest /incremental:NO /export:%ENTRYPOINT% /DLL libFAST_Library_x64.lib FAST_Library_x64.lib   /LIBPATH:../../bin   /LIBPATH:"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib  /EXPORT:mexFunction 
			set LINKDEBUGFLAGS=/debug /PDB:"%OUTDIR%%MEX_NAME%.mexw64.pdb" 
			set NAME_OUTPUT=/out:"%OUTDIR%%MEX_NAME%%MEX_EXT%"
VSROOT : C:\Program Files (x86)\Microsoft Visual Studio 11.0
SDKROOT : C:\Program Files (x86)\Windows Kits\8.0\
VSINSTALLDIR : C:\Program Files (x86)\Microsoft Visual Studio 11.0\
VCINSTALLDIR : C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\
PROF_ENV : C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe
VCVARSALLDIR : C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC
MATLABROOT : C:\Program Files\MATLAB\MATLAB Production Server\R2015a
ARCH : win64
SRC : C:\Users\David\Desktop\FAST\FASTv8\Simulink\Source\FAST_SFunc.c
OBJ : C:\Users\David\AppData\Local\Temp\mex_48080836910517_3848\FAST_SFunc.obj
OBJS : C:\Users\David\AppData\Local\Temp\mex_48080836910517_3848\FAST_SFunc.obj 
SRCROOT : C:\Users\David\Desktop\FAST\FASTv8\Simulink\Source\FAST_SFunc
DEF : C:\Users\David\AppData\Local\Temp\mex_48080836910517_3848\FAST_SFunc.def
EXP : C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.exp
LIB : C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.lib
EXE : C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.mexw64
ILK : C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.ilk
MANIFEST : C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.mexw64.manifest
TEMPNAME : C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc
EXEDIR : C:\Users\David\Desktop\FAST\FASTv8\bin\
EXENAME : FAST_SFunc
OPTIM : /O2 /Oy- /DNDEBUG
LINKOPTIM : 

Building with ‘Microsoft Visual C++ 2012 (C)’.
cl /c /GR /W3 /EHs /nologo /MD -I…/…/Source -I…/…/Source/dependencies/OpenFOAM -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include" -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\simulink\include" /DMX_COMPAT_32 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /MT /O2 /Oy- /DNDEBUG C:\Users\David\Desktop\FAST\FASTv8\Simulink\Source\FAST_SFunc.c /FoC:\Users\David\AppData\Local\Temp\mex_48080836910517_3848\FAST_SFunc.obj
Error using mex
FAST_SFunc.c
…/…/Source/dependencies/OpenFOAM\OpenFOAM_Types.h(12) : fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: “stdbool.h”: No such file
or directory

cl : Befehlszeile warning D9025 : “/MD” wird durch “/MT” berschrieben

Error in create_FAST_SFunc (line 7)
mex -v -L…/…/bin -lFAST_Library_x64 …

Dear Bonnie,

after the compiling. I canot create the .mexw64 or .mexw32. I become this error. Please do you any idea? Or is it possible tu create this using Intel Studio XE 2013. Thanks you

create_FAST_SFunc
Verbose mode is on.
Neither -compatibleArrayDims nor -largeArrayDims is selected.
Using -compatibleArrayDims. In the future, MATLAB will require the use of
-largeArrayDims and remove the -compatibleArrayDims option.
For more information:
mathworks.com/help/matlab/ma … t-api.html.
… Looking for compiler ‘Microsoft Visual C++ 2012 (C)’ …
… Looking for registry setting ‘HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7’ 11.0 …Yes ('C:\Program Files (x86)\Microsoft Visual Studio 11.0').
… Looking for file ‘C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64\cl.exe’ …Yes.
… Looking for folder ‘C:\Program Files (x86)\Microsoft Visual Studio 11.0’ …Yes.
… Looking for registry setting ‘HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0’ InstallationFolder …No.
… Looking for registry setting ‘HKCU\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0’ InstallationFolder …No.
… Looking for registry setting ‘HKLM\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v8.0’ InstallationFolder …Yes ('C:\Program Files (x86)\Windows Kits\8.0').
… Looking for registry setting ‘HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7’ 11.0 …Yes ('C:\Program Files (x86)\Microsoft Visual Studio 11.0').
… Looking for registry setting ‘HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VC7’ 11.0 …No.
… Looking for registry setting ‘HKCU\SOFTWARE\Microsoft\VisualStudio\SxS\VC7’ 11.0 …No.
… Looking for registry setting ‘HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VC7’ 11.0 …Yes ('C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC').
… Looking for environment variable ‘VS110COMNTOOLS’ …Yes ('C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools').
… Looking for file ‘C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe’ …Yes.
… Looking for registry setting ‘HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7’ 11.0 …Yes ('C:\Program Files (x86)\Microsoft Visual Studio 11.0').
… Looking for file ‘C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat’ …Yes.
… Looking for folder ‘C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC’ …Yes.
Found installed compiler ‘Microsoft Visual C++ 2012 (C)’.
Set PATH = C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\Bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\Bin\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools;C:\Program Files (x86)\Windows Kits\8.0\Bin\x64;C:\Program Files (x86)\Windows Kits\8.0\Bin;;C:\Program Files (x86)\Intel\MPI\4.1.3.045\em64t\bin;C:\Program Files (x86)\Intel\MPI\4.1.3.045\ia32\bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Intel\Trace Analyzer and Collector\8.1.4.045\bin;C:\Program Files (x86)\Intel\icsxe\2013.1.046\bin;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\WIDCOMM\Bluetooth Software;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Common Files\lenovo\easyplussdk\bin;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Users\David.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin;C:\Program Files (x86)\LyX 2.1\Perl\bin;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\runtime\win64;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\bin;C:\Program Files\MATLAB\R2014a\runtime\win64;C:\Program Files\MATLAB\R2014a\bin;C:\Program Files (x86)\MATLAB\R2014a\runtime\win32;C:\Program Files (x86)\MATLAB\R2014a\bin;C:\Program Files (x86)\MATLAB\R2014a\polyspace\bin;C:\Program Files\MATLAB\R2014a\polyspace\bin;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\polyspace\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Intel\Trace Analyzer and Collector\8.1.4.045\dll\impi64;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon
Set INCLUDE = C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE;C:\Program Files (x86)\Windows Kits\8.0\include\shared;C:\Program Files (x86)\Windows Kits\8.0\include\um;C:\Program Files (x86)\Windows Kits\8.0\include\winrt;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include;C:\Program Files (x86)\Intel\Trace Analyzer and Collector\8.1.4.045\include
Set LIB = C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\Lib\amd64;C:\Program Files (x86)\Windows Kits\8.0\Lib\X64;C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x64;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\lib\win64;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\LIB\amd64;
Set LIBPATH = C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\Lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\LIB\amd64;C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x64;C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\lib\win64;;
Options file details

Compiler location: C:\Program Files (x86)\Microsoft Visual Studio 11.0
Options file: C:\Users\David\AppData\Roaming\MathWorks\MATLAB\R2015a\mex_C_win64.xml
CMDLINE100 : cl /c /GR /W3 /EHs /nologo /MD -I…/…/Source -I…/…/Source/dependencies/OpenFOAM -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include" -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\simulink\include" /DMX_COMPAT_32 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /MT /O2 /Oy- /DNDEBUG C:\Users\David\Desktop\FAST\FASTv8\Simulink\Source\FAST_SFunc.c /FoC:\Users\David\AppData\Local\Temp\mex_48080836910517_3848\FAST_SFunc.obj
CMDLINE200 : link /nologo /manifest /incremental:NO /DLL /EXPORT:mexFunction C:\Users\David\AppData\Local\Temp\mex_48080836910517_3848\FAST_SFunc.obj FAST_Library_x64.lib /LIBPATH:…/…/bin /LIBPATH:“C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\lib\win64\microsoft” libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /out:C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.mexw64
CMDLINE250 : mt -outputresource:C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.mexw64;2 -manifest C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.mexw64.manifest
CMDLINE300 : del C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.exp C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.lib C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.mexw64.manifest C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.ilk
COMPILER : cl
COMPFLAGS : /GR /W3 /EHs /nologo /MD -I…/…/Source -I…/…/Source/dependencies/OpenFOAM -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include" -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\simulink\include" /DMX_COMPAT_32 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /MT
COMPDEFINES : /DMX_COMPAT_32 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE
MATLABMEX : /DMATLAB_MEX_FILE
OPTIMFLAGS : /O2 /Oy- /DNDEBUG
INCLUDE : -I…/…/Source -I…/…/Source/dependencies/OpenFOAM -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include" -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\simulink\include"
DEBUGFLAGS : /Z7
LINKER : link
LINKFLAGS : /nologo /manifest /incremental:NO
LINKTYPE : /DLL
LINKEXPORT : /EXPORT:mexFunction
LINKLIBS : FAST_Library_x64.lib /LIBPATH:…/…/bin /LIBPATH:“C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\lib\win64\microsoft” libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
LINKDEBUGFLAGS : /debug /PDB:“C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.mexw64.pdb”
LINKOPTIMFLAGS :
OBJEXT : .obj
LDEXT : .mexw64
SETENV : set COMPILER=cl
set COMPFLAGS=/c /GR /W3 /EHs /nologo /MD -I…/…/Source -I…/…/Source/dependencies/OpenFOAM -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include" -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\simulink\include" /DMX_COMPAT_32 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /MT /DMX_COMPAT_32 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /DMATLAB_MEX_FILE
set OPTIMFLAGS=/O2 /Oy- /DNDEBUG
set DEBUGFLAGS=/Z7
set LINKER=link
set LINKFLAGS= /nologo /manifest /incremental:NO /export:%ENTRYPOINT% /DLL libFAST_Library_x64.lib FAST_Library_x64.lib /LIBPATH:…/…/bin /LIBPATH:“C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\lib\win64\microsoft” libmx.lib libmex.lib libmat.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /EXPORT:mexFunction
set LINKDEBUGFLAGS=/debug /PDB:“%OUTDIR%%MEX_NAME%.mexw64.pdb”
set NAME_OUTPUT=/out:“%OUTDIR%%MEX_NAME%%MEX_EXT%”
VSROOT : C:\Program Files (x86)\Microsoft Visual Studio 11.0
SDKROOT : C:\Program Files (x86)\Windows Kits\8.0
VSINSTALLDIR : C:\Program Files (x86)\Microsoft Visual Studio 11.0
VCINSTALLDIR : C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC
PROF_ENV : C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe
VCVARSALLDIR : C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC
MATLABROOT : C:\Program Files\MATLAB\MATLAB Production Server\R2015a
ARCH : win64
SRC : C:\Users\David\Desktop\FAST\FASTv8\Simulink\Source\FAST_SFunc.c
OBJ : C:\Users\David\AppData\Local\Temp\mex_48080836910517_3848\FAST_SFunc.obj
OBJS : C:\Users\David\AppData\Local\Temp\mex_48080836910517_3848\FAST_SFunc.obj
SRCROOT : C:\Users\David\Desktop\FAST\FASTv8\Simulink\Source\FAST_SFunc
DEF : C:\Users\David\AppData\Local\Temp\mex_48080836910517_3848\FAST_SFunc.def
EXP : C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.exp
LIB : C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.lib
EXE : C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.mexw64
ILK : C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.ilk
MANIFEST : C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc.mexw64.manifest
TEMPNAME : C:\Users\David\Desktop\FAST\FASTv8\bin\FAST_SFunc
EXEDIR : C:\Users\David\Desktop\FAST\FASTv8\bin
EXENAME : FAST_SFunc
OPTIM : /O2 /Oy- /DNDEBUG
LINKOPTIM :

Building with ‘Microsoft Visual C++ 2012 (C)’.
cl /c /GR /W3 /EHs /nologo /MD -I…/…/Source -I…/…/Source/dependencies/OpenFOAM -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\extern\include" -I"C:\Program Files\MATLAB\MATLAB Production Server\R2015a\simulink\include" /DMX_COMPAT_32 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /MT /O2 /Oy- /DNDEBUG C:\Users\David\Desktop\FAST\FASTv8\Simulink\Source\FAST_SFunc.c /FoC:\Users\David\AppData\Local\Temp\mex_48080836910517_3848\FAST_SFunc.obj
Error using mex
FAST_SFunc.c
…/…/Source/dependencies/OpenFOAM\OpenFOAM_Types.h(12) : fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: “stdbool.h”: No such file
or directory

cl : Befehlszeile warning D9025 : “/MD” wird durch “/MT” berschrieben

Error in create_FAST_SFunc (line 7)
mex -v -L…/…/bin -lFAST_Library_x64 …

Both of your posts indicate that it can’t find stdbool.h. In Microsoft Visual Studio 2013 and later, it is included in the \VC\include directory. I’d recommend upgrading your C++ compiler to the 2013 or 2015 versions; otherwise you can find a stdbool.h file and make sure the compiler can find it when it compiles.