debug .simex.sgp function