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


Performing analysis on: 4FGL_J1716.1+6836_monthly_bin168
RA = 259.031, Dec = 68.6063
tmin = 672451201, tmax = 675043201
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='642133', job_status='RUN', time_executed='2022-05-24 03:37:57.666218', time_epoch_executed='1653388677.67' WHERE source_name='4FGL J1716.1+6836' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642133

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642133/ft1_4FGL_J1716.1+6836_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642133/ft2_4FGL_J1716.1+6836_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642133/ft1_4FGL_J1716.1+6836_monthly_bin168.fits outfile=/scratch/kocevski/642133/ft1_filteredMKT_4FGL_J1716.1+6836_monthly_bin168.fits ra=259.031 dec=68.6063 rad=12.0 tmin=672451201.0 tmax=675043201.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 29.73
user 27.93
sys 0.74

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/642133/ft2_4FGL_J1716.1+6836_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/642133/ft2_4FGL_J1716.1+6836_monthly_bin168.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/642133/ft1_filteredMKT_4FGL_J1716.1+6836_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/642133/ft1_filtered_4FGL_J1716.1+6836_monthly_bin168.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.87
user 0.68
sys 0.18

Number of photons that the gtmktime cut: 12738

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642133/ft1_filtered_4FGL_J1716.1+6836_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/642133/ft2_4FGL_J1716.1+6836_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/642133/ltcube_672451201_675043201_4FGL_J1716.1+6836_monthly_bin168.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/642133/ft2_4FGL_J1716.1+6836_monthly_bin168.fits
.....................!
real 144.25
user 142.16
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642133/ft1_filtered_4FGL_J1716.1+6836_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/642133/ft2_4FGL_J1716.1+6836_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/642133/ltcube_672451201_675043201_4FGL_J1716.1+6836_monthly_bin168.fits outfile=/scratch/kocevski/642133/expmap_672451201_675043201_4FGL_J1716.1+6836_monthly_bin168.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/642133/ltcube_672451201_675043201_4FGL_J1716.1+6836_monthly_bin168.fits
.....................!
real 192.48
user 186.69
sys 5.37

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

Setting source of interest to:
4FGL J1716.1+6836 @ 259.031 68.6063

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/642133/ft1_filtered_4FGL_J1716.1+6836_monthly_bin168.fits scfile=/scratch/kocevski/642133/ft2_4FGL_J1716.1+6836_monthly_bin168.fits outfile=/scratch/kocevski/642133/cmap_672451201_675043201_4FGL_J1716.1+6836_monthly_bin168.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=259.031 yref=68.6063 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.81
user 0.62
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642133/ft1_filtered_4FGL_J1716.1+6836_monthly_bin168.fits scfile=/scratch/kocevski/642133/ft2_4FGL_J1716.1+6836_monthly_bin168.fits outfile=/scratch/kocevski/642133/cmap_HighResolution_672451201_675043201_4FGL_J1716.1+6836_monthly_bin168.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=259.031 yref=68.6063 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.83
user 0.63
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/642133/ft1_filtered_4FGL_J1716.1+6836_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/642133/ft2_4FGL_J1716.1+6836_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/642133/Model_4FGL_J1716.1+6836_monthly_bin168.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/642133/ft1_filtered_4FGL_J1716.1+6836_monthly_bin168.fits.....................!
real 1140.31
user 1136.63
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/642133/ft1_filtered_4FGL_J1716.1+6836_monthly_bin168.fits', '/scratch/kocevski/642133/ft2_4FGL_J1716.1+6836_monthly_bin168.fits', expMap='/scratch/kocevski/642133/expmap_672451201_675043201_4FGL_J1716.1+6836_monthly_bin168.fits', expCube='/scratch/kocevski/642133/ltcube_672451201_675043201_4FGL_J1716.1+6836_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/642133/Model_4FGL_J1716.1+6836_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1716.1+6836'

4FGL J1716.1+6836
   Spectrum: PowerLaw
360    Prefactor:  5.655e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.378e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
362        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/642133/ft1_filtered_4FGL_J1716.1+6836_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/642133/ft2_4FGL_J1716.1+6836_monthly_bin168.fits
Exposure map: /scratch/kocevski/642133/expmap_672451201_675043201_4FGL_J1716.1+6836_monthly_bin168.fits
Exposure cube: /scratch/kocevski/642133/ltcube_672451201_675043201_4FGL_J1716.1+6836_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/642133/Model_4FGL_J1716.1+6836_monthly_bin168.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) = 134042.746567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0177       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16632E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.777       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3197       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9123       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10739E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.3400       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.976       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5764       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3776       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .15474       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5395       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .75211E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1698       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2060       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .29924E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .25413E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    3.5222       1.0000         .10000E-03   10000.    
    22 'norm      '    4.5848       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .84699       1.0000         .10000E-03   10000.    
    24 'norm      '    3.5005       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.8062       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .64529E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.5050       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.7745       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.6409       1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.7276       1.0000         .10000E-03   10000.    
    31 'Prefactor '    24.447       1.0000         .10000E-03   10000.    
    32 'norm      '    .17430       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .93248       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0895       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   134042.6     FROM MIGRAD    STATUS=CONVERGED    965 CALLS     3546 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9841        5.3458       -.30572E-06   -.10405E-04
   2  Prefactor     .10000E-03    .49586       -.42330E-07** at limit **
   3  Prefactor     14.777        5.6414        .44837E-07    .18331E-05
   4  norm          1.3202        .58516       -.99940E-07   -.86430E-03
   5  Prefactor     1.8308        18.713        .11290E-04   -.76976E-05
   6  Prefactor     .10000E-03    5.3533        .90143E-06** at limit **
   7  norm          9.3392        3.7864        .15675E-06   -.81191E-05
   8  Prefactor     10.993        9.7126        .31405E-05   -.23754E-05
   9  Prefactor     9.5733        6.1730       -.14754E-05   -.10928E-03
  10  norm          2.3793        1.5640       -.19469E-08   -.11906E-03
  11  Prefactor     .10000E-03    .63656       -.66196E-07** at limit **
  12  norm          .15475        .11447        .59022E-07    .30213E-02
  13  Prefactor     1.5391        .43506       -.57105E-07   -.37939E-02
  14  Prefactor     .75071E-01    .15907        .47476E-08   -.23564E-04
  15  Prefactor     5.1728        2.8946       -.27929E-06   -.22912E-03
  16  Prefactor     .10000E-03    .21740        .23696E-07** at limit **
  17  Prefactor     1.1834        6.6266       -.34755E-06   -.26202E-04
  18  Prefactor     .10000E-03    .23542        .30444E-07** at limit **
  19  Prefactor     .10000E-03    4.5696       -.96944E-07** at limit **
  20  Prefactor     .10000E-03    26.965       -.12366E-04** at limit **
  21  norm          3.5224        .59247        .30397E-08    .14616E-04
  22  norm          4.5849        .25859        .29941E-08    .16266E-03
  23  Prefactor     .84080        1.2454        .45898E-07    .11463E-04
  24  norm          3.4988        .93895        .91226E-08    .17177E-03
  25  Prefactor     1.7991        2.5527       -.14783E-06    .24143E-04
  26  Prefactor     .10000E-03    45.060       -.33200E-04** at limit **
  27  Prefactor     4.5059        1.4753        .12771E-06   -.78179E-03
  28  Prefactor     1.7750        4.0309       -.45768E-06   -.92271E-05
  29  Prefactor     4.6467        4.0803       -.84577E-06    .13739E-03
  30  Prefactor     8.8485        13.589       -.24518E-05    .34405E-05
  31  Prefactor     24.285        12.921        .56805E-05    .42462E-04
  32  norm          .17434        .27601       -.26675E-07   -.11519E-03
  33  Normalizat    .93255        .44346E-01   -.10859E-06    .28549E-03
  34  Prefactor     1.0895        .31598E-01    .45194E-07    .52368E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.9841
  Prefactor  = 0.0001
  Prefactor  = 14.7773
  norm       = 1.32021
  Prefactor  = 1.83081
  Prefactor  = 0.0001
  norm       = 9.33917
  Prefactor  = 10.9932
  Prefactor  = 9.57332
  norm       = 2.37926
  Prefactor  = 0.000100001
  norm       = 0.154747
  Prefactor  = 1.53909
  Prefactor  = 0.0750714
  Prefactor  = 5.17285
  Prefactor  = 0.0001
  Prefactor  = 1.18337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.52243
  norm       = 4.58491
  Prefactor  = 0.840796
  norm       = 3.49881
  Prefactor  = 1.79908
  Prefactor  = 0.000100003
  Prefactor  = 4.50592
  Prefactor  = 1.775
  Prefactor  = 4.64671
  Prefactor  = 8.84851
  Prefactor  = 24.2849
  norm       = 0.174338
  Normalizat = 0.93255
  Prefactor  = 1.08946
 **********
 **   18 **HESSE 
 **********

 FCN=   134042.6     FROM HESSE     STATUS=OK           768 CALLS     4314 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9841        5.3498        .29137E-03   -1.5426    
   2  Prefactor     .10000E-03    1.8397        .49605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.777        5.6024        .10419E-03   -1.4939    
   4  norm          1.3202        .58454        .17970E-03   -1.5478    
   5  Prefactor     1.8308        18.706        .30059E-03   -1.5437    
   6  Prefactor     .10000E-03    5.4412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.3392        3.7862        .13113E-03   -1.5097    
   8  Prefactor     10.993        9.7140        .12093E-03   -1.5045    
   9  Prefactor     9.5733        6.1133        .12950E-03   -1.5089    
  10  norm          2.3793        1.5582        .26568E-03   -1.5399    
  11  Prefactor     .10000E-03    .60880        .94234E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .15475        .11283        .93039E-03   -1.5629    
  13  Prefactor     1.5391        1.4301        .17183E-02   -1.5460    
  14  Prefactor     .75071E-01    1.0209        .18334E-02   -1.5653    
  15  Prefactor     5.1728        2.8132        .17681E-03   -1.5253    
  16  Prefactor     .10000E-03    .67226        .32203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1834        6.4999        .41261E-03   -1.5490    
  18  Prefactor     .10000E-03    1.1204        .33970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6057        .21391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.387        .20001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5224        .59089        .10966E-03   -1.5333    
  22  norm          4.5849        .25656        .41340E-04   -1.5280    
  23  Prefactor     .84080        2.3545        .46226E-02   -1.5525    
  24  norm          3.4988        .93359        .16969E-03   -1.5334    
  25  Prefactor     1.7991        2.5322        .31095E-03   -1.5440    
  26  Prefactor     .10000E-03    45.660        .37657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.5059        1.5215        .94844E-03   -1.5283    
  28  Prefactor     1.7750        4.0274        .31428E-03   -1.5442    
  29  Prefactor     4.6467        3.8922        .18682E-03   -1.5277    
  30  Prefactor     8.8485        13.606        .13568E-03   -1.5113    
  31  Prefactor     24.285        12.919        .81015E-04   -1.4722    
  32  norm          .17434        .33735        .21574E-02   -1.5624    
  33  Normalizat    .93255        .50400E-01    .29543E-03   -.95326    
  34  Prefactor     1.0895        .36414E-01    .20700E-03   -.89804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21949e-06
Minuit parameter uncertainties:
  1  5.35109
  2  6.75857e-06
  3  5.60264
  4  0.584548
  5  11.7086
  6  7.64118e-06
  7  3.78634
  8  9.71537
  9  6.11368
  10  1.55828
  11  4.29918e-05
  12  0.112826
  13  1.43012
  14  0.553312
  15  2.81329
  16  2.1958e-06
  17  5.54752
  18  3.31025e-06
  19  1.23325e-06
  20  0.00012965
  21  0.590892
  22  0.256561
  23  2.35478
  24  0.933593
  25  2.53232
  26  0.000792945
  27  1.52156
  28  4.02806
  29  3.89241
  30  13.6105
  31  12.9206
  32  0.337355
  33  0.0504029
  34  0.0364149
Done.

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

Extracting fit parameters...

4FGL J1716.1+6836
   Spectrum: PowerLaw
360    Prefactor:  5.173e+00  2.813e+00  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.378e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
362        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.089e+00  3.641e-02  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  9.326e-01  5.040e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.94
Ra Dec: 259.031 68.606
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 1.18e-08 +/- 6.40e-09
Energy Flux (Fixed Index): 3.98e-06 +/- 2.16e-06

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) = 134042.586195
delta logL = 0.0361100329901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 134042.575564
delta logL = 0.0467407750839

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   134042.6     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      278 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6237        3.2359        .84689E-03    .93268E-03
   2  Index         2.2388        .44848        .53093E-02    .15765E-03
   3  Normalizat    .93462        .47722E-01    .29513E-03   -.11094E-04
   4  Prefactor     1.0886        .35741E-01    .20707E-03    .29867E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.62368
  Index      = 2.23875
  Normalizat = 0.934617
  Prefactor  = 1.08861
 **********
 **   18 **HESSE 
 **********

 FCN=   134042.6     FROM HESSE     STATUS=OK            27 CALLS      305 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6237        3.1851        .16938E-03   -1.5234    
   2  Index         2.2388        .44132        .10619E-02   -.58506    
   3  Normalizat    .93462        .47749E-01    .11805E-04   -.95254    
   4  Prefactor     1.0886        .35767E-01    .82829E-05   -.89831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16724e-12
Minuit parameter uncertainties:
  1  3.18523
  2  0.44215
  3  0.047751
  4  0.0357683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642133': 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) = 134042.575564
delta logL = 0.0467409191479

Extracting fit parameters...

4FGL J1716.1+6836
   Spectrum: PowerLaw
360    Prefactor:  5.624e+00  3.185e+00  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.239e+00  4.421e-01  0.000e+00  1.000e+01 (-1.000e+00)
362        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.089e+00  3.577e-02  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  9.346e-01  4.775e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.03
Ra Dec: 259.031 68.606
Photon Index (Free Index): 2.24 +/- 0.44
Photon Flux (Free Index): 1.02e-08 +/- 7.59e-09
Energy Flux (Free Index): 4.26e-06 +/- 2.51e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/642133/cmap_HighResolution_672451201_675043201_4FGL_J1716.1+6836_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-08', energy_flux2='4.26e-06', photon_flux_error='6.40e-09', dlogl='4.67e-02', energy_flux='3.98e-06', photon_flux2='1.02e-08', job_status='DONE', time_completed='2022-05-24 06:49:48.204039', photon_index_error2='0.44', photon_index2='2.24', ts='4.94', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='2.51e-06', EG='0.93', time_epoch_completed='1653400188.2', return_code='0', job_id='642133', GAL2='1.09', EG2='0.93', return_code2='0', energy_flux_error='2.16e-06', photon_flux_error2='7.59e-09', ts2='5.03', photon_index='2.38' WHERE bin_id='168' AND source_name='4FGL J1716.1+6836' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:49:48 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 642133: <4FGL_J1716.1+6836_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1716.1+6836_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 03:35:25 2022
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:35:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:35:33 2022
Terminated at Tue May 24 06:49:49 2022
Results reported at Tue May 24 06:49:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1716.1+6836_monthly_bin168 259.031 68.6063 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1716.1+6836 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11458.00 sec.
    Max Memory :                                 635 MB
    Average Memory :                             498.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11656 sec.
    Turnaround time :                            11664 sec.

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

