MATLAB: Do I receive a segmentation violation when I create a model in Simulink 6.1 (R14SP1), save it in Simulink 5.1 (R13SP1) format and then open it in Simulink 5.1 (R13SP1)

__cdeclasr13sp1simulink.dll:intr14sp1savesegmentationsimulinkviolation

I open the attached model in MATLAB 7.0.1 (R14SP1) and save it Simulink 5.1 (R13SP1) format. When I open the model in Simulink 5.1 (R13SP1) I receive the following segmentation violation:
Warning: Loading model 'test_r13sp1' generated with a newer version (6.1) of Simulink.
> In \\pc2unix\ARCHIVE\R13\sp1\perfect\toolbox\matlab\general\private\openmdl.m at line 13
In \\pc2unix\ARCHIVE\R13\sp1\perfect\toolbox\matlab\general\open.m at line 125
In \\pc2unix\ARCHIVE\R13\sp1\perfect\toolbox\matlab\uitools\uiopen.m at line 142
------------------------------------------------------------------------
Segmentation violation detected at Fri Jun 24 14:00:45 2005
------------------------------------------------------------------------
Stack Trace:
[0] simulink.dll:int __cdecl GetParamInfoArrayForSetParam(struct slBlock_tag const *,char const *,struct slParamInfo_tag * *,int *)(0, 0x7a4bfed0 "nBitShiftRight", 0x00dfa6e8, 0x00dfa6e4) + 9 bytes
[1] simulink.dll:_set_block_param(0, 0x7a4bfed0 "nBitShiftRight", 0x7a4b5898, 1) + 357 bytes
[2] simulink.dll:_mdl_lex(0x7a2034df "èÜ3", 0x00dfae94, 0, 0) + 3499 bytes
[3] simulink.dll:void __cdecl parse_mdl_file(void)(0, 0x00dfa980 "T:\cases\1-1JACII\test_r13sp1.md..", 0, 0) + 5 bytes
<SNIP>

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
There is a bug in Simulink 6.1 (R14SP1) in the way that the "Shift Arithmetic" block is handled when saving the model in Simulink 5.1 (R13SP1) format. To work around this issue, you may remove the "Shift Arithmetic" block from your model, save it in Simulink 5.1 (R13SP1) format, and then add the block to the model after opening it in Simulink 5.1 (R13SP1).