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


Performing analysis on: 4FGL_J0806.5+4503_weekly_bin753
RA = 121.628, Dec = 45.0605
tmin = 694396801, 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='228268', job_status='RUN', time_executed='2023-01-10 02:48:52.832379', time_epoch_executed='1673347732.83' WHERE source_name='4FGL J0806.5+4503' and cadence='weekly' and bin_id='753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228268

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=694396801.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>=694396801.0 && nMetStart<695001601.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228268/ft1_4FGL_J0806.5+4503_weekly_bin753.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228268/ft2_4FGL_J0806.5+4503_weekly_bin753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228268/ft1_4FGL_J0806.5+4503_weekly_bin753.fits outfile=/scratch/kocevski/228268/ft1_filteredMKT_4FGL_J0806.5+4503_weekly_bin753.fits ra=121.628 dec=45.0605 rad=12.0 tmin=694396801.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 6.19
user 5.91
sys 0.23

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

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

Number of photons that the gtmktime cut: 59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228268/ft1_filtered_4FGL_J0806.5+4503_weekly_bin753.fits" evtable="EVENTS" scfile=/scratch/kocevski/228268/ft2_4FGL_J0806.5+4503_weekly_bin753.fits sctable="SC_DATA" outfile=/scratch/kocevski/228268/ltcube_694396801_695001601_4FGL_J0806.5+4503_weekly_bin753.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/228268/ft2_4FGL_J0806.5+4503_weekly_bin753.fits
.....................!
real 35.03
user 34.23
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228268/ft1_filtered_4FGL_J0806.5+4503_weekly_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/228268/ft2_4FGL_J0806.5+4503_weekly_bin753.fits sctable="SC_DATA" expcube=/scratch/kocevski/228268/ltcube_694396801_695001601_4FGL_J0806.5+4503_weekly_bin753.fits outfile=/scratch/kocevski/228268/expmap_694396801_695001601_4FGL_J0806.5+4503_weekly_bin753.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/228268/ltcube_694396801_695001601_4FGL_J0806.5+4503_weekly_bin753.fits
.....................!
real 194.77
user 187.85
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/228268/ft1_filtered_4FGL_J0806.5+4503_weekly_bin753.fits scfile=/scratch/kocevski/228268/ft2_4FGL_J0806.5+4503_weekly_bin753.fits outfile=/scratch/kocevski/228268/cmap_694396801_695001601_4FGL_J0806.5+4503_weekly_bin753.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.61
user 0.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228268/ft1_filtered_4FGL_J0806.5+4503_weekly_bin753.fits scfile=/scratch/kocevski/228268/ft2_4FGL_J0806.5+4503_weekly_bin753.fits outfile=/scratch/kocevski/228268/cmap_HighResolution_694396801_695001601_4FGL_J0806.5+4503_weekly_bin753.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.60
user 0.43
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12427E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .19623E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .36478E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .36880E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .20027E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .23734E-04   1.0000          .0000       .10000E+07
     7 'norm      '    2.2897       1.0000          .0000       .10000E+07
     8 'Prefactor '    .22905       1.0000          .0000       .10000E+07
     9 'Prefactor '    .20186E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .13791E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .11620       1.0000          .0000       .10000E+07
    12 'Prefactor '    3584.2       1.0000          .0000       .10000E+07
    13 'Prefactor '    .52188E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .16624E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .84236E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .39097E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .28125       1.0000          .0000       .10000E+07
    18 'Prefactor '    20.711       1.0000          .0000       .10000E+07
    19 'Prefactor '    .22107       1.0000          .0000       .10000E+07
    20 'Prefactor '    .88957       1.0000          .0000       .10000E+07
    21 'Prefactor '    2.0972       1.0000          .0000       .10000E+07
    22 'Prefactor '    10.496       1.0000          .0000       .10000E+07
    23 'norm      '    .30156E-02   1.0000          .0000       .10000E+07
    24 'norm      '    .61483E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    60.918       1.0000          .0000       .10000E+07
    26 'Normalizat'    .44641       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83745       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=   714.9515     FROM MIGRAD    STATUS=CONVERGED    204 CALLS     3121 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22204E-09    8.2525        .69201E-07** at limit **
   2  Prefactor     .55511E-10    21.456        .40965E-07** at limit **
   3  Prefactor     .79880E-05    118.90        .25860E-07** at limit **
   4  norm          .28311E-08    35.060        .38039E-07** at limit **
   5  Prefactor     .21859E-04    65.862       -.20800E-06** at limit **
   6  Prefactor     .20567E-05    95.987       -.21690E-06** at limit **
   7  norm          2.2840        4.1849        .89629E-07    .58190E-02
   8  Prefactor     .16946E-04    96.987       -.84800E-07** at limit **
   9  Prefactor     .21396E-03    421.79        .10814E-05** at limit **
  10  norm          .33473E-07    18.133       -.21651E-06** at limit **
  11  Prefactor     .31930E-03    92.080        .27585E-06** at limit **
  12  Prefactor     3584.0        9.4259        .34488E-08    .52671    
  13  Prefactor     .27615E-04    9.7147       -.72447E-07** at limit **
  14  norm          .55511E-10    27.643       -.28284E-07** at limit **
  15  norm          .16653E-09    11.694       -.10966E-06** at limit **
  16  norm           .0000        3.2778        .14323E-07** at limit **
  17  Prefactor     .17382E-05    127.95        .81229E-06** at limit **
  18  Prefactor     20.625        9.9935       -.50786E-07    .66554E-01
  19  Prefactor     .27756E-09    7.5246       -.13770E-06** at limit **
  20  Prefactor     .58675        55.828        .34014E-06    .59269E-01
  21  Prefactor     .36360E-07    181.73        .90586E-07** at limit **
  22  Prefactor     10.446        16.611       -.65021E-07   -.16836E-01
  23  norm          .68667E-07    15.741       -.29633E-06** at limit **
  24  norm          .46074E-08    11.920       -.22702E-06** at limit **
  25  Prefactor     61.384        6.4247       -.37735E-09    .24665E-01
  26  Normalizat    .44758        .52565       -.30611E-05   -.41002E-04
  27  Prefactor     .83912        .42258        .53191E-06   -.20349E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22045e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 7.988e-06
  norm       = 2.83107e-09
  Prefactor  = 2.18592e-05
  Prefactor  = 2.05669e-06
  norm       = 2.28403
  Prefactor  = 1.69457e-05
  Prefactor  = 0.000213963
  norm       = 3.34732e-08
  Prefactor  = 0.000319299
  Prefactor  = 3584.02
  Prefactor  = 2.76154e-05
  norm       = 5.55112e-11
  norm       = 1.66533e-10
  norm       = 0
  Prefactor  = 1.73822e-06
  Prefactor  = 20.6246
  Prefactor  = 2.77556e-10
  Prefactor  = 0.586752
  Prefactor  = 3.63598e-08
  Prefactor  = 10.4459
  norm       = 6.86673e-08
  norm       = 4.60743e-09
  Prefactor  = 61.384
  Normalizat = 0.447579
  Prefactor  = 0.839121
 **********
 **   18 **HESSE 
 **********

 FCN=   714.9515     FROM HESSE     STATUS=OK           530 CALLS     3651 TOTAL
                     EDM=   .11E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22204E-09    8.2411        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    21.238        .17062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .79880E-05    131.82        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .28311E-08    35.095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .21859E-04    156.77        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .20567E-05    168.13        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2840        4.2122        .67810E-03   -1.5678    
   8  Prefactor     .16946E-04    111.32        .11280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .21396E-03    427.60        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .33473E-07    18.698        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .31930E-03    1026.5        .13513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3584.0        3786.1        .16733E-04   -1.4510    
  13  Prefactor     .27615E-04    822.13        .15454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    27.532        .17270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .16653E-09    11.681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        3.2772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .17382E-05    130.09        .10478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.625        25.931        .21980E-03   -1.5617    
  19  Prefactor     .27756E-09    57.024        .62299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .58675        5228.8        .46484E-03   -1.5693    
  21  Prefactor     .36360E-07    183.24        .71241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.446        17.122        .30901E-03   -1.5643    
  23  norm          .68667E-07    15.801        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .46074E-08    11.921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     61.384        74.885        .12813E-03   -1.5551    
  26  Normalizat    .44758        .62536        .81450E-01   -1.1491    
  27  Prefactor     .83912        .41138        .44203E-01   -.98302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00110986
Minuit parameter uncertainties:
  1  8.84604e-05
  2  8.20693e-05
  3  0.0649004
  4  0.000628019
  5  0.117081
  6  0.0371921
  7  4.21219
  8  0.0868675
  9  0.604989
  10  0.00158286
  11  1.14522
  12  3788.67
  13  0.301395
  14  6.16589e-05
  15  9.08385e-05
  16  1.15351e-05
  17  0.0300758
  18  25.9313
  19  0.000252521
  20  110.876
  21  0.00516239
  22  17.1222
  23  0.00208333
  24  0.000469154
  25  74.8862
  26  0.635542
  27  0.412902
Done.

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

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  3.584e+03  3.789e+03  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:  8.391e-01  4.129e-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:  4.476e-01  6.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.53
Ra Dec: 121.628 45.060
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.44e-06 +/- 3.64e-06
Energy Flux (Fixed Index): 8.98e-04 +/- 9.49e-04

TS (Fixed Index): 1.53
Ra Dec: 121.628 45.060
Photon Flux Upper Limit: 1.02e-05 ph cm-2 s-1
Energy Flux Upper Limit: 7.98e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228268/likelihoodResults_694396801_695001601_4FGL_J0806.5+4503_weekly_bin753.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) = 709.929469258
delta logL = 5.02206878798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 709.857038621
delta logL = 5.09449942483

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    271.05       1.0000          .0000       .10000E+07
     2 'Index     '    5.3930       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98706       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=   709.8570     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      298 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     271.54        558.40        .12150E-04   -.33978E-02
   2  Index         5.3919        1.2310        .12425E-03   -.45272E-03
   3  Normalizat    .10000E-01    .41852        .82100E-02** at limit **
   4  Prefactor     .98687        .22380        .18674E-03   -.20006E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 271.537
  Index      = 5.39191
  Normalizat = 0.01
  Prefactor  = 0.98687
 **********
 **   18 **HESSE 
 **********

 FCN=   709.8570     FROM HESSE     STATUS=OK            23 CALLS      321 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     271.54        544.43        .24299E-05   -1.5378    
   2  Index         5.3919        1.2008        .24851E-04    .78462E-01
   3  Normalizat    .10000E-01    .41859        .16420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .98687        .22355        .37349E-04   -.93168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87655e-10
Minuit parameter uncertainties:
  1  544.525
  2  1.21275
  3  3.54607e-06
  4  0.223763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228268': 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) = 709.857036371
delta logL = 5.09450167508

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  2.715e+02  5.445e+02  0.000e+00  1.000e+06 ( 1.000e-13)
283        Index:  5.392e+00  1.213e+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:  9.869e-01  2.238e-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  3.546e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.74
Ra Dec: 121.628 45.060
Photon Index (Free Index): 5.39 +/- 1.21
Photon Flux (Free Index): 2.09e-05 +/- 8.65e-06
Energy Flux (Free Index): 2.70e-03 +/- 1.09e-03

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/228268/cmap_HighResolution_694396801_695001601_4FGL_J0806.5+4503_weekly_bin753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-01', comment='SUCCESS', photon_flux='3.44e-06', energy_flux2='2.70e-03', photon_flux_error='3.64e-06', dlogl='5.09e+00', energy_flux='8.98e-04', photon_flux2='2.09e-05', job_status='DONE', time_completed='2023-01-10 02:56:07.161037', photon_index_error2='1.21', photon_index2='5.39', ts='1.53', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.02e-05', energy_flux_error2='1.09e-03', EG='0.45', time_epoch_completed='1673348167.16', return_code='0', job_id='228268', GAL2='0.99', EG2='0.01', return_code2='0', energy_flux_error='9.49e-04', photon_flux_error2='8.65e-06', ts2='13.74', photon_index='2.61' WHERE bin_id='753' AND source_name='4FGL J0806.5+4503' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 10 02:56:07 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 228268: <4FGL_J0806.5+4503_weekly_bin753> in cluster <slac> Done

Job <4FGL_J0806.5+4503_weekly_bin753> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jan 10 02:40:32 2023
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 02:45:25 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 02:45:25 2023
Terminated at Tue Jan 10 02:56:08 2023
Results reported at Tue Jan 10 02:56:08 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0806.5+4503_weekly_bin753 121.628 45.0605 694396801 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 :                                   431.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             192.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            936 sec.

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

