Hi Sandeep:
You need not check delay to use alignsignals since it doesn’t make any difference by changing order of arguments in alignsignals function, the function itself take cares of negative delay, the error might be because of any other reason, if possible you may provide fout1 and fout2 data so that I can check.