Troubleshooting refinery processes