The SQZ problem was the following:
- when it relocked the CC phase in the metatron configuration was 3.5 rad
- for unkown reasons this phase value was completely wrong. The PyALP based slow phase loop correct the phase in order to maximize the squeezing level (see attached plot)
- in the SQZ_INJECTING state there was a logical error when it is cheking if the various loop are correctely closed.
- Thus, even if the slow phase loop arrived to the right working point, the automation node did not realized it. The node remained in stuck in the SQZ_INJECTING state, but the system was ready to transit to the SQZ_INJECTED state (last automation state)
- I correct this logical error adding a flag and a condition on this flag in the SQZ_INJECTING state
After this bug fixing the squeezer was engaged at the first attempt
Now the CC phase is about 2.2 deg. We had a jump of 1.3 deg but the right phase was restored thanks to the CC SLOW phase loop