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 181 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 17361
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1016.0+0512_weekly_bin754
RA = 154.009, Dec = 5.2089
tmin = 695001601, tmax = 695606401
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='950993', job_status='RUN', time_executed='2023-01-17 00:58:45.274379', time_epoch_executed='1673945925.27' WHERE source_name='4FGL J1016.0+0512' and cadence='weekly' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950993

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950993/ft1_4FGL_J1016.0+0512_weekly_bin754.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950993/ft2_4FGL_J1016.0+0512_weekly_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950993/ft1_4FGL_J1016.0+0512_weekly_bin754.fits outfile=/scratch/kocevski/950993/ft1_filteredMKT_4FGL_J1016.0+0512_weekly_bin754.fits ra=154.009 dec=5.2089 rad=12.0 tmin=695001601.0 tmax=695606401.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 5.61
user 5.32
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/950993/ft2_4FGL_J1016.0+0512_weekly_bin754.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950993/ft2_4FGL_J1016.0+0512_weekly_bin754.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/950993/ft1_filteredMKT_4FGL_J1016.0+0512_weekly_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/950993/ft1_filtered_4FGL_J1016.0+0512_weekly_bin754.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.56
user 0.38
sys 0.17

Number of photons that the gtmktime cut: 729

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950993/ft1_filtered_4FGL_J1016.0+0512_weekly_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/950993/ft2_4FGL_J1016.0+0512_weekly_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/950993/ltcube_695001601_695606401_4FGL_J1016.0+0512_weekly_bin754.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/950993/ft2_4FGL_J1016.0+0512_weekly_bin754.fits
.....................!
real 37.20
user 35.83
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950993/ft1_filtered_4FGL_J1016.0+0512_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/950993/ft2_4FGL_J1016.0+0512_weekly_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/950993/ltcube_695001601_695606401_4FGL_J1016.0+0512_weekly_bin754.fits outfile=/scratch/kocevski/950993/expmap_695001601_695606401_4FGL_J1016.0+0512_weekly_bin754.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/950993/ltcube_695001601_695606401_4FGL_J1016.0+0512_weekly_bin754.fits
.....................!
real 191.27
user 185.84
sys 4.96

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

Setting source of interest to:
4FGL J1016.0+0512 @ 154.009 5.2089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/950993/ft1_filtered_4FGL_J1016.0+0512_weekly_bin754.fits scfile=/scratch/kocevski/950993/ft2_4FGL_J1016.0+0512_weekly_bin754.fits outfile=/scratch/kocevski/950993/cmap_695001601_695606401_4FGL_J1016.0+0512_weekly_bin754.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=154.009 yref=5.2089 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.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950993/ft1_filtered_4FGL_J1016.0+0512_weekly_bin754.fits scfile=/scratch/kocevski/950993/ft2_4FGL_J1016.0+0512_weekly_bin754.fits outfile=/scratch/kocevski/950993/cmap_HighResolution_695001601_695606401_4FGL_J1016.0+0512_weekly_bin754.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=154.009 yref=5.2089 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950993/ft1_filtered_4FGL_J1016.0+0512_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/950993/ft2_4FGL_J1016.0+0512_weekly_bin754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950993/Model_4FGL_J1016.0+0512_weekly_bin754.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/950993/ft1_filtered_4FGL_J1016.0+0512_weekly_bin754.fits.....................!
real 79.23
user 77.80
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950993/ft1_filtered_4FGL_J1016.0+0512_weekly_bin754.fits', '/scratch/kocevski/950993/ft2_4FGL_J1016.0+0512_weekly_bin754.fits', expMap='/scratch/kocevski/950993/expmap_695001601_695606401_4FGL_J1016.0+0512_weekly_bin754.fits', expCube='/scratch/kocevski/950993/ltcube_695001601_695606401_4FGL_J1016.0+0512_weekly_bin754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950993/Model_4FGL_J1016.0+0512_weekly_bin754.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1016.0+0512'

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  6.181e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/950993/ft1_filtered_4FGL_J1016.0+0512_weekly_bin754.fits
Spacecraft file(s): /scratch/kocevski/950993/ft2_4FGL_J1016.0+0512_weekly_bin754.fits
Exposure map: /scratch/kocevski/950993/expmap_695001601_695606401_4FGL_J1016.0+0512_weekly_bin754.fits
Exposure cube: /scratch/kocevski/950993/ltcube_695001601_695606401_4FGL_J1016.0+0512_weekly_bin754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950993/Model_4FGL_J1016.0+0512_weekly_bin754.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) = 8710.91781367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77418       1.0000          .0000       .10000E+07
     2 'norm      '    .19720       1.0000          .0000       .10000E+07
     3 'Prefactor '    .43848E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .39808E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .65795E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .33019E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    114.02       1.0000          .0000       .10000E+07
     8 'Prefactor '    .65772E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    11.627       1.0000          .0000       .10000E+07
    10 'norm      '    2.4337       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.5137       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.6632       1.0000          .0000       .10000E+07
    13 'Prefactor '    .31519E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .59888       1.0000          .0000       .10000E+07
    15 'Normalizat'    .77732       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1448       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8710.885     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1146 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77398        1.6390       -.91395E-06    .28715E-02
   2  norm          .19758        .45970        .98364E-07** at limit **
   3  Prefactor      .0000        9.9709        .18985E-07** at limit **
   4  Prefactor     .55511E-10    18.054        .18541E-05** at limit **
   5  Prefactor     .55511E-10    10.596       -.16981E-05** at limit **
   6  Prefactor      .0000        7.0183       -.36920E-06** at limit **
   7  Prefactor     117.51        69.453       -.97205E-06    .81590E-04
   8  Prefactor      .0000        29.790        .34556E-05** at limit **
   9  Prefactor     11.463        12.321       -.50114E-06    .35261E-03
  10  norm          2.4313        1.2277        .17780E-06   -.50708E-02
  11  Prefactor     6.5220        5.6899       -.29698E-06   -.10803E-02
  12  Prefactor     2.6632        2.2942       -.14350E-06    .13239E-02
  13  Prefactor      .0000        3.4214       -.55627E-06** at limit **
  14  norm          .59997        .37548        .54331E-07    .12792E-02
  15  Normalizat    .77518        .19577        .57420E-05    .42312E-04
  16  Prefactor     1.1455        .15503       -.81653E-05    .60467E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.77398
  norm       = 0.197585
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 117.511
  Prefactor  = 0
  Prefactor  = 11.4631
  norm       = 2.43133
  Prefactor  = 6.52202
  Prefactor  = 2.66318
  Prefactor  = 0
  norm       = 0.599969
  Normalizat = 0.775184
  Prefactor  = 1.14547
 **********
 **   18 **HESSE 
 **********

 FCN=   8710.885     FROM HESSE     STATUS=OK           235 CALLS     1381 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77398        1.6467        .54880E-03   -1.5690    
   2  norm          .19758        .46213        .11826E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        9.9140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    18.038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    10.575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        6.9802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     117.51        69.018        .93655E-04   -1.5491    
   8  Prefactor      .0000        29.441        .14960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.463        12.324        .29355E-03   -1.5640    
  10  norm          2.4313        1.2366        .65566E-03   -1.5677    
  11  Prefactor     6.5220        5.6968        .39299E-03   -1.5657    
  12  Prefactor     2.6632        2.2974        .62430E-03   -1.5675    
  13  Prefactor      .0000        3.4191        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .59997        .38172        .69328E-03   -1.5692    
  15  Normalizat    .77518        .17074        .70191E-01   -1.0100    
  16  Prefactor     1.1455        .13360        .36088E-01   -.88026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04047e-08
Minuit parameter uncertainties:
  1  1.64674
  2  0.462126
  3  3.40577e-07
  4  6.65434e-05
  5  3.78318e-05
  6  7.85575e-06
  7  69.0184
  8  3.81304e-05
  9  12.3242
  10  1.23663
  11  5.69676
  12  2.29741
  13  1.12996e-05
  14  0.381718
  15  0.170856
  16  0.133638
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  0.000e+00  7.856e-06  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.145e+00  1.336e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  7.752e-01  1.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 6.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950993/likelihoodResults_695001601_695606401_4FGL_J1016.0+0512_weekly_bin754.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) = 8710.9570431
delta logL = -0.0717106391312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8710.88533951
delta logL = -7.04533340468e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8710.885     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      228 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    .20342E-01    .42118E-03** at limit **
   2  Index         2.4395        6.9775        .50000        .90949E-10
   3  Normalizat    .77518        .24281E-03    .70190E-01   -.18126E-03
   4  Prefactor     1.1455        .19847E-03    .36059E-01   -.42329E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Index      = 2.43945
  Normalizat = 0.775184
  Prefactor  = 1.14547
 **********
 **   18 **HESSE 
 **********

 FCN=   8710.885     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      259 TOTAL
                     EDM=   .87E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    .13804        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4395        6.9586        .50000       -.53764    
   3  Normalizat    .77518        .63017E-03    .31061E-03   -1.0100    
   4  Prefactor     1.1455        .51602E-03    .21180E-03   -.88026    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.74733e-13
Minuit parameter uncertainties:
  1  1.19441e-05
  2  5786.89
  3  0.000630172
  4  0.000516024
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950993': 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) = 8710.88533246
delta logL = -7.63975549489e-11

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.776e-10  1.194e-05  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.439e+00  5.787e+03  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.145e+00  5.160e-04  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  7.752e-01  6.302e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 154.009 5.209

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/950993/cmap_HighResolution_695001601_695606401_4FGL_J1016.0+0512_weekly_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2023-01-17 01:08:31.560158', job_id='950993', GAL2='1.15', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1673946511.56', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='-7.64e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='754' AND source_name='4FGL J1016.0+0512' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 17 01:08:31 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 950993: <4FGL_J1016.0+0512_weekly_bin754> in cluster <slac> Done

Job <4FGL_J1016.0+0512_weekly_bin754> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jan 17 00:55:23 2023
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 17 00:55:35 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 17 00:55:35 2023
Terminated at Tue Jan 17 01:08:32 2023
Results reported at Tue Jan 17 01:08:32 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1016.0+0512_weekly_bin754 154.009 5.2089 695001601 695606401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1016.0+0512 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   586.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            789 sec.

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

