Why do I receive a warning when I use the MODEL command in Simulink 6.2 (R14SP2)?

R
ratna_eda · Aug 26, 2021 · 1.9K views
Question
When I execute the following command at the MATLAB prompt:   f14 feval('f14',[],[],[],'lincompile'); [sizes,x0,xstr] = f14; I receive the following warning message: Warning: Model 'f14' is currently compiled for 'linmod' simulation type. The current compilation needs to be terminated before the model can be compiled for the speficed simulation type 'mdlapi'. However, the warning is not produced while running the model using Simulink 6.1 (R14SP1).  
Expert Answer
Profile picture of John Williams
John Williams PhD Expert
Answered Aug 29, 2026
This bug has been fixed in Release 2006b (R2006b). For previous product releases, read below for any possible workarounds:
 
We have verified that there is a change in the behavior in Simulink 6.2 (R14SP2) in the way that the above warning is produced when using MODEL command.
 
To workaround the issue, you can safely ignore the warning or edit the line containing the MODEL command to include the command's last ('flag') argument as shown below:
 
f14 

feval('f14',[],[],[],'lincompile'); 

[sizes,x0,xstr] = f14([],[],[],'compile');

 

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!