/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 124 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 = 7505
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2317.7+2839_daily_bin67
RA = 349.438, Dec = 28.6589
tmin = 256694401, tmax = 256953601
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='733322', job_status='RUN', time_executed='2021-09-29 10:38:15.232153', time_epoch_executed='1632937095.23' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='67'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733322

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733322/ft1_4FGL_J2317.7+2839_daily_bin67.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733322/ft2_4FGL_J2317.7+2839_daily_bin67.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733322/ft1_4FGL_J2317.7+2839_daily_bin67.fits outfile=/scratch/kocevski/733322/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin67.fits ra=349.438 dec=28.6589 rad=12.0 tmin=256694401.0 tmax=256953601.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 1.42
user 1.24
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/733322/ft2_4FGL_J2317.7+2839_daily_bin67.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/733322/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin67.fits evtable="EVENTS" outfile="/scratch/kocevski/733322/ft1_filtered_4FGL_J2317.7+2839_daily_bin67.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733322/ft1_filtered_4FGL_J2317.7+2839_daily_bin67.fits" evtable="EVENTS" scfile=/scratch/kocevski/733322/ft2_4FGL_J2317.7+2839_daily_bin67.fits sctable="SC_DATA" outfile=/scratch/kocevski/733322/ltcube_256694401_256953601_4FGL_J2317.7+2839_daily_bin67.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/733322/ft2_4FGL_J2317.7+2839_daily_bin67.fits
.....................!
real 13.17
user 12.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733322/ft1_filtered_4FGL_J2317.7+2839_daily_bin67.fits evtable="EVENTS" scfile=/scratch/kocevski/733322/ft2_4FGL_J2317.7+2839_daily_bin67.fits sctable="SC_DATA" expcube=/scratch/kocevski/733322/ltcube_256694401_256953601_4FGL_J2317.7+2839_daily_bin67.fits outfile=/scratch/kocevski/733322/expmap_256694401_256953601_4FGL_J2317.7+2839_daily_bin67.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/733322/ltcube_256694401_256953601_4FGL_J2317.7+2839_daily_bin67.fits
.....................!
real 190.64
user 185.20
sys 4.84

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/733322/ft1_filtered_4FGL_J2317.7+2839_daily_bin67.fits scfile=/scratch/kocevski/733322/ft2_4FGL_J2317.7+2839_daily_bin67.fits outfile=/scratch/kocevski/733322/cmap_256694401_256953601_4FGL_J2317.7+2839_daily_bin67.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733322/ft1_filtered_4FGL_J2317.7+2839_daily_bin67.fits evtable="EVENTS" scfile=/scratch/kocevski/733322/ft2_4FGL_J2317.7+2839_daily_bin67.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733322/Model_4FGL_J2317.7+2839_daily_bin67.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/733322/ft1_filtered_4FGL_J2317.7+2839_daily_bin67.fits.....................!
real 79.27
user 77.89
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3189       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.5513       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .68215       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0767       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3394       1.0000         .10000E-03   10000.    
    13 'norm      '    9.0385       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.787       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3274       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19526       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3924       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.452       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .90155       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99114       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=   7205.681     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2080 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3188        1.2400        .76406E-07   -.19700E-03
   2  Prefactor     .10000E-03    32.953        .13271E-05** at limit **
   3  norm          2.5512        1.5714        .39970E-07    .18008E-03
   4  Prefactor     .10000E-03    3.7453        .38468E-07** at limit **
   5  Prefactor     .10000E-03    6.4750        .51123E-08** at limit **
   6  Prefactor     .10000E-03    3.0418        .33118E-07** at limit **
   7  Prefactor     .10000E-03    15.047        .15333E-07** at limit **
   8  norm          .68083        1.4444        .87051E-07   -.11387E-02
   9  Prefactor     .10000E-03    8.0516       -.49907E-06** at limit **
  10  Prefactor     .10000E-03    8.3453        .64622E-06** at limit **
  11  Prefactor     7.0656        14.044       -.11368E-04   -.33060E-04
  12  Prefactor     5.3548        6.7665        .12851E-05   -.64878E-04
  13  norm          9.0384        6.6982       -.15553E-05   -.11806E-03
  14  Prefactor     10.794        19.540        .98945E-06   -.19681E-04
  15  norm          1.3265        2.6296       -.49777E-06   -.10223E-02
  16  Prefactor     .10280E-03    17.550       -.11342E-05** at limit **
  17  Prefactor     1.3932        25.262       -.94590E-05   -.25512E-03
  18  Prefactor     19.368        32.873        .33892E-04    .19523E-05
  19  Normalizat    .90142        .21122       -.49289E-05    .20420E-03
  20  Prefactor     .99131        .10682        .12250E-05   -.14844E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.31883
  Prefactor  = 0.0001
  norm       = 2.55119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.680834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.06562
  Prefactor  = 5.3548
  norm       = 9.03844
  Prefactor  = 10.7939
  norm       = 1.32649
  Prefactor  = 0.000102797
  Prefactor  = 1.3932
  Prefactor  = 19.3685
  Normalizat = 0.901417
  Prefactor  = 0.991312
 **********
 **   18 **HESSE 
 **********

 FCN=   7205.681     FROM HESSE     STATUS=OK           303 CALLS     2383 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3188        1.2365        .66353E-04   -1.5403    
   2  Prefactor     .10000E-03    33.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5512        1.5744        .81486E-04   -1.5389    
   4  Prefactor     .10000E-03    3.7553        .16043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.4795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0469        .14458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .68083        1.3999        .13816E-03   -1.5543    
   9  Prefactor     .10000E-03    8.0727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.3949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0656        14.045        .15080E-03   -1.5176    
  12  Prefactor     5.3548        6.7593        .17393E-03   -1.5245    
  13  norm          9.0384        6.6579        .13331E-03   -1.5107    
  14  Prefactor     10.794        19.514        .12199E-03   -1.5051    
  15  norm          1.3265        2.6172        .18778E-03   -1.5478    
  16  Prefactor     .10280E-03    24.090        .93611E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.3932        26.010        .36816E-03   -1.5472    
  18  Prefactor     19.368        32.609        .90812E-04   -1.4827    
  19  Normalizat    .90142        .24667        .34105E-03   -.96410    
  20  Prefactor     .99131        .12590        .17286E-03   -.93020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21383e-09
Minuit parameter uncertainties:
  1  1.23649
  2  8.28263e-05
  3  1.57447
  4  4.06173e-06
  5  1.93107e-06
  6  3.67888e-06
  7  1.22881e-05
  8  1.39996
  9  2.72528e-05
  10  2.26601e-05
  11  14.0511
  12  6.76025
  13  6.65849
  14  19.5252
  15  2.61745
  16  0.0164235
  17  12.045
  18  32.6391
  19  0.24698
  20  0.125933
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  7.066e+00  1.405e+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.913e-01  1.259e-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.014e-01  2.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/733322/likelihoodResults_256694401_256953601_4FGL_J2317.7+2839_daily_bin67.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) = 7205.68138473
delta logL = 1.46346792462e-08

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7205.68138473
delta logL = 1.96041582967e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0656       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0028       1.0000          .0000       10.000    
     3 'Normalizat'    .90139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99132       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=   7205.681     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      247 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0708        20.932        .15092E-03   -.72694E-04
   2  Index         2.0023        1.3906        .14204E-01   -.31067E-04
   3  Normalizat    .90142        .23100        .34105E-03   -.21971E-03
   4  Prefactor     .99131        .12294        .17286E-03   -.28097E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.07082
  Index      = 2.00235
  Normalizat = 0.901416
  Prefactor  = 0.991313
 **********
 **   18 **HESSE 
 **********

 FCN=   7205.681     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0708        18.116        .60367E-05   -1.5176    
   2  Index         2.0023        1.2116        .56817E-03   -.64291    
   3  Normalizat    .90142        .23090        .13642E-04   -.96410    
   4  Prefactor     .99131        .12298        .34571E-04   -.93020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21185e-10
Minuit parameter uncertainties:
  1  18.1298
  2  1.23093
  3  0.23115
  4  0.123015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733322': 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) = 7205.68138465
delta logL = 1.00449142337e-07

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  7.071e+00  1.813e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.002e+00  1.231e+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:  9.913e-01  1.230e-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.014e-01  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.37
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/733322/cmap_HighResolution_256694401_256953601_4FGL_J2317.7+2839_daily_bin67.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-03', job_status='DONE', photon_flux_upper_limit='6.64e-08', time_completed='2021-09-29 10:49:03.363699', job_id='733322', GAL2='0.99', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632937743.36', return_code2='0', ts='0.37', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.00e-07', ts2='0.37', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='67' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:49:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 733322: <4FGL_J2317.7+2839_daily_bin67> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin67> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:36:00 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:36:01 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:36:01 2021
Terminated at Wed Sep 29 10:49:04 2021
Results reported at Wed Sep 29 10:49:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin67 349.438 28.6589 256694401 256953601 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 :                                   647.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            784 sec.

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

