             fd.write('\n%0d %0d     %0d ' % (k, results['gen'][k, GEN_BUS], results['gen'][k, GEN_STATUS]))             if (results['gen'][k, GEN_STATUS] > 0) & (abs(results['reserves']['R'][k]) > 0e-0):                 fd.write('%00.0f' % results['reserves']['R'][k])             else:                 fd.write('       -  ')              fd.write('%00.0f