diff --git a/configure.ac b/configure.ac
index 4522fe04380c2d85f54e9a6c3c208069bfedb430..f2ff59865d21f31d22d9cfddf3cfe8162554b4db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 
-dnl Copyright © 2009-2021 Dynare Team
+dnl Copyright © 2009-2022 Dynare Team
 dnl
 dnl This file is part of Dynare.
 dnl
@@ -18,7 +18,7 @@ dnl You should have received a copy of the GNU General Public License
 dnl along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 AC_PREREQ([2.62])
-AC_INIT([dynare], [5.0])
+AC_INIT([dynare], [5.1])
 AC_CONFIG_SRCDIR([preprocessor/src/DynareMain.cc])
 AM_INIT_AUTOMAKE([1.11 -Wall -Wno-portability foreign no-dist-gzip dist-xz tar-pax])
 
diff --git a/mex/build/matlab/configure.ac b/mex/build/matlab/configure.ac
index 2ff7e67b66ec44382c24a028a9e6e83f58d49cab..c21bc0b284f9cdbf5f5f0d48cf3daddfdf76396e 100644
--- a/mex/build/matlab/configure.ac
+++ b/mex/build/matlab/configure.ac
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 
-dnl Copyright © 2009-2021 Dynare Team
+dnl Copyright © 2009-2022 Dynare Team
 dnl
 dnl This file is part of Dynare.
 dnl
@@ -18,7 +18,7 @@ dnl You should have received a copy of the GNU General Public License
 dnl along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 AC_PREREQ([2.62])
-AC_INIT([dynare], [5.0])
+AC_INIT([dynare], [5.1])
 AC_CONFIG_SRCDIR([configure.ac])
 AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign])
 
diff --git a/mex/build/octave/configure.ac b/mex/build/octave/configure.ac
index c569bb46bdd7f08dce3b888b979f581927f5d16a..e81fabd23050618cb2331531492360d19461b664 100644
--- a/mex/build/octave/configure.ac
+++ b/mex/build/octave/configure.ac
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 
-dnl Copyright © 2009-2021 Dynare Team
+dnl Copyright © 2009-2022 Dynare Team
 dnl
 dnl This file is part of Dynare.
 dnl
@@ -18,7 +18,7 @@ dnl You should have received a copy of the GNU General Public License
 dnl along with Dynare.  If not, see <https://www.gnu.org/licenses/>.
 
 AC_PREREQ([2.62])
-AC_INIT([dynare], [5.0])
+AC_INIT([dynare], [5.1])
 AC_CONFIG_SRCDIR([configure.ac])
 AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign])
 
diff --git a/preprocessor b/preprocessor
index da9df38aaf8f872b477331113fdf42ece606cfd5..31b563887abd8eb388ff308eafc7b906e7dbbd09 160000
--- a/preprocessor
+++ b/preprocessor
@@ -1 +1 @@
-Subproject commit da9df38aaf8f872b477331113fdf42ece606cfd5
+Subproject commit 31b563887abd8eb388ff308eafc7b906e7dbbd09