Thanks. I couldn’t install the current branch immediately, but now I can confirm that the master branch (as installed from the GitHub repo) doesn’t reproduce the problem, and the snippet above only displays a warning (as metropolis needs a longer adaptation interval)
PS: The bug is still present in the version of pymc3 version 3.1 installed via conda-forge.