Please refer this solution for a similar problem. You may need to explicitly set the data types to avoid the mismatch of datatypes. Double click on the inports and outports (or any other approriate block where the data type is set to AUTO). Now click on the "Signal Attributes" tab, and then for the "Data type" property, explicitly specify the data type (e.g. double) attribute of the signal for those ports.