The problem is that the subsystem "i" has Simulink-PS Converter right before the outport, and you are connecting PS-Simulink converter right after this.
The same error can be reproduced with the toy model below.
The solution might be to use Simulink signal directly. See the model below with highlight.