Sa and Viani

Replicating papers is hard. This does not look like a Dynare issue. Check your equations over and over again. If the problem persists, you might want to contact the original authors of the study to help you. Sometimes there are typos in the papers that make it impossible to replicate them.