If x and y are 1D arrays I think it makes sense to require them to be the same size. The intention here is to be able to fit arrays of shapes (n,) and (n,m) where m different sets of y are fit to the same x. But I can see that the error message is not very helpful. May be this sounds better? 
"Expected the measured and model data to have the same size"