script to generate svm input, synchronizes times