Solved, in a way. The issue is that for steady state problems you should use SteadyStateAdjoint. Throw a better error for time-based adjoint on no-time problem by ChrisRackauckas · Pull Request #705 · SciML/SciMLSensitivity.jl · GitHub solves this by throwing a very explicit error message saying that.