The nan in find_map() might related to the bad initial value, try changing the start kwarg of the find_map() call.
start