Prepared device models for sensitivity calculation using AD