aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 10 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7444
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2321.9+3204_daily_bin1738
RA = 350.478, Dec = 32.0737
tmin = 689817601, tmax = 690076801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='416874', job_status='RUN', time_executed='2022-11-14 01:06:38.057926', time_epoch_executed='1668416798.06' WHERE source_name='4FGL J2321.9+3204' and cadence='daily' and bin_id='1738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/416874

Creating custom pfile directory:
/scratch/kocevski/416874/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=689817601.0 && nMetStart<690076801.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=689817601.0 && nMetStart<690076801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/416874/ft1_4FGL_J2321.9+3204_daily_bin1738.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=689817601.0 && nMetStart<690076801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/416874/ft2_4FGL_J2321.9+3204_daily_bin1738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/416874/ft1_4FGL_J2321.9+3204_daily_bin1738.fits outfile=/scratch/kocevski/416874/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1738.fits ra=350.478 dec=32.0737 rad=12.0 tmin=689817601.0 tmax=690076801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.19
user 3.90
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/416874/ft2_4FGL_J2321.9+3204_daily_bin1738.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/416874/ft2_4FGL_J2321.9+3204_daily_bin1738.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/416874/ft1_filteredMKT_4FGL_J2321.9+3204_daily_bin1738.fits evtable="EVENTS" outfile="/scratch/kocevski/416874/ft1_filtered_4FGL_J2321.9+3204_daily_bin1738.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 938

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/416874/ft1_filtered_4FGL_J2321.9+3204_daily_bin1738.fits" evtable="EVENTS" scfile=/scratch/kocevski/416874/ft2_4FGL_J2321.9+3204_daily_bin1738.fits sctable="SC_DATA" outfile=/scratch/kocevski/416874/ltcube_689817601_690076801_4FGL_J2321.9+3204_daily_bin1738.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/416874/ft2_4FGL_J2321.9+3204_daily_bin1738.fits
.....................!
real 15.81
user 15.16
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/416874/ft1_filtered_4FGL_J2321.9+3204_daily_bin1738.fits evtable="EVENTS" scfile=/scratch/kocevski/416874/ft2_4FGL_J2321.9+3204_daily_bin1738.fits sctable="SC_DATA" expcube=/scratch/kocevski/416874/ltcube_689817601_690076801_4FGL_J2321.9+3204_daily_bin1738.fits outfile=/scratch/kocevski/416874/expmap_689817601_690076801_4FGL_J2321.9+3204_daily_bin1738.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/416874/ltcube_689817601_690076801_4FGL_J2321.9+3204_daily_bin1738.fits
.....................!
real 194.59
user 187.64
sys 6.12

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J2321.9+3204 @ 350.478 32.0737

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/416874/ft1_filtered_4FGL_J2321.9+3204_daily_bin1738.fits scfile=/scratch/kocevski/416874/ft2_4FGL_J2321.9+3204_daily_bin1738.fits outfile=/scratch/kocevski/416874/cmap_689817601_690076801_4FGL_J2321.9+3204_daily_bin1738.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=350.478 yref=32.0737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/416874/ft1_filtered_4FGL_J2321.9+3204_daily_bin1738.fits scfile=/scratch/kocevski/416874/ft2_4FGL_J2321.9+3204_daily_bin1738.fits outfile=/scratch/kocevski/416874/cmap_HighResolution_689817601_690076801_4FGL_J2321.9+3204_daily_bin1738.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.478 yref=32.0737 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/416874/ft1_filtered_4FGL_J2321.9+3204_daily_bin1738.fits evtable="EVENTS" scfile=/scratch/kocevski/416874/ft2_4FGL_J2321.9+3204_daily_bin1738.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/416874/Model_4FGL_J2321.9+3204_daily_bin1738.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/416874/ft1_filtered_4FGL_J2321.9+3204_daily_bin1738.fits.....................!
real 116.27
user 114.14
sys 1.59

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/416874/ft1_filtered_4FGL_J2321.9+3204_daily_bin1738.fits', '/scratch/kocevski/416874/ft2_4FGL_J2321.9+3204_daily_bin1738.fits', expMap='/scratch/kocevski/416874/expmap_689817601_690076801_4FGL_J2321.9+3204_daily_bin1738.fits', expCube='/scratch/kocevski/416874/ltcube_689817601_690076801_4FGL_J2321.9+3204_daily_bin1738.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/416874/Model_4FGL_J2321.9+3204_daily_bin1738.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2321.9+3204'

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  6.933e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/416874/ft1_filtered_4FGL_J2321.9+3204_daily_bin1738.fits
Spacecraft file(s): /scratch/kocevski/416874/ft2_4FGL_J2321.9+3204_daily_bin1738.fits
Exposure map: /scratch/kocevski/416874/expmap_689817601_690076801_4FGL_J2321.9+3204_daily_bin1738.fits
Exposure cube: /scratch/kocevski/416874/ltcube_689817601_690076801_4FGL_J2321.9+3204_daily_bin1738.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/416874/Model_4FGL_J2321.9+3204_daily_bin1738.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 10335.9271534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 10334.1388907

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29147E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .69640E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .69192       1.0000          .0000       .10000E+07
     4 'norm      '    .54939E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .56050E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.1613       1.0000          .0000       .10000E+07
     7 'Prefactor '    .41836E-04   1.0000          .0000       .10000E+07
     8 'norm      '    1.0399       1.0000          .0000       .10000E+07
     9 'Prefactor '    17.759       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.0271       1.0000          .0000       .10000E+07
    11 'Prefactor '    553.63       1.0000          .0000       .10000E+07
    12 'norm      '    .28800E-05   1.0000          .0000       .10000E+07
    13 'norm      '    34.918       1.0000          .0000       .10000E+07
    14 'Prefactor '    .69798       1.0000          .0000       .10000E+07
    15 'norm      '    .57843E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    31.004       1.0000          .0000       .10000E+07
    17 'Prefactor '    .19091E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .51773E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0973       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1260       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10334.12     FROM MIGRAD    STATUS=CONVERGED    188 CALLS     1020 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16653E-09    5.2795       -.31740E-06** at limit **
   2  Prefactor     .53846E-08    7.3745       -.68222E-06** at limit **
   3  norm          .69265        1.0701        .47511E-06   -.29795E-02
   4  norm           .0000        1.3861       -.27624E-06** at limit **
   5  Prefactor     .12212E-08    17.155        .32660E-05** at limit **
   6  Prefactor     5.1499        6.9020       -.11290E-05    .56974E-04
   7  Prefactor     .11102E-08    8.6515       -.50101E-06** at limit **
   8  norm          1.0391        .99252        .47122E-06    .76444E-02
   9  Prefactor     12.235        47.207        .17545E-04   -.15438E-03
  10  Prefactor     6.9802        11.716        .26975E-05   -.83472E-03
  11  Prefactor     563.72        85.176        .28283E-05   -.24458E-02
  12  norm          .11657E-08    4.0006        .43344E-05** at limit **
  13  norm          34.783        15.599        .36280E-05   -.37891E-02
  14  Prefactor     .66613E-09    59.697        .22039E-04** at limit **
  15  norm          .11102E-09    .84411        .15455E-05** at limit **
  16  Prefactor     31.925        44.117        .33586E-04    .25857E-02
  17  Prefactor     .11990E-07    33.089       -.80316E-06** at limit **
  18  Prefactor     .61062E-09    6.5645       -.27240E-05** at limit **
  19  Normalizat    1.0989        .28010       -.15553E-03    .17946E-03
  20  Prefactor     1.1254        .12723        .30486E-04    .52100E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66533e-10
  Prefactor  = 5.38458e-09
  norm       = 0.692647
  norm       = 0
  Prefactor  = 1.22125e-09
  Prefactor  = 5.14991
  Prefactor  = 1.11022e-09
  norm       = 1.03913
  Prefactor  = 12.235
  Prefactor  = 6.98025
  Prefactor  = 563.725
  norm       = 1.16573e-09
  norm       = 34.783
  Prefactor  = 6.66134e-10
  norm       = 1.11022e-10
  Prefactor  = 31.9248
  Prefactor  = 1.19904e-08
  Prefactor  = 6.10623e-10
  Normalizat = 1.09894
  Prefactor  = 1.12542
 **********
 **   18 **HESSE 
 **********

 FCN=   10334.12     FROM HESSE     STATUS=OK           329 CALLS     1349 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16653E-09    5.2771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .53846E-08    7.3902        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .69265        1.0814        .61367E-03   -1.5691    
   4  norm           .0000        1.3873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .12212E-08    17.136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1499        6.8780        .44227E-03   -1.5663    
   7  Prefactor     .11102E-08    8.6734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0391        1.0131        .12285E-02   -1.5688    
   9  Prefactor     12.235        46.999        .23740E-03   -1.5638    
  10  Prefactor     6.9802        11.717        .37820E-03   -1.5655    
  11  Prefactor     563.72        85.416        .42512E-04   -1.5233    
  12  norm          .11657E-08    3.9663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          34.783        15.581        .16925E-03   -1.5590    
  14  Prefactor     .66613E-09    58.816        .60873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .11102E-09    .84285        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.925        43.792        .17962E-03   -1.5595    
  17  Prefactor     .11990E-07    33.053        .17097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .61062E-09    6.5640        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0989        .24664        .97350E-01   -.89786    
  20  Prefactor     1.1254        .11117        .36672E-01   -.88658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01218e-08
Minuit parameter uncertainties:
  1  6.37219e-05
  2  0.000398624
  3  1.08145
  4  1.14444e-05
  5  0.000288609
  6  6.87798
  7  0.000196208
  8  1.01308
  9  47.0008
  10  11.7172
  11  85.4159
  12  0.000135772
  13  15.5808
  14  0.000389908
  15  1.92349e-05
  16  43.792
  17  0.00125808
  18  0.000128342
  19  0.246896
  20  0.111197
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 10334.1224558

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  1.166e-09  1.358e-04  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.125e+00  1.112e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.099e+00  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.478 32.074
Photon Flux Upper Limit: 6.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/416874/likelihoodResults_689817601_690076801_4FGL_J2321.9+3204_daily_bin1738.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10334.1228397
delta logL = -0.000383908247386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10334.1224564
delta logL = -5.83893779549e-07

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32735E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    .80176       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1255       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10334.12     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      240 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.8075        .42118E-03** at limit **
   2  alpha         3.0827        1.4575        .10731E-02     .0000    
   3  Normalizat    1.0990        1.1563        .75095E-05    .73145E-03
   4  Prefactor     1.1254        1.1337        .12971E-05    .34818E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 3.08271
  Normalizat = 1.09895
  Prefactor  = 1.12542
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10334.12     FROM HESSE     STATUS=FAILED         7 CALLS      247 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.8075        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8217        1.4575        .10731E-02    .23525    
   3  Normalizat    1.0990        1.1563        .75095E-05   -.89786    
   4  Prefactor     1.1254        1.1337        .12971E-05   -.88658    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.48725e-09
Minuit parameter uncertainties:
  1  1.26626e-05
  2  1.56296
  3  1.18465
  4  1.15955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/416874': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 10334.1224558
delta logL = -1.08047970571e-09

Extracting fit parameters...

4FGL J2321.9+3204
   Spectrum: LogParabola
433         norm:  0.000e+00  1.266e-05  0.000e+00  1.000e+06 ( 1.000e-12)
434        alpha:  3.083e+00  1.563e+00  0.000e+00  5.000e+00 ( 1.000e+00)
435         beta:  1.248e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
436           Eb:  8.220e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.125e+00  1.160e+00  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.099e+00  1.185e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.478 32.074

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/416874/cmap_HighResolution_689817601_690076801_4FGL_J2321.9+3204_daily_bin1738.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/416874

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-05', job_status='DONE', photon_flux_upper_limit='6.73e-08', time_completed='2022-11-14 01:17:51.743436', job_id='416874', GAL2='1.13', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1668417471.74', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='-1.08e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Nov 14 01:17:51 PST 2022

the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 6.54187890293 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 28.981901323 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 9.3388689183 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 20.9520340969 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 24.4825679094 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 9.72330987361 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 1.79734697883 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 14.0356527979 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 21.9894139593 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 24.6453909227 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 19.4322280353 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 11.8876056505 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 19.6540618334 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 16.4673977831 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 17.4850973025 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 1.85354161821 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 8.18323523474 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 17.4246204062 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 9.490362172 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 20.8812147893 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 11.2811174548 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 13.8443122221 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 1.67222634886 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 23.8407190301 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 2.39266534874 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 6.63598574681 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 20.2589670739 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 7.56016394766 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 24.8431616811 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 23.129882891 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 16.2470676791 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 23.3369353639 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 22.547924432 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 5.11639910578 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 8.44416044175 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 11.0828775569 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 9.07925281551 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 25.985333305 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 16.4691807105 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58', time_completed='2022-11-14 01:04:24.577428', job_id='412032' WHERE bin_id='1738' AND source_name='4FGL J2321.9+3204' AND cadence='daily';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1
Traceback (most recent call last):
  File "/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ts_freeIndex' referenced before assignment', time_epoch_completed='1668416664.58' at line 1

Command execution failed.

Waiting 21.73201752 seconds and trying again...


Maximum wait time exceeded. Proceeding.


Analysis Complete.


Mon Nov 14 01:14:33 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 412032: <4FGL_J2321.9+3204_daily_bin1738> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1738> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Nov 14 00:50:21 2022
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov 14 00:51:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov 14 00:51:06 2022
Terminated at Mon Nov 14 01:14:34 2022
Results reported at Mon Nov 14 01:14:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1738 350.478 32.0737 689817601 690076801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2321.9+3204 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   636.37 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             305.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1408 sec.
    Turnaround time :                            1453 sec.

The output (if any) is above this job summary.


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 416874: <4FGL_J2321.9+3204_daily_bin1738> in cluster <slac> Done

Job <4FGL_J2321.9+3204_daily_bin1738> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Nov 14 01:05:15 2022
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov 14 01:06:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov 14 01:06:16 2022
Terminated at Mon Nov 14 01:17:52 2022
Results reported at Mon Nov 14 01:17:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2321.9+3204_daily_bin1738 350.478 32.0737 689817601 690076801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2321.9+3204 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   673.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             350.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            757 sec.

The output (if any) is above this job summary.

