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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1273
RA = 349.357, Dec = -45.5623
tmin = 569289601, tmax = 569548801
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='731614', job_status='RUN', time_executed='2021-09-29 10:31:54.896269', time_epoch_executed='1632936714.9' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731614

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731614/ft1_4FGL_J2317.4-4533_daily_bin1273.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731614/ft2_4FGL_J2317.4-4533_daily_bin1273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731614/ft1_4FGL_J2317.4-4533_daily_bin1273.fits outfile=/scratch/kocevski/731614/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1273.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=569289601.0 tmax=569548801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.66
user 3.34
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731614/ft2_4FGL_J2317.4-4533_daily_bin1273.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/731614/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1273.fits evtable="EVENTS" outfile="/scratch/kocevski/731614/ft1_filtered_4FGL_J2317.4-4533_daily_bin1273.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731614/ft1_filtered_4FGL_J2317.4-4533_daily_bin1273.fits" evtable="EVENTS" scfile=/scratch/kocevski/731614/ft2_4FGL_J2317.4-4533_daily_bin1273.fits sctable="SC_DATA" outfile=/scratch/kocevski/731614/ltcube_569289601_569548801_4FGL_J2317.4-4533_daily_bin1273.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/731614/ft2_4FGL_J2317.4-4533_daily_bin1273.fits
.....................!
real 11.93
user 11.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731614/ft1_filtered_4FGL_J2317.4-4533_daily_bin1273.fits evtable="EVENTS" scfile=/scratch/kocevski/731614/ft2_4FGL_J2317.4-4533_daily_bin1273.fits sctable="SC_DATA" expcube=/scratch/kocevski/731614/ltcube_569289601_569548801_4FGL_J2317.4-4533_daily_bin1273.fits outfile=/scratch/kocevski/731614/expmap_569289601_569548801_4FGL_J2317.4-4533_daily_bin1273.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/731614/ltcube_569289601_569548801_4FGL_J2317.4-4533_daily_bin1273.fits
.....................!
real 192.08
user 186.55
sys 5.07

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/731614/ft1_filtered_4FGL_J2317.4-4533_daily_bin1273.fits scfile=/scratch/kocevski/731614/ft2_4FGL_J2317.4-4533_daily_bin1273.fits outfile=/scratch/kocevski/731614/cmap_569289601_569548801_4FGL_J2317.4-4533_daily_bin1273.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731614/ft1_filtered_4FGL_J2317.4-4533_daily_bin1273.fits scfile=/scratch/kocevski/731614/ft2_4FGL_J2317.4-4533_daily_bin1273.fits outfile=/scratch/kocevski/731614/cmap_HighResolution_569289601_569548801_4FGL_J2317.4-4533_daily_bin1273.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731614/ft1_filtered_4FGL_J2317.4-4533_daily_bin1273.fits evtable="EVENTS" scfile=/scratch/kocevski/731614/ft2_4FGL_J2317.4-4533_daily_bin1273.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731614/Model_4FGL_J2317.4-4533_daily_bin1273.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/731614/ft1_filtered_4FGL_J2317.4-4533_daily_bin1273.fits.....................!
real 39.80
user 38.38
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/731614/ft1_filtered_4FGL_J2317.4-4533_daily_bin1273.fits', '/scratch/kocevski/731614/ft2_4FGL_J2317.4-4533_daily_bin1273.fits', expMap='/scratch/kocevski/731614/expmap_569289601_569548801_4FGL_J2317.4-4533_daily_bin1273.fits', expCube='/scratch/kocevski/731614/ltcube_569289601_569548801_4FGL_J2317.4-4533_daily_bin1273.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/731614/Model_4FGL_J2317.4-4533_daily_bin1273.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/731614/ft1_filtered_4FGL_J2317.4-4533_daily_bin1273.fits
Spacecraft file(s): /scratch/kocevski/731614/ft2_4FGL_J2317.4-4533_daily_bin1273.fits
Exposure map: /scratch/kocevski/731614/expmap_569289601_569548801_4FGL_J2317.4-4533_daily_bin1273.fits
Exposure cube: /scratch/kocevski/731614/ltcube_569289601_569548801_4FGL_J2317.4-4533_daily_bin1273.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/731614/Model_4FGL_J2317.4-4533_daily_bin1273.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) = 4968.1840983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.094       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12706E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.384       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.6621       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10901E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.070       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.770       1.0000         .10000E-03   10000.    
    11 'Prefactor '    46.173       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11094E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    67.261       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.383       1.0000         .10000E-03   10000.    
    18 'norm      '    5.8538       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.2709       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    74.022       1.0000         .10000E-03   10000.    
    24 'norm      '    .44871E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.6291       1.0000         .10000E-03   10000.    
    27 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.9940       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    1.6533       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .87400       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0377       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=   4968.103     FROM MIGRAD    STATUS=CONVERGED    944 CALLS     5027 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.102        42.010        .16242E-06    .88626E-05
   2  Prefactor     .10000E-03    26.300       -.34843E-06** at limit **
   3  Prefactor     20.378        34.969        .10691E-05   -.10230E-03
   4  Prefactor     .10000E-03    5.8299       -.14000E-06** at limit **
   5  norm          7.6642        7.7814       -.36145E-06    .13955E-03
   6  Prefactor     .10000E-03    2.7117       -.14333E-07** at limit **
   7  Prefactor     .10000E-03    18.763       -.22428E-06** at limit **
   8  Prefactor     10.067        9.1734        .28856E-06   -.14380E-03
   9  Prefactor     .10000E-03    30.604       -.98344E-08** at limit **
  10  Prefactor     18.771        24.621        .36596E-06   -.28402E-04
  11  Prefactor     46.199        38.230        .30649E-06    .10499E-03
  12  Prefactor     .10000E-03    7.1887        .62594E-06** at limit **
  13  Prefactor     .10000E-03    35.121        .22571E-06** at limit **
  14  Prefactor     .10000E-03    3.8003       -.50680E-07** at limit **
  15  Prefactor     67.307        61.602        .73077E-06    .11133E-03
  16  Prefactor     .10000E-03    36.333       -.24098E-06** at limit **
  17  Prefactor     16.388        18.181        .30878E-06   -.52659E-04
  18  norm          5.8554        8.7543        .86725E-06   -.21875E-03
  19  norm          .10000E-03    1.9636       -.49818E-09** at limit **
  20  norm          .10000E-03    2.3875        .39496E-07** at limit **
  21  norm          6.2751        9.0024       -.16451E-06   -.12173E-03
  22  Prefactor     .10000E-03    2.3831        .36432E-07** at limit **
  23  Prefactor     74.041        43.575       -.48970E-05   -.45960E-03
  24  norm          .10004E-03    4.4152        .30487E-05** at limit **
  25  Prefactor     .10000E-03    4.8786       -.28926E-07** at limit **
  26  norm          1.6291        1.1014        .25257E-07   -.27389E-03
  27  norm          .10000E-03    3.4803        .41349E-06** at limit **
  28  Prefactor     .10000E-03    5.7616       -.19628E-07** at limit **
  29  Prefactor     4.9855        3.7545        .40895E-06   -.59845E-03
  30  Prefactor     .10000E-03    12.394       -.18011E-06** at limit **
  31  norm          .10000E-03    9.1502        .11683E-07** at limit **
  32  Prefactor     .10002E-03    3.5172        .11091E-06** at limit **
  33  Prefactor     1.6545        2.8532        .24904E-06   -.16729E-03
  34  Normalizat    .87409        .21366       -.14723E-05   -.46083E-03
  35  Prefactor     1.0372        .21223        .65852E-06   -.56884E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.1024
  Prefactor  = 0.0001
  Prefactor  = 20.3777
  Prefactor  = 0.0001
  norm       = 7.66417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0666
  Prefactor  = 0.0001
  Prefactor  = 18.7713
  Prefactor  = 46.1992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.307
  Prefactor  = 0.0001
  Prefactor  = 16.3884
  norm       = 5.85536
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.27512
  Prefactor  = 0.0001
  Prefactor  = 74.0411
  norm       = 0.000100037
  Prefactor  = 0.0001
  norm       = 1.62914
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.98552
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 1.65446
  Normalizat = 0.874088
  Prefactor  = 1.03718
 **********
 **   18 **HESSE 
 **********

 FCN=   4968.103     FROM HESSE     STATUS=OK           762 CALLS     5789 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.102        41.996        .62531E-04   -1.4425    
   2  Prefactor     .10000E-03    26.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.378        34.726        .88714E-04   -1.4805    
   4  Prefactor     .10000E-03    5.8563        .16618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.6642        7.7670        .72436E-03   -1.5154    
   6  Prefactor     .10000E-03    5.3322        .22330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.067        9.1277        .12627E-03   -1.5073    
   9  Prefactor     .10000E-03    30.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.771        24.613        .92447E-04   -1.4841    
  11  Prefactor     46.199        38.123        .59006E-04   -1.4348    
  12  Prefactor     .10000E-03    7.2308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.8226        .13416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     67.307        61.223        .24470E-03   -1.4065    
  16  Prefactor     .10000E-03    36.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.388        18.201        .98952E-04   -1.4898    
  18  norm          5.8554        8.7098        .82994E-03   -1.5224    
  19  norm          .10000E-03    1.9638        .96457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.3896        .10634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.2751        8.9917        .16030E-03   -1.5207    
  22  Prefactor     .10000E-03    2.3928        .10624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     74.041        45.586        .46666E-04   -1.3985    
  24  norm          .10004E-03    15.691        .24506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.8883        .15202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.6291        1.1006        .33136E-04   -1.5453    
  27  norm          .10000E-03    3.5325        .12838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.7876        .16524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.9855        3.6337        .10798E-03   -1.5261    
  30  Prefactor     .10000E-03    12.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    9.1527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10002E-03    25.837        .24055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.6545        2.8223        .15036E-03   -1.5451    
  34  Normalizat    .87409        .24635        .25246E-03   -.97377    
  35  Prefactor     1.0372        .24690        .25248E-03   -.91500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29509e-09
Minuit parameter uncertainties:
  1  42.0267
  2  0.000106975
  3  34.7602
  4  1.59831e-05
  5  7.76803
  6  4.98876e-05
  7  6.74714e-05
  8  9.12893
  9  0.000100718
  10  24.6259
  11  38.1428
  12  7.78685e-05
  13  7.66569e-05
  14  7.78906e-06
  15  61.2802
  16  3.5844e-05
  17  18.2069
  18  8.71171
  19  3.19584e-07
  20  7.39049e-06
  21  8.99364
  22  5.63728e-06
  23  45.6073
  24  0.00153084
  25  4.18238e-06
  26  1.10061
  27  2.40564e-06
  28  7.63448e-06
  29  3.63382
  30  7.83073e-06
  31  1.48024e-05
  32  0.00150236
  33  2.8225
  34  0.246667
  35  0.247169
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  5.855e+00  8.712e+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

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.037e+00  2.472e-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:  8.741e-01  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/731614/likelihoodResults_569289601_569548801_4FGL_J2317.4-4533_daily_bin1273.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) = 4968.07119645
delta logL = 0.0321016627349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4968.06849219
delta logL = 0.0348059277776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2629       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1193       1.0000          .0000       5.0000    
     3 'Normalizat'    .87205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0375       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4968.068     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      231 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2620        8.7326        .17521E-03    .82647E-03
   2  alpha         2.1193        1.2301        .23556E-01    .69398E-04
   3  Normalizat    .87206        .22349        .25271E-03   -.21976E-03
   4  Prefactor     1.0374        .24261        .25242E-03   -.26042E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.26204
  alpha      = 2.11934
  Normalizat = 0.872062
  Prefactor  = 1.03744
 **********
 **   18 **HESSE 
 **********

 FCN=   4968.068     FROM HESSE     STATUS=OK            25 CALLS      256 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2620        8.4469        .70083E-05   -1.5249    
   2  alpha         2.1193        1.1937        .94226E-03   -.15286    
   3  Normalizat    .87206        .22364        .10108E-04   -.97449    
   4  Prefactor     1.0374        .24283        .50485E-04   -.91492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27028e-09
Minuit parameter uncertainties:
  1  8.44878
  2  1.24586
  3  0.223881
  4  0.243084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731614': 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) = 4968.06849218
delta logL = 0.0348059368653

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  5.262e+00  8.449e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  2.119e+00  1.246e+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:  1.037e+00  2.431e-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:  8.721e-01  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.86
Ra Dec: 349.357 -45.562

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/731614/cmap_HighResolution_569289601_569548801_4FGL_J2317.4-4533_daily_bin1273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-05', job_status='DONE', photon_flux_upper_limit='3.99e-08', time_completed='2021-09-29 10:45:51.602578', job_id='731614', GAL2='1.04', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1632937551.6', return_code2='0', ts='0.86', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.48e-02', ts2='0.93', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1273' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:45:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 731614: <4FGL_J2317.4-4533_daily_bin1273> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1273 349.357 -45.5623 569289601 569548801 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 :                                   831.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            898 sec.

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

