fix to #1935. Forced options_.analytic_derivation=-1; must be set before entering dynare_minimize_objective