The nonlinear phase of wave growth leading to chaos and breakdown to turbulence in a boundary layer as an example of an open system