Internal block diagram to Simulink mapping (Integration for MATLAB Simulink)
A SysML Internal Block Diagram in Modeler maps to a Simulink model and its Simulink block diagram:
You can create a Simulink model and its block diagram from a Modeler Internal Block Diagram.
You can create a Modeler Internal Block Diagram from a Simulink model and its block diagram.
After a Modeler Internal Block Diagram is synchronized with a Simulink model and its block diagram, you can update the Simulink model from its associated Modeler Internal Block Diagram, and update the Modeler Internal Block Diagram from its associated Simulink model.
* 
The owning Block must be shown on the Internal Block Diagram.
When exporting an Internal Block Diagram to a Simulink model, the diagram's Parts, Flow Ports, Full Ports, Proxy Ports and Connectors can be exported:
An Internal Block Diagram is exported as a Simulink model and its block diagram.
A Part is exported as a SubSystem or ModelReference.
You can choose how each Part is exported through the options on the Default Object Type Mapping and Item Mapping Definitions pages of Integration for MATLAB Simulink. Tell me more...
* 
A Part (Block Property) can be exported as a ModelReference only when the Part's type owns an Internal Block Diagram or Parametric Diagram. If a Part does not own an Internal Block Diagram (IBD) or Parametric Diagram on the Item Mapping Definitions page, Integration for MATLAB Simulink sets the Simulink Type for that Part to SubSystem so that the Part is exported, irrespective of the default mapping.
An atomic Flow Port can be exported as an inport or outport:
The Flow Port must be atomic, that is, its direction must be set to in or out.
If the Flow Port is owned by the Block that owns the Internal Block Diagram, the Flow Port is exported.
On the Internal Block Diagram, if the Flow Port is shown on a Part, the Flow Port is exported only if that Part's type (a Block) owns an Internal Block Diagram that shows the Flow Port.
The default object type mapping for a Flow Port is Inport/Outport. When set to Inport/Outport, the direction of the Flow Port determines whether the Flow Port is exported as an inport or output.
* 
You can set the direction of a Flow Port on an Internal Block Diagram - right-click the Flow Port, and select Set > Direction.
Integration for MATLAB Simulink ignores Flow Port that have their direction set to InOut.
When importing or exporting the Description property of a Flow Port, if the source and destination values are different, Integration for MATLAB Simulink uses the Modeler value.
When importing or exporting the Description property of a Flow Port, Integration for MATLAB Simulink uses the Description property that appears on the Internal Block Diagram that is owned by the Flow Port's type.
A Full Port or Proxy Port can be exported as an inport or outport:
The Full Port or Proxy Port must be atomic, that is, its direction must be set to in or out.
If the Full Port or Proxy Port is owned by the Block that owns the Internal Block Diagram, the Flow Port is exported.
On the Internal Block Diagram, if the Full Port or Proxy Port is shown on a Part, the Full Port or Proxy Port is exported only if that Part's type (a Block) owns an Internal Block Diagram that shows the Full Port or Proxy Port.
The default object type mapping for a Full Port or Proxy Port is Inport/Outport. When set to Inport/Outport, the direction of the Full Port or Proxy Port determines whether the Full Port or Proxy Port is exported as an inport or output.
* 
The direction of a Full Port or Proxy Port is determined by the direction of the Flow Properties that are owned by the Full Port's or Proxy Port's type.
When importing or exporting the Description property of a Full Port or Proxy Port, if the source and destination values are different, Integration for MATLAB Simulink uses the Modeler value.
A Connector can be exported as a line:
If the Connector has one port that is exported as an inport and one port that is exported as an outport, Integration for MATLAB Simulink exports the Connector as a line.
If the Connector has no ports and an Item Flow that specifies the direction, Integration for MATLAB Simulink creates a dummy inport and dummy outport in Simulink and exports the Connector as a line.
Dummy inports and dummy outports are marked as dummy through their Tag property, which is set on the General tab of the Block Properties dialog. Integration for MATLAB Simulink sets the Tag property dummy_port. When importing a Simulink model to Modeler, Integration for MATLAB Simulink ignores Dummy inports and outports.