In SITL motor 1 does not spin with motor test

Hello, I’m launching sitl with my ardupilot assembly (a real copter flies with it) and the number 1 motor does not spin during the motor test, with the same ardupilot gazebo files, I’m launching sitl from the original repository, all the motors are working, maybe someone has seen this? What could be the reason? Which files should I look at and check?

UPD:

I noticed that my original version is 4.7 dev, and my custom version is 4.5.7. After I switched to 4.5.7 (the original repository (the same as 4.6.2)), the initial effect was repeated, has anyone solved this problem?

At that moment, I understand that I am observing the situation in all stable versions, but I do not observe it in 4.7-dev, but there are a lot of commits between them, can someone tell me which files to look at?

UPD

I found fix in this commit 58c385432563823433e2a2d793395c1f577a11b0 .

But now i have next problem, which is presented in this topic Copter in SITL rotates uncontrollable along the yaw

Please help me, if you know)