systemsimulation with C