replace sqrtm_internal to sqrt when setting up model for BARON
Catch error code 4