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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1125
RA = 349.438, Dec = 28.6589
tmin = 530928001, tmax = 531187201
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='740478', job_status='RUN', time_executed='2021-09-29 10:57:40.273947', time_epoch_executed='1632938260.27' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1125'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740478

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740478/ft1_4FGL_J2317.7+2839_daily_bin1125.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740478/ft2_4FGL_J2317.7+2839_daily_bin1125.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740478/ft1_4FGL_J2317.7+2839_daily_bin1125.fits outfile=/scratch/kocevski/740478/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1125.fits ra=349.438 dec=28.6589 rad=12.0 tmin=530928001.0 tmax=531187201.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.66
user 3.41
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740478/ft2_4FGL_J2317.7+2839_daily_bin1125.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/740478/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1125.fits evtable="EVENTS" outfile="/scratch/kocevski/740478/ft1_filtered_4FGL_J2317.7+2839_daily_bin1125.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/740478/ft1_filtered_4FGL_J2317.7+2839_daily_bin1125.fits" evtable="EVENTS" scfile=/scratch/kocevski/740478/ft2_4FGL_J2317.7+2839_daily_bin1125.fits sctable="SC_DATA" outfile=/scratch/kocevski/740478/ltcube_530928001_531187201_4FGL_J2317.7+2839_daily_bin1125.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/740478/ft2_4FGL_J2317.7+2839_daily_bin1125.fits
.....................!
real 11.94
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740478/ft1_filtered_4FGL_J2317.7+2839_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/740478/ft2_4FGL_J2317.7+2839_daily_bin1125.fits sctable="SC_DATA" expcube=/scratch/kocevski/740478/ltcube_530928001_531187201_4FGL_J2317.7+2839_daily_bin1125.fits outfile=/scratch/kocevski/740478/expmap_530928001_531187201_4FGL_J2317.7+2839_daily_bin1125.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/740478/ltcube_530928001_531187201_4FGL_J2317.7+2839_daily_bin1125.fits
.....................!
real 190.36
user 184.96
sys 5.03

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/740478/ft1_filtered_4FGL_J2317.7+2839_daily_bin1125.fits scfile=/scratch/kocevski/740478/ft2_4FGL_J2317.7+2839_daily_bin1125.fits outfile=/scratch/kocevski/740478/cmap_530928001_531187201_4FGL_J2317.7+2839_daily_bin1125.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740478/ft1_filtered_4FGL_J2317.7+2839_daily_bin1125.fits scfile=/scratch/kocevski/740478/ft2_4FGL_J2317.7+2839_daily_bin1125.fits outfile=/scratch/kocevski/740478/cmap_HighResolution_530928001_531187201_4FGL_J2317.7+2839_daily_bin1125.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740478/ft1_filtered_4FGL_J2317.7+2839_daily_bin1125.fits evtable="EVENTS" scfile=/scratch/kocevski/740478/ft2_4FGL_J2317.7+2839_daily_bin1125.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740478/Model_4FGL_J2317.7+2839_daily_bin1125.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/740478/ft1_filtered_4FGL_J2317.7+2839_daily_bin1125.fits.....................!
real 91.10
user 89.14
sys 1.74

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15087       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.929       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.118       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.662       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9883       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.163       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.987       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0043       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96251       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8276.582     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1737 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14951        .60921       -.91127E-06    .71427E-03
   2  Prefactor     17.933        18.382        .45129E-05    .26220E-03
   3  norm          .10000E-03    .72837       -.28049E-07** at limit **
   4  Prefactor     .10000E-03    4.1100        .74176E-07** at limit **
   5  Prefactor     18.117        18.021       -.14021E-05    .21142E-06
   6  Prefactor     11.661        7.8827        .40060E-08    .36306E-04
   7  Prefactor     .10000E-03    10.237       -.62622E-05** at limit **
   8  norm          1.9883        1.1456       -.66270E-08   -.57790E-04
   9  Prefactor     .10000E-03    5.1697       -.63761E-06** at limit **
  10  Prefactor     23.162        13.283       -.13762E-06    .12794E-04
  11  Prefactor     28.987        21.828        .29359E-06    .30759E-04
  12  Prefactor     .10000E-03    1.5127        .12899E-07** at limit **
  13  norm          .10000E-03    1.1857        .23802E-07** at limit **
  14  Prefactor     .10000E-03    17.398       -.45551E-05** at limit **
  15  norm          .10000E-03    1.0918        .18444E-08** at limit **
  16  Prefactor     .10000E-03    7.1368        .22143E-06** at limit **
  17  Prefactor     .10000E-03    6.9560        .17893E-05** at limit **
  18  Prefactor     .10000E-03    13.453        .89352E-05** at limit **
  19  Normalizat    1.0042        .19020       -.41476E-07    .20676E-03
  20  Prefactor     .96255        .99230E-01    .99989E-07    .36926E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.149514
  Prefactor  = 17.9333
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1167
  Prefactor  = 11.6613
  Prefactor  = 0.0001
  norm       = 1.98828
  Prefactor  = 0.0001
  Prefactor  = 23.1622
  Prefactor  = 28.9868
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00421
  Prefactor  = 0.962549
 **********
 **   18 **HESSE 
 **********

 FCN=   8276.582     FROM HESSE     STATUS=OK           287 CALLS     2024 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14951        2.3235        .12449E-02   -1.5631    
   2  Prefactor     17.933        19.329        .94588E-04   -1.4861    
   3  norm          .10000E-03    .74496        .75817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1270        .18012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.117        18.061        .94095E-04   -1.4856    
   6  Prefactor     11.661        7.8834        .11731E-03   -1.5025    
   7  Prefactor     .10000E-03    10.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9883        1.1420        .71220E-04   -1.5426    
   9  Prefactor     .10000E-03    5.1762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.162        13.277        .83228E-04   -1.4745    
  11  Prefactor     28.987        21.832        .74414E-04   -1.4631    
  12  Prefactor     .10000E-03    1.5167        .10927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1891        .96733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.1106        .92766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.9718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0042        .22161        .33310E-03   -.92890    
  20  Prefactor     .96255        .11642        .17709E-03   -.93988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20514e-10
Minuit parameter uncertainties:
  1  1.17847
  2  19.3354
  3  5.37348e-09
  4  3.55729e-08
  5  18.0662
  6  7.88406
  7  3.97061e-06
  8  1.14197
  9  3.70498e-07
  10  13.2788
  11  21.8381
  12  1.14427e-07
  13  5.96763e-07
  14  3.34982e-05
  15  3.15816e-07
  16  5.48443e-07
  17  1.85316e-06
  18  5.2046e-06
  19  0.221816
  20  0.116455
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  2.899e+01  2.184e+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:  9.625e-01  1.165e-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:  1.004e+00  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.58
Ra Dec: 349.438 28.659
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.71e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 1.92e-05

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

Saving results to:
/scratch/kocevski/740478/likelihoodResults_530928001_531187201_4FGL_J2317.7+2839_daily_bin1125.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) = 8276.51454512
delta logL = 0.067339135805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8276.50293055
delta logL = 0.0789537006476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.524       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2066       1.0000          .0000       10.000    
     3 'Normalizat'    .99531       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96475       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8276.503     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      281 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.536        31.207        .88411E-04    .60164E-03
   2  Index         2.2065        .63245        .51132E-02    .37755E-03
   3  Normalizat    .99543        .22146        .33437E-03    .14797E-02
   4  Prefactor     .96474        .11567        .17689E-03    .32203E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.5363
  Index      = 2.20653
  Normalizat = 0.995428
  Prefactor  = 0.964735
 **********
 **   18 **HESSE 
 **********

 FCN=   8276.503     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.536        26.027        .17682E-04   -1.4801    
   2  Index         2.2065        .52785        .20453E-03   -.59281    
   3  Normalizat    .99543        .22107        .66873E-04   -.93184    
   4  Prefactor     .96474        .11560        .35379E-04   -.93914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32659e-09
Minuit parameter uncertainties:
  1  26.0417
  2  0.529286
  3  0.22127
  4  0.115628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740478': 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) = 8276.50293006
delta logL = 0.0789541963895

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  2.054e+01  2.604e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.207e+00  5.293e-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:  9.647e-01  1.156e-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:  9.954e-01  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.76
Ra Dec: 349.438 28.659
Photon Index (Free Index): 2.21 +/- 0.53
Photon Flux (Free Index): 4.53e-08 +/- 3.69e-08
Energy Flux (Free Index): 2.01e-05 +/- 1.82e-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/740478/cmap_HighResolution_530928001_531187201_4FGL_J2317.7+2839_daily_bin1125.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', comment='SUCCESS', photon_flux='3.71e-08', energy_flux2='2.01e-05', photon_flux_error='2.79e-08', dlogl='7.90e-02', energy_flux='2.55e-05', photon_flux2='4.53e-08', job_status='DONE', time_completed='2021-09-29 11:09:34.272810', photon_index_error2='0.53', photon_index2='2.21', ts='3.58', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='1.82e-05', EG='1.00', time_epoch_completed='1632938974.27', return_code='0', job_id='740478', GAL2='0.96', EG2='1.00', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='3.69e-08', ts2='3.76', photon_index='2.00' WHERE bin_id='1125' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:09:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 740478: <4FGL_J2317.7+2839_daily_bin1125> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1125> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 10:55:36 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:55:38 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:38 2021
Terminated at Wed Sep 29 11:09:35 2021
Results reported at Wed Sep 29 11:09:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1125 349.438 28.6589 530928001 531187201 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 :                                   677.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             305.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            839 sec.

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

