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


Performing analysis on: 4FGL_J1716.1+6836_monthly_bin167
RA = 259.031, Dec = 68.6063
tmin = 669859201, tmax = 672451201
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='901085', job_status='RUN', time_executed='2022-04-24 02:31:46.412662', time_epoch_executed='1650792706.41' WHERE source_name='4FGL J1716.1+6836' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901085

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901085/ft1_4FGL_J1716.1+6836_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901085/ft2_4FGL_J1716.1+6836_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901085/ft1_4FGL_J1716.1+6836_monthly_bin167.fits outfile=/scratch/kocevski/901085/ft1_filteredMKT_4FGL_J1716.1+6836_monthly_bin167.fits ra=259.031 dec=68.6063 rad=12.0 tmin=669859201.0 tmax=672451201.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 38.12
user 37.04
sys 0.88

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/901085/ft2_4FGL_J1716.1+6836_monthly_bin167.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/901085/ft1_filteredMKT_4FGL_J1716.1+6836_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/901085/ft1_filtered_4FGL_J1716.1+6836_monthly_bin167.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.89
user 0.66
sys 0.17

Number of photons that the gtmktime cut: 9114

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901085/ft1_filtered_4FGL_J1716.1+6836_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/901085/ft2_4FGL_J1716.1+6836_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/901085/ltcube_669859201_672451201_4FGL_J1716.1+6836_monthly_bin167.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/901085/ft2_4FGL_J1716.1+6836_monthly_bin167.fits
.....................!
real 114.89
user 114.28
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901085/ft1_filtered_4FGL_J1716.1+6836_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/901085/ft2_4FGL_J1716.1+6836_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/901085/ltcube_669859201_672451201_4FGL_J1716.1+6836_monthly_bin167.fits outfile=/scratch/kocevski/901085/expmap_669859201_672451201_4FGL_J1716.1+6836_monthly_bin167.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/901085/ltcube_669859201_672451201_4FGL_J1716.1+6836_monthly_bin167.fits
.....................!
real 192.15
user 187.24
sys 4.51

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/901085/ft1_filtered_4FGL_J1716.1+6836_monthly_bin167.fits scfile=/scratch/kocevski/901085/ft2_4FGL_J1716.1+6836_monthly_bin167.fits outfile=/scratch/kocevski/901085/cmap_669859201_672451201_4FGL_J1716.1+6836_monthly_bin167.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901085/ft1_filtered_4FGL_J1716.1+6836_monthly_bin167.fits scfile=/scratch/kocevski/901085/ft2_4FGL_J1716.1+6836_monthly_bin167.fits outfile=/scratch/kocevski/901085/cmap_HighResolution_669859201_672451201_4FGL_J1716.1+6836_monthly_bin167.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.80
user 0.62
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56689E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4548       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1423       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.770       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8891       1.0000         .10000E-03   10000.    
     7 'norm      '    16.116       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.6257       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.252       1.0000         .10000E-03   10000.    
    12 'norm      '    .45339E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3591       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1731       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10788E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .93405       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3244       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.5289       1.0000         .10000E-03   10000.    
    22 'norm      '    7.0422       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.9051       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .45691E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.2484       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.8957       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.9522       1.0000         .10000E-03   10000.    
    30 'Prefactor '    15.569       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    1.7258       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0678       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .95670       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.

 FCN=   95463.98     FROM MIGRAD    STATUS=CONVERGED    980 CALLS     4294 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22578        1.9556         .0000        .19122E-02
   2  Prefactor     .10000E-03    1.6405         .0000    ** at limit **
   3  Prefactor     8.4555        5.8965         .0000        .33449E-03
   4  norm          1.1430        .88636         .0000        .74882E-02
   5  Prefactor     12.774        21.128         .0000       -.29414E-02
   6  Prefactor     6.8907        7.0844         .0000       -.84000E-03
   7  norm          16.117        4.6081         .0000        .18794E-02
   8  Prefactor     .10000E-03    5.4531         .0000    ** at limit **
   9  Prefactor     .10000E-03    3.1213         .0000    ** at limit **
  10  norm          3.6267        1.8545         .0000        .26636E-02
  11  Prefactor     10.256        4.8899         .0000        .69814E-02
  12  norm          .45360E-01    .85150E-01     .0000        .37985E-01
  13  Prefactor     1.3610        2.3685         .0000        .20894    
  14  Prefactor     .10000E-03    .11312         .0000    ** at limit **
  15  Prefactor     5.1753        3.7144         .0000        .10317E-01
  16  Prefactor     .10000E-03    .35545         .0000    ** at limit **
  17  Prefactor     .10000E-03    4.5101         .0000    ** at limit **
  18  Prefactor     .93430        1.1304         .0000        .49457E-02
  19  Prefactor     2.3272        6.6523         .0000        .28855E-02
  20  Prefactor     .10000E-03    21.242         .0000    ** at limit **
  21  norm          3.5291        .71526         .0000        .17961E-02
  22  norm          7.0424        .34602         .0000        .57873E-03
  23  Prefactor     .10000E-03    .55000         .0000    ** at limit **
  24  norm          3.9055        1.2347         .0000        .48494E-02
  25  Prefactor     .77495E-01    1.2089         .0000        .20369E-02
  26  Prefactor     9.2476        17.239         .0000       -.68682E-04
  27  Prefactor     9.8965        2.2229         .0000        .22087E-02
  28  Prefactor     .10000E-03    2.0616         .0000    ** at limit **
  29  Prefactor     5.9537        5.0546         .0000        .15713E-01
  30  Prefactor     15.571        13.532         .0000        .40377E-03
  31  Prefactor     .10002E-03    4.9487         .0000    ** at limit **
  32  norm          1.7259        .73192         .0000        .69111E-02
  33  Normalizat    1.0676        .54251E-01     .0000        .52592E-03
  34  Prefactor     .95673        .37102E-01     .0000        .41785E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.225782
  Prefactor  = 0.0001
  Prefactor  = 8.45552
  norm       = 1.14301
  Prefactor  = 12.7736
  Prefactor  = 6.89072
  norm       = 16.1173
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 3.62667
  Prefactor  = 10.2559
  norm       = 0.0453602
  Prefactor  = 1.36103
  Prefactor  = 0.0001
  Prefactor  = 5.17525
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.934297
  Prefactor  = 2.32717
  Prefactor  = 0.0001
  norm       = 3.52907
  norm       = 7.0424
  Prefactor  = 0.0001
  norm       = 3.90549
  Prefactor  = 0.0774949
  Prefactor  = 9.24755
  Prefactor  = 9.89645
  Prefactor  = 0.0001
  Prefactor  = 5.95366
  Prefactor  = 15.5712
  Prefactor  = 0.000100017
  norm       = 1.72593
  Normalizat = 1.06763
  Prefactor  = 0.95673
 **********
 **   18 **HESSE 
 **********

 FCN=   95463.98     FROM HESSE     STATUS=OK           772 CALLS     5066 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22578        2.0157        .14928       -1.5613    
   2  Prefactor     .10000E-03    1.6750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.4555        5.8927        .13787E-03   -1.5126    
   4  norm          1.1430        .86822        .24244E-03   -1.5494    
   5  Prefactor     12.774        21.032        .11209E-03   -1.4993    
   6  Prefactor     6.8907        7.0868        .15286E-03   -1.5183    
   7  norm          16.117        4.5940        .49884E-03   -1.4905    
   8  Prefactor     .10000E-03    5.4566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6267        1.8472        .21218E-03   -1.5327    
  11  Prefactor     10.256        4.8914        .62571E-03   -1.5067    
  12  norm          .45360E-01    .10743        .10646E-02   -1.5665    
  13  Prefactor     1.3610        2.2838        .18736E-02   -1.5475    
  14  Prefactor     .10000E-03    .23843        .19965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.1753        3.5944        .17675E-03   -1.5253    
  16  Prefactor     .10000E-03    .39645        .56146E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.6223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .93430        1.1111        .34211E-03   -1.5515    
  19  Prefactor     2.3272        6.6038        .26903E-03   -1.5403    
  20  Prefactor     .10000E-03    21.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5291        .71339        .11108E-03   -1.5332    
  22  norm          7.0424        .34500        .38584E-04   -1.5177    
  23  Prefactor     .10000E-03    2.8285        .43675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.9055        1.2268        .17580E-03   -1.5313    
  25  Prefactor     .77495E-01    1.3058        .11706       -1.5652    
  26  Prefactor     9.2476        17.233        .13179E-03   -1.5100    
  27  Prefactor     9.8965        2.2067        .12738E-03   -1.5079    
  28  Prefactor     .10000E-03    2.1029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     5.9537        4.9874        .82295E-03   -1.5220    
  30  Prefactor     15.571        13.541        .10151E-03   -1.4919    
  31  Prefactor     .10002E-03    4.9554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          1.7259        .72125        .15723E-03   -1.5445    
  33  Normalizat    1.0676        .63127E-01    .28750E-03   -.90798    
  34  Prefactor     .95673        .43588E-01    .22050E-03   -.94186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.77999e-08
Minuit parameter uncertainties:
  1  1.34901
  2  1.19041e-06
  3  5.89313
  4  0.868225
  5  21.0441
  6  7.08762
  7  4.59409
  8  0.000304409
  9  2.74918e-05
  10  1.84725
  11  4.89158
  12  0.107428
  13  2.28393
  14  6.92555e-07
  15  3.59459
  16  4.26267e-05
  17  0.000154079
  18  1.11113
  19  6.60589
  20  0.000126025
  21  0.713392
  22  0.345003
  23  1.52764e-05
  24  1.22679
  25  0.635816
  26  17.2423
  27  2.20676
  28  4.37555e-06
  29  4.98775
  30  13.5432
  31  0.000587639
  32  0.721258
  33  0.0631317
  34  0.0435895
Done.

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

Extracting fit parameters...

4FGL J1716.1+6836
   Spectrum: PowerLaw
360    Prefactor:  5.175e+00  3.595e+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:  9.567e-01  4.359e-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.068e+00  6.313e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Saving results to:
/scratch/kocevski/901085/likelihoodResults_669859201_672451201_4FGL_J1716.1+6836_monthly_bin167.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) = 95463.6409728
delta logL = 0.343899888117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 95463.6174371
delta logL = 0.367435570632

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6133       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8418       1.0000          .0000       10.000    
     3 'Normalizat'    1.0583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96055       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=   95463.62     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      292 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6124        8.6820        .10628E-02   -.46999E-03
   2  Index         2.8418        1.4429        .10836E-01    .14747E-03
   3  Normalizat    1.0583        .62210E-01    .28861E-03   -.25210E-05
   4  Prefactor     .96056        .44343E-01    .22010E-03   -.33057E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.61238
  Index      = 2.84185
  Normalizat = 1.05827
  Prefactor  = 0.96056
 **********
 **   18 **HESSE 
 **********

 FCN=   95463.62     FROM HESSE     STATUS=OK            27 CALLS      319 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6124        3.4081        .42511E-04   -1.5328    
   2  Index         2.8418        .57418        .43344E-03   -.44630    
   3  Normalizat    1.0583        .59597E-01    .11545E-04   -.91103    
   4  Prefactor     .96056        .42938E-01    .88042E-05   -.94056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56144e-10
Minuit parameter uncertainties:
  1  3.4083
  2  0.575747
  3  0.0596011
  4  0.0429391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901085': 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) = 95463.6174371
delta logL = 0.36743564342

Extracting fit parameters...

4FGL J1716.1+6836
   Spectrum: PowerLaw
360    Prefactor:  3.612e+00  3.408e+00  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.842e+00  5.757e-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:  9.606e-01  4.294e-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.058e+00  5.960e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.99
Ra Dec: 259.031 68.606
Photon Index (Free Index): 2.84 +/- 0.58
Photon Flux (Free Index): 1.89e-08 +/- 1.23e-08
Energy Flux (Free Index): 4.12e-06 +/- 2.33e-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/901085/cmap_HighResolution_669859201_672451201_4FGL_J1716.1+6836_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.09e-03', comment='SUCCESS', photon_flux='1.18e-08', energy_flux2='4.12e-06', photon_flux_error='8.18e-09', dlogl='3.67e-01', energy_flux='3.98e-06', photon_flux2='1.89e-08', job_status='DONE', time_completed='2022-04-24 05:52:19.921878', photon_index_error2='0.58', photon_index2='2.84', ts='3.22', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.70e-08', energy_flux_error2='2.33e-06', EG='1.07', time_epoch_completed='1650804739.92', return_code='0', job_id='901085', GAL2='0.96', EG2='1.06', return_code2='0', energy_flux_error='2.76e-06', photon_flux_error2='1.23e-08', ts2='3.99', photon_index='2.38' WHERE bin_id='167' AND source_name='4FGL J1716.1+6836' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 05:52:19 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 901085: <4FGL_J1716.1+6836_monthly_bin167> in cluster <slac> Done

Job <4FGL_J1716.1+6836_monthly_bin167> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr 24 02:05:35 2022
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 02:31:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 02:31:19 2022
Terminated at Sun Apr 24 05:52:21 2022
Results reported at Sun Apr 24 05:52:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1716.1+6836_monthly_bin167 259.031 68.6063 669859201 672451201 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 :                                   11983.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             450.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12061 sec.
    Turnaround time :                            13606 sec.

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

