makeCalibrationModel function

(internal) construct a model