To fix the error, go to the Simulink model settings and set the UnconnectedLineMsg connectivity diagnostic to 'none'. See how to do it in the picture below:

Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!