A model for hysteresis of distributed systems