/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 162 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 = 7535
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0806.5+4503_daily_bin1239
RA = 121.628, Dec = 45.0605
tmin = 560476801, tmax = 560736001
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='156614', job_status='RUN', time_executed='2021-08-29 03:29:33.278495', time_epoch_executed='1630232973.28' WHERE source_name='4FGL J0806.5+4503' and cadence='daily' and bin_id='1239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156614

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156614/ft1_4FGL_J0806.5+4503_daily_bin1239.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156614/ft2_4FGL_J0806.5+4503_daily_bin1239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156614/ft1_4FGL_J0806.5+4503_daily_bin1239.fits outfile=/scratch/kocevski/156614/ft1_filteredMKT_4FGL_J0806.5+4503_daily_bin1239.fits ra=121.628 dec=45.0605 rad=12.0 tmin=560476801.0 tmax=560736001.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.26
user 3.51
sys 1.72

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/156614/ft2_4FGL_J0806.5+4503_daily_bin1239.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/156614/ft1_filteredMKT_4FGL_J0806.5+4503_daily_bin1239.fits evtable="EVENTS" outfile="/scratch/kocevski/156614/ft1_filtered_4FGL_J0806.5+4503_daily_bin1239.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 2.08
user 0.35
sys 1.66

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/156614/ft1_filtered_4FGL_J0806.5+4503_daily_bin1239.fits" evtable="EVENTS" scfile=/scratch/kocevski/156614/ft2_4FGL_J0806.5+4503_daily_bin1239.fits sctable="SC_DATA" outfile=/scratch/kocevski/156614/ltcube_560476801_560736001_4FGL_J0806.5+4503_daily_bin1239.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/156614/ft2_4FGL_J0806.5+4503_daily_bin1239.fits
.....................!
real 13.74
user 11.61
sys 2.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156614/ft1_filtered_4FGL_J0806.5+4503_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/156614/ft2_4FGL_J0806.5+4503_daily_bin1239.fits sctable="SC_DATA" expcube=/scratch/kocevski/156614/ltcube_560476801_560736001_4FGL_J0806.5+4503_daily_bin1239.fits outfile=/scratch/kocevski/156614/expmap_560476801_560736001_4FGL_J0806.5+4503_daily_bin1239.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/156614/ltcube_560476801_560736001_4FGL_J0806.5+4503_daily_bin1239.fits
.....................!
real 193.39
user 186.96
sys 6.04

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/156614/ft1_filtered_4FGL_J0806.5+4503_daily_bin1239.fits scfile=/scratch/kocevski/156614/ft2_4FGL_J0806.5+4503_daily_bin1239.fits outfile=/scratch/kocevski/156614/cmap_560476801_560736001_4FGL_J0806.5+4503_daily_bin1239.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 2.05
user 0.38
sys 1.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/156614/ft1_filtered_4FGL_J0806.5+4503_daily_bin1239.fits scfile=/scratch/kocevski/156614/ft2_4FGL_J0806.5+4503_daily_bin1239.fits outfile=/scratch/kocevski/156614/cmap_HighResolution_560476801_560736001_4FGL_J0806.5+4503_daily_bin1239.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 2.07
user 0.39
sys 1.65

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/156614/ft1_filtered_4FGL_J0806.5+4503_daily_bin1239.fits', '/scratch/kocevski/156614/ft2_4FGL_J0806.5+4503_daily_bin1239.fits', expMap='/scratch/kocevski/156614/expmap_560476801_560736001_4FGL_J0806.5+4503_daily_bin1239.fits', expCube='/scratch/kocevski/156614/ltcube_560476801_560736001_4FGL_J0806.5+4503_daily_bin1239.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/156614/Model_4FGL_J0806.5+4503_daily_bin1239.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/156614/ft1_filtered_4FGL_J0806.5+4503_daily_bin1239.fits
Spacecraft file(s): /scratch/kocevski/156614/ft2_4FGL_J0806.5+4503_daily_bin1239.fits
Exposure map: /scratch/kocevski/156614/expmap_560476801_560736001_4FGL_J0806.5+4503_daily_bin1239.fits
Exposure cube: /scratch/kocevski/156614/ltcube_560476801_560736001_4FGL_J0806.5+4503_daily_bin1239.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/156614/Model_4FGL_J0806.5+4503_daily_bin1239.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) = 4290.37270063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.480       1.0000         .10000E-03   10000.    
     4 'norm      '    9.0879       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.158       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10520E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19943E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.265       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.8207       1.0000         .10000E-03   10000.    
    16 'norm      '    .62134       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .25129E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1228       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.688       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2420       1.0000         .10000E-03   10000.    
    23 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.0542       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.074       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4448       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96823       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.

 FCN=   4290.327     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     3188 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8530        .22381E-07** at limit **
   2  Prefactor     .10000E-03    2.4074        .38772E-07** at limit **
   3  Prefactor     16.482        16.046        .28550E-07    .74323E-06
   4  norm          9.0860        12.990        .37008E-06   -.75921E-05
   5  Prefactor     .10000E-03    27.100        .87992E-06** at limit **
   6  Prefactor     22.132        43.836        .40181E-06   -.35381E-05
   7  norm          .10000E-03    .58024        .87396E-07** at limit **
   8  Prefactor     .10000E-03    5.7508        .96958E-07** at limit **
   9  Prefactor     .10000E-03    67.751        .18194E-05** at limit **
  10  norm          .10000E-03    1.0254        .68083E-07** at limit **
  11  Prefactor     .10000E-03    27.952        .22145E-05** at limit **
  12  Prefactor     19.152        41.435       -.83105E-06    .23384E-04
  13  Prefactor     .10000E-03    13.222        .91741E-06** at limit **
  14  norm          .10000E-03    9.8343        .28168E-06** at limit **
  15  norm          4.8207        2.9070       -.78809E-08   -.47087E-04
  16  norm          .62203        .79650        .13411E-06    .78214E-03
  17  Prefactor     .10019E-03    12.033       -.26793E-05** at limit **
  18  Prefactor     3.1240        9.8629        .13719E-06   -.63739E-05
  19  Prefactor     .10000E-03    2.7676        .14386E-06** at limit **
  20  Prefactor     24.684        28.097       -.76497E-07    .32848E-04
  21  Prefactor     .10000E-03    5.2827        .73489E-07** at limit **
  22  Prefactor     5.2447        11.674        .62403E-05    .15790E-03
  23  norm          .10000E-03    3.1183       -.40948E-06** at limit **
  24  norm          .10000E-03    3.0302       -.49897E-06** at limit **
  25  Prefactor     2.0543        3.0128       -.10212E-06   -.14325E-04
  26  Prefactor     .10000E-03    22.291       -.15532E-05** at limit **
  27  Prefactor     20.838        77.860       -.23213E-05   -.52563E-04
  28  Normalizat    1.4443        .26122       -.26939E-06    .31224E-04
  29  Prefactor     .96852        .18226       -.10839E-05    .32109E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4821
  norm       = 9.08596
  Prefactor  = 0.0001
  Prefactor  = 22.1322
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1518
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.82066
  norm       = 0.622034
  Prefactor  = 0.000100187
  Prefactor  = 3.12402
  Prefactor  = 0.0001
  Prefactor  = 24.6837
  Prefactor  = 0.0001
  Prefactor  = 5.24466
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.0543
  Prefactor  = 0.0001
  Prefactor  = 20.8375
  Normalizat = 1.44433
  Prefactor  = 0.96852
 **********
 **   18 **HESSE 
 **********

 FCN=   4290.327     FROM HESSE     STATUS=OK           551 CALLS     3739 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8543        .87078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.4115        .99241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.482        16.048        .98660E-04   -1.4896    
   4  norm          9.0860        13.017        .13295E-03   -1.5105    
   5  Prefactor     .10000E-03    27.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.132        43.871        .85093E-04   -1.4767    
   7  norm          .10000E-03    .59255        .48697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.7552        .15341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    69.656        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.0274        .64778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.992        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.152        41.395        .91252E-04   -1.4832    
  13  Prefactor     .10000E-03    13.554        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    10.155        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.8207        2.9015        .83886E-04   -1.5269    
  16  norm          .62203        .74453        .62706E-03   -1.5550    
  17  Prefactor     .10019E-03    43.432        .40279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1240        9.8484        .22943E-03   -1.5354    
  19  Prefactor     .10000E-03    2.8084        .10631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.684        28.091        .80621E-04   -1.4714    
  21  Prefactor     .10000E-03    5.2877        .14703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.2447        11.773        .87781E-03   -1.5250    
  23  norm          .10000E-03    3.1225        .11295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.0403        .11147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.0543        2.9971        .13292E-03   -1.5421    
  26  Prefactor     .10000E-03    22.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     20.838        78.094        .87250E-04   -1.4795    
  28  Normalizat    1.4443        .30136        .27923E-03   -.79355    
  29  Prefactor     .96852        .21048        .23528E-03   -.93786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47306e-09
Minuit parameter uncertainties:
  1  5.85229e-07
  2  1.21757e-06
  3  16.0517
  4  13.0215
  5  0.000147448
  6  43.9349
  7  1.40593e-06
  8  3.03824e-06
  9  0.000191708
  10  9.29667e-07
  11  4.7049e-05
  12  41.4569
  13  6.63587e-05
  14  4.2837e-06
  15  2.90161
  16  0.744538
  17  0.00570948
  18  9.85352
  19  1.38316e-05
  20  28.1058
  21  3.45899e-06
  22  11.778
  23  4.81908e-06
  24  1.37588e-05
  25  2.99731
  26  8.26287e-05
  27  78.4813
  28  0.301729
  29  0.210654
Done.

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

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  1.915e+01  4.146e+01  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:  9.685e-01  2.107e-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:  1.444e+00  3.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/156614/likelihoodResults_560476801_560736001_4FGL_J0806.5+4503_daily_bin1239.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) = 4289.21181519
delta logL = 1.11546966884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4289.15408112
delta logL = 1.17320373738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.491       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3775       1.0000          .0000       10.000    
     3 'Normalizat'    1.4633       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95465       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.

 FCN=   4289.154     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      221 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.501        46.448        .55541E-05   -.69453E-04
   2  Index         1.3772        .63257        .23000E-04    .16501E-04
   3  Normalizat    1.4631        .25152       -.10581E-06   -.19645E-04
   4  Prefactor     .95470        .17884       -.74663E-07   -.15087E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.501
  Index      = 1.37719
  Normalizat = 1.46315
  Prefactor  = 0.954697
 **********
 **   18 **HESSE 
 **********

 FCN=   4289.154     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.501        45.114        .70297E-04   -1.4567    
   2  Index         1.3772        .61336        .80910E-02   -.81040    
   3  Normalizat    1.4631        .28947        .27758E-03   -.78819    
   4  Prefactor     .95470        .20589        .23641E-03   -.94255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27716e-11
Minuit parameter uncertainties:
  1  45.1615
  2  0.616645
  3  0.289801
  4  0.206063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156614': 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) = 4289.15408071
delta logL = 1.17320414786

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  3.250e+01  4.516e+01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  1.377e+00  6.166e-01  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:  9.547e-01  2.061e-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:  1.463e+00  2.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 121.628 45.060
Photon Index (Free Index): 1.38 +/- 0.62
Photon Flux (Free Index): 1.14e-08 +/- 1.52e-08
Energy Flux (Free Index): 5.45e-05 +/- 9.29e-05

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/156614/cmap_HighResolution_560476801_560736001_4FGL_J0806.5+4503_daily_bin1239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', energy_flux2='5.45e-05', dlogl='1.17e+00', photon_flux2='1.14e-08', job_status='DONE', time_completed='2021-08-29 03:41:28.713157', photon_index_error2='0.62', photon_index2='1.38', ts='0.30', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='9.29e-05', EG='1.44', time_epoch_completed='1630233688.71', return_code='0', job_id='156614', GAL2='0.95', EG2='1.46', return_code2='0', photon_flux_error2='1.52e-08', ts2='2.65', photon_index='2.61' WHERE bin_id='1239' AND source_name='4FGL J0806.5+4503' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 03:41:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 156614: <4FGL_J0806.5+4503_daily_bin1239> in cluster <slac> Done

Job <4FGL_J0806.5+4503_daily_bin1239> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 03:26:14 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 03:26:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 03:26:16 2021
Terminated at Sun Aug 29 03:41:29 2021
Results reported at Sun Aug 29 03:41:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0806.5+4503_daily_bin1239 121.628 45.0605 560476801 560736001 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 :                                   734.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

