Deallocate memory if mat reading fails
Begin to read variables from mat file
Start to decode model struct
Start to decode model struct