After MacOS upgrade Matlab has outdated links to MacOS SDK and therefore running models in ‘Rapid Accelerator’ mode causes errors. In order to fix ‘Rapid Accelerator’ mode version of MacOS must be updated (for example, from 10.8 to 10.10) in:
/Applications/MATLAB_R2014a.app/rtw/c/tools/unixtools.mk
/Applications/MATLAB_R2014a.app/bin/mexopts.sh
/Applications/MATLAB_R2014a.app/bin/maci64/mexopts/clang_maci64.xml
/Applications/MATLAB_R2014a.app/bin/maci64/mexopts/clang++_maci64.xml