Good morning,
you can start from the userpowertrain simulink model from the example folder cm4sl.
You can find more info on the programmers guide.