model_get_xlevels function

Get xlevels used in the model