generate_fctcall function

A helper function that produces a call to a simulator function for specific settings