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


Performing analysis on: 4FGL_J2317.7+2839_weekly_bin750
RA = 349.438, Dec = 28.6589
tmin = 692582401, tmax = 693187201
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='98984', job_status='RUN', time_executed='2022-12-20 06:21:04.426311', time_epoch_executed='1671546064.43' WHERE source_name='4FGL J2317.7+2839' and cadence='weekly' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/98984

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/98984/ft1_4FGL_J2317.7+2839_weekly_bin750.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/98984/ft2_4FGL_J2317.7+2839_weekly_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/98984/ft1_4FGL_J2317.7+2839_weekly_bin750.fits outfile=/scratch/kocevski/98984/ft1_filteredMKT_4FGL_J2317.7+2839_weekly_bin750.fits ra=349.438 dec=28.6589 rad=12.0 tmin=692582401.0 tmax=693187201.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.79
user 7.48
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/98984/ft2_4FGL_J2317.7+2839_weekly_bin750.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/98984/ft2_4FGL_J2317.7+2839_weekly_bin750.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/98984/ft1_filteredMKT_4FGL_J2317.7+2839_weekly_bin750.fits evtable="EVENTS" outfile="/scratch/kocevski/98984/ft1_filtered_4FGL_J2317.7+2839_weekly_bin750.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.57
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 2073

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/98984/ft1_filtered_4FGL_J2317.7+2839_weekly_bin750.fits" evtable="EVENTS" scfile=/scratch/kocevski/98984/ft2_4FGL_J2317.7+2839_weekly_bin750.fits sctable="SC_DATA" outfile=/scratch/kocevski/98984/ltcube_692582401_693187201_4FGL_J2317.7+2839_weekly_bin750.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/98984/ft2_4FGL_J2317.7+2839_weekly_bin750.fits
.....................!
real 26.08
user 25.67
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/98984/ft1_filtered_4FGL_J2317.7+2839_weekly_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/98984/ft2_4FGL_J2317.7+2839_weekly_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/98984/ltcube_692582401_693187201_4FGL_J2317.7+2839_weekly_bin750.fits outfile=/scratch/kocevski/98984/expmap_692582401_693187201_4FGL_J2317.7+2839_weekly_bin750.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/98984/ltcube_692582401_693187201_4FGL_J2317.7+2839_weekly_bin750.fits
.....................!
real 191.04
user 184.64
sys 6.09

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

Setting source of interest to:
4FGL J2317.7+2839 @ 349.438 28.6589

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/98984/ft1_filtered_4FGL_J2317.7+2839_weekly_bin750.fits scfile=/scratch/kocevski/98984/ft2_4FGL_J2317.7+2839_weekly_bin750.fits outfile=/scratch/kocevski/98984/cmap_692582401_693187201_4FGL_J2317.7+2839_weekly_bin750.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=349.438 yref=28.6589 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.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/98984/ft1_filtered_4FGL_J2317.7+2839_weekly_bin750.fits scfile=/scratch/kocevski/98984/ft2_4FGL_J2317.7+2839_weekly_bin750.fits outfile=/scratch/kocevski/98984/cmap_HighResolution_692582401_693187201_4FGL_J2317.7+2839_weekly_bin750.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=349.438 yref=28.6589 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.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/98984/ft1_filtered_4FGL_J2317.7+2839_weekly_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/98984/ft2_4FGL_J2317.7+2839_weekly_bin750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/98984/Model_4FGL_J2317.7+2839_weekly_bin750.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/98984/ft1_filtered_4FGL_J2317.7+2839_weekly_bin750.fits.....................!
real 216.80
user 215.11
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/98984/ft1_filtered_4FGL_J2317.7+2839_weekly_bin750.fits', '/scratch/kocevski/98984/ft2_4FGL_J2317.7+2839_weekly_bin750.fits', expMap='/scratch/kocevski/98984/expmap_692582401_693187201_4FGL_J2317.7+2839_weekly_bin750.fits', expCube='/scratch/kocevski/98984/ltcube_692582401_693187201_4FGL_J2317.7+2839_weekly_bin750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/98984/Model_4FGL_J2317.7+2839_weekly_bin750.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2317.7+2839'

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  2.207e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
413        Index:  2.003e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/98984/ft1_filtered_4FGL_J2317.7+2839_weekly_bin750.fits
Spacecraft file(s): /scratch/kocevski/98984/ft2_4FGL_J2317.7+2839_weekly_bin750.fits
Exposure map: /scratch/kocevski/98984/expmap_692582401_693187201_4FGL_J2317.7+2839_weekly_bin750.fits
Exposure cube: /scratch/kocevski/98984/ltcube_692582401_693187201_4FGL_J2317.7+2839_weekly_bin750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/98984/Model_4FGL_J2317.7+2839_weekly_bin750.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) = 21866.8326296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3458       1.0000          .0000       .10000E+07
     2 'norm      '    2.0472       1.0000          .0000       .10000E+07
     3 'Prefactor '    .26484E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    9.7090       1.0000          .0000       .10000E+07
     5 'Prefactor '    13.237       1.0000          .0000       .10000E+07
     6 'norm      '    1.2071       1.0000          .0000       .10000E+07
     7 'Prefactor '    26.054       1.0000          .0000       .10000E+07
     8 'Prefactor '    .10497E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    87.934       1.0000          .0000       .10000E+07
    10 'Prefactor '    .38358E-07   1.0000          .0000       .10000E+07
    11 'norm      '    .58043       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10552E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .67724E-08   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.1682       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.3163       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.1653       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0125       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   21866.65     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      777 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3454        .59960       -.68559E-08    .43887E-03
   2  norm          2.0470        .96022        .42871E-07   -.75961E-03
   3  Prefactor      .0000        7.5841       -.17586E-06** at limit **
   4  Prefactor     9.7349        7.7520       -.57711E-08   -.10710E-02
   5  Prefactor     13.243        1.6950       -.85462E-09   -.57135E-01
   6  norm          1.2062        .67485       -.81121E-08    .15084E-03
   7  Prefactor     26.016        2.7863        .76034E-08   -.38758E-01
   8  Prefactor      .0000        1.5462       -.13757E-07** at limit **
   9  Prefactor     87.815        8.1828        .18636E-09    .67075E-01
  10  Prefactor      .0000        7.0341       -.35135E-06** at limit **
  11  norm          .58150        1.9031       -.14181E-07   -.20313E-03
  12  Prefactor      .0000        9.5131        .20537E-06** at limit **
  13  norm           .0000        .99051        .10135E-07** at limit **
  14  Prefactor     2.9549        8.5074        .11068E-06   -.23082E-02
  15  Prefactor     3.2165        34.105        .27037E-07   -.20216E-02
  16  Normalizat    1.1659        .15611        .13767E-05   -.35989E-04
  17  Prefactor     1.0124        .78731E-01    .22357E-06   -.54462E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.34543
  norm       = 2.04703
  Prefactor  = 0
  Prefactor  = 9.73486
  Prefactor  = 13.2429
  norm       = 1.20624
  Prefactor  = 26.0162
  Prefactor  = 0
  Prefactor  = 87.8147
  Prefactor  = 0
  norm       = 0.581503
  Prefactor  = 0
  norm       = 0
  Prefactor  = 2.95486
  Prefactor  = 3.21646
  Normalizat = 1.16592
  Prefactor  = 1.01244
 **********
 **   18 **HESSE 
 **********

 FCN=   21866.65     FROM HESSE     STATUS=OK           263 CALLS     1040 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3454        .60543        .94357E-03   -1.5685    
   2  norm          2.0470        .96145        .72229E-03   -1.5679    
   3  Prefactor      .0000        7.5877        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7349        7.7515        .32136E-03   -1.5646    
   5  Prefactor     13.243        9.2851        .27506E-03   -1.5635    
   6  norm          1.2062        .68535        .10306E-02   -1.5686    
   7  Prefactor     26.016        17.637        .19595E-03   -1.5606    
   8  Prefactor      .0000        1.5482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     87.815        25.922        .10665E-03   -1.5521    
  10  Prefactor      .0000        6.9590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .58150        1.9150        .71000E-03   -1.5693    
  12  Prefactor      .0000        9.5208        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .96345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9549        8.6117        .56913E-03   -1.5674    
  15  Prefactor     3.2165        38.395        .55563E-03   -1.5672    
  16  Normalizat    1.1659        .13463        .77069E-01   -.87663    
  17  Prefactor     1.0124        .67277E-01    .42984E-01   -.92316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48925e-06
Minuit parameter uncertainties:
  1  0.605432
  2  0.961446
  3  2.2806e-05
  4  7.7515
  5  9.28513
  6  0.685346
  7  17.6373
  8  1.99047e-06
  9  25.922
  10  2.59221e-05
  11  1.91503
  12  2.87771e-06
  13  1.42345e-06
  14  8.61178
  15  22.2259
  16  0.134666
  17  0.0672823
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  8.781e+01  2.592e+01  0.000e+00  1.000e+06 ( 1.000e-14)
413        Index:  2.003e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.012e+00  6.728e-02  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  1.166e+00  1.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.35
Ra Dec: 349.438 28.659
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 3.32e-08
Energy Flux (Fixed Index): 7.71e-05 +/- 2.28e-05

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) = 21859.6201629
delta logL = 7.03298581297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 21859.5565796
delta logL = 7.0965691875

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   21859.56     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      267 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.748        43.159        .24447E-03    .28609E-01
   2  Index         2.8145        .82556        .50498E-01    .94855E-03
   3  Normalizat    1.0425        .66720E-01    .80685E-01   -.12552E-02
   4  Prefactor     1.0488        .31310E-01    .39981E-01   -.26922E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7478
  Index      = 2.81447
  Normalizat = 1.04254
  Prefactor  = 1.04879
 **********
 **   18 **HESSE 
 **********

 FCN=   21859.56     FROM HESSE     STATUS=OK            29 CALLS      296 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.748        24.174        .97786E-05   -1.5626    
   2  Index         2.8145        .49896        .21122E-02   -.45238    
   3  Normalizat    1.0425        .16016        .35717E-03   -.91619    
   4  Prefactor     1.0488        .81595E-01    .18488E-03   -.91120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8363e-08
Minuit parameter uncertainties:
  1  24.1737
  2  0.499989
  3  0.160231
  4  0.081605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/98984': 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) = 21859.5565796
delta logL = 7.09656919182

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.675e+01  2.417e+01  0.000e+00  1.000e+06 ( 1.000e-14)
413        Index:  2.814e+00  5.000e-01  0.000e+00  1.000e+01 (-1.000e+00)
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.049e+00  8.161e-02  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  1.043e+00  1.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.34
Ra Dec: 349.438 28.659
Photon Index (Free Index): 2.81 +/- 0.50
Photon Flux (Free Index): 2.16e-07 +/- 4.98e-08
Energy Flux (Free Index): 4.79e-05 +/- 1.55e-05

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/98984/cmap_HighResolution_692582401_693187201_4FGL_J2317.7+2839_weekly_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='4.79e-05', photon_flux_error='3.32e-08', dlogl='7.10e+00', energy_flux='7.71e-05', photon_flux2='2.16e-07', job_status='DONE', time_completed='2022-12-20 06:36:18.095675', photon_index_error2='0.50', photon_index2='2.81', ts='18.35', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='1.17', time_epoch_completed='1671546978.1', return_code='0', job_id='98984', GAL2='1.05', EG2='1.04', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='4.98e-08', ts2='33.34', photon_index='2.00' WHERE bin_id='750' AND source_name='4FGL J2317.7+2839' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 20 06:36:18 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 98984: <4FGL_J2317.7+2839_weekly_bin750> in cluster <slac> Done

Job <4FGL_J2317.7+2839_weekly_bin750> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec 20 06:20:27 2022
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 06:20:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 06:20:28 2022
Terminated at Tue Dec 20 06:36:18 2022
Results reported at Tue Dec 20 06:36:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_weekly_bin750 349.438 28.6589 692582401 693187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2317.7+2839 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   913.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             395.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            951 sec.

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

