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


Performing analysis on: 4FGL_J1508.4+7717_daily_bin1693
RA = 227.102, Dec = 77.2929
tmin = 678153601, tmax = 678412801
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='541287', job_status='RUN', time_executed='2022-07-02 02:35:08.331200', time_epoch_executed='1656754508.33' WHERE source_name='4FGL J1508.4+7717' and cadence='daily' and bin_id='1693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/541287

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/541287/ft1_4FGL_J1508.4+7717_daily_bin1693.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/541287/ft2_4FGL_J1508.4+7717_daily_bin1693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/541287/ft1_4FGL_J1508.4+7717_daily_bin1693.fits outfile=/scratch/kocevski/541287/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin1693.fits ra=227.102 dec=77.2929 rad=12.0 tmin=678153601.0 tmax=678412801.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 4.19
user 3.96
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/541287/ft2_4FGL_J1508.4+7717_daily_bin1693.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/541287/ft2_4FGL_J1508.4+7717_daily_bin1693.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/541287/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin1693.fits evtable="EVENTS" outfile="/scratch/kocevski/541287/ft1_filtered_4FGL_J1508.4+7717_daily_bin1693.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 890

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/541287/ft1_filtered_4FGL_J1508.4+7717_daily_bin1693.fits" evtable="EVENTS" scfile=/scratch/kocevski/541287/ft2_4FGL_J1508.4+7717_daily_bin1693.fits sctable="SC_DATA" outfile=/scratch/kocevski/541287/ltcube_678153601_678412801_4FGL_J1508.4+7717_daily_bin1693.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/541287/ft2_4FGL_J1508.4+7717_daily_bin1693.fits
.....................!
real 14.06
user 13.64
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/541287/ft1_filtered_4FGL_J1508.4+7717_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/541287/ft2_4FGL_J1508.4+7717_daily_bin1693.fits sctable="SC_DATA" expcube=/scratch/kocevski/541287/ltcube_678153601_678412801_4FGL_J1508.4+7717_daily_bin1693.fits outfile=/scratch/kocevski/541287/expmap_678153601_678412801_4FGL_J1508.4+7717_daily_bin1693.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/541287/ltcube_678153601_678412801_4FGL_J1508.4+7717_daily_bin1693.fits
.....................!
real 191.39
user 185.95
sys 4.48

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

Setting source of interest to:
4FGL J1508.4+7717 @ 227.102 77.2929

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/541287/ft1_filtered_4FGL_J1508.4+7717_daily_bin1693.fits scfile=/scratch/kocevski/541287/ft2_4FGL_J1508.4+7717_daily_bin1693.fits outfile=/scratch/kocevski/541287/cmap_678153601_678412801_4FGL_J1508.4+7717_daily_bin1693.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=227.102 yref=77.2929 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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/541287/ft1_filtered_4FGL_J1508.4+7717_daily_bin1693.fits scfile=/scratch/kocevski/541287/ft2_4FGL_J1508.4+7717_daily_bin1693.fits outfile=/scratch/kocevski/541287/cmap_HighResolution_678153601_678412801_4FGL_J1508.4+7717_daily_bin1693.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=227.102 yref=77.2929 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/541287/ft1_filtered_4FGL_J1508.4+7717_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/541287/ft2_4FGL_J1508.4+7717_daily_bin1693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/541287/Model_4FGL_J1508.4+7717_daily_bin1693.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/541287/ft1_filtered_4FGL_J1508.4+7717_daily_bin1693.fits.....................!
real 98.18
user 96.68
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/541287/ft1_filtered_4FGL_J1508.4+7717_daily_bin1693.fits', '/scratch/kocevski/541287/ft2_4FGL_J1508.4+7717_daily_bin1693.fits', expMap='/scratch/kocevski/541287/expmap_678153601_678412801_4FGL_J1508.4+7717_daily_bin1693.fits', expCube='/scratch/kocevski/541287/ltcube_678153601_678412801_4FGL_J1508.4+7717_daily_bin1693.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/541287/Model_4FGL_J1508.4+7717_daily_bin1693.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1508.4+7717'

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  4.602e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.179e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/541287/ft1_filtered_4FGL_J1508.4+7717_daily_bin1693.fits
Spacecraft file(s): /scratch/kocevski/541287/ft2_4FGL_J1508.4+7717_daily_bin1693.fits
Exposure map: /scratch/kocevski/541287/expmap_678153601_678412801_4FGL_J1508.4+7717_daily_bin1693.fits
Exposure cube: /scratch/kocevski/541287/ltcube_678153601_678412801_4FGL_J1508.4+7717_daily_bin1693.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/541287/Model_4FGL_J1508.4+7717_daily_bin1693.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) = 9357.08268772

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8012       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9569       1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.937       1.0000         .10000E-03   10000.    
     4 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.959       1.0000         .10000E-03   10000.    
    12 'Prefactor '    120.71       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.595       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8505       1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.075       1.0000         .10000E-03   10000.    
    17 'norm      '    46.705       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8495       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3800       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.4885       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.8452       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0847       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83464       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9357.082     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     3079 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7631        16.342        .61912E-05    .18942E-04
   2  Prefactor     1.9823        15.932       -.56392E-05   -.10104E-03
   3  Prefactor     42.897        61.289       -.32259E-06   -.14132E-04
   4  norm          .10000E-03    .64938        .13992E-06** at limit **
   5  Prefactor     .10000E-03    13.108       -.29365E-07** at limit **
   6  Prefactor     .10000E-03    3.3669        .12311E-06** at limit **
   7  Prefactor     .10000E-03    10.547        .76296E-07** at limit **
   8  Prefactor     .10000E-03    8.4210        .37168E-07** at limit **
   9  Prefactor     .10000E-03    2.5077       -.92999E-07** at limit **
  10  Prefactor     .10000E-03    5.9621       -.82720E-07** at limit **
  11  Prefactor     34.916        39.414       -.33276E-06   -.50469E-04
  12  Prefactor     120.68        35.796       -.36122E-06   -.49359E-04
  13  Prefactor     11.579        26.988       -.29909E-06   -.12244E-04
  14  Prefactor     .10000E-03    12.816       -.24116E-07** at limit **
  15  Prefactor     8.8410        11.196       -.86815E-07    .39944E-05
  16  Prefactor     37.090        30.830        .24798E-07    .31312E-04
  17  norm          46.712        21.781       -.81862E-07    .99177E-05
  18  Prefactor     .10000E-03    34.928        .12310E-06** at limit **
  19  Prefactor     4.8692        31.424       -.89465E-07    .11645E-04
  20  norm          1.3799        .91057        .64189E-07   -.27112E-03
  21  Prefactor     .10000E-03    1.6847        .26543E-06** at limit **
  22  Prefactor     9.5012        13.925       -.96070E-07   -.16130E-04
  23  Prefactor     .10000E-03    11.483        .77430E-07** at limit **
  24  norm          2.8451        .74419       -.72767E-08   -.36755E-04
  25  Normalizat    1.0848        .14936        .17793E-05   -.20207E-03
  26  Prefactor     .83457        .10490       -.12530E-05    .26433E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.7631
  Prefactor  = 1.98225
  Prefactor  = 42.897
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.9158
  Prefactor  = 120.683
  Prefactor  = 11.5789
  Prefactor  = 0.0001
  Prefactor  = 8.84104
  Prefactor  = 37.0898
  norm       = 46.7117
  Prefactor  = 0.0001
  Prefactor  = 4.86917
  norm       = 1.37991
  Prefactor  = 0.0001
  Prefactor  = 9.50118
  Prefactor  = 0.0001
  norm       = 2.84513
  Normalizat = 1.0848
  Prefactor  = 0.834567
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7631        17.122        .24307E-03   -1.5376    
   2  Prefactor     1.9823        16.521        .29658E-03   -1.5426    
   3  Prefactor     42.897        61.308        .61180E-04   -1.4397    
   4  norm          .10000E-03    .65275        .76197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3727        .17333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.4606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5152        .14956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     34.916        39.395        .33889E-03   -1.4525    
  12  Prefactor     120.68        35.851        .18314E-03   -1.3506    
  13  Prefactor     11.579        26.993        .11765E-03   -1.5027    
  14  Prefactor     .10000E-03    12.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.8410        11.200        .13473E-03   -1.5113    
  16  Prefactor     37.090        30.831        .65821E-04   -1.4489    
  17  norm          46.712        21.763        .58671E-04   -1.4340    
  18  Prefactor     .10000E-03    34.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8692        31.051        .18267E-03   -1.5267    
  20  norm          1.3799        .89717        .69935E-04   -1.5473    
  21  Prefactor     .10000E-03    1.7396        .24349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.5012        13.888        .13010E-03   -1.5091    
  23  Prefactor     .10000E-03    11.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.8451        .74413        .40795E-04   -1.5371    
  25  Normalizat    1.0848        .16226        .25668E-03   -.90241    
  26  Prefactor     .83457        .11406        .21170E-03   -.98466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09407e-10
Minuit parameter uncertainties:
  1  13.7619
  2  11.4494
  3  61.3983
  4  1.26918e-06
  5  1.17737e-05
  6  1.40953e-06
  7  7.97934e-06
  8  1.93194e-05
  9  2.26817e-08
  10  1.88614e-06
  11  39.4243
  12  35.8571
  13  27.0217
  14  1.08738e-05
  15  11.2027
  16  30.8442
  17  21.7665
  18  2.76604e-05
  19  24.6104
  20  0.89718
  21  1.04843e-05
  22  13.8924
  23  6.44757e-07
  24  0.744128
  25  0.162331
  26  0.114097
Done.

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

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  1.158e+01  2.702e+01  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.179e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  8.346e-01  1.141e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  1.085e+00  1.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 227.102 77.293
Photon Flux Upper Limit: 5.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/541287/likelihoodResults_678153601_678412801_4FGL_J1508.4+7717_daily_bin1693.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) = 9357.08152951
delta logL = 0.000276010314337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9357.08130531
delta logL = 0.000500211688632

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9357.081     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      227 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.788        826.16        .30364E-02    .21776E-03
   2  Index         2.2379        6.1122        .24631        .12676E-03
   3  Normalizat    1.0843        .34494E-01    .58054E-01    .92205E-03
   4  Prefactor     .83477        .23303E-01    .44167E-01    .11392E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7879
  Index      = 2.23793
  Normalizat = 1.08431
  Prefactor  = 0.834771
 **********
 **   18 **HESSE 
 **********

 FCN=   9357.081     FROM HESSE     STATUS=OK            29 CALLS      256 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.788        44.263        .12146E-03   -1.5051    
   2  Index         2.2379        2.1570        .12924E-01   -.58526    
   3  Normalizat    1.0843        .15494        .25673E-03   -.90257    
   4  Prefactor     .83477        .11337        .21168E-03   -.98459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18173e-09
Minuit parameter uncertainties:
  1  43.7595
  2  2.26714
  3  0.155002
  4  0.1134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/541287': 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) = 9357.08127869
delta logL = 0.000526837096913

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  1.079e+01  4.376e+01  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.238e+00  2.267e+00  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  8.348e-01  1.134e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  1.084e+00  1.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
Ra Dec: 227.102 77.293

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/541287/cmap_HighResolution_678153601_678412801_4FGL_J1508.4+7717_daily_bin1693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-03', job_status='DONE', photon_flux_upper_limit='5.04e-08', time_completed='2022-07-02 02:54:34.596340', job_id='541287', GAL2='0.83', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1656755674.6', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='5.27e-04', ts2='0.23', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1693' AND source_name='4FGL J1508.4+7717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul  2 02:54:34 PDT 2022

2


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 541252: <4FGL_J1508.4+7717_daily_bin1693> in cluster <slac> Done

Job <4FGL_J1508.4+7717_daily_bin1693> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jul  2 00:06:41 2022
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 02:33:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 02:33:45 2022
Terminated at Sat Jul  2 02:54:15 2022
Results reported at Sat Jul  2 02:54:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1508.4+7717_daily_bin1693 227.102 77.2929 678153601 678412801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1508.4+7717 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1150.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1230 sec.
    Turnaround time :                            10054 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 541287: <4FGL_J1508.4+7717_daily_bin1693> in cluster <slac> Done

Job <4FGL_J1508.4+7717_daily_bin1693> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul  2 00:06:42 2022
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 02:34:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 02:34:07 2022
Terminated at Sat Jul  2 02:54:35 2022
Results reported at Sat Jul  2 02:54:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1508.4+7717_daily_bin1693 227.102 77.2929 678153601 678412801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1508.4+7717 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1167.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1227 sec.
    Turnaround time :                            10073 sec.

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

