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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1580
RA = 349.357, Dec = -45.5623
tmin = 648864001, tmax = 649123201
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='733190', job_status='RUN', time_executed='2021-09-29 10:39:10.264587', time_epoch_executed='1632937150.26' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733190

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733190/ft1_4FGL_J2317.4-4533_daily_bin1580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733190/ft2_4FGL_J2317.4-4533_daily_bin1580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733190/ft1_4FGL_J2317.4-4533_daily_bin1580.fits outfile=/scratch/kocevski/733190/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1580.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=648864001.0 tmax=649123201.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 2.97
user 2.78
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/733190/ft2_4FGL_J2317.4-4533_daily_bin1580.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/733190/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1580.fits evtable="EVENTS" outfile="/scratch/kocevski/733190/ft1_filtered_4FGL_J2317.4-4533_daily_bin1580.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733190/ft1_filtered_4FGL_J2317.4-4533_daily_bin1580.fits" evtable="EVENTS" scfile=/scratch/kocevski/733190/ft2_4FGL_J2317.4-4533_daily_bin1580.fits sctable="SC_DATA" outfile=/scratch/kocevski/733190/ltcube_648864001_649123201_4FGL_J2317.4-4533_daily_bin1580.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/733190/ft2_4FGL_J2317.4-4533_daily_bin1580.fits
.....................!
real 12.67
user 12.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733190/ft1_filtered_4FGL_J2317.4-4533_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/733190/ft2_4FGL_J2317.4-4533_daily_bin1580.fits sctable="SC_DATA" expcube=/scratch/kocevski/733190/ltcube_648864001_649123201_4FGL_J2317.4-4533_daily_bin1580.fits outfile=/scratch/kocevski/733190/expmap_648864001_649123201_4FGL_J2317.4-4533_daily_bin1580.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/733190/ltcube_648864001_649123201_4FGL_J2317.4-4533_daily_bin1580.fits
.....................!
real 192.08
user 186.31
sys 5.36

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/733190/ft1_filtered_4FGL_J2317.4-4533_daily_bin1580.fits scfile=/scratch/kocevski/733190/ft2_4FGL_J2317.4-4533_daily_bin1580.fits outfile=/scratch/kocevski/733190/cmap_648864001_649123201_4FGL_J2317.4-4533_daily_bin1580.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733190/ft1_filtered_4FGL_J2317.4-4533_daily_bin1580.fits scfile=/scratch/kocevski/733190/ft2_4FGL_J2317.4-4533_daily_bin1580.fits outfile=/scratch/kocevski/733190/cmap_HighResolution_648864001_649123201_4FGL_J2317.4-4533_daily_bin1580.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/733190/ft1_filtered_4FGL_J2317.4-4533_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/733190/ft2_4FGL_J2317.4-4533_daily_bin1580.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733190/Model_4FGL_J2317.4-4533_daily_bin1580.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/733190/ft1_filtered_4FGL_J2317.4-4533_daily_bin1580.fits.....................!
real 32.11
user 30.80
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.013       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .14867E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3847       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    84.923       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .86025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.508       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .83903       1.0000         .10000E-03   10000.    
    18 'norm      '    25.019       1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5586       1.0000         .10000E-03   10000.    
    24 'norm      '    1.4336       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.904       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    15.103       1.0000         .10000E-03   10000.    
    31 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    8.2650       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.2282       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .69965       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=   3605.377     FROM MIGRAD    STATUS=CONVERGED    972 CALLS     5080 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.227        .10320E-06** at limit **
   2  Prefactor     .10000E-03    18.454        .71953E-06** at limit **
   3  Prefactor     13.021        39.399       -.61126E-06    .69272E-05
   4  Prefactor     .10000E-03    5.5625       -.37347E-07** at limit **
   5  norm          .10033E-03    13.776        .42492E-05** at limit **
   6  Prefactor     2.3847        7.0616        .41780E-05    .13943E-03
   7  Prefactor     .10000E-03    145.07       -.12011E-05** at limit **
   8  Prefactor     .10000E-03    5.5519       -.48721E-07** at limit **
   9  Prefactor     84.816        108.17        .85431E-05   -.23365E-04
  10  Prefactor     .10000E-03    49.711       -.56298E-06** at limit **
  11  Prefactor     .10000E-03    23.069       -.11312E-05** at limit **
  12  Prefactor     .10000E-03    10.441       -.37796E-06** at limit **
  13  Prefactor     .10000E-03    365.06        .11041E-04** at limit **
  14  Prefactor     .10000E-03    3.5627        .87194E-08** at limit **
  15  Prefactor     .10000E-03    28.254        .56734E-06** at limit **
  16  Prefactor     45.549        101.30       -.44537E-05    .31468E-05
  17  Prefactor     .83178        19.070        .20216E-06   -.45314E-05
  18  norm          25.022        19.515        .20125E-06    .53885E-05
  19  norm          .10000E-03    3.0794       -.82184E-08** at limit **
  20  norm          .10000E-03    6.9322        .10430E-06** at limit **
  21  norm          .10000E-03    19.844       -.32241E-06** at limit **
  22  Prefactor     .10000E-03    4.9161       -.22267E-07** at limit **
  23  Prefactor     4.6137        201.38       -.20847E-04   -.38128E-04
  24  norm          1.4333        6.7979        .34915E-05    .28136E-03
  25  Prefactor     .10000E-03    9.8702        .65885E-07** at limit **
  26  norm          .10000E-03    .46832       -.37910E-07** at limit **
  27  norm          .10000E-03    4.3879        .54891E-06** at limit **
  28  Prefactor     14.903        22.707        .71227E-07    .90930E-05
  29  Prefactor     .10000E-03    3.3957       -.52967E-06** at limit **
  30  Prefactor     15.088        20.448       -.93748E-07    .61769E-04
  31  norm          .10000E-03    10.602       -.37456E-06** at limit **
  32  Prefactor     .10000E-03    9.2469        .16472E-06** at limit **
  33  Prefactor     8.2688        6.1781        .15319E-06    .76409E-05
  34  Normalizat    1.2281        .24384       -.80994E-06   -.18454E-04
  35  Prefactor     .69969        .24039        .65497E-06   -.88163E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0214
  Prefactor  = 0.0001
  norm       = 0.000100327
  Prefactor  = 2.38473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 84.8158
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.5494
  Prefactor  = 0.831776
  norm       = 25.0217
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.61368
  norm       = 1.43332
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.9025
  Prefactor  = 0.0001
  Prefactor  = 15.0881
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.26875
  Normalizat = 1.22807
  Prefactor  = 0.699694
 **********
 **   18 **HESSE 
 **********

 FCN=   3605.377     FROM HESSE     STATUS=OK           766 CALLS     5846 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.021        39.476        .11104E-03   -1.4986    
   4  Prefactor     .10000E-03    5.5904        .13829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10033E-03    56.774        .38646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3847        6.9982        .13068E-02   -1.5399    
   7  Prefactor     .10000E-03    145.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.5686        .13817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     84.816        107.23        .21796E-03   -1.3863    
  10  Prefactor     .10000E-03    49.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    365.52        .20858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5643        .11069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    28.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     45.549        101.17        .59434E-04   -1.4357    
  17  Prefactor     .83178        88.490        .48525E-02   -1.5526    
  18  norm          25.022        19.512        .80086E-04   -1.4707    
  19  norm          .10000E-03    3.0808        .10288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.9676        .15305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    20.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.9642        .12994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.6137        182.50        .18854E-03   -1.5278    
  24  norm          1.4333        5.9572        .21572E-03   -1.5469    
  25  Prefactor     .10000E-03    9.9083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .47937        .80040E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.5509        .24489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     14.903        22.794        .10375E-03   -1.4936    
  29  Prefactor     .10000E-03    6.4050        .20215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     15.088        19.714        .10306E-03   -1.4931    
  31  norm          .10000E-03    10.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    9.5288        .35510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     8.2688        6.2031        .11836E-03   -1.5133    
  34  Normalizat    1.2281        .28744        .21273E-03   -.85740    
  35  Prefactor     .69969        .28465        .29077E-03   -1.0354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69555e-08
Minuit parameter uncertainties:
  1  1.73057e-06
  2  8.39062e-06
  3  39.5548
  4  5.971e-08
  5  0.00863007
  6  7.00058
  7  8.75314e-05
  8  4.11452e-06
  9  107.478
  10  0.00067063
  11  4.58171e-06
  12  1.30697e-05
  13  0.00115933
  14  2.01759e-06
  15  1.70869e-05
  16  101.558
  17  17.1836
  18  19.5169
  19  5.69141e-07
  20  1.44398e-05
  21  5.40178e-06
  22  7.69451e-07
  23  58.2253
  24  5.84498
  25  2.70158e-06
  26  8.43955e-08
  27  3.95152e-05
  28  22.8074
  29  9.64513e-05
  30  19.7228
  31  1.62462e-06
  32  4.00978e-06
  33  6.20362
  34  0.287814
  35  0.285247
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  2.502e+01  1.952e+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:  6.997e-01  2.852e-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.228e+00  2.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 349.357 -45.562
Photon Index (Fixed Index): 1.79 +/- 0.00
Photon Flux (Fixed Index): 2.76e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 2.40e-05

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

Saving results to:
/scratch/kocevski/733190/likelihoodResults_648864001_649123201_4FGL_J2317.4-4533_daily_bin1580.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) = 3603.93837212
delta logL = 1.43813724932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3603.93703984
delta logL = 1.4394695362

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.042       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8339       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71490       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=   3603.937     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      264 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.029        172.19        .28859E-02   -.13130E-03
   2  alpha         2.8333        3.9134        .17895        .10505E-05
   3  Normalizat    1.1832        .13028        .35306E-01    .21493E-04
   4  Prefactor     .71587        .10689        .64880E-01    .69598E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0289
  alpha      = 2.83326
  Normalizat = 1.18315
  Prefactor  = 0.715867
 **********
 **   18 **HESSE 
 **********

 FCN=   3603.937     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.029        13.764        .11544E-03   -1.5014    
   2  alpha         2.8333        .65231        .73504E-02    .13370    
   3  Normalizat    1.1832        .26275        .21589E-03   -.87125    
   4  Prefactor     .71587        .27622        .28704E-03   -1.0291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34248e-11
Minuit parameter uncertainties:
  1  13.768
  2  0.66009
  3  0.263039
  4  0.276751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733190': 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) = 3603.93702488
delta logL = 1.4394844932

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.203e+01  1.377e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  2.833e+00  6.601e-01  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:  7.159e-01  2.768e-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.183e+00  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.94
Ra Dec: 349.357 -45.562
Photon Index (Free Index): 2.83 +/- 0.66
Photon Flux (Free Index): 7.99e-08 +/- 5.71e-08
Energy Flux (Free Index): 2.36e-05 +/- 1.44e-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/733190/cmap_HighResolution_648864001_649123201_4FGL_J2317.4-4533_daily_bin1580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.05e-05', comment='SUCCESS', photon_flux='2.76e-08', energy_flux2='2.36e-05', photon_flux_error='2.15e-08', dlogl='1.44e+00', energy_flux='3.08e-05', photon_flux2='7.99e-08', job_status='DONE', time_completed='2021-09-29 10:50:57.595333', photon_index_error2='0.66', photon_index2='2.83', ts='3.08', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='8.11e-08', energy_flux_error2='1.44e-05', EG='1.23', time_epoch_completed='1632937857.6', return_code='0', job_id='733190', GAL2='0.72', EG2='1.18', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='5.71e-08', ts2='5.94', photon_index='1.79' WHERE bin_id='1580' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:50:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 733190: <4FGL_J2317.4-4533_daily_bin1580> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1580> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:35:47 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:35:49 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:35:49 2021
Terminated at Wed Sep 29 10:50:58 2021
Results reported at Wed Sep 29 10:50:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1580 349.357 -45.5623 648864001 649123201 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 :                                   699.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            911 sec.

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

