/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 18 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 = 7354
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2317.7+2839_daily_bin553
RA = 349.438, Dec = 28.6589
tmin = 382665601, tmax = 382924801
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='736730', job_status='RUN', time_executed='2021-09-29 10:46:03.302345', time_epoch_executed='1632937563.3' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/736730

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/736730/ft1_4FGL_J2317.7+2839_daily_bin553.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/736730/ft2_4FGL_J2317.7+2839_daily_bin553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/736730/ft1_4FGL_J2317.7+2839_daily_bin553.fits outfile=/scratch/kocevski/736730/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin553.fits ra=349.438 dec=28.6589 rad=12.0 tmin=382665601.0 tmax=382924801.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.45
user 3.16
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/736730/ft1_filtered_4FGL_J2317.7+2839_daily_bin553.fits" evtable="EVENTS" scfile=/scratch/kocevski/736730/ft2_4FGL_J2317.7+2839_daily_bin553.fits sctable="SC_DATA" outfile=/scratch/kocevski/736730/ltcube_382665601_382924801_4FGL_J2317.7+2839_daily_bin553.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/736730/ft2_4FGL_J2317.7+2839_daily_bin553.fits
.....................!
real 12.05
user 11.72
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/736730/ft1_filtered_4FGL_J2317.7+2839_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/736730/ft2_4FGL_J2317.7+2839_daily_bin553.fits sctable="SC_DATA" expcube=/scratch/kocevski/736730/ltcube_382665601_382924801_4FGL_J2317.7+2839_daily_bin553.fits outfile=/scratch/kocevski/736730/expmap_382665601_382924801_4FGL_J2317.7+2839_daily_bin553.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/736730/ltcube_382665601_382924801_4FGL_J2317.7+2839_daily_bin553.fits
.....................!
real 190.29
user 184.78
sys 5.19

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/736730/ft1_filtered_4FGL_J2317.7+2839_daily_bin553.fits scfile=/scratch/kocevski/736730/ft2_4FGL_J2317.7+2839_daily_bin553.fits outfile=/scratch/kocevski/736730/cmap_382665601_382924801_4FGL_J2317.7+2839_daily_bin553.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.36
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/736730/ft1_filtered_4FGL_J2317.7+2839_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/736730/ft2_4FGL_J2317.7+2839_daily_bin553.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/736730/Model_4FGL_J2317.7+2839_daily_bin553.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/736730/ft1_filtered_4FGL_J2317.7+2839_daily_bin553.fits.....................!
real 96.81
user 95.48
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8365       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.052       1.0000         .10000E-03   10000.    
     3 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7894       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .74930E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .20881       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3901       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2188       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.036       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4278       1.0000         .10000E-03   10000.    
    13 'norm      '    10.140       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.125       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9107       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6555       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.927       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.815       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93835       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0153       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=   8490.042     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2072 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8369        1.1819        .35924E-07   -.69650E-04
   2  Prefactor     35.065        27.787       -.20878E-06   -.19650E-03
   3  norm          .10000E-03    .88490       -.13665E-06** at limit **
   4  Prefactor     9.7757        10.139        .22096E-06   -.12724E-04
   5  Prefactor     .10000E-03    5.4807        .36228E-07** at limit **
   6  Prefactor     .10000E-03    5.7700       -.28433E-07** at limit **
   7  Prefactor     .12008E-03    26.104       -.49884E-05** at limit **
   8  norm          .20886        1.1497        .21658E-05    .86912E-03
   9  Prefactor     7.3965        23.153       -.70794E-07   -.12927E-03
  10  Prefactor     1.2614        24.614        .42703E-05    .70348E-04
  11  Prefactor     26.043        33.942       -.13310E-06   -.95570E-04
  12  Prefactor     6.4289        5.6080        .10213E-06    .93600E-06
  13  norm          10.138        6.5882       -.16847E-06   -.21620E-03
  14  Prefactor     23.122        25.299       -.48308E-06   -.11997E-03
  15  norm          2.9089        2.1294       -.98387E-07   -.12802E-03
  16  Prefactor     8.6585        17.045        .18524E-07   -.11697E-03
  17  Prefactor     14.927        13.913        .46839E-07   -.37228E-06
  18  Prefactor     26.861        43.145        .71667E-06    .45645E-05
  19  Normalizat    .93838        .22036       -.14645E-05   -.12826E-03
  20  Prefactor     1.0152        .10686       -.28569E-06   -.99684E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.83692
  Prefactor  = 35.0647
  norm       = 0.0001
  Prefactor  = 9.77569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000120084
  norm       = 0.208865
  Prefactor  = 7.39646
  Prefactor  = 1.26138
  Prefactor  = 26.0435
  Prefactor  = 6.42892
  norm       = 10.1383
  Prefactor  = 23.1216
  norm       = 2.90891
  Prefactor  = 8.65854
  Prefactor  = 14.9266
  Prefactor  = 26.8609
  Normalizat = 0.938382
  Prefactor  = 1.01515
 **********
 **   18 **HESSE 
 **********

 FCN=   8490.042     FROM HESSE     STATUS=OK           311 CALLS     2383 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8369        1.1745        .74720E-04   -1.5437    
   2  Prefactor     35.065        27.701        .67688E-04   -1.4523    
   3  norm          .10000E-03    1.8476        .16579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7757        9.9769        .12808E-03   -1.5083    
   5  Prefactor     .10000E-03    5.4819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .12008E-03    19.429        .12152       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .20886        1.1634        .18967E-03   -1.5617    
   9  Prefactor     7.3965        23.088        .14754E-03   -1.5164    
  10  Prefactor     1.2614        24.787        .40877E-03   -1.5483    
  11  Prefactor     26.043        33.898        .78509E-04   -1.4687    
  12  Prefactor     6.4289        5.5994        .15831E-03   -1.5201    
  13  norm          10.138        6.5807        .12584E-03   -1.5071    
  14  Prefactor     23.122        25.382        .83297E-04   -1.4746    
  15  norm          2.9089        2.1278        .11147E-03   -1.5367    
  16  Prefactor     8.6585        17.022        .13625E-03   -1.5119    
  17  Prefactor     14.927        13.914        .10367E-03   -1.4935    
  18  Prefactor     26.861        43.284        .77362E-04   -1.4671    
  19  Normalizat    .93838        .25379        .37748E-03   -.95124    
  20  Prefactor     1.0152        .12389        .18336E-03   -.92226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61678e-09
Minuit parameter uncertainties:
  1  1.17456
  2  27.7106
  3  1.95117e-05
  4  9.97857
  5  2.61816e-06
  6  6.58365e-06
  7  0.0395204
  8  0.985685
  9  23.1163
  10  11.1881
  11  33.9228
  12  5.59984
  13  6.58122
  14  25.3942
  15  2.12787
  16  17.0312
  17  13.9172
  18  43.3345
  19  0.254118
  20  0.123921
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  2.604e+01  3.392e+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.015e+00  1.239e-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.384e-01  2.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/736730/likelihoodResults_382665601_382924801_4FGL_J2317.7+2839_daily_bin553.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) = 8489.18818497
delta logL = 0.853910645359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8489.18568375
delta logL = 0.856411862749

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5714       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0101       1.0000          .0000       10.000    
     3 'Normalizat'    .86062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0359       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=   8489.186     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      243 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5601        60.202        .47068E-02    .38177E-03
   2  Index         3.0111        1.9894        .74787E-01    .26694E-03
   3  Normalizat    .86061        .77580E-01    .88499E-01    .55297E-05
   4  Prefactor     1.0359        .35811E-01    .40814E-01   -.39269E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.56012
  Index      = 3.01113
  Normalizat = 0.860607
  Prefactor  = 1.03592
 **********
 **   18 **HESSE 
 **********

 FCN=   8489.186     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      274 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5601        102.18        .13016E-03   -1.5281    
   2  Index         3.0111        2.9804        .37459E-02   -.40909    
   3  Normalizat    .86061        .24927        .39194E-03   -.97858    
   4  Prefactor     1.0359        .12366        .18155E-03   -.91541    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.34729e-07
Minuit parameter uncertainties:
  1  43.2554
  2  3.24412
  3  0.249608
  4  0.123698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/736730': 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) = 8489.18568299
delta logL = 0.856412622621

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  4.560e+00  4.326e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  3.011e+00  3.244e+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.036e+00  1.237e-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:  8.606e-01  2.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.80
Ra Dec: 349.438 28.659
Photon Index (Free Index): 3.01 +/- 3.24
Photon Flux (Free Index): 1.07e-07 +/- 9.32e-08
Energy Flux (Free Index): 2.13e-05 +/- 2.69e-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/736730/cmap_HighResolution_382665601_382924801_4FGL_J2317.7+2839_daily_bin553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.26e-03', comment='SUCCESS', energy_flux2='2.13e-05', dlogl='8.56e-01', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-29 10:57:58.704068', photon_index_error2='3.24', photon_index2='3.01', ts='0.82', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='2.69e-05', EG='0.94', time_epoch_completed='1632938278.7', return_code='0', job_id='736730', GAL2='1.04', EG2='0.86', return_code2='102', photon_flux_error2='9.32e-08', ts2='2.80', photon_index='2.00' WHERE bin_id='553' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:57:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 736730: <4FGL_J2317.7+2839_daily_bin553> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin553> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 10:45:30 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:45:31 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:45:31 2021
Terminated at Wed Sep 29 10:57:59 2021
Results reported at Wed Sep 29 10:57:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin553 349.438 28.6589 382665601 382924801 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 :                                   709.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            749 sec.

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

