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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1011
RA = 349.438, Dec = 28.6589
tmin = 501379201, tmax = 501638401
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='740308', job_status='RUN', time_executed='2021-09-29 10:58:14.167485', time_epoch_executed='1632938294.17' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740308

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740308/ft1_4FGL_J2317.7+2839_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740308/ft2_4FGL_J2317.7+2839_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740308/ft1_4FGL_J2317.7+2839_daily_bin1011.fits outfile=/scratch/kocevski/740308/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1011.fits ra=349.438 dec=28.6589 rad=12.0 tmin=501379201.0 tmax=501638401.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.68
user 3.43
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740308/ft1_filtered_4FGL_J2317.7+2839_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/740308/ft2_4FGL_J2317.7+2839_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/740308/ltcube_501379201_501638401_4FGL_J2317.7+2839_daily_bin1011.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/740308/ft2_4FGL_J2317.7+2839_daily_bin1011.fits
.....................!
real 14.32
user 13.94
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740308/ft1_filtered_4FGL_J2317.7+2839_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/740308/ft2_4FGL_J2317.7+2839_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/740308/ltcube_501379201_501638401_4FGL_J2317.7+2839_daily_bin1011.fits outfile=/scratch/kocevski/740308/expmap_501379201_501638401_4FGL_J2317.7+2839_daily_bin1011.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/740308/ltcube_501379201_501638401_4FGL_J2317.7+2839_daily_bin1011.fits
.....................!
real 192.65
user 186.91
sys 5.35

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/740308/ft1_filtered_4FGL_J2317.7+2839_daily_bin1011.fits scfile=/scratch/kocevski/740308/ft2_4FGL_J2317.7+2839_daily_bin1011.fits outfile=/scratch/kocevski/740308/cmap_501379201_501638401_4FGL_J2317.7+2839_daily_bin1011.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740308/ft1_filtered_4FGL_J2317.7+2839_daily_bin1011.fits scfile=/scratch/kocevski/740308/ft2_4FGL_J2317.7+2839_daily_bin1011.fits outfile=/scratch/kocevski/740308/cmap_HighResolution_501379201_501638401_4FGL_J2317.7+2839_daily_bin1011.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740308/ft1_filtered_4FGL_J2317.7+2839_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/740308/ft2_4FGL_J2317.7+2839_daily_bin1011.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740308/Model_4FGL_J2317.7+2839_daily_bin1011.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/740308/ft1_filtered_4FGL_J2317.7+2839_daily_bin1011.fits.....................!
real 98.42
user 96.94
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4223       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5205       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0985       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1757       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8236       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.502       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5521       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.450       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5103       1.0000         .10000E-03   10000.    
    13 'norm      '    4.2056       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .74345       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1540       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=   8822.457     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1977 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4224        1.6123        .47847E-07   -.17497E-04
   2  Prefactor     6.5189        18.591       -.25683E-05   -.67143E-04
   3  norm          1.0985        1.1918        .25667E-08   -.18792E-04
   4  Prefactor     3.1757        4.6612       -.11291E-06   -.57572E-04
   5  Prefactor     .10000E-03    11.801       -.59302E-05** at limit **
   6  Prefactor     8.8237        7.6213        .13226E-07   -.62980E-05
   7  Prefactor     12.502        26.243       -.39214E-06    .33520E-05
   8  norm          1.5521        1.2659        .48071E-07   -.15020E-03
   9  Prefactor     30.449        28.170       -.14319E-05   -.81531E-04
  10  Prefactor     .10000E-03    7.1741       -.39995E-05** at limit **
  11  Prefactor     .10000E-03    8.4386        .69621E-06** at limit **
  12  Prefactor     3.5095        4.5668        .18402E-05   -.21716E-02
  13  norm          4.2057        3.7496       -.62236E-06   -.33287E-03
  14  Prefactor     .10000E-03    9.1730        .44783E-05** at limit **
  15  norm          .10000E-03    .63080       -.66036E-07** at limit **
  16  Prefactor     .10000E-03    10.054        .48665E-05** at limit **
  17  Prefactor     .10000E-03    6.4181        .26255E-05** at limit **
  18  Prefactor     .10000E-03    7.6516       -.31999E-05** at limit **
  19  Normalizat    .74347        .22112       -.17653E-06   -.36476E-04
  20  Prefactor     1.1540        .11299        .24861E-07   -.35517E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.42236
  Prefactor  = 6.51886
  norm       = 1.09847
  Prefactor  = 3.17573
  Prefactor  = 0.000100001
  Prefactor  = 8.82367
  Prefactor  = 12.502
  norm       = 1.55207
  Prefactor  = 30.4489
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.50947
  norm       = 4.20567
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.743465
  Prefactor  = 1.15399
 **********
 **   18 **HESSE 
 **********

 FCN=   8822.457     FROM HESSE     STATUS=OK           293 CALLS     2270 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4224        1.6118        .56354E-04   -1.5201    
   2  Prefactor     6.5189        18.620        .15716E-03   -1.5197    
   3  norm          1.0985        1.1916        .45399E-04   -1.5498    
   4  Prefactor     3.1757        4.6501        .22741E-03   -1.5352    
   5  Prefactor     .10000E-03    11.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.8237        7.6206        .13494E-03   -1.5114    
   7  Prefactor     12.502        26.288        .11329E-03   -1.5001    
   8  norm          1.5521        1.2500        .91016E-04   -1.5459    
   9  Prefactor     30.449        28.228        .72608E-04   -1.4604    
  10  Prefactor     .10000E-03    7.2669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.4475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5095        7.8072        .10789E-02   -1.5333    
  13  norm          4.2057        3.7627        .16675E-03   -1.5298    
  14  Prefactor     .10000E-03    9.2952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .63354        .72849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.4416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.6823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .74347        .24888        .41397E-03   -1.0220    
  20  Prefactor     1.1540        .12791        .17576E-03   -.87759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.54709e-09
Minuit parameter uncertainties:
  1  1.61183
  2  18.6362
  3  1.19159
  4  4.65062
  5  0.000222058
  6  7.62146
  7  26.3119
  8  1.25001
  9  28.2401
  10  0.000109466
  11  2.7273e-05
  12  7.80943
  13  3.76289
  14  0.000168058
  15  4.8294e-07
  16  0.000168897
  17  7.4262e-05
  18  0.000100273
  19  0.249262
  20  0.127948
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.000e-04  2.727e-05  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.154e+00  1.279e-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.435e-01  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/740308/likelihoodResults_501379201_501638401_4FGL_J2317.7+2839_daily_bin1011.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): 102
logL (Free Index) = 8822.45760513
delta logL = -0.00056359006885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8822.45704262
delta logL = -1.07873711386e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11707E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9715       1.0000          .0000       10.000    
     3 'Normalizat'    .74327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1541       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=   8822.457     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      238 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10096E-03    42.501        .18142E-02** at limit **
   2  Index         1.9228        9.0249        .50000        .25116E-04
   3  Normalizat    .74347        .11236E-01    .41397E-03   -.19224E-05
   4  Prefactor     1.1540        .58669E-02    .17576E-03    .19275E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100956
  Index      = 1.92282
  Normalizat = 0.743466
  Prefactor  = 1.15399
 **********
 **   18 **HESSE 
 **********

 FCN=   8822.457     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10096E-03    200.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9228        5.9613        .50000       -.66294    
   3  Normalizat    .74347        .24909E-01    .16559E-04   -1.0220    
   4  Prefactor     1.1540        .13006E-01    .70305E-05   -.87759    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.80024e-08
Minuit parameter uncertainties:
  1  0.0277673
  2  251.239
  3  0.0249098
  4  0.0130058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740308': 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) = 8822.45704103
delta logL = 5.10673999088e-07

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.010e-04  2.777e-02  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.923e+00  2.512e+02  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.154e+00  1.301e-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:  7.435e-01  2.491e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/740308/cmap_HighResolution_501379201_501638401_4FGL_J2317.7+2839_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-03', job_status='DONE', photon_flux_upper_limit='5.26e-08', time_completed='2021-09-29 11:10:22.765352', job_id='740308', GAL2='1.15', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632939022.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='5.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1011' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:10:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 740308: <4FGL_J2317.7+2839_daily_bin1011> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1011 349.438 28.6589 501379201 501638401 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 :                                   722.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            901 sec.

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

