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 4 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 = 7174
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0304.5+3349_daily_bin1750
RA = 46.1379, Dec = 33.8261
tmin = 692928001, tmax = 693187201
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='3518', job_status='RUN', time_executed='2022-12-20 00:25:28.607739', time_epoch_executed='1671524728.61' WHERE source_name='4FGL J0304.5+3349' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3518

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3518/ft1_4FGL_J0304.5+3349_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3518/ft2_4FGL_J0304.5+3349_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3518/ft1_4FGL_J0304.5+3349_daily_bin1750.fits outfile=/scratch/kocevski/3518/ft1_filteredMKT_4FGL_J0304.5+3349_daily_bin1750.fits ra=46.1379 dec=33.8261 rad=12.0 tmin=692928001.0 tmax=693187201.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 3.46
user 3.24
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/3518/ft2_4FGL_J0304.5+3349_daily_bin1750.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/3518/ft2_4FGL_J0304.5+3349_daily_bin1750.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/3518/ft1_filteredMKT_4FGL_J0304.5+3349_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/3518/ft1_filtered_4FGL_J0304.5+3349_daily_bin1750.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 1153

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/3518/ft1_filtered_4FGL_J0304.5+3349_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/3518/ft2_4FGL_J0304.5+3349_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/3518/ltcube_692928001_693187201_4FGL_J0304.5+3349_daily_bin1750.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/3518/ft2_4FGL_J0304.5+3349_daily_bin1750.fits
.....................!
real 11.84
user 11.39
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3518/ft1_filtered_4FGL_J0304.5+3349_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/3518/ft2_4FGL_J0304.5+3349_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/3518/ltcube_692928001_693187201_4FGL_J0304.5+3349_daily_bin1750.fits outfile=/scratch/kocevski/3518/expmap_692928001_693187201_4FGL_J0304.5+3349_daily_bin1750.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/3518/ltcube_692928001_693187201_4FGL_J0304.5+3349_daily_bin1750.fits
.....................!
real 191.60
user 185.93
sys 5.22

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 J0304.5+3349 @ 46.1379 33.8261

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/3518/ft1_filtered_4FGL_J0304.5+3349_daily_bin1750.fits scfile=/scratch/kocevski/3518/ft2_4FGL_J0304.5+3349_daily_bin1750.fits outfile=/scratch/kocevski/3518/cmap_692928001_693187201_4FGL_J0304.5+3349_daily_bin1750.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=46.1379 yref=33.8261 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3518/ft1_filtered_4FGL_J0304.5+3349_daily_bin1750.fits scfile=/scratch/kocevski/3518/ft2_4FGL_J0304.5+3349_daily_bin1750.fits outfile=/scratch/kocevski/3518/cmap_HighResolution_692928001_693187201_4FGL_J0304.5+3349_daily_bin1750.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=46.1379 yref=33.8261 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/3518/ft1_filtered_4FGL_J0304.5+3349_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/3518/ft2_4FGL_J0304.5+3349_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/3518/Model_4FGL_J0304.5+3349_daily_bin1750.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/3518/ft1_filtered_4FGL_J0304.5+3349_daily_bin1750.fits.....................!
real 188.39
user 184.57
sys 3.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/3518/ft1_filtered_4FGL_J0304.5+3349_daily_bin1750.fits', '/scratch/kocevski/3518/ft2_4FGL_J0304.5+3349_daily_bin1750.fits', expMap='/scratch/kocevski/3518/expmap_692928001_693187201_4FGL_J0304.5+3349_daily_bin1750.fits', expCube='/scratch/kocevski/3518/ltcube_692928001_693187201_4FGL_J0304.5+3349_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/3518/Model_4FGL_J0304.5+3349_daily_bin1750.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0304.5+3349'

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  3.979e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
296        alpha:  2.863e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  3.847e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/3518/ft1_filtered_4FGL_J0304.5+3349_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/3518/ft2_4FGL_J0304.5+3349_daily_bin1750.fits
Exposure map: /scratch/kocevski/3518/expmap_692928001_693187201_4FGL_J0304.5+3349_daily_bin1750.fits
Exposure cube: /scratch/kocevski/3518/ltcube_692928001_693187201_4FGL_J0304.5+3349_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/3518/Model_4FGL_J0304.5+3349_daily_bin1750.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1018       1.0000          .0000       .10000E+07
     2 'norm      '    .64393E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .18220E-05   1.0000          .0000       .10000E+07
     4 'norm      '    10.164       1.0000          .0000       .10000E+07
     5 'norm      '    2.4050       1.0000          .0000       .10000E+07
     6 'Prefactor '    .57173E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    85.717       1.0000          .0000       .10000E+07
     8 'norm      '    .11983E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .73294E-02   1.0000          .0000       .10000E+07
    10 'norm      '    5.9653       1.0000          .0000       .10000E+07
    11 'Prefactor '    .13101E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .82379E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .69660       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.4584       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .91860       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12299.49     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1054 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1019        3.1129        .51377E-07   -.33605E-03
   2  norm           .0000        .81629        .39785E-06** at limit **
   3  Prefactor      .0000        1.8335        .30356E-06** at limit **
   4  norm          10.150        5.7508        .23379E-06   -.67837E-03
   5  norm          2.4044        1.8293       -.16453E-06    .54998E-02
   6  Prefactor      .0000        4.6701       -.95725E-06** at limit **
   7  Prefactor     85.815        1.8611       -.10135E-06   -.25840    
   8  norm          .22204E-09    15.919        .11825E-05** at limit **
   9  Prefactor      .0000        7.9639        .84992E-06** at limit **
  10  norm          5.9651        .86420       -.20164E-06    .26626E-02
  11  Prefactor      .0000        .93565        .34546E-06** at limit **
  12  norm           .0000        1.3686        .96974E-06** at limit **
  13  Prefactor     .37481E-06    153.55        .15302E-04** at limit **
  14  Normalizat    1.4583        .24717        .85625E-05   -.27228E-03
  15  Prefactor     .91870        .74731E-01   -.46563E-05   -.86056E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.10188
  norm       = 0
  Prefactor  = 0
  norm       = 10.1503
  norm       = 2.40437
  Prefactor  = 0
  Prefactor  = 85.8149
  norm       = 2.22045e-10
  Prefactor  = 0
  norm       = 5.96509
  Prefactor  = 0
  norm       = 0
  Prefactor  = 3.74811e-07
  Normalizat = 1.45832
  Prefactor  = 0.918699
 **********
 **   18 **HESSE 
 **********

 FCN=   12299.49     FROM HESSE     STATUS=OK           214 CALLS     1268 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1019        3.4300        .49752E-03   -1.5667    
   2  norm           .0000        .27966        .27991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.8371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.150        5.7469        .31405E-03   -1.5644    
   5  norm          2.4044        1.8497        .65994E-03   -1.5677    
   6  Prefactor      .0000        4.6871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     85.815        81.337        .10802E-03   -1.5523    
   8  norm          .22204E-09    15.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        7.9868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.9651        .86519        .41089E-03   -1.5659    
  11  Prefactor      .0000        .93269        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.3564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .37481E-06    154.05        .60985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.4583        .22615        .99522E-01   -.78956    
  15  Prefactor     .91870        .67196E-01    .45242E-01   -.95491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13481e-06
Minuit parameter uncertainties:
  1  3.43
  2  5.31349e-08
  3  6.82143e-06
  4  5.7469
  5  1.84974
  6  2.07329e-05
  7  81.3378
  8  0.000122261
  9  1.51262e-05
  10  0.86519
  11  5.09734e-06
  12  9.44455e-06
  13  0.0151978
  14  0.226304
  15  0.0672017
Done.

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

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  2.220e-10  1.223e-04  0.000e+00  1.000e+06 ( 1.000e-13)
296        alpha:  2.863e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  3.847e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  9.187e-01  6.720e-02  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  1.458e+00  2.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 46.138 33.826
Photon Flux Upper Limit: 7.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.49e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/3518/likelihoodResults_692928001_693187201_4FGL_J0304.5+3349_daily_bin1750.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): 0
logL (Free Index) = 12299.5215804
delta logL = -0.0303039106311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12299.491277
delta logL = -4.44135366706e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74808E-05   1.0000          .0000       .10000E+07
     2 'alpha     '    3.6914       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91867       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12299.44     FROM MIGRAD    STATUS=CONVERGED    141 CALLS      293 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31120        1.1182        .84235E-04    .36558E-01
   2  alpha         5.0000        4.9771        .50000    ** at limit **
   3  Normalizat    1.4383        .24797        .44347E-03   -.11151E-03
   4  Prefactor     .92117        .74917E-01    .16672E-03   -.40203E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.3112
  alpha      = 5
  Normalizat = 1.43831
  Prefactor  = 0.921167
 **********
 **   18 **HESSE 
 **********

 FCN=   12299.44     FROM HESSE     STATUS=OK            31 CALLS      324 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31120        1.0581        .16847E-04   -1.5697    
   2  alpha         5.0000        4.9998        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4383        .24840        .17739E-04   -.79527    
   4  Prefactor     .92117        .74973E-01    .33344E-04   -.95405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6778e-11
Minuit parameter uncertainties:
  1  1.05812
  2  8.27328e-05
  3  0.248609
  4  0.0749815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3518': 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): 0
logL (Free Index) = 12299.4365015
delta logL = 0.0547750391706

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  3.112e-01  1.058e+00  0.000e+00  1.000e+06 ( 1.000e-13)
296        alpha:  5.000e+00  8.273e-05  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  3.847e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  9.212e-01  7.498e-02  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  1.438e+00  2.486e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 46.138 33.826

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/3518/cmap_HighResolution_692928001_693187201_4FGL_J0304.5+3349_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-05', job_status='DONE', photon_flux_upper_limit='7.60e-08', time_completed='2022-12-20 00:38:05.067863', job_id='3518', GAL2='0.92', fit_tolerance='1e-08', EG2='1.44', EG='1.46', time_epoch_completed='1671525485.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='5.48e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 00:38:05 PST 2022

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='1671524476.28' at line 1

Command execution failed.

Waiting 1.18531732275 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 20.7195715246 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 20.0851370257 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 7.97494076133 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 25.1085164943 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 27.5807402552 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 15.8170212112 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 24.8025975377 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 20.6945873241 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 10.4577464371 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 10.9026087171 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 12.3485710089 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 16.6696785608 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 8.32048784089 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 18.5423925099 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 8.00767106429 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 2.76388671318 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 15.0291467904 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 9.1043647321 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 17.9265708993 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 29.8436759494 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 4.34193146178 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 21.9578172551 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 14.9803727611 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 13.9017162811 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 10.1167639418 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 11.2507054773 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 22.8349177644 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 21.9337355229 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 9.30070787688 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 19.7800813696 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 2.12924077527 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 19.4178405683 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 23.0689886408 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 8.06887580631 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 8.81433576042 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 11.8057992602 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 5.57447829587 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 16.5586221264 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 16.4447449809 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' AND cadence='daily';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='local variable 'ts_freeIndex' referenced before assignment', time_epoch_completed='1671524476.28', time_completed='2022-12-20 00:21:16.282303', job_id='997223' WHERE bin_id='1750' AND source_name='4FGL J0304.5+3349' 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='1671524476.28' 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='1671524476.28' at line 1

Command execution failed.

Waiting 22.9047596215 seconds and trying again...


Maximum wait time exceeded. Proceeding.


Analysis Complete.


Tue Dec 20 00:31:33 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 997223: <4FGL_J0304.5+3349_daily_bin1750> in cluster <slac> Done

Job <4FGL_J0304.5+3349_daily_bin1750> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Dec 20 00:05:14 2022
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:05:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:05:15 2022
Terminated at Tue Dec 20 00:31:33 2022
Results reported at Tue Dec 20 00:31:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0304.5+3349_daily_bin1750 46.1379 33.8261 692928001 693187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0304.5+3349 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   698.27 sec.
    Max Memory :                                 617 MB
    Average Memory :                             295.02 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1578 sec.
    Turnaround time :                            1579 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 3518: <4FGL_J0304.5+3349_daily_bin1750> in cluster <slac> Done

Job <4FGL_J0304.5+3349_daily_bin1750> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec 20 00:25:15 2022
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:25:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:25:16 2022
Terminated at Tue Dec 20 00:38:05 2022
Results reported at Tue Dec 20 00:38:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0304.5+3349_daily_bin1750 46.1379 33.8261 692928001 693187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0304.5+3349 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   757.49 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             372.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            770 sec.

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

