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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin1709
RA = 229.222, Dec = 36.8505
tmin = 682300801, tmax = 682560001
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='159715', job_status='RUN', time_executed='2022-09-16 19:04:18.892995', time_epoch_executed='1663380258.89' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/159715

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/159715/ft1_4FGL_J1516.8+3651_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/159715/ft2_4FGL_J1516.8+3651_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/159715/ft1_4FGL_J1516.8+3651_daily_bin1709.fits outfile=/scratch/kocevski/159715/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1709.fits ra=229.222 dec=36.8505 rad=12.0 tmin=682300801.0 tmax=682560001.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.75
user 3.49
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/159715/ft2_4FGL_J1516.8+3651_daily_bin1709.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/159715/ft2_4FGL_J1516.8+3651_daily_bin1709.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/159715/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/159715/ft1_filtered_4FGL_J1516.8+3651_daily_bin1709.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.33
sys 0.18

Number of photons that the gtmktime cut: 509

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/159715/ft1_filtered_4FGL_J1516.8+3651_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/159715/ft2_4FGL_J1516.8+3651_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/159715/ltcube_682300801_682560001_4FGL_J1516.8+3651_daily_bin1709.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/159715/ft2_4FGL_J1516.8+3651_daily_bin1709.fits
.....................!
real 14.87
user 14.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/159715/ft1_filtered_4FGL_J1516.8+3651_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/159715/ft2_4FGL_J1516.8+3651_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/159715/ltcube_682300801_682560001_4FGL_J1516.8+3651_daily_bin1709.fits outfile=/scratch/kocevski/159715/expmap_682300801_682560001_4FGL_J1516.8+3651_daily_bin1709.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/159715/ltcube_682300801_682560001_4FGL_J1516.8+3651_daily_bin1709.fits
.....................!
real 192.37
user 185.94
sys 6.07

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

Setting source of interest to:
4FGL J1516.8+3651 @ 229.222 36.8505

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/159715/ft1_filtered_4FGL_J1516.8+3651_daily_bin1709.fits scfile=/scratch/kocevski/159715/ft2_4FGL_J1516.8+3651_daily_bin1709.fits outfile=/scratch/kocevski/159715/cmap_682300801_682560001_4FGL_J1516.8+3651_daily_bin1709.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=229.222 yref=36.8505 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/159715/ft1_filtered_4FGL_J1516.8+3651_daily_bin1709.fits scfile=/scratch/kocevski/159715/ft2_4FGL_J1516.8+3651_daily_bin1709.fits outfile=/scratch/kocevski/159715/cmap_HighResolution_682300801_682560001_4FGL_J1516.8+3651_daily_bin1709.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=229.222 yref=36.8505 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/159715/ft1_filtered_4FGL_J1516.8+3651_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/159715/ft2_4FGL_J1516.8+3651_daily_bin1709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/159715/Model_4FGL_J1516.8+3651_daily_bin1709.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/159715/ft1_filtered_4FGL_J1516.8+3651_daily_bin1709.fits.....................!
real 45.97
user 44.68
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/159715/ft1_filtered_4FGL_J1516.8+3651_daily_bin1709.fits', '/scratch/kocevski/159715/ft2_4FGL_J1516.8+3651_daily_bin1709.fits', expMap='/scratch/kocevski/159715/expmap_682300801_682560001_4FGL_J1516.8+3651_daily_bin1709.fits', expCube='/scratch/kocevski/159715/ltcube_682300801_682560001_4FGL_J1516.8+3651_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/159715/Model_4FGL_J1516.8+3651_daily_bin1709.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.8+3651'

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  6.183e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  2.190e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/159715/ft1_filtered_4FGL_J1516.8+3651_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/159715/ft2_4FGL_J1516.8+3651_daily_bin1709.fits
Exposure map: /scratch/kocevski/159715/expmap_682300801_682560001_4FGL_J1516.8+3651_daily_bin1709.fits
Exposure cube: /scratch/kocevski/159715/ltcube_682300801_682560001_4FGL_J1516.8+3651_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/159715/Model_4FGL_J1516.8+3651_daily_bin1709.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) = 5819.88290506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4889       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21020E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15851E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .38695E-05   1.0000          .0000       .10000E+07
     5 'norm      '    12.342       1.0000          .0000       .10000E+07
     6 'Prefactor '    192.64       1.0000          .0000       .10000E+07
     7 'norm      '    .41149E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    10.129       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.1202       1.0000          .0000       .10000E+07
    10 'Prefactor '    4.5254       1.0000          .0000       .10000E+07
    11 'norm      '    2.8937       1.0000          .0000       .10000E+07
    12 'norm      '    .59945       1.0000          .0000       .10000E+07
    13 'Prefactor '    .25532E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .77805E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .12743E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .74918E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .16159E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .24791E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    38.981       1.0000          .0000       .10000E+07
    20 'norm      '    .17636E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .15293E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .22477E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .17011       1.0000          .0000       .10000E+07
    24 'Normalizat'    .92935       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92551       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5819.781     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     2183 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4982        6.1573       -.33730E-08   -.14556E-03
   2  Prefactor     .14213E-05    43.543        .10074E-06** at limit **
   3  Prefactor     .14100E-07    13.083        .91054E-07** at limit **
   4  norm          .26645E-08    7.6248        .38488E-06** at limit **
   5  norm          12.375        2.6301       -.87197E-07    .56639E-02
   6  Prefactor     195.09        60.678       -.15071E-06   -.20929E-01
   7  norm          .62172E-08    4.1398        .93455E-07** at limit **
   8  Prefactor     10.033        2.5815        .11742E-07    .44973E-02
   9  Prefactor     7.1075        6.7758       -.50739E-07   -.45282E-03
  10  Prefactor     4.5326        6.0184       -.14639E-06   -.36212E-03
  11  norm          2.8960        1.7995        .47587E-07    .14180E-02
  12  norm          .61644        2.4137       -.13250E-06   -.39861E-03
  13  Prefactor      .0000        3.2282       -.50512E-07** at limit **
  14  Prefactor     .26257E-07    15.976        .18337E-06** at limit **
  15  Prefactor     .99754E-07    3.4354       -.23206E-06** at limit **
  16  Prefactor     .17708E-07    4.8147       -.75328E-07** at limit **
  17  norm           .0000        .54568       -.70509E-07** at limit **
  18  Prefactor     .18874E-08    3.9234       -.10515E-06** at limit **
  19  Prefactor     38.153        6.7260        .10986E-07   -.21961    
  20  norm          .94369E-08    4.7855       -.21824E-06** at limit **
  21  Prefactor      .0000        1.3524        .79559E-07** at limit **
  22  Prefactor     .79547E-07    4.7247        .19525E-06** at limit **
  23  Prefactor     .17402        29.007        .14070E-05** at limit **
  24  Normalizat    .92770        .21224        .64369E-07    .27968E-05
  25  Prefactor     .92636        .19811        .18228E-06    .85564E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.49815
  Prefactor  = 1.42125e-06
  Prefactor  = 1.40998e-08
  norm       = 2.66454e-09
  norm       = 12.3755
  Prefactor  = 195.094
  norm       = 6.21725e-09
  Prefactor  = 10.0329
  Prefactor  = 7.10748
  Prefactor  = 4.53264
  norm       = 2.89597
  norm       = 0.616437
  Prefactor  = 0
  Prefactor  = 2.62568e-08
  Prefactor  = 9.97535e-08
  Prefactor  = 1.77081e-08
  norm       = 0
  Prefactor  = 1.88738e-09
  Prefactor  = 38.153
  norm       = 9.4369e-09
  Prefactor  = 0
  Prefactor  = 7.95475e-08
  Prefactor  = 0.174016
  Normalizat = 0.927704
  Prefactor  = 0.926358
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.781     FROM HESSE     STATUS=OK           475 CALLS     2658 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4982        6.2086        .39375E-03   -1.5657    
   2  Prefactor     .14213E-05    44.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .14100E-07    13.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .26645E-08    7.9084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.375        10.372        .28488E-03   -1.5638    
   6  Prefactor     195.09        60.799        .72056E-04   -1.5429    
   7  norm          .62172E-08    4.1593        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.033        18.424        .31460E-03   -1.5645    
   9  Prefactor     7.1075        6.9006        .37569E-03   -1.5655    
  10  Prefactor     4.5326        6.0311        .47301E-03   -1.5665    
  11  norm          2.8960        1.8117        .59713E-03   -1.5674    
  12  norm          .61644        2.4285        .69277E-03   -1.5692    
  13  Prefactor      .0000        3.2318        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .26257E-07    16.051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .99754E-07    6.3183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .17708E-07    5.0095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .54160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .18874E-08    3.9411        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     38.153        33.298        .16018E-03   -1.5584    
  20  norm          .94369E-08    6.9332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        1.3490        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .79547E-07    5.6171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .17402        2.4820        .78187E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .92770        .18410        .45276E-01   -.95493    
  25  Prefactor     .92636        .16831        .45329E-01   -.95226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50992e-06
Minuit parameter uncertainties:
  1  6.20862
  2  0.0158817
  3  0.000860154
  4  0.000289693
  5  10.3723
  6  60.7988
  7  0.000321225
  8  18.4238
  9  6.90065
  10  6.0311
  11  1.81167
  12  2.42847
  13  1.32013e-05
  14  0.00129808
  15  0.00158777
  16  0.000595593
  17  1.7316e-06
  18  0.00017312
  19  33.2986
  20  0.000510917
  21  5.39763e-06
  22  0.00133683
  23  1.31439
  24  0.184223
  25  0.1684
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  2.626e-08  1.298e-03  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  2.190e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  9.264e-01  1.684e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  9.277e-01  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.222 36.850
Photon Flux Upper Limit: 3.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/159715/likelihoodResults_682300801_682560001_4FGL_J1516.8+3651_daily_bin1709.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) = 5819.81035713
delta logL = -0.0297101372416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5819.7806474
delta logL = -4.09614585806e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24261E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .35433       1.0000          .0000       10.000    
     3 'Normalizat'    .92776       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92627       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5819.781     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      243 TOTAL
                     EDM=   .97E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23870E-08    .23829        .42118E-03** at limit **
   2  Index         2.5056        5.0775        .37589        .90733E-09
   3  Normalizat    .92770        .67529E-03    .45255E-01   -.32301E-03
   4  Prefactor     .92636        .64102E-03    .45339E-01   -.40060E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.38698e-09
  Index      = 2.50564
  Normalizat = 0.927704
  Prefactor  = 0.926357
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.781     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23870E-08    .55171        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5056        8.2798        .50000       -.52230    
   3  Normalizat    .92770        .10267E-02    .25177E-03   -.95493    
   4  Prefactor     .92636        .97469E-03    .23785E-03   -.95226    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.85683e-11
Minuit parameter uncertainties:
  1  7.26494e-05
  2  3152
  3  0.00102671
  4  0.000974687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/159715': 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): 102
logL (Free Index) = 5819.78064699
delta logL = 6.12089934293e-10

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  2.387e-09  7.265e-05  0.000e+00  1.000e+06 ( 1.000e-14)
280        Index:  2.506e+00  3.152e+03  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  9.264e-01  9.747e-04  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  9.277e-01  1.027e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.222 36.850

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/159715/cmap_HighResolution_682300801_682560001_4FGL_J1516.8+3651_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-03', job_status='DONE', photon_flux_upper_limit='3.64e-08', time_completed='2022-09-16 19:14:33.421222', job_id='159715', GAL2='0.93', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1663380873.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.12e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1709' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:14:33 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 159715: <4FGL_J1516.8+3651_daily_bin1709> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin1709> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 19:00:21 2022
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 19:01:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 19:01:18 2022
Terminated at Fri Sep 16 19:14:34 2022
Results reported at Fri Sep 16 19:14:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1709 229.222 36.8505 682300801 682560001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.8+3651 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   616.57 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            853 sec.

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

