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


Performing analysis on: 4FGL_J1516.1+4351_weekly_bin730
RA = 229.049, Dec = 43.8527
tmin = 680486401, tmax = 681091201
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='659374', job_status='RUN', time_executed='2022-08-02 02:09:34.059747', time_epoch_executed='1659431374.06' WHERE source_name='4FGL J1516.1+4351' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659374

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659374/ft1_4FGL_J1516.1+4351_weekly_bin730.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659374/ft2_4FGL_J1516.1+4351_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659374/ft1_4FGL_J1516.1+4351_weekly_bin730.fits outfile=/scratch/kocevski/659374/ft1_filteredMKT_4FGL_J1516.1+4351_weekly_bin730.fits ra=229.049 dec=43.8527 rad=12.0 tmin=680486401.0 tmax=681091201.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 6.25
user 5.94
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/659374/ft2_4FGL_J1516.1+4351_weekly_bin730.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659374/ft2_4FGL_J1516.1+4351_weekly_bin730.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/659374/ft1_filteredMKT_4FGL_J1516.1+4351_weekly_bin730.fits evtable="EVENTS" outfile="/scratch/kocevski/659374/ft1_filtered_4FGL_J1516.1+4351_weekly_bin730.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.55
user 0.39
sys 0.16

Number of photons that the gtmktime cut: 2350

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659374/ft1_filtered_4FGL_J1516.1+4351_weekly_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/659374/ft2_4FGL_J1516.1+4351_weekly_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/659374/ltcube_680486401_681091201_4FGL_J1516.1+4351_weekly_bin730.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/659374/ft2_4FGL_J1516.1+4351_weekly_bin730.fits
.....................!
real 32.91
user 32.34
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659374/ft1_filtered_4FGL_J1516.1+4351_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659374/ft2_4FGL_J1516.1+4351_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/659374/ltcube_680486401_681091201_4FGL_J1516.1+4351_weekly_bin730.fits outfile=/scratch/kocevski/659374/expmap_680486401_681091201_4FGL_J1516.1+4351_weekly_bin730.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/659374/ltcube_680486401_681091201_4FGL_J1516.1+4351_weekly_bin730.fits
.....................!
real 192.27
user 186.73
sys 5.03

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

Setting source of interest to:
4FGL J1516.1+4351 @ 229.049 43.8527

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/659374/ft1_filtered_4FGL_J1516.1+4351_weekly_bin730.fits scfile=/scratch/kocevski/659374/ft2_4FGL_J1516.1+4351_weekly_bin730.fits outfile=/scratch/kocevski/659374/cmap_680486401_681091201_4FGL_J1516.1+4351_weekly_bin730.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=229.049 yref=43.8527 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.59
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659374/ft1_filtered_4FGL_J1516.1+4351_weekly_bin730.fits scfile=/scratch/kocevski/659374/ft2_4FGL_J1516.1+4351_weekly_bin730.fits outfile=/scratch/kocevski/659374/cmap_HighResolution_680486401_681091201_4FGL_J1516.1+4351_weekly_bin730.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=229.049 yref=43.8527 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.59
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/659374/ft1_filtered_4FGL_J1516.1+4351_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659374/ft2_4FGL_J1516.1+4351_weekly_bin730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/659374/Model_4FGL_J1516.1+4351_weekly_bin730.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/659374/ft1_filtered_4FGL_J1516.1+4351_weekly_bin730.fits.....................!
real 159.05
user 157.32
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/659374/ft1_filtered_4FGL_J1516.1+4351_weekly_bin730.fits', '/scratch/kocevski/659374/ft2_4FGL_J1516.1+4351_weekly_bin730.fits', expMap='/scratch/kocevski/659374/expmap_680486401_681091201_4FGL_J1516.1+4351_weekly_bin730.fits', expCube='/scratch/kocevski/659374/ltcube_680486401_681091201_4FGL_J1516.1+4351_weekly_bin730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/659374/Model_4FGL_J1516.1+4351_weekly_bin730.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.1+4351'

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.184e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/659374/ft1_filtered_4FGL_J1516.1+4351_weekly_bin730.fits
Spacecraft file(s): /scratch/kocevski/659374/ft2_4FGL_J1516.1+4351_weekly_bin730.fits
Exposure map: /scratch/kocevski/659374/expmap_680486401_681091201_4FGL_J1516.1+4351_weekly_bin730.fits
Exposure cube: /scratch/kocevski/659374/ltcube_680486401_681091201_4FGL_J1516.1+4351_weekly_bin730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/659374/Model_4FGL_J1516.1+4351_weekly_bin730.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) = 25673.926136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6917       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.6307       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25649E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.413       1.0000         .10000E-03   10000.    
     8 'norm      '    .10509E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.317       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10869E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.052       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .32970E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4381       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5159       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3158       1.0000         .10000E-03   10000.    
    17 'norm      '    .25077       1.0000         .10000E-03   10000.    
    18 'norm      '    .13800E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2819       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.762       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.437       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.8689       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.3537       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.113       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.4826       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .79802       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1058       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   25673.84     FROM MIGRAD    STATUS=CONVERGED   1375 CALLS     4026 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6918        1.8212        .17321E-03    .50015E-03
   2  Prefactor     .10000E-03    4.3909        .18142E-02** at limit **
   3  Prefactor     .10000E-03    3.6343        .18142E-02** at limit **
   4  Prefactor     .10000E-03    2.6953        .18142E-02** at limit **
   5  norm          7.6317        7.0722        .14517E-03   -.21363E-03
   6  Prefactor     .10002E-03    9.7267        .15139    ** at limit **
   7  Prefactor     23.413        11.404        .82783E-04    .19776E-03
   8  norm          .10000E-03    2.1245        .27932E-02** at limit **
   9  Prefactor     29.319        16.584        .73995E-04    .54573E-04
  10  Prefactor     .10001E-03    11.390        .46278E-02** at limit **
  11  norm          .10000E-03    .82876        .14229E-02** at limit **
  12  Prefactor     23.053        7.8497        .83428E-04    .10411E-03
  13  Prefactor     .10005E-03    14.280        .45179E-02** at limit **
  14  norm          3.4383        .86180        .71320E-04   -.46864E-03
  15  Prefactor     3.5154        3.2867        .21560E-03    .68970E-04
  16  Prefactor     1.3167        2.6575        .17538E-02   -.14590E-02
  17  norm          .25090        .55254        .20414E-03    .36177E-03
  18  norm          .10000E-03    3.0155        .19968E-02** at limit **
  19  Prefactor     2.2809        3.2867        .27180E-03   -.55815E-03
  20  Prefactor     16.759        24.243        .97827E-04    .13481E-04
  21  Prefactor     15.437        8.7264        .10194E-03   -.93234E-04
  22  Prefactor     9.8682        6.5646        .12756E-03   -.42032E-03
  23  Prefactor     .10000E-03    1.7292        .18142E-02** at limit **
  24  norm          .10000E-03    1.4108        .18142E-02** at limit **
  25  Prefactor     8.3536        6.2714        .69351E-03   -.26884E-05
  26  Prefactor     11.109        22.606        .12018E-03    .18163E-04
  27  Prefactor     .10000E-03    .90550        .14772E-02** at limit **
  28  Prefactor     2.4821        6.1769        .25946E-03    .15406E-03
  29  Normalizat    .79803        .97503E-01    .24613E-03    .24979E-03
  30  Prefactor     1.1058        .10363        .23347E-03   -.14706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.69183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.63173
  Prefactor  = 0.000100017
  Prefactor  = 23.4131
  norm       = 0.000100004
  Prefactor  = 29.3189
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 23.0527
  Prefactor  = 0.000100051
  norm       = 3.43833
  Prefactor  = 3.51545
  Prefactor  = 1.31671
  norm       = 0.250902
  norm       = 0.000100001
  Prefactor  = 2.28092
  Prefactor  = 16.7592
  Prefactor  = 15.4367
  Prefactor  = 9.86821
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.35362
  Prefactor  = 11.1094
  Prefactor  = 0.0001
  Prefactor  = 2.48214
  Normalizat = 0.798032
  Prefactor  = 1.10582
 **********
 **   18 **HESSE 
 **********

 FCN=   25673.84     FROM HESSE     STATUS=OK           568 CALLS     4594 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6918        1.8212        .69282E-05   -1.5380    
   2  Prefactor     .10000E-03    4.3928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6350        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6959        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.6317        7.0719        .58069E-05   -1.5155    
   6  Prefactor     .10002E-03    9.6200        .15259       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.413        11.404        .33113E-05   -1.4740    
   8  norm          .10000E-03    2.1436        .55863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.319        16.583        .14799E-04   -1.4624    
  10  Prefactor     .10001E-03    11.597        .92557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .82880        .28458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.053        7.8485        .33371E-05   -1.4747    
  13  Prefactor     .10005E-03    14.443        .90357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4383        .86124        .28528E-05   -1.5337    
  15  Prefactor     3.5154        3.2829        .86241E-05   -1.5333    
  16  Prefactor     1.3167        2.6526        .70154E-04   -1.5478    
  17  norm          .25090        .55174        .81656E-05   -1.5608    
  18  norm          .10000E-03    3.0614        .39935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2809        3.2822        .10872E-04   -1.5406    
  20  Prefactor     16.759        24.233        .39131E-05   -1.4889    
  21  Prefactor     15.437        8.7247        .40776E-05   -1.4922    
  22  Prefactor     9.8682        6.5588        .51023E-05   -1.5080    
  23  Prefactor     .10000E-03    1.7293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.4111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.3536        6.2711        .27741E-04   -1.5130    
  26  Prefactor     11.109        22.602        .48072E-05   -1.5041    
  27  Prefactor     .10000E-03    .90572        .29544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.4821        6.1756        .10378E-04   -1.5393    
  29  Normalizat    .79803        .97575E-01    .98454E-05   -1.0014    
  30  Prefactor     1.1058        .10374        .93387E-05   -.89281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.5638e-09
Minuit parameter uncertainties:
  1  1.82125
  2  4.09195e-05
  3  1.45416e-05
  4  5.40289e-06
  5  7.07267
  6  0.000799796
  7  11.4048
  8  0.000190787
  9  16.5857
  10  0.00066197
  11  4.52483e-07
  12  7.84883
  13  0.00171957
  14  0.861247
  15  3.2831
  16  2.65282
  17  0.551748
  18  8.41373e-05
  19  3.28248
  20  24.2474
  21  8.72541
  22  6.55929
  23  6.74183e-06
  24  5.7416e-06
  25  6.2716
  26  22.6199
  27  2.0316e-05
  28  6.17714
  29  0.097596
  30  0.10376
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  2.281e+00  3.282e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.106e+00  1.038e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  7.980e-01  9.760e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.91
Ra Dec: 229.049 43.853
Photon Flux Upper Limit: 3.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659374/likelihoodResults_680486401_681091201_4FGL_J1516.1+4351_weekly_bin730.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) = 25673.8352579
delta logL = 0.00841077422956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 25673.8325673
delta logL = 0.0111013389323

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   25673.83     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      206 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 31.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5261        .50456       -.25965E-06   -.10522E-02
   2  Index         2.2943        1.0615        .23827E-05   -.12055E-03
   3  Normalizat    .80014        .80424E-01   -.19620E-07   -.82283E-03
   4  Prefactor     1.1045        .87869E-01    .18693E-07   -.76069E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.52615
  Index      = 2.29432
  Normalizat = 0.800135
  Prefactor  = 1.10455
 **********
 **   18 **HESSE 
 **********

 FCN=   25673.83     FROM HESSE     STATUS=OK            29 CALLS      235 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5261        3.5541        .12867E-02   -1.5390    
   2  Index         2.2943        1.1328        .97275E-03   -.57179    
   3  Normalizat    .80014        .93777E-01    .24585E-03   -1.0006    
   4  Prefactor     1.1045        .10274        .23359E-03   -.89321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04295e-09
Minuit parameter uncertainties:
  1  3.55436
  2  1.14698
  3  0.0937956
  4  0.10276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659374': 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) = 25673.8325633
delta logL = 0.0111053874643

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  2.526e+00  3.554e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.294e+00  1.147e+00  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.105e+00  1.028e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  8.001e-01  9.380e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.91
Ra Dec: 229.049 43.853

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/659374/cmap_HighResolution_680486401_681091201_4FGL_J1516.1+4351_weekly_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-03', job_status='DONE', photon_flux_upper_limit='3.67e-08', time_completed='2022-08-02 02:56:09.619763', job_id='659374', GAL2='1.10', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1659434169.62', return_code2='0', ts='0.91', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.11e-02', ts2='0.92', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='730' AND source_name='4FGL J1516.1+4351' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 02:56:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 659333: <4FGL_J1516.1+4351_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1516.1+4351_weekly_bin730> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:37 2022
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:06:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:06:49 2022
Terminated at Tue Aug  2 02:54:41 2022
Results reported at Tue Aug  2 02:54:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_weekly_bin730 229.049 43.8527 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.1+4351 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2799.00 sec.
    Max Memory :                                 1038 MB
    Average Memory :                             345.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2872 sec.
    Turnaround time :                            10084 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 659374: <4FGL_J1516.1+4351_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1516.1+4351_weekly_bin730> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:39 2022
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:07:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:07:52 2022
Terminated at Tue Aug  2 02:56:10 2022
Results reported at Tue Aug  2 02:56:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_weekly_bin730 229.049 43.8527 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.1+4351 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2792.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             341.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2900 sec.
    Turnaround time :                            10171 sec.

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

