/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 114 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 = 7446
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1041
RA = 349.438, Dec = 28.6589
tmin = 509155201, tmax = 509414401
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='740352', job_status='RUN', time_executed='2021-09-29 10:57:31.731125', time_epoch_executed='1632938251.73' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1041'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740352

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740352/ft1_4FGL_J2317.7+2839_daily_bin1041.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740352/ft2_4FGL_J2317.7+2839_daily_bin1041.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740352/ft1_4FGL_J2317.7+2839_daily_bin1041.fits outfile=/scratch/kocevski/740352/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1041.fits ra=349.438 dec=28.6589 rad=12.0 tmin=509155201.0 tmax=509414401.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.72
user 3.43
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740352/ft1_filtered_4FGL_J2317.7+2839_daily_bin1041.fits" evtable="EVENTS" scfile=/scratch/kocevski/740352/ft2_4FGL_J2317.7+2839_daily_bin1041.fits sctable="SC_DATA" outfile=/scratch/kocevski/740352/ltcube_509155201_509414401_4FGL_J2317.7+2839_daily_bin1041.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/740352/ft2_4FGL_J2317.7+2839_daily_bin1041.fits
.....................!
real 11.93
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740352/ft1_filtered_4FGL_J2317.7+2839_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/740352/ft2_4FGL_J2317.7+2839_daily_bin1041.fits sctable="SC_DATA" expcube=/scratch/kocevski/740352/ltcube_509155201_509414401_4FGL_J2317.7+2839_daily_bin1041.fits outfile=/scratch/kocevski/740352/expmap_509155201_509414401_4FGL_J2317.7+2839_daily_bin1041.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/740352/ltcube_509155201_509414401_4FGL_J2317.7+2839_daily_bin1041.fits
.....................!
real 191.46
user 186.47
sys 4.67

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/740352/ft1_filtered_4FGL_J2317.7+2839_daily_bin1041.fits scfile=/scratch/kocevski/740352/ft2_4FGL_J2317.7+2839_daily_bin1041.fits outfile=/scratch/kocevski/740352/cmap_509155201_509414401_4FGL_J2317.7+2839_daily_bin1041.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740352/ft1_filtered_4FGL_J2317.7+2839_daily_bin1041.fits scfile=/scratch/kocevski/740352/ft2_4FGL_J2317.7+2839_daily_bin1041.fits outfile=/scratch/kocevski/740352/cmap_HighResolution_509155201_509414401_4FGL_J2317.7+2839_daily_bin1041.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740352/ft1_filtered_4FGL_J2317.7+2839_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/740352/ft2_4FGL_J2317.7+2839_daily_bin1041.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740352/Model_4FGL_J2317.7+2839_daily_bin1041.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/740352/ft1_filtered_4FGL_J2317.7+2839_daily_bin1041.fits....................!
real 83.00
user 81.54
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/740352/ft1_filtered_4FGL_J2317.7+2839_daily_bin1041.fits', '/scratch/kocevski/740352/ft2_4FGL_J2317.7+2839_daily_bin1041.fits', expMap='/scratch/kocevski/740352/expmap_509155201_509414401_4FGL_J2317.7+2839_daily_bin1041.fits', expCube='/scratch/kocevski/740352/ltcube_509155201_509414401_4FGL_J2317.7+2839_daily_bin1041.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/740352/Model_4FGL_J2317.7+2839_daily_bin1041.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  1.000e-04  1.000e+04 ( 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/740352/ft1_filtered_4FGL_J2317.7+2839_daily_bin1041.fits
Spacecraft file(s): /scratch/kocevski/740352/ft2_4FGL_J2317.7+2839_daily_bin1041.fits
Exposure map: /scratch/kocevski/740352/expmap_509155201_509414401_4FGL_J2317.7+2839_daily_bin1041.fits
Exposure cube: /scratch/kocevski/740352/ltcube_509155201_509414401_4FGL_J2317.7+2839_daily_bin1041.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/740352/Model_4FGL_J2317.7+2839_daily_bin1041.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) = 7588.18643334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4058       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .83361       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15627       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.2482       1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.762       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10695E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1734       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8522       1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.603       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.711       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .68038       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1718       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=   7588.172     FROM MIGRAD    STATUS=CONVERGED     96 CALLS     1737 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4056        1.1686        .21838E-06   -.96221E-04
   2  Prefactor     .10013E-03    6.5164        .51559E-05** at limit **
   3  norm          .83357        1.1417       -.74531E-06   -.12268E-03
   4  Prefactor     .10000E-03    3.5750       -.17645E-05** at limit **
   5  Prefactor     .10000E-03    7.6360        .54684E-05** at limit **
   6  Prefactor     .10973E-03    707.38        .79696E-04** at limit **
   7  Prefactor     .10026E-03    22.691       -.12950E-04** at limit **
   8  norm          2.2478        1.2964        .45669E-06    .19887E-03
   9  Prefactor     35.743        4.1275        .21936E-05   -.13092E-01
  10  Prefactor     .10033E-03    24.301        .16802E-06** at limit **
  11  Prefactor     3.1738        1.0621       -.31473E-06    .15249E-03
  12  Prefactor     1.8590        5.7162        .16830E-05    .85951E-03
  13  norm          .10000E-03    2.5627        .84588E-06** at limit **
  14  Prefactor     .10023E-03    8.1366       -.17536E-04** at limit **
  15  norm          .10000E-03    2.5563        .80439E-06** at limit **
  16  Prefactor     15.558        5.9788        .50103E-05   -.11009E-01
  17  Prefactor     .10001E-03    3.3772       -.26317E-05** at limit **
  18  Prefactor     51.711        2.0568       -.72104E-06    .77922E-02
  19  Normalizat    .68040        .23576       -.43283E-05   -.52637E-04
  20  Prefactor     1.1719        .12696       -.16399E-05   -.16022E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.40561
  Prefactor  = 0.000100133
  norm       = 0.833568
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000109732
  Prefactor  = 0.000100264
  norm       = 2.24785
  Prefactor  = 35.7426
  Prefactor  = 0.000100326
  Prefactor  = 3.17379
  Prefactor  = 1.85898
  norm       = 0.0001
  Prefactor  = 0.000100227
  norm       = 0.0001
  Prefactor  = 15.5583
  Prefactor  = 0.000100007
  Prefactor  = 51.7107
  Normalizat = 0.680401
  Prefactor  = 1.17194
 **********
 **   18 **HESSE 
 **********

 FCN=   7588.172     FROM HESSE     STATUS=OK           339 CALLS     2076 TOTAL
                     EDM=   .95E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4056        1.1712        .65991E-02   -1.5398    
   2  Prefactor     .10013E-03    9.1785        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .83357        1.1429        .12565E-02   -1.5525    
   4  Prefactor     .10000E-03    3.5777        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6424        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10973E-03    8.9512        .97762E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10026E-03    22.929        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2478        1.3040        .68513E-02   -1.5408    
   9  Prefactor     35.743        24.883        .16754E-02   -1.4512    
  10  Prefactor     .10033E-03    23.670        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.1738        14.227        .56874E-02   -1.5352    
  12  Prefactor     1.8590        6.0346        .76578E-02   -1.5435    
  13  norm          .10000E-03    2.5368        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10023E-03    8.9800        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.1912        .36073E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.558        22.907        .25349E-02   -1.4919    
  17  Prefactor     .10001E-03    9.1011        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     51.711        37.271        .13943E-02   -1.4269    
  19  Normalizat    .68040        .22322        .91089E-01   -1.0467    
  20  Prefactor     1.1719        .11527        .35336E-01   -.87199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.48617e-07
Minuit parameter uncertainties:
  1  1.17123
  2  0.0022135
  3  1.14295
  4  1.53126e-05
  5  0.000143989
  6  0.0186701
  7  0.00492028
  8  1.30405
  9  24.8907
  10  0.00555817
  11  13.4442
  12  6.03661
  13  7.55019e-06
  14  0.00285494
  15  5.06735e-06
  16  22.9201
  17  0.000501676
  18  37.2883
  19  0.223515
  20  0.115292
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  3.174e+00  1.344e+01  1.000e-04  1.000e+04 ( 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.172e+00  1.153e-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:  6.804e-01  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 349.438 28.659
Photon Flux Upper Limit: 6.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740352/likelihoodResults_509155201_509414401_4FGL_J2317.7+2839_daily_bin1041.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) = 7588.16875989
delta logL = 0.00338564368212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7588.16711557
delta logL = 0.00502995701936

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1710       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8496       1.0000          .0000       10.000    
     3 'Normalizat'    .68078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1719       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7588.167     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      263 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1834        23.802        .98672E-03   -.13872E-04
   2  Index         1.8460        1.5952        .14711E-01    .15374E-03
   3  Normalizat    .68114        .23307        .40333E-03    .80588E-04
   4  Prefactor     1.1717        .12699        .16997E-03    .32240E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.18341
  Index      = 1.84598
  Normalizat = 0.681143
  Prefactor  = 1.17166
 **********
 **   18 **HESSE 
 **********

 FCN=   7588.167     FROM HESSE     STATUS=OK            27 CALLS      290 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1834        20.331        .39469E-04   -1.5299    
   2  Index         1.8460        1.4832        .29423E-02   -.68259    
   3  Normalizat    .68114        .23315        .16133E-04   -1.0464    
   4  Prefactor     1.1717        .12704        .67987E-05   -.87208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81838e-11
Minuit parameter uncertainties:
  1  18.4548
  2  1.52198
  3  0.233492
  4  0.127073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740352': 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) = 7588.1671114
delta logL = 0.00503413586011

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  4.183e+00  1.845e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.846e+00  1.522e+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.172e+00  1.271e-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:  6.811e-01  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 349.438 28.659

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/740352/cmap_HighResolution_509155201_509414401_4FGL_J2317.7+2839_daily_bin1041.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='6.18e-08', time_completed='2021-09-29 11:09:08.926936', job_id='740352', GAL2='1.17', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632938948.93', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='5.03e-03', ts2='0.08', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1041' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:09:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 740352: <4FGL_J2317.7+2839_daily_bin1041> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1041> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 10:55:25 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:55:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 10:55:27 2021
Terminated at Wed Sep 29 11:09:09 2021
Results reported at Wed Sep 29 11:09:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1041 349.438 28.6589 509155201 509414401 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 :                                   656.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

