Error in basic model due to trigonometric functions using math library

You cannot use functions from the math library (or numpy/scipy for that matter), as in most case the variables under the pymc3 with context are theano tensors. You should subtuitue it with either a theano.tensor function or a function from pymc3.math