aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 213 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 = 17186
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0806.5+4503_weekly_bin511
RA = 121.628, Dec = 45.0605
tmin = 548035201, tmax = 548640001
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='440211', job_status='RUN', time_executed='2021-07-12 00:08:08.821870', time_epoch_executed='1626073688.82' WHERE source_name='4FGL J0806.5+4503' and cadence='weekly' and bin_id='511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/440211

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/440211/ft1_4FGL_J0806.5+4503_weekly_bin511.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/440211/ft2_4FGL_J0806.5+4503_weekly_bin511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/440211/ft1_4FGL_J0806.5+4503_weekly_bin511.fits outfile=/scratch/kocevski/440211/ft1_filteredMKT_4FGL_J0806.5+4503_weekly_bin511.fits ra=121.628 dec=45.0605 rad=12.0 tmin=548035201.0 tmax=548640001.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 6.82
user 6.47
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/440211/ft2_4FGL_J0806.5+4503_weekly_bin511.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/440211/ft2_4FGL_J0806.5+4503_weekly_bin511.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/440211/ft1_filteredMKT_4FGL_J0806.5+4503_weekly_bin511.fits evtable="EVENTS" outfile="/scratch/kocevski/440211/ft1_filtered_4FGL_J0806.5+4503_weekly_bin511.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.51
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/440211/ft1_filtered_4FGL_J0806.5+4503_weekly_bin511.fits" evtable="EVENTS" scfile=/scratch/kocevski/440211/ft2_4FGL_J0806.5+4503_weekly_bin511.fits sctable="SC_DATA" outfile=/scratch/kocevski/440211/ltcube_548035201_548640001_4FGL_J0806.5+4503_weekly_bin511.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/440211/ft2_4FGL_J0806.5+4503_weekly_bin511.fits
.....................!
real 25.86
user 25.07
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/440211/ft1_filtered_4FGL_J0806.5+4503_weekly_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/440211/ft2_4FGL_J0806.5+4503_weekly_bin511.fits sctable="SC_DATA" expcube=/scratch/kocevski/440211/ltcube_548035201_548640001_4FGL_J0806.5+4503_weekly_bin511.fits outfile=/scratch/kocevski/440211/expmap_548035201_548640001_4FGL_J0806.5+4503_weekly_bin511.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/440211/ltcube_548035201_548640001_4FGL_J0806.5+4503_weekly_bin511.fits
.....................!
real 157.48
user 151.65
sys 4.68

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

Setting source of interest to:
4FGL J0806.5+4503 @ 121.628 45.0605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/440211/ft1_filtered_4FGL_J0806.5+4503_weekly_bin511.fits scfile=/scratch/kocevski/440211/ft2_4FGL_J0806.5+4503_weekly_bin511.fits outfile=/scratch/kocevski/440211/cmap_548035201_548640001_4FGL_J0806.5+4503_weekly_bin511.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=121.628 yref=45.0605 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.93
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/440211/ft1_filtered_4FGL_J0806.5+4503_weekly_bin511.fits scfile=/scratch/kocevski/440211/ft2_4FGL_J0806.5+4503_weekly_bin511.fits outfile=/scratch/kocevski/440211/cmap_HighResolution_548035201_548640001_4FGL_J0806.5+4503_weekly_bin511.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=121.628 yref=45.0605 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 1.64
user 0.34
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/440211/ft1_filtered_4FGL_J0806.5+4503_weekly_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/440211/ft2_4FGL_J0806.5+4503_weekly_bin511.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/440211/Model_4FGL_J0806.5+4503_weekly_bin511.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/440211/ft1_filtered_4FGL_J0806.5+4503_weekly_bin511.fits.......................!
real 26.30
user 16.14
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/440211/ft1_filtered_4FGL_J0806.5+4503_weekly_bin511.fits', '/scratch/kocevski/440211/ft2_4FGL_J0806.5+4503_weekly_bin511.fits', expMap='/scratch/kocevski/440211/expmap_548035201_548640001_4FGL_J0806.5+4503_weekly_bin511.fits', expCube='/scratch/kocevski/440211/ltcube_548035201_548640001_4FGL_J0806.5+4503_weekly_bin511.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/440211/Model_4FGL_J0806.5+4503_weekly_bin511.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0806.5+4503'

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  6.264e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.607e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  6.910e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/440211/ft1_filtered_4FGL_J0806.5+4503_weekly_bin511.fits
Spacecraft file(s): /scratch/kocevski/440211/ft2_4FGL_J0806.5+4503_weekly_bin511.fits
Exposure map: /scratch/kocevski/440211/expmap_548035201_548640001_4FGL_J0806.5+4503_weekly_bin511.fits
Exposure cube: /scratch/kocevski/440211/ltcube_548035201_548640001_4FGL_J0806.5+4503_weekly_bin511.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/440211/Model_4FGL_J0806.5+4503_weekly_bin511.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) = 992.900725282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    88.087       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10338E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    405.21       1.0000         .10000E-03   10000.    
     4 'norm      '    .10946E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.4448       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .40384       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    127.33       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22635E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11948E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.812       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4094       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.152       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .28455E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.323       1.0000         .10000E-03   10000.    
    23 'norm      '    4.0134       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .42517E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.629       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .49962E-02   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .69686       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .64547       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   992.2872     FROM MIGRAD    STATUS=CONVERGED    293 CALLS     2922 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          65.185        148.96        .70871E-05    .15662E-05
   2  Prefactor     .10001E-03    169.24        .35695E-06** at limit **
   3  Prefactor     435.74        428.28       -.12016E-04   -.24115E-04
   4  norm          .10000E-03    26.884       -.47678E-06** at limit **
   5  Prefactor     9.6118        50.767        .57495E-05   -.15321E-04
   6  Prefactor     .10029E-03    1185.4       -.45919E-04** at limit **
   7  norm          .10000E-03    3.9997       -.59503E-07** at limit **
   8  Prefactor     .10000E-03    15.980       -.76773E-07** at limit **
   9  Prefactor     138.80        83.122        .40310E-06    .36670E-05
  10  norm          .10000E-03    3.3659       -.34002E-07** at limit **
  11  Prefactor     .10000E-03    37.800       -.19429E-06** at limit **
  12  Prefactor     .10000E-03    139.04       -.23293E-05** at limit **
  13  Prefactor     .10000E-03    5.1611       -.13334E-07** at limit **
  14  norm          10.841        11.140       -.20214E-06    .11110E-04
  15  norm          .10000E-03    1.8589       -.11703E-07** at limit **
  16  norm          2.4040        1.4665       -.53950E-07    .40200E-04
  17  Prefactor     .10000E-03    11.637        .75514E-07** at limit **
  18  Prefactor     23.012        21.018        .19929E-06    .11484E-03
  19  Prefactor     .10000E-03    2.4775       -.10339E-07** at limit **
  20  Prefactor     .10000E-03    97.415        .15135E-05** at limit **
  21  Prefactor     .10000E-03    8.4869        .48874E-07** at limit **
  22  Prefactor     15.335        15.857        .22484E-06    .82329E-05
  23  norm          4.0458        10.624        .17686E-05    .18912E-04
  24  norm          .10000E-03    3.6836       -.10872E-07** at limit **
  25  Prefactor     .10001E-03    137.66        .34919E-04** at limit **
  26  Prefactor     19.878        32.813       -.80500E-06   -.91593E-05
  27  Prefactor     .10000E-03    69.246       -.62388E-06** at limit **
  28  Normalizat    .69744        .42641        .54876E-05    .51229E-04
  29  Prefactor     .64116        .34462       -.45841E-05    .48373E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 65.1848
  Prefactor  = 0.000100009
  Prefactor  = 435.741
  norm       = 0.0001
  Prefactor  = 9.61176
  Prefactor  = 0.000100287
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 138.797
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 10.8412
  norm       = 0.0001
  norm       = 2.404
  Prefactor  = 0.0001
  Prefactor  = 23.0116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3347
  norm       = 4.04579
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 19.878
  Prefactor  = 0.0001
  Normalizat = 0.697443
  Prefactor  = 0.641163
 **********
 **   18 **HESSE 
 **********

 FCN=   992.2872     FROM HESSE     STATUS=OK           609 CALLS     3531 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          65.185        154.11        .10702E-02   -1.4091    
   2  Prefactor     .10001E-03    166.83        .90747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     435.74        433.38        .50716E-03   -1.1502    
   4  norm          .10000E-03    27.093        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.6118        50.478        .32600E-02   -1.5088    
   6  Prefactor     .10029E-03    1145.3        .10872E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.9665        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.981        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     138.80        83.559        .89191E-03   -1.3346    
  10  norm          .10000E-03    3.3655        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    38.025        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    139.21        .90827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.1505        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.841        11.153        .30462E-02   -1.5049    
  15  norm          .10000E-03    1.8594        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4040        1.4624        .64923E-02   -1.5398    
  17  Prefactor     .10000E-03    11.631        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.012        21.073        .20812E-02   -1.4748    
  19  Prefactor     .10000E-03    2.4711        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    96.950        .99425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.4928        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.335        15.872        .25580E-02   -1.4925    
  23  norm          4.0458        10.847        .50325E-02   -1.5306    
  24  norm          .10000E-03    3.6866        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    4.1776        .63834E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.878        32.777        .22601E-02   -1.4816    
  27  Prefactor     .10000E-03    69.309        .96017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .69744        .39442        .42249E-01   -1.0399    
  29  Prefactor     .64116        .30883        .41671E-01   -1.0588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09683e-10
Minuit parameter uncertainties:
  1  155.064
  2  0.00239012
  3  436.708
  4  9.0638e-06
  5  44.1121
  6  0.0370121
  7  2.8571e-07
  8  2.66844e-06
  9  83.6301
  10  1.92645e-06
  11  2.06879e-05
  12  0.000669834
  13  2.24748e-06
  14  11.1551
  15  7.50723e-07
  16  1.46247
  17  1.86002e-06
  18  21.0794
  19  3.93199e-07
  20  0.000398579
  21  3.20219e-06
  22  15.876
  23  10.8525
  24  2.32801e-07
  25  0.000433137
  26  32.8062
  27  1.54461e-05
  28  0.396038
  29  0.309659
Done.

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

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  6.698e-04  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.607e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  6.910e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  6.412e-01  3.097e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  6.974e-01  3.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.628 45.060
Photon Flux Upper Limit: 2.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/440211/likelihoodResults_548035201_548640001_4FGL_J0806.5+4503_weekly_bin511.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 992.287206099
delta logL = -3.40355105664e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 992.287172329
delta logL = -2.64888626589e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11243E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9820       1.0000          .0000       10.000    
     3 'Normalizat'    .69744       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64116       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   992.2872     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      273 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10625E-03    87.626        .18142E-01** at limit **
   2  Index         2.8564        8.5695        .50000        .29008E-05
   3  Normalizat    .69744        .86054E-02    .25788E-03    .48438E-05
   4  Prefactor     .64116        .70709E-02    .21874E-03    .57624E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106248
  Index      = 2.85642
  Normalizat = 0.697442
  Prefactor  = 0.641163
 **********
 **   18 **HESSE 
 **********

 FCN=   992.2872     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10625E-03    550.80        .31747E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8564        5.3591        .50000       -.44307    
   3  Normalizat    .69744        .21734E-01    .10315E-04   -1.0399    
   4  Prefactor     .64116        .17858E-01    .87498E-05   -1.0588    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.1981e-10
Minuit parameter uncertainties:
  1  0.118429
  2  833.973
  3  0.0217339
  4  0.0178582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/440211': 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): 102
logL (Free Index) = 992.287172201
delta logL = -1.36985477184e-07

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  1.062e-04  1.184e-01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.856e+00  8.340e+02  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  6.910e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  6.412e-01  1.786e-02  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  6.974e-01  2.173e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.628 45.060

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/440211/cmap_HighResolution_548035201_548640001_4FGL_J0806.5+4503_weekly_bin511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-02', job_status='DONE', photon_flux_upper_limit='2.65e-07', time_completed='2021-07-12 00:15:55.343185', job_id='440211', GAL2='0.64', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1626074155.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='-1.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='511' AND source_name='4FGL J0806.5+4503' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 12 00:15:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 440211: <4FGL_J0806.5+4503_weekly_bin511> in cluster <slac> Done

Job <4FGL_J0806.5+4503_weekly_bin511> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jul 12 00:01:47 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 00:02:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 12 00:02:52 2021
Terminated at Mon Jul 12 00:16:03 2021
Results reported at Mon Jul 12 00:16:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0806.5+4503_weekly_bin511 121.628 45.0605 548035201 548640001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0806.5+4503 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   390.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             184.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            856 sec.

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

