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


Performing analysis on: 4FGL_J1716.1+6836_weekly_bin715
RA = 259.031, Dec = 68.6063
tmin = 671414401, tmax = 672019201
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='935241', job_status='RUN', time_executed='2022-04-19 02:33:25.835317', time_epoch_executed='1650360805.84' WHERE source_name='4FGL J1716.1+6836' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935241

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935241/ft1_4FGL_J1716.1+6836_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935241/ft2_4FGL_J1716.1+6836_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935241/ft1_4FGL_J1716.1+6836_weekly_bin715.fits outfile=/scratch/kocevski/935241/ft1_filteredMKT_4FGL_J1716.1+6836_weekly_bin715.fits ra=259.031 dec=68.6063 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.75
user 7.24
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935241/ft2_4FGL_J1716.1+6836_weekly_bin715.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/935241/ft1_filteredMKT_4FGL_J1716.1+6836_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/935241/ft1_filtered_4FGL_J1716.1+6836_weekly_bin715.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 2230

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935241/ft1_filtered_4FGL_J1716.1+6836_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/935241/ft2_4FGL_J1716.1+6836_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/935241/ltcube_671414401_672019201_4FGL_J1716.1+6836_weekly_bin715.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/935241/ft2_4FGL_J1716.1+6836_weekly_bin715.fits
.....................!
real 26.64
user 26.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935241/ft1_filtered_4FGL_J1716.1+6836_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/935241/ft2_4FGL_J1716.1+6836_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/935241/ltcube_671414401_672019201_4FGL_J1716.1+6836_weekly_bin715.fits outfile=/scratch/kocevski/935241/expmap_671414401_672019201_4FGL_J1716.1+6836_weekly_bin715.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/935241/ltcube_671414401_672019201_4FGL_J1716.1+6836_weekly_bin715.fits
.....................!
real 192.72
user 187.56
sys 4.56

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/935241/ft1_filtered_4FGL_J1716.1+6836_weekly_bin715.fits scfile=/scratch/kocevski/935241/ft2_4FGL_J1716.1+6836_weekly_bin715.fits outfile=/scratch/kocevski/935241/cmap_671414401_672019201_4FGL_J1716.1+6836_weekly_bin715.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935241/ft1_filtered_4FGL_J1716.1+6836_weekly_bin715.fits scfile=/scratch/kocevski/935241/ft2_4FGL_J1716.1+6836_weekly_bin715.fits outfile=/scratch/kocevski/935241/cmap_HighResolution_671414401_672019201_4FGL_J1716.1+6836_weekly_bin715.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.58
user 0.42
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/935241/ft1_filtered_4FGL_J1716.1+6836_weekly_bin715.fits', '/scratch/kocevski/935241/ft2_4FGL_J1716.1+6836_weekly_bin715.fits', expMap='/scratch/kocevski/935241/expmap_671414401_672019201_4FGL_J1716.1+6836_weekly_bin715.fits', expCube='/scratch/kocevski/935241/ltcube_671414401_672019201_4FGL_J1716.1+6836_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/935241/Model_4FGL_J1716.1+6836_weekly_bin715.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/935241/ft1_filtered_4FGL_J1716.1+6836_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/935241/ft2_4FGL_J1716.1+6836_weekly_bin715.fits
Exposure map: /scratch/kocevski/935241/expmap_671414401_672019201_4FGL_J1716.1+6836_weekly_bin715.fits
Exposure cube: /scratch/kocevski/935241/ltcube_671414401_672019201_4FGL_J1716.1+6836_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/935241/Model_4FGL_J1716.1+6836_weekly_bin715.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) = 23280.7776189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0698       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18612E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.8366       1.0000         .10000E-03   10000.    
     4 'norm      '    4.6824       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    36.488       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2446       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26630       1.0000         .10000E-03   10000.    
    12 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2407       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12777E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8637       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .66761E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.676       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.375       1.0000         .10000E-03   10000.    
    21 'norm      '    2.0604       1.0000         .10000E-03   10000.    
    22 'norm      '    6.3811       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .74343       1.0000         .10000E-03   10000.    
    24 'norm      '    2.7551       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.4038       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.4967       1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.915       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.506       1.0000         .10000E-03   10000.    
    30 'Prefactor '    29.443       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10272E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2341       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .84997       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=   23280.74     FROM MIGRAD    STATUS=CONVERGED    940 CALLS     4260 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0733        15.037        .43731E-05    .13905E-04
   2  Prefactor     .10005E-03    4.6851        .17248E-05** at limit **
   3  Prefactor     7.8347        12.117       -.45565E-07   -.83406E-04
   4  norm          4.6828        2.4272        .40081E-07    .11643E-03
   5  Prefactor     .10000E-03    31.547       -.81865E-06** at limit **
   6  Prefactor     .10000E-03    11.320       -.40940E-06** at limit **
   7  norm          36.491        11.886       -.14461E-06   -.40225E-04
   8  Prefactor     .10000E-03    37.308        .77525E-06** at limit **
   9  Prefactor     .10000E-03    8.5644        .19733E-06** at limit **
  10  norm          3.2439        3.9662        .19330E-06    .15758E-03
  11  Prefactor     .28983        3.8256       -.70067E-07   -.42915E-04
  12  norm          .10000E-03    .12920        .64256E-07** at limit **
  13  Prefactor     2.2448        4.2205        .35673E-06    .12751E-03
  14  Prefactor     .10000E-03    .43474        .61518E-07** at limit **
  15  Prefactor     .10000E-03    2.8181        .21993E-07** at limit **
  16  Prefactor     .10000E-03    1.2890       -.11864E-05** at limit **
  17  Prefactor     1.8653        11.389        .10838E-04    .41462E-04
  18  Prefactor     .61781E-01    1.3132        .53622E-06   -.55546E-03
  19  Prefactor     15.654        18.419        .17465E-05    .30733E-03
  20  Prefactor     29.337        49.353        .51473E-05   -.20001E-04
  21  norm          2.0606        1.1406       -.96848E-08    .26065E-04
  22  norm          6.3815        .70762       -.66900E-07   -.33415E-03
  23  Prefactor     .79744        2.9927       -.11128E-05    .13334E-03
  24  norm          2.7559        2.4233        .93666E-07    .44987E-04
  25  Prefactor     9.3986        11.324        .18197E-06    .11276E-03
  26  Prefactor     4.4979        197.72        .92980E-07    .41232E-05
  27  Prefactor     16.916        5.0847        .10691E-07    .20429E-03
  28  Prefactor     .10000E-03    20.362        .37695E-07** at limit **
  29  Prefactor     13.502        11.210        .61024E-07    .61931E-04
  30  Prefactor     29.447        28.322       -.20008E-06    .29963E-04
  31  Prefactor     .10000E-03    16.023        .60049E-06** at limit **
  32  norm          .10000E-03    .56386        .54700E-08** at limit **
  33  Normalizat    1.2338        .11001        .43577E-06    .11425E-02
  34  Prefactor     .85003        .75122E-01   -.43020E-06    .10062E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.07334
  Prefactor  = 0.000100051
  Prefactor  = 7.83474
  norm       = 4.68281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 36.4909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.2439
  Prefactor  = 0.28983
  norm       = 0.0001
  Prefactor  = 2.24485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.86531
  Prefactor  = 0.0617811
  Prefactor  = 15.6535
  Prefactor  = 29.3365
  norm       = 2.06058
  norm       = 6.38147
  Prefactor  = 0.79744
  norm       = 2.75587
  Prefactor  = 9.3986
  Prefactor  = 4.49791
  Prefactor  = 16.9161
  Prefactor  = 0.0001
  Prefactor  = 13.5024
  Prefactor  = 29.4466
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.2338
  Prefactor  = 0.85003
 **********
 **   18 **HESSE 
 **********

 FCN=   23280.74     FROM HESSE     STATUS=OK           758 CALLS     5018 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0733        15.075        .11576E-02   -1.5357    
   2  Prefactor     .10005E-03    29.828        .60599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.8347        11.956        .14324E-03   -1.5148    
   4  norm          4.6828        2.4285        .16616E-03   -1.5275    
   5  Prefactor     .10000E-03    31.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          36.491        11.885        .66347E-04   -1.4499    
   8  Prefactor     .10000E-03    37.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.6196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2439        3.9513        .22486E-03   -1.5348    
  11  Prefactor     .28983        4.2527        .94060E-01   -1.5600    
  12  norm          .10000E-03    .42529        .10345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2448        4.1392        .27457E-03   -1.5408    
  14  Prefactor     .10000E-03    .44344        .98162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0338        .31938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.8653        11.631        .15260E-02   -1.5435    
  18  Prefactor     .61781E-01    1.7765        .64295E-01   -1.5658    
  19  Prefactor     15.654        18.399        .10116E-03   -1.4916    
  20  Prefactor     29.337        49.587        .73923E-04   -1.4624    
  21  norm          2.0606        1.1390        .11598E-03   -1.5421    
  22  norm          6.3815        .70800        .40685E-04   -1.5203    
  23  Prefactor     .79744        12.672        .47253E-02   -1.5529    
  24  norm          2.7559        2.3992        .20254E-03   -1.5376    
  25  Prefactor     9.3986        11.297        .13069E-03   -1.5095    
  26  Prefactor     4.4979        197.79        .18987E-03   -1.5284    
  27  Prefactor     16.916        5.0541        .97382E-04   -1.4885    
  28  Prefactor     .10000E-03    21.090        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     13.502        10.717        .10899E-03   -1.4973    
  30  Prefactor     29.447        28.333        .73836E-04   -1.4622    
  31  Prefactor     .10000E-03    16.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    .95729        .21143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.2338        .12810        .27476E-03   -.85565    
  34  Prefactor     .85003        .87202E-01    .23352E-03   -.97910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93689e-09
Minuit parameter uncertainties:
  1  13.6185
  2  0.00245809
  3  11.9595
  4  2.42851
  5  0.000230718
  6  6.91186e-05
  7  11.8856
  8  0.000186565
  9  2.48159e-05
  10  3.95164
  11  2.22022
  12  5.80054e-06
  13  4.13972
  14  1.39879e-07
  15  2.05826e-07
  16  9.11248e-06
  17  9.31803
  18  0.662077
  19  18.4055
  20  49.6572
  21  1.13901
  22  0.707997
  23  6.35881
  24  2.3993
  25  11.2996
  26  59.8646
  27  5.05424
  28  9.12847e-05
  29  10.7183
  30  28.3456
  31  0.00010586
  32  6.28594e-07
  33  0.128137
  34  0.0872161
Done.

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

Extracting fit parameters...

4FGL J1716.1+6836
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  2.058e-07  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:  8.500e-01  8.722e-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:  1.234e+00  1.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 259.031 68.606
Photon Flux Upper Limit: 2.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935241/likelihoodResults_671414401_672019201_4FGL_J1716.1+6836_weekly_bin715.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) = 23280.7447307
delta logL = -0.001682548791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23280.7430483
delta logL = -9.04401531443e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3760       1.0000          .0000       10.000    
     3 'Normalizat'    1.2338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85006       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.

 FCN=   23280.74     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9543        .90712E-02** at limit **
   2  Index         2.3744        5.4166        .50000        .45959E-05
   3  Normalizat    1.2338        .27676E-02    .62121E-01    .39209E-03
   4  Prefactor     .85003        .20028E-02    .44365E-01    .49377E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.37443
  Normalizat = 1.2338
  Prefactor  = 0.850031
 **********
 **   18 **HESSE 
 **********

 FCN=   23280.74     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3744        8.6284        .50000       -.55285    
   3  Normalizat    1.2338        .13936E-01    .27476E-03   -.85565    
   4  Prefactor     .85003        .10088E-01    .23352E-03   -.97910    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.38597e-07
Minuit parameter uncertainties:
  1  0.000293018
  2  661.007
  3  0.013936
  4  0.0100882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935241': 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) = 23280.7430482
delta logL = 3.60523699783e-09

Extracting fit parameters...

4FGL J1716.1+6836
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  2.930e-04  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.374e+00  6.610e+02  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:  8.500e-01  1.009e-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:  1.234e+00  1.394e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 259.031 68.606

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/935241/cmap_HighResolution_671414401_672019201_4FGL_J1716.1+6836_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.02e-03', job_status='DONE', photon_flux_upper_limit='2.62e-08', time_completed='2022-04-19 03:24:42.461764', job_id='935241', GAL2='0.85', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1650363882.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.61e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='715' AND source_name='4FGL J1716.1+6836' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:24:42 PDT 2022



------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 931444: <4FGL_J1716.1+6836_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1716.1+6836_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:07:25 2022
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:18:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:18:50 2022
Terminated at Tue Apr 19 03:13:48 2022
Results reported at Tue Apr 19 03:13:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1716.1+6836_weekly_bin715 259.031 68.6063 671414401 672019201 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 :                                   3073.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             330.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3298 sec.
    Turnaround time :                            11183 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 935241: <4FGL_J1716.1+6836_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1716.1+6836_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:18:49 2022
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:32:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:32:47 2022
Terminated at Tue Apr 19 03:24:43 2022
Results reported at Tue Apr 19 03:24:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1716.1+6836_weekly_bin715 259.031 68.6063 671414401 672019201 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 :                                   3073.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             350.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3118 sec.
    Turnaround time :                            11154 sec.

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

