Welfare analysis under simple optimal policy."Unrecognized field name "ghs2""

  1. Yes, the error seems to be due to different versions.
  2. Your code does not do a proper error handling within the loop. You should not loop over all of Dynare. The proper way would be