Model-based diagnostics of rotating machinery