ODE coupled with system of PDEs

Hi everyone,

I am a new user of FEniCS and I really find it useful for my applications. I have a small question about the weak form when ODEs are coupled with system of PDEs. The problem I am trying to solve can be described simply as:

I tried to write the weak formulation for FEniCS solver as shown above.
I have looked through examples posted in the tutorials and elsewhere but I am not quite sure about the ODE. Can anyone please provide some help me in confirming or correcting the formulation? Thank you.