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


Performing analysis on: 4FGL_J0806.5+4503_daily_bin1710
RA = 121.628, Dec = 45.0605
tmin = 682560001, tmax = 682819201
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='63852', job_status='RUN', time_executed='2022-09-16 13:41:26.101745', time_epoch_executed='1663360886.1' WHERE source_name='4FGL J0806.5+4503' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/63852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/63852/ft1_4FGL_J0806.5+4503_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/63852/ft2_4FGL_J0806.5+4503_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/63852/ft1_4FGL_J0806.5+4503_daily_bin1710.fits outfile=/scratch/kocevski/63852/ft1_filteredMKT_4FGL_J0806.5+4503_daily_bin1710.fits ra=121.628 dec=45.0605 rad=12.0 tmin=682560001.0 tmax=682819201.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.66
user 3.41
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/63852/ft2_4FGL_J0806.5+4503_daily_bin1710.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/63852/ft1_filteredMKT_4FGL_J0806.5+4503_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/63852/ft1_filtered_4FGL_J0806.5+4503_daily_bin1710.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.34
sys 0.15

Number of photons that the gtmktime cut: 726

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/63852/ft1_filtered_4FGL_J0806.5+4503_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/63852/ft2_4FGL_J0806.5+4503_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/63852/ltcube_682560001_682819201_4FGL_J0806.5+4503_daily_bin1710.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/63852/ft2_4FGL_J0806.5+4503_daily_bin1710.fits
.....................!
real 14.47
user 14.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/63852/ft1_filtered_4FGL_J0806.5+4503_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/63852/ft2_4FGL_J0806.5+4503_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/63852/ltcube_682560001_682819201_4FGL_J0806.5+4503_daily_bin1710.fits outfile=/scratch/kocevski/63852/expmap_682560001_682819201_4FGL_J0806.5+4503_daily_bin1710.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/63852/ltcube_682560001_682819201_4FGL_J0806.5+4503_daily_bin1710.fits
.....................!
real 190.86
user 185.86
sys 4.63

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/63852/ft1_filtered_4FGL_J0806.5+4503_daily_bin1710.fits scfile=/scratch/kocevski/63852/ft2_4FGL_J0806.5+4503_daily_bin1710.fits outfile=/scratch/kocevski/63852/cmap_682560001_682819201_4FGL_J0806.5+4503_daily_bin1710.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/63852/ft1_filtered_4FGL_J0806.5+4503_daily_bin1710.fits scfile=/scratch/kocevski/63852/ft2_4FGL_J0806.5+4503_daily_bin1710.fits outfile=/scratch/kocevski/63852/cmap_HighResolution_682560001_682819201_4FGL_J0806.5+4503_daily_bin1710.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 0.56
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/63852/ft1_filtered_4FGL_J0806.5+4503_daily_bin1710.fits', '/scratch/kocevski/63852/ft2_4FGL_J0806.5+4503_daily_bin1710.fits', expMap='/scratch/kocevski/63852/expmap_682560001_682819201_4FGL_J0806.5+4503_daily_bin1710.fits', expCube='/scratch/kocevski/63852/ltcube_682560001_682819201_4FGL_J0806.5+4503_daily_bin1710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/63852/Model_4FGL_J0806.5+4503_daily_bin1710.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  0.000e+00  1.000e+06 ( 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/63852/ft1_filtered_4FGL_J0806.5+4503_daily_bin1710.fits
Spacecraft file(s): /scratch/kocevski/63852/ft2_4FGL_J0806.5+4503_daily_bin1710.fits
Exposure map: /scratch/kocevski/63852/expmap_682560001_682819201_4FGL_J0806.5+4503_daily_bin1710.fits
Exposure cube: /scratch/kocevski/63852/ltcube_682560001_682819201_4FGL_J0806.5+4503_daily_bin1710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/63852/Model_4FGL_J0806.5+4503_daily_bin1710.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) = 7895.91947816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6409       1.0000          .0000       .10000E+07
     2 'Prefactor '    .99698E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    40.037       1.0000          .0000       .10000E+07
     4 'norm      '    .11949E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .43103E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    10.213       1.0000          .0000       .10000E+07
     7 'norm      '    .46085E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .87582E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10273E-03   1.0000          .0000       .10000E+07
    10 'norm      '    2.1498       1.0000          .0000       .10000E+07
    11 'Prefactor '    .23016E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    9.6574       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.2667       1.0000          .0000       .10000E+07
    14 'norm      '    .11657E-07   1.0000          .0000       .10000E+07
    15 'norm      '    .71854E-06   1.0000          .0000       .10000E+07
    16 'norm      '    2.7733       1.0000          .0000       .10000E+07
    17 'Prefactor '    .19803E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.7015       1.0000          .0000       .10000E+07
    19 'Prefactor '    .10786E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    68.267       1.0000          .0000       .10000E+07
    21 'Prefactor '    .52169E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    10.161       1.0000          .0000       .10000E+07
    23 'norm      '    .21969E-05   1.0000          .0000       .10000E+07
    24 'norm      '    .73878       1.0000          .0000       .10000E+07
    25 'Prefactor '    18.106       1.0000          .0000       .10000E+07
    26 'Normalizat'    .55294       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3786       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=   7895.855     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     2388 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6653        3.2893        .66196E-08   -.49085E-02
   2  Prefactor     .25491E-05    29.374        .71157E-05** at limit **
   3  Prefactor     40.011        4.0241        .62922E-06    .14663E-01
   4  norm          .36804E-07    2.2071        .92336E-06** at limit **
   5  Prefactor      .0000        3.0956       -.99384E-08** at limit **
   6  Prefactor     10.475        3.0749        .73068E-06   -.16827E-01
   7  norm           .0000        .52738       -.12576E-06** at limit **
   8  Prefactor     .22204E-09    5.3785        .65288E-06** at limit **
   9  Prefactor     .33917E-07    2.0987        .14242E-05** at limit **
  10  norm          2.1471        1.6371        .60902E-07   -.61068E-02
  11  Prefactor     .49960E-09    2.4511        .31018E-06** at limit **
  12  Prefactor     12.449        36.130        .91286E-05    .67008E-02
  13  Prefactor     5.2597        5.7594        .43545E-06    .27101E-02
  14  norm          .16653E-09    .93108        .93501E-08** at limit **
  15  norm           .0000        .43290        .25979E-07** at limit **
  16  norm          2.7657        .83074        .61668E-07   -.93996E-02
  17  Prefactor     .14988E-08    8.5866       -.16120E-05** at limit **
  18  Prefactor     4.7570        4.9971        .29587E-06   -.21701E-02
  19  Prefactor     .34228E-06    15.477       -.57001E-05** at limit **
  20  Prefactor     68.684        10.580        .16247E-05   -.12854    
  21  Prefactor     .38858E-09    10.408        .41870E-05** at limit **
  22  Prefactor     10.212        7.2328       -.35848E-08   -.36610E-02
  23  norm          .55511E-09    4.4808       -.32037E-06** at limit **
  24  norm          .82335        1.3724        .10385E-05    .26552E-01
  25  Prefactor     16.841        14.203        .22713E-05   -.62346E-01
  26  Normalizat    .55158        .20407       -.23632E-05    .41416E-04
  27  Prefactor     1.3783        .15243       -.17705E-04    .15849E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.66533
  Prefactor  = 2.54913e-06
  Prefactor  = 40.0108
  norm       = 3.68039e-08
  Prefactor  = 0
  Prefactor  = 10.4747
  norm       = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 3.39173e-08
  norm       = 2.14714
  Prefactor  = 4.996e-10
  Prefactor  = 12.4494
  Prefactor  = 5.25975
  norm       = 1.66533e-10
  norm       = 0
  norm       = 2.7657
  Prefactor  = 1.4988e-09
  Prefactor  = 4.75702
  Prefactor  = 3.42282e-07
  Prefactor  = 68.6839
  Prefactor  = 3.88578e-10
  Prefactor  = 10.2119
  norm       = 5.55112e-10
  norm       = 0.823353
  Prefactor  = 16.8412
  Normalizat = 0.551584
  Prefactor  = 1.37827
 **********
 **   18 **HESSE 
 **********

 FCN=   7895.855     FROM HESSE     STATUS=OK           554 CALLS     2942 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6653        3.3522        .62714E-03   -1.5675    
   2  Prefactor     .25491E-05    3.6186        .54229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     40.011        18.979        .15806E-03   -1.5581    
   4  norm          .36804E-07    4.2659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        3.1053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.475        26.174        .31329E-03   -1.5643    
   7  norm           .0000        .51537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .22204E-09    5.3866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .33917E-07    4.1431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1471        1.6399        .70248E-03   -1.5679    
  11  Prefactor     .49960E-09    2.4362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.449        37.910        .32222E-03   -1.5637    
  13  Prefactor     5.2597        5.8505        .43774E-03   -1.5662    
  14  norm          .16653E-09    .93023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        .43233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7657        .83850        .61085E-03   -1.5675    
  17  Prefactor     .14988E-08    8.5947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.7570        5.0142        .46385E-03   -1.5664    
  19  Prefactor     .34228E-06    2.3419        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     68.684        38.050        .12104E-03   -1.5542    
  21  Prefactor     .38858E-09    10.479        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.212        7.3735        .31409E-03   -1.5644    
  23  norm          .55511E-09    4.4883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .82335        14.122        .57614E-03   -1.5690    
  25  Prefactor     16.841        28.965        .23510E-03   -1.5626    
  26  Normalizat    .55158        .20314        .86488E-01   -1.1008    
  27  Prefactor     1.3783        .14363        .31363E-01   -.81009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.33912e-07
Minuit parameter uncertainties:
  1  3.35224
  2  0.00607429
  3  18.9787
  4  0.000792424
  5  4.05331e-06
  6  26.1744
  7  2.45034e-06
  8  7.00895e-05
  9  0.000749811
  10  1.63992
  11  6.96098e-05
  12  37.9109
  13  5.85048
  14  2.43049e-05
  15  1.04842e-06
  16  0.838499
  17  0.00022629
  18  5.01417
  19  0.00179067
  20  38.0497
  21  0.000124164
  22  7.37349
  23  9.85209e-05
  24  6.81979
  25  28.9653
  26  0.203412
  27  0.14367
Done.

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

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  1.245e+01  3.791e+01  0.000e+00  1.000e+06 ( 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:  1.378e+00  1.437e-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:  5.516e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 121.628 45.060
Photon Flux Upper Limit: 9.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/63852/likelihoodResults_682560001_682819201_4FGL_J0806.5+4503_daily_bin1710.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) = 7895.76371078
delta logL = 0.0913665037924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7895.75328234
delta logL = 0.101794946821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6784       1.0000          .0000       .10000E+07
     2 'Index     '    3.3569       1.0000          .0000       10.000    
     3 'Normalizat'    .53691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3845       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7895.753     FROM MIGRAD    STATUS=FAILED       104 CALLS      265 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6400        119.71        .68004E-04   -.27918E-03
   2  Index         3.3613        3.8219        .12608E-01    .36778E-03
   3  Normalizat    .53726        .20006        .38791E-03   -.14947E-04
   4  Prefactor     1.3843        .15322        .19393E-03   -.57215E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7895.753     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      346 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6400        119.71        .55062E-04   -1.5649    
   2  Index         3.3613        3.8219        .21556E-02   -.33391    
   3  Normalizat    .53726        .20006        .34072E-03   -1.1072    
   4  Prefactor     1.3843        .15322        .20246E-03   -.80835    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7895.753     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      376 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6400        29.583        .27202E-05   -.31680E-03
   2  Index         3.3613        1.9838        .25216E-02   -.50045E-05
   3  Normalizat    .53726        .19999        .15516E-04   -.11870E-04
   4  Prefactor     1.3843        .15233        .77573E-05   -.43966E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.63997
  Index      = 3.36131
  Normalizat = 0.537256
  Prefactor  = 1.38425
 **********
 **   18 **HESSE 
 **********

 FCN=   7895.753     FROM HESSE     STATUS=OK            23 CALLS      399 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6400        27.733        .54403E-06   -1.5649    
   2  Index         3.3613        1.8661        .10086E-03   -.33391    
   3  Normalizat    .53726        .20017        .31033E-05   -1.1072    
   4  Prefactor     1.3843        .15241        .15515E-05   -.80835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09306e-12
Minuit parameter uncertainties:
  1  27.7333
  2  1.91837
  3  0.200436
  4  0.152463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/63852': 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) = 7895.75327692
delta logL = 0.101800364671

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  8.640e+00  2.773e+01  0.000e+00  1.000e+06 ( 1.000e-13)
283        Index:  3.361e+00  1.918e+00  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:  1.384e+00  1.525e-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:  5.373e-01  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 121.628 45.060

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/63852/cmap_HighResolution_682560001_682819201_4FGL_J0806.5+4503_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.48e-03', job_status='DONE', photon_flux_upper_limit='9.55e-08', time_completed='2022-09-16 13:55:33.922879', job_id='63852', GAL2='1.38', fit_tolerance='1e-08', EG2='0.54', EG='0.55', time_epoch_completed='1663361733.92', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='1.02e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1710' AND source_name='4FGL J0806.5+4503' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 13:55:33 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 63852: <4FGL_J0806.5+4503_daily_bin1710> in cluster <slac> Done

Job <4FGL_J0806.5+4503_daily_bin1710> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 13:40:22 2022
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 13:41:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 13:41:05 2022
Terminated at Fri Sep 16 13:55:34 2022
Results reported at Fri Sep 16 13:55:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0806.5+4503_daily_bin1710 121.628 45.0605 682560001 682819201 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 :                                   850.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            912 sec.

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

