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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1767
RA = 349.438, Dec = 28.6589
tmin = 697334401, tmax = 697593601
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='91530', job_status='RUN', time_executed='2023-02-09 02:05:20.632105', time_epoch_executed='1675937120.63' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/91530

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/91530/ft1_4FGL_J2317.7+2839_daily_bin1767.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/91530/ft2_4FGL_J2317.7+2839_daily_bin1767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/91530/ft1_4FGL_J2317.7+2839_daily_bin1767.fits outfile=/scratch/kocevski/91530/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1767.fits ra=349.438 dec=28.6589 rad=12.0 tmin=697334401.0 tmax=697593601.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 3.59
user 3.35
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/91530/ft2_4FGL_J2317.7+2839_daily_bin1767.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/91530/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1767.fits evtable="EVENTS" outfile="/scratch/kocevski/91530/ft1_filtered_4FGL_J2317.7+2839_daily_bin1767.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 824

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/91530/ft1_filtered_4FGL_J2317.7+2839_daily_bin1767.fits" evtable="EVENTS" scfile=/scratch/kocevski/91530/ft2_4FGL_J2317.7+2839_daily_bin1767.fits sctable="SC_DATA" outfile=/scratch/kocevski/91530/ltcube_697334401_697593601_4FGL_J2317.7+2839_daily_bin1767.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/91530/ft2_4FGL_J2317.7+2839_daily_bin1767.fits
.....................!
real 13.93
user 13.52
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/91530/ft1_filtered_4FGL_J2317.7+2839_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/91530/ft2_4FGL_J2317.7+2839_daily_bin1767.fits sctable="SC_DATA" expcube=/scratch/kocevski/91530/ltcube_697334401_697593601_4FGL_J2317.7+2839_daily_bin1767.fits outfile=/scratch/kocevski/91530/expmap_697334401_697593601_4FGL_J2317.7+2839_daily_bin1767.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/91530/ltcube_697334401_697593601_4FGL_J2317.7+2839_daily_bin1767.fits
.....................!
real 192.57
user 186.81
sys 5.26

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/91530/ft1_filtered_4FGL_J2317.7+2839_daily_bin1767.fits scfile=/scratch/kocevski/91530/ft2_4FGL_J2317.7+2839_daily_bin1767.fits outfile=/scratch/kocevski/91530/cmap_697334401_697593601_4FGL_J2317.7+2839_daily_bin1767.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.55
user 0.35
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/91530/ft1_filtered_4FGL_J2317.7+2839_daily_bin1767.fits scfile=/scratch/kocevski/91530/ft2_4FGL_J2317.7+2839_daily_bin1767.fits outfile=/scratch/kocevski/91530/cmap_HighResolution_697334401_697593601_4FGL_J2317.7+2839_daily_bin1767.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/91530/ft1_filtered_4FGL_J2317.7+2839_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/91530/ft2_4FGL_J2317.7+2839_daily_bin1767.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/91530/Model_4FGL_J2317.7+2839_daily_bin1767.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/91530/ft1_filtered_4FGL_J2317.7+2839_daily_bin1767.fits.....................!
real 97.79
user 96.23
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/91530/ft1_filtered_4FGL_J2317.7+2839_daily_bin1767.fits', '/scratch/kocevski/91530/ft2_4FGL_J2317.7+2839_daily_bin1767.fits', expMap='/scratch/kocevski/91530/expmap_697334401_697593601_4FGL_J2317.7+2839_daily_bin1767.fits', expCube='/scratch/kocevski/91530/ltcube_697334401_697593601_4FGL_J2317.7+2839_daily_bin1767.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/91530/Model_4FGL_J2317.7+2839_daily_bin1767.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/91530/ft1_filtered_4FGL_J2317.7+2839_daily_bin1767.fits
Spacecraft file(s): /scratch/kocevski/91530/ft2_4FGL_J2317.7+2839_daily_bin1767.fits
Exposure map: /scratch/kocevski/91530/expmap_697334401_697593601_4FGL_J2317.7+2839_daily_bin1767.fits
Exposure cube: /scratch/kocevski/91530/ltcube_697334401_697593601_4FGL_J2317.7+2839_daily_bin1767.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/91530/Model_4FGL_J2317.7+2839_daily_bin1767.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) = 8745.27943529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3368       1.0000          .0000       .10000E+07
     2 'norm      '    1.0476       1.0000          .0000       .10000E+07
     3 'Prefactor '    .75838E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .17397E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .23630E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .62728E-08   1.0000          .0000       .10000E+07
     7 'Prefactor '    .33070E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.7585       1.0000          .0000       .10000E+07
     9 'Prefactor '    27.237       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.4156       1.0000          .0000       .10000E+07
    11 'norm      '    .62172E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    13.795       1.0000          .0000       .10000E+07
    13 'norm      '    1.2134       1.0000          .0000       .10000E+07
    14 'Prefactor '    .13462E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.5844       1.0000          .0000       .10000E+07
    16 'Normalizat'    .78128       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1668       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=   8745.261     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      984 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3309        1.3900       -.12641E-07   -.19432E-02
   2  norm          1.0468        1.0124       -.42005E-07   -.75690E-02
   3  Prefactor     .55511E-10    12.300        .42786E-06** at limit **
   4  Prefactor     .55511E-10    5.2921        .93164E-07** at limit **
   5  Prefactor     .16653E-09    8.8386       -.63433E-07** at limit **
   6  norm           .0000        .55202       -.42045E-07** at limit **
   7  Prefactor     .55511E-10    6.1617       -.15005E-06** at limit **
   8  Prefactor     2.7012        7.8528       -.40363E-08   -.35207E-03
   9  Prefactor     25.939        25.651       -.48077E-06    .17004E-02
  10  Prefactor     3.3499        4.8823       -.23091E-07    .14707E-04
  11  norm           .0000        1.0479       -.23391E-08** at limit **
  12  Prefactor     13.806        2.6567        .53972E-07    .74292E-02
  13  norm          1.2123        1.5927       -.39232E-07   -.20578E-02
  14  Prefactor      .0000        10.087       -.29831E-06** at limit **
  15  Prefactor     .22204E-09    583.59       -.16039E-04** at limit **
  16  Normalizat    .78476        .22671       -.48608E-05    .22976E-03
  17  Prefactor     1.1665        .12092        .12447E-05    .37155E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.33093
  norm       = 1.04678
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 1.66533e-10
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 2.70124
  Prefactor  = 25.9392
  Prefactor  = 3.34989
  norm       = 0
  Prefactor  = 13.8063
  norm       = 1.21231
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  Normalizat = 0.784763
  Prefactor  = 1.16648
 **********
 **   18 **HESSE 
 **********

 FCN=   8745.261     FROM HESSE     STATUS=OK           263 CALLS     1247 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3309        1.3950        .48346E-03   -1.5666    
   2  norm          1.0468        1.0223        .12128E-02   -1.5688    
   3  Prefactor     .55511E-10    12.315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    5.3012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16653E-09    8.8671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .54271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-10    6.2077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.7012        7.9231        .61260E-03   -1.5675    
   9  Prefactor     25.939        25.768        .19165E-03   -1.5606    
  10  Prefactor     3.3499        4.9290        .54711E-03   -1.5671    
  11  norm           .0000        1.0480        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.806        14.017        .26942E-03   -1.5634    
  13  norm          1.2123        1.6326        .10258E-02   -1.5686    
  14  Prefactor      .0000        10.132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .22204E-09    33.851        .12926E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .78476        .20948        .87711E-01   -1.0064    
  17  Prefactor     1.1665        .10756        .35467E-01   -.87369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31865e-07
Minuit parameter uncertainties:
  1  1.39495
  2  1.02229
  3  4.10951e-05
  4  2.45796e-05
  5  7.84465e-05
  6  1.29536e-06
  7  3.24993e-05
  8  7.92311
  9  25.7679
  10  4.92897
  11  3.24336e-08
  12  14.0174
  13  1.63265
  14  2.2134e-05
  15  0.000171307
  16  0.209694
  17  0.107576
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  2.594e+01  2.577e+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.166e+00  1.076e-01  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:  7.848e-01  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.66
Ra Dec: 349.438 28.659
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.32e-08 +/- 3.30e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 2.26e-05

TS (Fixed Index): 1.66
Ra Dec: 349.438 28.659
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/91530/likelihoodResults_697334401_697593601_4FGL_J2317.7+2839_daily_bin1767.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) = 8744.28857117
delta logL = 0.972911038432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8744.25809044
delta logL = 1.00339176652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3373       1.0000          .0000       .10000E+07
     2 'Index     '    2.9721       1.0000          .0000       10.000    
     3 'Normalizat'    .71494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1859       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=   8744.258     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      266 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3090        39.790        .48343E-03    .54336E-02
   2  Index         2.9742        1.6082        .88628E-01    .29756E-03
   3  Normalizat    .71502        .66448E-01    .91431E-01    .43197E-04
   4  Prefactor     1.1859        .33378E-01    .34972E-01    .69037E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.30904
  Index      = 2.97415
  Normalizat = 0.715022
  Prefactor  = 1.18591
 **********
 **   18 **HESSE 
 **********

 FCN=   8744.258     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      299 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3090        74.908        .11062E-04   -1.5666    
   2  Index         2.9742        2.6866        .31464E-02   -.41716    
   3  Normalizat    .71502        .23698        .40504E-03   -1.0330    
   4  Prefactor     1.1859        .12161        .17126E-03   -.86766    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.59664e-10
Minuit parameter uncertainties:
  1  35.9327
  2  2.87186
  3  0.237315
  4  0.121635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/91530': 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) = 8744.25808623
delta logL = 1.00339598456

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  4.309e+00  3.593e+01  0.000e+00  1.000e+06 ( 1.000e-14)
413        Index:  2.974e+00  2.872e+00  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.186e+00  1.216e-01  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:  7.150e-01  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.81
Ra Dec: 349.438 28.659
Photon Index (Free Index): 2.97 +/- 2.87
Photon Flux (Free Index): 9.03e-08 +/- 6.97e-08
Energy Flux (Free Index): 1.83e-05 +/- 2.09e-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/91530/cmap_HighResolution_697334401_697593601_4FGL_J2317.7+2839_daily_bin1767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.95e-03', comment='SUCCESS', photon_flux='3.32e-08', energy_flux2='1.83e-05', photon_flux_error='3.30e-08', dlogl='1.00e+00', energy_flux='2.28e-05', photon_flux2='9.03e-08', job_status='DONE', time_completed='2023-02-09 02:15:21.480837', photon_index_error2='2.87', photon_index2='2.97', ts='1.66', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='2.09e-05', EG='0.78', time_epoch_completed='1675937721.48', return_code='0', job_id='91530', GAL2='1.19', EG2='0.72', return_code2='102', energy_flux_error='2.26e-05', photon_flux_error2='6.97e-08', ts2='3.81', photon_index='2.00' WHERE bin_id='1767' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb  9 02:15:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 91530: <4FGL_J2317.7+2839_daily_bin1767> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1767> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Feb  9 02:00:31 2023
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb  9 02:02:06 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb  9 02:02:06 2023
Terminated at Thu Feb  9 02:15:22 2023
Results reported at Thu Feb  9 02:15:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1767 349.438 28.6589 697334401 697593601 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 :                                   602.59 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            891 sec.

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

