System with autodiff but turned out slower.
Compiling sundials directly into program.