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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1147
RA = 349.357, Dec = -45.5623
tmin = 536630401, tmax = 536889601
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='731409', job_status='RUN', time_executed='2021-09-29 10:31:22.106158', time_epoch_executed='1632936682.11' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731409

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731409/ft1_4FGL_J2317.4-4533_daily_bin1147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731409/ft2_4FGL_J2317.4-4533_daily_bin1147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731409/ft1_4FGL_J2317.4-4533_daily_bin1147.fits outfile=/scratch/kocevski/731409/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1147.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=536630401.0 tmax=536889601.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 5.16
user 3.36
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/731409/ft2_4FGL_J2317.4-4533_daily_bin1147.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731409/ft2_4FGL_J2317.4-4533_daily_bin1147.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/731409/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1147.fits evtable="EVENTS" outfile="/scratch/kocevski/731409/ft1_filtered_4FGL_J2317.4-4533_daily_bin1147.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 2.45
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731409/ft1_filtered_4FGL_J2317.4-4533_daily_bin1147.fits" evtable="EVENTS" scfile=/scratch/kocevski/731409/ft2_4FGL_J2317.4-4533_daily_bin1147.fits sctable="SC_DATA" outfile=/scratch/kocevski/731409/ltcube_536630401_536889601_4FGL_J2317.4-4533_daily_bin1147.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/731409/ft2_4FGL_J2317.4-4533_daily_bin1147.fits
.....................!
real 12.36
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731409/ft1_filtered_4FGL_J2317.4-4533_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/731409/ft2_4FGL_J2317.4-4533_daily_bin1147.fits sctable="SC_DATA" expcube=/scratch/kocevski/731409/ltcube_536630401_536889601_4FGL_J2317.4-4533_daily_bin1147.fits outfile=/scratch/kocevski/731409/expmap_536630401_536889601_4FGL_J2317.4-4533_daily_bin1147.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/731409/ltcube_536630401_536889601_4FGL_J2317.4-4533_daily_bin1147.fits
.....................!
real 191.82
user 185.75
sys 5.17

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J2317.4-4533 @ 349.357 -45.5623

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/731409/ft1_filtered_4FGL_J2317.4-4533_daily_bin1147.fits scfile=/scratch/kocevski/731409/ft2_4FGL_J2317.4-4533_daily_bin1147.fits outfile=/scratch/kocevski/731409/cmap_536630401_536889601_4FGL_J2317.4-4533_daily_bin1147.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.357 yref=-45.5623 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731409/ft1_filtered_4FGL_J2317.4-4533_daily_bin1147.fits scfile=/scratch/kocevski/731409/ft2_4FGL_J2317.4-4533_daily_bin1147.fits outfile=/scratch/kocevski/731409/cmap_HighResolution_536630401_536889601_4FGL_J2317.4-4533_daily_bin1147.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.357 yref=-45.5623 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731409/ft1_filtered_4FGL_J2317.4-4533_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/731409/ft2_4FGL_J2317.4-4533_daily_bin1147.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731409/Model_4FGL_J2317.4-4533_daily_bin1147.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/731409/ft1_filtered_4FGL_J2317.4-4533_daily_bin1147.fits.....................!
real 34.43
user 33.10
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/731409/ft1_filtered_4FGL_J2317.4-4533_daily_bin1147.fits', '/scratch/kocevski/731409/ft2_4FGL_J2317.4-4533_daily_bin1147.fits', expMap='/scratch/kocevski/731409/expmap_536630401_536889601_4FGL_J2317.4-4533_daily_bin1147.fits', expCube='/scratch/kocevski/731409/ltcube_536630401_536889601_4FGL_J2317.4-4533_daily_bin1147.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/731409/Model_4FGL_J2317.4-4533_daily_bin1147.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2317.4-4533'

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  2.155e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  1.793e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
393         beta:  1.780e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
394           Eb:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/731409/ft1_filtered_4FGL_J2317.4-4533_daily_bin1147.fits
Spacecraft file(s): /scratch/kocevski/731409/ft2_4FGL_J2317.4-4533_daily_bin1147.fits
Exposure map: /scratch/kocevski/731409/expmap_536630401_536889601_4FGL_J2317.4-4533_daily_bin1147.fits
Exposure cube: /scratch/kocevski/731409/ltcube_536630401_536889601_4FGL_J2317.4-4533_daily_bin1147.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/731409/Model_4FGL_J2317.4-4533_daily_bin1147.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) = 3924.70495732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.413       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.741       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11180E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.700       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8079       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.931       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.829       1.0000         .10000E-03   10000.    
    18 'norm      '    .38185       1.0000         .10000E-03   10000.    
    19 'norm      '    1.9391       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    18.689       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.8989       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .11212E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.352       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.2583       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.3205       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .57273       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3924.703     FROM MIGRAD    STATUS=CONVERGED    995 CALLS     5132 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.407        75.287        .39963E-06    .31115E-05
   2  Prefactor     .10000E-03    28.301       -.92654E-06** at limit **
   3  Prefactor     .10000E-03    21.192        .57849E-06** at limit **
   4  Prefactor     .10000E-03    7.8117        .30443E-06** at limit **
   5  norm          .10000E-03    4.0009        .10156E-07** at limit **
   6  Prefactor     19.739        7.0575       -.20966E-07    .14325E-04
   7  Prefactor     .10000E-03    13.536       -.78752E-06** at limit **
   8  Prefactor     .10000E-03    18.598       -.22007E-05** at limit **
   9  Prefactor     .10000E-03    11.654        .45739E-06** at limit **
  10  Prefactor     .10000E-03    7.0002       -.92035E-07** at limit **
  11  Prefactor     26.668        41.267       -.10542E-05    .47517E-04
  12  Prefactor     2.8092        10.677        .30834E-05    .17163E-03
  13  Prefactor     .10000E-03    42.441        .74051E-06** at limit **
  14  Prefactor     .10000E-03    2.4938        .16472E-07** at limit **
  15  Prefactor     19.808        63.396        .10002E-04    .56787E-04
  16  Prefactor     .10000E-03    68.498        .99600E-06** at limit **
  17  Prefactor     32.845        25.582       -.41759E-06   -.69713E-04
  18  norm          .24297        22.054        .37114E-05   -.39099E-03
  19  norm          1.9416        5.7600       -.16391E-06   -.58164E-04
  20  norm          .10000E-03    2.9041       -.54319E-08** at limit **
  21  norm          18.687        13.027        .88988E-07   -.23926E-05
  22  Prefactor     .10000E-03    4.1693        .15334E-08** at limit **
  23  Prefactor     .10000E-03    75.676       -.81364E-06** at limit **
  24  norm          5.8950        5.3476        .18946E-06    .28275E-04
  25  Prefactor     .10000E-03    9.2488       -.37907E-06** at limit **
  26  norm          .10000E-03    1.2179        .17351E-06** at limit **
  27  norm          .10000E-03    1.9854        .10093E-07** at limit **
  28  Prefactor     14.353        16.875        .49608E-07   -.49454E-05
  29  Prefactor     .10000E-03    2.2584       -.48649E-07** at limit **
  30  Prefactor     6.2641        42.146        .93291E-06   -.45510E-05
  31  norm          .10000E-03    11.918        .34006E-06** at limit **
  32  Prefactor     .10000E-03    3.8920        .38890E-07** at limit **
  33  Prefactor     .10000E-03    2.6930        .41452E-07** at limit **
  34  Normalizat    1.3204        .24264        .10795E-05   -.96843E-04
  35  Prefactor     .57293        .23530       -.27112E-05   -.71017E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.4072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.7389
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.6675
  Prefactor  = 2.80915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8082
  Prefactor  = 0.0001
  Prefactor  = 32.8453
  norm       = 0.242968
  norm       = 1.94157
  norm       = 0.0001
  norm       = 18.6867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.89501
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.3527
  Prefactor  = 0.0001
  Prefactor  = 6.26413
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32039
  Prefactor  = 0.572932
 **********
 **   18 **HESSE 
 **********

 FCN=   3924.703     FROM HESSE     STATUS=OK           762 CALLS     5894 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.407        75.629        .55932E-04   -1.4273    
   2  Prefactor     .10000E-03    28.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.8500        .17103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.0069        .12238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.739        7.0764        .90145E-04   -1.4819    
   7  Prefactor     .10000E-03    13.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.367        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.0034        .16189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.668        41.456        .77529E-04   -1.4675    
  12  Prefactor     2.8092        10.781        .12138E-02   -1.5373    
  13  Prefactor     .10000E-03    42.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4976        .96618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.808        63.475        .89716E-04   -1.4818    
  16  Prefactor     .10000E-03    68.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.845        25.219        .69936E-04   -1.4561    
  18  norm          .24297        267.57        .47199E-02   -1.5609    
  19  norm          1.9416        5.6360        .24773E-03   -1.5429    
  20  norm          .10000E-03    2.9081        .10425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          18.687        13.029        .92647E-04   -1.4843    
  22  Prefactor     .10000E-03    4.1801        .12484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    76.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.8950        5.3604        .13188E-03   -1.5222    
  25  Prefactor     .10000E-03    9.2623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.8654        .12498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.9899        .86179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     14.353        16.878        .10572E-03   -1.4950    
  29  Prefactor     .10000E-03    2.2731        .91654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     6.2641        41.396        .16046E-03   -1.5207    
  31  norm          .10000E-03    11.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    3.9346        .12062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    2.7150        .10034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.3204        .29873        .21453E-03   -.82960    
  35  Prefactor     .57293        .28072        .31970E-03   -1.0874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51898e-08
Minuit parameter uncertainties:
  1  75.7707
  2  4.68527e-05
  3  3.63499e-05
  4  1.36821e-05
  5  8.22567e-07
  6  7.07667
  7  3.41424e-05
  8  0.000356136
  9  2.10423e-05
  10  8.93366e-07
  11  41.5012
  12  10.7889
  13  3.75375e-05
  14  7.59121e-07
  15  63.6922
  16  0.000133004
  17  25.2271
  18  16.1956
  19  5.63754
  20  2.7566e-07
  21  13.0307
  22  3.96365e-06
  23  0.000154399
  24  5.36079
  25  2.17552e-05
  26  8.47094e-06
  27  4.47002e-08
  28  16.8833
  29  4.03463e-06
  30  32.2383
  31  1.68152e-05
  32  2.56527e-06
  33  1.54327e-06
  34  0.299117
  35  0.281408
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  2.430e-01  1.620e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  1.793e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
393         beta:  1.780e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
394           Eb:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  5.729e-01  2.814e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.320e+00  2.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 349.357 -45.562
Photon Flux Upper Limit: 5.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731409/likelihoodResults_536630401_536889601_4FGL_J2317.4-4533_daily_bin1147.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) = 3924.31042568
delta logL = 0.392463663148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3923.91004405
delta logL = 0.792845292515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2003       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2851       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59226       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3923.910     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      241 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2112        76.501        .56623E-02    .24843E-03
   2  alpha         3.2854        4.1200        .26644        .42945E-04
   3  Normalizat    1.2672        .71624E-01    .49295E-01    .12943E-04
   4  Prefactor     .59195        .67420E-01    .70969E-01    .19785E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.21119
  alpha      = 3.28541
  Normalizat = 1.2672
  Prefactor  = 0.59195
 **********
 **   18 **HESSE 
 **********

 FCN=   3923.910     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2112        9.1847        .10236E-03   -1.5350    
   2  alpha         3.2854        1.3390        .99064E-02    .31958    
   3  Normalizat    1.2672        .27347        .21793E-03   -.84551    
   4  Prefactor     .59195        .27546        .31414E-03   -1.0793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06679e-08
Minuit parameter uncertainties:
  1  9.18869
  2  1.42268
  3  0.273781
  4  0.276093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731409': 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) = 3923.91003472
delta logL = 0.792854616493

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  3.211e+00  9.189e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  3.285e+00  1.423e+00  0.000e+00  5.000e+00 ( 1.000e+00)
393         beta:  1.780e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
394           Eb:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  5.920e-01  2.761e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.267e+00  2.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 349.357 -45.562
Photon Index (Free Index): 3.29 +/- 1.42
Photon Flux (Free Index): 5.65e-08 +/- 6.06e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.25e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/731409/cmap_HighResolution_536630401_536889601_4FGL_J2317.4-4533_daily_bin1147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-05', comment='SUCCESS', energy_flux2='1.26e-05', dlogl='7.93e-01', photon_flux2='5.65e-08', job_status='DONE', time_completed='2021-09-29 10:43:44.932833', photon_index_error2='1.42', photon_index2='3.29', ts='0.00', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='5.48e-08', energy_flux_error2='1.25e-05', EG='1.32', time_epoch_completed='1632937424.93', return_code='0', job_id='731409', GAL2='0.59', EG2='1.27', return_code2='0', photon_flux_error2='6.06e-08', ts2='1.60', photon_index='1.79' WHERE bin_id='1147' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:43:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 731409: <4FGL_J2317.4-4533_daily_bin1147> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1147> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep 29 10:30:34 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:30:36 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:30:36 2021
Terminated at Wed Sep 29 10:43:45 2021
Results reported at Wed Sep 29 10:43:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1147 349.357 -45.5623 536630401 536889601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2317.4-4533 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   731.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

