Cold storage system with phase-change material and predictive controller