I can see the images u uploaded..!! The port types being I, O or I/O is not certain for me either, i generally use an input type port..!! and one more thing, have u placed the port at ur input, i mean where u placed a term..!! and ur cosimulation seems to be fine..!!