Text this: State space model identification using model reference adaptive approach: software and hardware-in-the-loop simulation