Update simcomp.c

added log stuff