Is your model log-linearized?
If you paste more details on your debugging, it might be helpful.
Regards,
Fernando