SMS: Efficient modeling and control of large-scale systems