move openmm import inside of function. this avoid some issues with error handling on cray