AnalysisDUT: calculate residual in local coordinates

This fixes #155
15 jobs for fix_155 in 15 minutes and 10 seconds (queued for 2 seconds)