MODELING COMPLEX SUPERCONDUCTING MAGNET SYSTEMS WITH THE 4C CODE