I didn't have a close look into your script, but it seems okay.
What is your ramp and your wall made of? Are they blocks? Is the level built? Are they models? Then you have to set their POLYGON on. You can do that in WED in the properties panel or in script, assigning an action to them.
But your last sentence is confusing:
Did you try to run your script without a model that moves in a level?
For collision treatment (c_move and c_trace) you actually need collision entities, means a model with a collision box/ellipsoid that you steer through a world with obstacles with collision properties.