Hierarchical Model-Based Diagnostics