One guess is trouble will the log expression and/or exponentials etc.

Try to simplify the likelihood function.

For example -2*log(th)+log( exp(.+.)*B1 + (resM+su)*B2 + sr*B3 )

 

Yiannis