I want to simulate a controller for a mass-spring model which works based on energy:
model model //constants parameter Real m = 1; parameter Real k = 1; par