Main Content

Port and parameter mismatch


Select the diagnostic action to take when loading or updating this model if Simulink® software detects a port or parameter mismatch between a Model block and its referenced model.

Category: Diagnostics


Default: none


Simulink software refreshes the Model block.


Simulink software displays a warning and refreshes the Model block.


Simulink software displays an error message and does not refresh the Model block.

When you receive an error related to a Model block port or parameter mismatch, you can manually refresh the Model block. Select the Model block. Then, on the Model Block tab, select Refresh. Alternatively, use the Simulink.ModelReference.refresh function.


  • Port mismatches occur when the input and output ports of a Model block do not match the root-level input and output ports of the model it references.

  • Parameter mismatches occur when the parameter arguments recognized by the Model block do not match the parameter arguments declared by the referenced model.

  • Model block icons can display a message indicating port or parameter mismatches. To enable this feature, from the parent model, on the Debug tab, select Information Overlays > Ref Model I/O Mismatch.

Command-Line Information

Parameter: ModelReferenceIOMismatchMessage
Value: 'none' | 'warning' | 'error'
Default: 'none'

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionerror

Related Topics