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


Performing analysis on: 4FGL_J0806.5+4503_daily_bin1757
RA = 121.628, Dec = 45.0605
tmin = 694742401, tmax = 695001601
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='190366', job_status='RUN', time_executed='2023-01-10 00:32:41.166313', time_epoch_executed='1673339561.17' WHERE source_name='4FGL J0806.5+4503' and cadence='daily' and bin_id='1757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190366/ft1_4FGL_J0806.5+4503_daily_bin1757.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190366/ft2_4FGL_J0806.5+4503_daily_bin1757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190366/ft1_4FGL_J0806.5+4503_daily_bin1757.fits outfile=/scratch/kocevski/190366/ft1_filteredMKT_4FGL_J0806.5+4503_daily_bin1757.fits ra=121.628 dec=45.0605 rad=12.0 tmin=694742401.0 tmax=695001601.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 2.96
user 2.73
sys 0.21

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

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

Number of photons that the gtmktime cut: 34

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190366/ft1_filtered_4FGL_J0806.5+4503_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/190366/ft2_4FGL_J0806.5+4503_daily_bin1757.fits sctable="SC_DATA" expcube=/scratch/kocevski/190366/ltcube_694742401_695001601_4FGL_J0806.5+4503_daily_bin1757.fits outfile=/scratch/kocevski/190366/expmap_694742401_695001601_4FGL_J0806.5+4503_daily_bin1757.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/190366/ltcube_694742401_695001601_4FGL_J0806.5+4503_daily_bin1757.fits
.....................!
real 192.94
user 186.69
sys 5.69

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/190366/ft1_filtered_4FGL_J0806.5+4503_daily_bin1757.fits scfile=/scratch/kocevski/190366/ft2_4FGL_J0806.5+4503_daily_bin1757.fits outfile=/scratch/kocevski/190366/cmap_694742401_695001601_4FGL_J0806.5+4503_daily_bin1757.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/190366/ft1_filtered_4FGL_J0806.5+4503_daily_bin1757.fits scfile=/scratch/kocevski/190366/ft2_4FGL_J0806.5+4503_daily_bin1757.fits outfile=/scratch/kocevski/190366/cmap_HighResolution_694742401_695001601_4FGL_J0806.5+4503_daily_bin1757.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.57
user 0.42
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/190366/ft1_filtered_4FGL_J0806.5+4503_daily_bin1757.fits', '/scratch/kocevski/190366/ft2_4FGL_J0806.5+4503_daily_bin1757.fits', expMap='/scratch/kocevski/190366/expmap_694742401_695001601_4FGL_J0806.5+4503_daily_bin1757.fits', expCube='/scratch/kocevski/190366/ltcube_694742401_695001601_4FGL_J0806.5+4503_daily_bin1757.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/190366/Model_4FGL_J0806.5+4503_daily_bin1757.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/190366/ft1_filtered_4FGL_J0806.5+4503_daily_bin1757.fits
Spacecraft file(s): /scratch/kocevski/190366/ft2_4FGL_J0806.5+4503_daily_bin1757.fits
Exposure map: /scratch/kocevski/190366/expmap_694742401_695001601_4FGL_J0806.5+4503_daily_bin1757.fits
Exposure cube: /scratch/kocevski/190366/ltcube_694742401_695001601_4FGL_J0806.5+4503_daily_bin1757.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/190366/Model_4FGL_J0806.5+4503_daily_bin1757.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 409.002254939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 408.21203869

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79814E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.4023       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.2116       1.0000          .0000       .10000E+07
     4 'norm      '    3.4127       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.7742       1.0000          .0000       .10000E+07
     6 'Prefactor '    12.901       1.0000          .0000       .10000E+07
     7 'norm      '    1203.1       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.4034       1.0000          .0000       .10000E+07
     9 'Prefactor '    10.109       1.0000          .0000       .10000E+07
    10 'norm      '    4.6506       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.1734       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.9777       1.0000          .0000       .10000E+07
    13 'Prefactor '    .49070E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .16091       1.0000          .0000       .10000E+07
    15 'norm      '    .11257E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .49618E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.4817       1.0000          .0000       .10000E+07
    18 'Prefactor '    .50490E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .20680E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    25.119       1.0000          .0000       .10000E+07
    21 'Prefactor '    41.624       1.0000          .0000       .10000E+07
    22 'Prefactor '    5.1763       1.0000          .0000       .10000E+07
    23 'norm      '    .35372E-06   1.0000          .0000       .10000E+07
    24 'norm      '    .11424E-06   1.0000          .0000       .10000E+07
    25 'Prefactor '    19.006       1.0000          .0000       .10000E+07
    26 'Normalizat'    .29576       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98437       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=   362.2230     FROM MIGRAD    STATUS=CONVERGED   1438 CALLS     3637 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        150.11        .32761E-07** at limit **
   2  Prefactor     .10159E-07    15971.       -.26965E-05** at limit **
   3  Prefactor     .63283E-08    1342.9       -.11491E-05** at limit **
   4  norm          .10000E+07    78992.       -.14343E-04** at limit **
   5  Prefactor     .10000E+07    .73834E+06    .12450E-03** at limit **
   6  Prefactor     .10000E+07    38711.        .45771E-05** at limit **
   7  norm          .44964E-08    154.05        .82726E-07** at limit **
   8  Prefactor     .55511E-10    3082.2       -.49490E-05** at limit **
   9  Prefactor     39409.        96740.       -.19523E-04    .21271E-04
  10  norm          15.732        3972.0        .17447E-05   -.56281E-04
  11  Prefactor     .72214E-06    2671.0       -.85724E-05** at limit **
  12  Prefactor     .77993E-07    1057.9       -.11648E-05** at limit **
  13  Prefactor     .17208E-08    143.94        .30099E-06** at limit **
  14  norm          25.270        45.184       -.85683E-07   -.10432E-02
  15  norm          .22204E-09    13.487        .21154E-06** at limit **
  16  norm           .0000        2.9011        .97841E-07** at limit **
  17  Prefactor     .44409E-08    69.597        .64725E-06** at limit **
  18  Prefactor     .83267E-09    27.216        .36533E-06** at limit **
  19  Prefactor     .38858E-09    11.692        .29220E-06** at limit **
  20  Prefactor     .95313E-07    259.73        .14468E-05** at limit **
  21  Prefactor     .40579E-07    45.054       -.19595E-05** at limit **
  22  Prefactor      .0000        8.6665       -.63661E-08** at limit **
  23  norm          .55511E-10    8.9624       -.10020E-06** at limit **
  24  norm           .0000        5.9157        .85152E-07** at limit **
  25  Prefactor     .55511E-09    22.005       -.16022E-06** at limit **
  26  Normalizat    .10000E-01    .19596       -.80617E-05** at limit **
  27  Prefactor     .34781        .33184       -.54767E-06   -.10502E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 1.01585e-08
  Prefactor  = 6.32827e-09
  norm       = 1e+06
  Prefactor  = 1e+06
  Prefactor  = 1e+06
  norm       = 4.4964e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 39408.8
  norm       = 15.7315
  Prefactor  = 7.22145e-07
  Prefactor  = 7.79932e-08
  Prefactor  = 1.72085e-09
  norm       = 25.2699
  norm       = 2.22045e-10
  norm       = 0
  Prefactor  = 4.44089e-09
  Prefactor  = 8.32667e-10
  Prefactor  = 3.88578e-10
  Prefactor  = 9.53126e-08
  Prefactor  = 4.05787e-08
  Prefactor  = 0
  norm       = 5.55112e-11
  norm       = 0
  Prefactor  = 5.55112e-10
  Normalizat = 0.01
  Prefactor  = 0.347814
 **********
 **   18 **HESSE 
 **********

 FCN=   362.2230     FROM HESSE     STATUS=OK           526 CALLS     4163 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        149.91        .14507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10159E-07    13942.        .66034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .63283E-08    1341.7        .69137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E+07    81063.        .54736E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E+07    .70627E+06    .78571E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E+07    38778.        .27863E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .44964E-08    154.08        .28847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    3070.6        .43207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39409.        93931.        .31490E-03   -1.1711    
  10  norm          15.732        3738.1        .46645E-03   -1.5787    
  11  Prefactor     .72214E-06    3709.1        .40381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .77993E-07    1257.7        .45052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .17208E-08    158.61        .15578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          25.270        44.341        .12517E-02   -1.5607    
  15  norm          .22204E-09    13.980        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        2.9737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .44409E-08    71.951        .88129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .83267E-09    25.566        .15521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .38858E-09    12.350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .95313E-07    305.76        .19957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .40579E-07    47.418        .15501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        8.5948        .44162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .55511E-10    7.8043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        5.8721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .55511E-09    21.969        .22946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .22137        .12612       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .34781        .33488        .46071E-01   -1.9460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54027e-09
Minuit parameter uncertainties:
  1  9.31621e-05
  2  0.0238411
  3  0.00582008
  4  0.285803
  5  18.4626
  6  0.196941
  7  0.0016686
  8  0.000672746
  9  98025.5
  10  485.305
  11  0.103574
  12  0.0198145
  13  0.00105237
  14  44.3411
  15  0.000111312
  16  1.73437e-05
  17  0.00112827
  18  0.000294585
  19  0.000142576
  20  0.0107971
  21  0.00277524
  22  2.13602e-06
  23  4.17615e-05
  24  5.83308e-06
  25  0.000221796
  26  2.4256e-06
  27  0.336768
Done.

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

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  7.799e-08  1.981e-02  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:  3.478e-01  3.368e-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.000e-02  2.426e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.628 45.060
Photon Flux Upper Limit: 4.10e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.21e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/190366/likelihoodResults_694742401_695001601_4FGL_J0806.5+4503_daily_bin1757.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) = 362.223344808
delta logL = -0.000379496715141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 362.222965334
delta logL = -2.35314132624e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12727E-04   1.0000          .0000       .10000E+07
     2 'Index     '    2.4855       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34785       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=   362.1266     FROM MIGRAD    STATUS=CONVERGED    190 CALLS      380 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4998        1772.5        .10113E-04    .42626E-03
   2  Index         6.0614        6.9516        .51430E-02    .50972E-05
   3  Normalizat    .10000E-01    .18249        .49589E-03** at limit **
   4  Prefactor     .31374        .27392        .28813E-03    .17118E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.4998
  Index      = 6.06136
  Normalizat = 0.01
  Prefactor  = 0.313738
 **********
 **   18 **HESSE 
 **********

 FCN=   362.1266     FROM HESSE     STATUS=OK            25 CALLS      405 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4998        102.46        .40452E-06   -1.5666    
   2  Index         6.0614        7.5518        .20572E-03    .21390    
   3  Normalizat    .10000E-01    .18446        .99178E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .31374        .27391        .57627E-04   -1.2147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.67784e-10
Minuit parameter uncertainties:
  1  42.9443
  2  5.6455
  3  5.83045e-06
  4  0.275054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190366': 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) = 362.126621371
delta logL = 0.096343939754

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  4.500e+00  4.294e+01  0.000e+00  1.000e+06 ( 1.000e-13)
283        Index:  6.061e+00  5.645e+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:  3.137e-01  2.751e-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.000e-02  5.830e-06  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/190366/cmap_HighResolution_694742401_695001601_4FGL_J0806.5+4503_daily_bin1757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-01', job_status='DONE', photon_flux_upper_limit='4.10e-06', time_completed='2023-01-10 00:38:55.345492', job_id='190366', GAL2='0.31', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1673339935.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.35', dlogl='9.63e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1757' AND source_name='4FGL J0806.5+4503' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 10 00:38:55 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 190366: <4FGL_J0806.5+4503_daily_bin1757> in cluster <slac> Done

Job <4FGL_J0806.5+4503_daily_bin1757> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Jan 10 00:30:18 2023
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 00:31:31 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 00:31:31 2023
Terminated at Tue Jan 10 00:38:56 2023
Results reported at Tue Jan 10 00:38:56 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0806.5+4503_daily_bin1757 121.628 45.0605 694742401 695001601 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 :                                   375.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   444 sec.
    Turnaround time :                            518 sec.

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

