Does the optimize call finish at all? Does it work if you use less packages? (e.g., what about just JuMP, GLPK, and ControlSystemIdentification?)
I’m guessing this is a bad case of method invalidation: Analyzing sources of compiler latency in Julia: method invalidations