Hello Rahul,
This error message appears to be caused by an issue with the installation of Microsoft Visual Studio 2017, which is being used to compile the C++ code for simulating the model in Accelerator mode.
Two different methods to resolve this error message are to:
1. Switch to the 'MinGW' compiler using the following command -
mex -setup
Check that your Simulink model also shows MinGW (Model Configuration Parameters > Code Generation > Toolchain > Underneath "Automatically locate an installed toolchain").
2. Try fully uninstalling and reinstalling Visual Studio 2017.