Find if an instance is a port instance
instance— The element instance
This function is part of the instance API that you can use to analyze the model
iteratively, element by element.
instance refers to the element
instance on which the iteration is being performed.
flag— Indicate if the instance is a port
This argument is
true if the instance is a port.