I did not have this problem in version 4.0.4. Now in version 4.1.1 I receive the following message when I run the attached mod file.
Warning: Divide by zero.
> In dr1 at 417
In resol at 128
In dynare_resolve at 45
In DsgeSmoother at 70
In dynare_estimation_1 at 1090
In dynare_estimation at 62
In BNTnlc_nonS_PP at 155
In dynare at 132
Warning: Divide by zero.
> In dr1 at 419
In resol at 128
In dynare_resolve at 45
In DsgeSmoother at 70
In dynare_estimation_1 at 1090
In dynare_estimation at 62
In BNTnlc_nonS_PP at 155
In dynare at 132
Thank you for any help you can provide.