Activating HILS from matlab via MAVLink

I am currently trying to make a HILS environment with self-made flight sim made with Matlab.

The firmware is “1.13.3dev”, the airframe is “HIL Quadcopter X”, and I’ve set the SYS_HIL to “HITL enabled”.

In my matlab flight sim, when activated, I first send some initial sensor datas (HIL_SENSOR) and gps datas (HIL_GPS) via pyMavlink. Meanwhile, I actually receive HIL_ACTUATOR_CONTROL from px4, but the throttle command seems to be wrong. (Sometimes, it sends -0.2, others, -0.1, and so on)
I think the problem is that the px4 is refusing to arm itself, maybe as a fail safe, but since I am working on HILS, this is a big problem.

I would like to know how I can solve this. Is there some way to forcely arm the px4, or is there some way to avoid these kind of problem?
If anyone could give me some advice, I would really appreciate it. Thank you!