Stephan has now posted a version of Chris Sims’ pruning algorithm for Dynare 4.0.4 here:
This may be helpful if you’re encountering explosive IRFs and simulations at second-order, even though your model is stable to first-order. It was very helpful for me. Read Kim, Kim, Schaumberg and Sims (JEDC 2008) for details.