Estimating parameters of a SEIR model

Thank you @bbbales2. So, for the time being, I changed the likelihood to Poisson and when I run it I get the following error:

Error in new_CppObject_xp(fields$.module, fields$.pointer, ...) : 
  Exception: int variable contained non-int values; processing stage=data initialization; variable name=y; base type=int  (in 'model70544a99286_SI_fit' at line 62)
 [origin: unknown original type]
failed to create the sampler; sampling not done
Error in new_CppObject_xp(fields$.module, fields$.pointer, ...) : 
  Exception: int variable contained non-int values; processing stage=data initialization; variable name=y; base type=int  (in 'model70544a99286_SI_fit' at line 62)
 [origin: unknown original type]
failed to create the sampler; sampling not done
Stan model 'SI_fit' does not contain samples.

I checked this and I came across this post, I wonder if this error happens due to the way I defined t0 and ts in data block:

  real t0; // Initial time point (zero)
  real ts[n_obs]; // Time points that were sampled

or the way I defined sample_time namely:

sample_time = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103,
104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116)

which I used for running the stan code in:

stan_d = list(n_obs = length(datalist$cases),
              n_params = 13,
              n_difeq = 8,
              y = datalist$cases/66500000,
              t0 = 0,
              ts = sample_time)

I would appreciate your guidance.