[polyml] polyml sometimes runs out of memory with plenty available