/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 121 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin459
RA = 122.453, Dec = 5.1313
tmin = 358300801, tmax = 358560001
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='251402', job_status='RUN', time_executed='2021-08-29 08:57:31.771729', time_epoch_executed='1630252651.77' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='459'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251402

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251402/ft1_4FGL_J0809.8+0507_daily_bin459.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251402/ft2_4FGL_J0809.8+0507_daily_bin459.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251402/ft1_4FGL_J0809.8+0507_daily_bin459.fits outfile=/scratch/kocevski/251402/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin459.fits ra=122.453 dec=5.1313 rad=12.0 tmin=358300801.0 tmax=358560001.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 5.54
user 5.04
sys 0.46

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/251402/ft2_4FGL_J0809.8+0507_daily_bin459.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251402/ft2_4FGL_J0809.8+0507_daily_bin459.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/251402/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin459.fits evtable="EVENTS" outfile="/scratch/kocevski/251402/ft1_filtered_4FGL_J0809.8+0507_daily_bin459.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.72
user 0.33
sys 0.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251402/ft1_filtered_4FGL_J0809.8+0507_daily_bin459.fits" evtable="EVENTS" scfile=/scratch/kocevski/251402/ft2_4FGL_J0809.8+0507_daily_bin459.fits sctable="SC_DATA" outfile=/scratch/kocevski/251402/ltcube_358300801_358560001_4FGL_J0809.8+0507_daily_bin459.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/251402/ft2_4FGL_J0809.8+0507_daily_bin459.fits
.....................!
real 12.23
user 11.60
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251402/ft1_filtered_4FGL_J0809.8+0507_daily_bin459.fits evtable="EVENTS" scfile=/scratch/kocevski/251402/ft2_4FGL_J0809.8+0507_daily_bin459.fits sctable="SC_DATA" expcube=/scratch/kocevski/251402/ltcube_358300801_358560001_4FGL_J0809.8+0507_daily_bin459.fits outfile=/scratch/kocevski/251402/expmap_358300801_358560001_4FGL_J0809.8+0507_daily_bin459.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/251402/ltcube_358300801_358560001_4FGL_J0809.8+0507_daily_bin459.fits
.....................!
real 191.58
user 185.47
sys 5.52

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0809.8+0507 @ 122.453 5.1313

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/251402/ft1_filtered_4FGL_J0809.8+0507_daily_bin459.fits scfile=/scratch/kocevski/251402/ft2_4FGL_J0809.8+0507_daily_bin459.fits outfile=/scratch/kocevski/251402/cmap_358300801_358560001_4FGL_J0809.8+0507_daily_bin459.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=122.453 yref=5.1313 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.75
user 0.37
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251402/ft1_filtered_4FGL_J0809.8+0507_daily_bin459.fits scfile=/scratch/kocevski/251402/ft2_4FGL_J0809.8+0507_daily_bin459.fits outfile=/scratch/kocevski/251402/cmap_HighResolution_358300801_358560001_4FGL_J0809.8+0507_daily_bin459.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=122.453 yref=5.1313 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.75
user 0.37
sys 0.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/251402/ft1_filtered_4FGL_J0809.8+0507_daily_bin459.fits evtable="EVENTS" scfile=/scratch/kocevski/251402/ft2_4FGL_J0809.8+0507_daily_bin459.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/251402/Model_4FGL_J0809.8+0507_daily_bin459.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/251402/ft1_filtered_4FGL_J0809.8+0507_daily_bin459.fits.....................!
real 79.13
user 77.41
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/251402/ft1_filtered_4FGL_J0809.8+0507_daily_bin459.fits', '/scratch/kocevski/251402/ft2_4FGL_J0809.8+0507_daily_bin459.fits', expMap='/scratch/kocevski/251402/expmap_358300801_358560001_4FGL_J0809.8+0507_daily_bin459.fits', expCube='/scratch/kocevski/251402/ltcube_358300801_358560001_4FGL_J0809.8+0507_daily_bin459.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/251402/Model_4FGL_J0809.8+0507_daily_bin459.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.8+0507'

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.437e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/251402/ft1_filtered_4FGL_J0809.8+0507_daily_bin459.fits
Spacecraft file(s): /scratch/kocevski/251402/ft2_4FGL_J0809.8+0507_daily_bin459.fits
Exposure map: /scratch/kocevski/251402/expmap_358300801_358560001_4FGL_J0809.8+0507_daily_bin459.fits
Exposure cube: /scratch/kocevski/251402/ltcube_358300801_358560001_4FGL_J0809.8+0507_daily_bin459.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/251402/Model_4FGL_J0809.8+0507_daily_bin459.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) = 6824.95496054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2731       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.260       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    19.013       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5444       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.4916       1.0000         .10000E-03   10000.    
    12 'norm      '    .81592       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.9212       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1614       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .31015       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.194       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1454       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90653       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6824.931     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2241 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.983       -.11951E-05** at limit **
   2  Prefactor     .10000E-03    7.3016        .28920E-06** at limit **
   3  norm          1.2731        1.4071        .35520E-07   -.17471E-04
   4  Prefactor     22.260        23.569       -.16971E-06    .58368E-06
   5  Prefactor     .10000E-03    3.8399        .11010E-05** at limit **
   6  norm          18.943        26.858        .68579E-06   -.25248E-04
   7  Prefactor     2.5664        39.479       -.37959E-05   -.17304E-04
   8  Prefactor     .10000E-03    57.086        .43921E-05** at limit **
   9  Prefactor     .10000E-03    6.4570       -.18533E-06** at limit **
  10  Prefactor     .10000E-03    18.679        .15430E-05** at limit **
  11  norm          9.4916        9.6622       -.61617E-07   -.39846E-05
  12  norm          .81615        1.4204        .16538E-06    .27083E-03
  13  norm          .10000E-03    8.0340       -.41899E-06** at limit **
  14  norm          4.9209        3.3489       -.30465E-08   -.10711E-04
  15  Prefactor     7.1461        29.390       -.23430E-05   -.53872E-05
  16  Prefactor     .10000E-03    20.022       -.16804E-05** at limit **
  17  norm          .31030        .66385        .14229E-06    .22324E-04
  18  norm          .10000E-03    2.1906       -.41182E-07** at limit **
  19  Prefactor     26.195        27.415       -.55177E-07    .24313E-05
  20  Normalizat    1.1454        .18108        .35359E-06   -.28083E-04
  21  Prefactor     .90652        .12078        .41203E-06   -.13089E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.27311
  Prefactor  = 22.2598
  Prefactor  = 0.0001
  norm       = 18.9429
  Prefactor  = 2.56636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.49156
  norm       = 0.816148
  norm       = 0.0001
  norm       = 4.92089
  Prefactor  = 7.14609
  Prefactor  = 0.0001
  norm       = 0.310302
  norm       = 0.0001
  Prefactor  = 26.1951
  Normalizat = 1.14539
  Prefactor  = 0.906518
 **********
 **   18 **HESSE 
 **********

 FCN=   6824.931     FROM HESSE     STATUS=OK           321 CALLS     2562 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.3020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2731        1.3851        .98272E-04   -1.5482    
   4  Prefactor     22.260        23.577        .84898E-04   -1.4764    
   5  Prefactor     .10000E-03    3.9647        .31411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.943        26.842        .91853E-04   -1.4837    
   7  Prefactor     2.5664        39.319        .25600E-03   -1.5388    
   8  Prefactor     .10000E-03    56.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.6339        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.4916        9.6571        .13008E-03   -1.5092    
  12  norm          .81615        1.1915        .12743E-02   -1.5527    
  13  norm          .10000E-03    8.0368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9209        3.3484        .12035E-03   -1.5264    
  15  Prefactor     7.1461        29.638        .14989E-03   -1.5173    
  16  Prefactor     .10000E-03    20.544        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .31030        .64202        .94199E-04   -1.5597    
  18  norm          .10000E-03    2.1973        .11941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.195        27.424        .78272E-04   -1.4684    
  20  Normalizat    1.1454        .20801        .26994E-03   -.88308    
  21  Prefactor     .90652        .13975        .20524E-03   -.95914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2607e-11
Minuit parameter uncertainties:
  1  1.92166e-05
  2  3.62986e-07
  3  1.38516
  4  23.5866
  5  3.86521e-06
  6  26.8587
  7  20.1059
  8  5.30388e-05
  9  1.05695e-05
  10  1.4119e-05
  11  9.65872
  12  1.1915
  13  2.51552e-06
  14  3.34854
  15  29.131
  16  9.62962e-06
  17  0.642031
  18  1.54961e-06
  19  27.4367
  20  0.208155
  21  0.139807
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  2.516e-06  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.145e+00  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 5.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251402/likelihoodResults_358300801_358560001_4FGL_J0809.8+0507_daily_bin459.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) = 6824.93187725
delta logL = -0.000592564142607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6824.93128481
delta logL = -1.20659024105e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8245       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90646       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6824.931     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      190 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.1607        .90712E-02** at limit **
   2  alpha         2.8341        3.6244        .41598       -.59192E-05
   3  Normalizat    1.1454        .17249        .61033E-01    .20686E-04
   4  Prefactor     .90652        .11880        .45087E-01    .16664E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.83406
  Normalizat = 1.14539
  Prefactor  = 0.906518
 **********
 **   18 **HESSE 
 **********

 FCN=   6824.931     FROM HESSE     STATUS=OK            29 CALLS      219 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.0717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8341        3.6193        .16639        .13403    
   3  Normalizat    1.1454        .19828        .26994E-03   -.88308    
   4  Prefactor     .90652        .13665        .20524E-03   -.95914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53016e-11
Minuit parameter uncertainties:
  1  4.73592e-06
  2  2.47795
  3  0.198408
  4  0.136705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251402': 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) = 6824.93128464
delta logL = 4.51127561973e-08

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  4.736e-06  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.834e+00  2.478e+00  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.145e+00  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.453 5.131

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/251402/cmap_HighResolution_358300801_358560001_4FGL_J0809.8+0507_daily_bin459.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-05', job_status='DONE', photon_flux_upper_limit='5.62e-08', time_completed='2021-08-29 09:08:19.177965', job_id='251402', GAL2='0.91', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630253299.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='4.51e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='459' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:08:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 251402: <4FGL_J0809.8+0507_daily_bin459> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin459> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:55:16 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:55:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 08:55:18 2021
Terminated at Sun Aug 29 09:08:19 2021
Results reported at Sun Aug 29 09:08:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin459 122.453 5.1313 358300801 358560001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.8+0507 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   649.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

