printf("\nTotal hops %lld total finished packets %d ",avg_hops,total_finished_packets);
printf("\n total finished packets %d ",total_finished_packets);
printf(" Average number of hops traversed %f average message latency %lf us maximum message latency %lf us \n",(float)avg_hops/total_finished_packets,avg_time/(total_finished_packets*1000),max_time/1000);
printf("\n packet generated %lld at lp %d dest %d final dest %d chunk_id %d num_chunks %d",msg->packet_ID,(int)lp->gid,(int)dst_lp,(int)msg->dest_lp,msg->chunk_id,num_chunks);
/*if(msg->packet_ID == TRACE)
printf("\n packet generated %lld at lp %d dest %d final dest %d chunk_id %d num_chunks %d", msg->packet_ID, (int)lp->gid, (int)dst_lp, (int)msg->dest_lp, msg->chunk_id, num_chunks); */