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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1283
RA = 349.357, Dec = -45.5623
tmin = 571881601, tmax = 572140801
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='731629', job_status='RUN', time_executed='2021-09-29 10:34:05.567823', time_epoch_executed='1632936845.57' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731629

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731629/ft1_4FGL_J2317.4-4533_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731629/ft2_4FGL_J2317.4-4533_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731629/ft1_4FGL_J2317.4-4533_daily_bin1283.fits outfile=/scratch/kocevski/731629/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1283.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=571881601.0 tmax=572140801.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.64
user 2.37
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731629/ft1_filtered_4FGL_J2317.4-4533_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/731629/ft2_4FGL_J2317.4-4533_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/731629/ltcube_571881601_572140801_4FGL_J2317.4-4533_daily_bin1283.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/731629/ft2_4FGL_J2317.4-4533_daily_bin1283.fits
.....................!
real 12.27
user 11.91
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731629/ft1_filtered_4FGL_J2317.4-4533_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/731629/ft2_4FGL_J2317.4-4533_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/731629/ltcube_571881601_572140801_4FGL_J2317.4-4533_daily_bin1283.fits outfile=/scratch/kocevski/731629/expmap_571881601_572140801_4FGL_J2317.4-4533_daily_bin1283.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/731629/ltcube_571881601_572140801_4FGL_J2317.4-4533_daily_bin1283.fits
.....................!
real 193.80
user 188.02
sys 5.42

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/731629/ft1_filtered_4FGL_J2317.4-4533_daily_bin1283.fits scfile=/scratch/kocevski/731629/ft2_4FGL_J2317.4-4533_daily_bin1283.fits outfile=/scratch/kocevski/731629/cmap_571881601_572140801_4FGL_J2317.4-4533_daily_bin1283.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731629/ft1_filtered_4FGL_J2317.4-4533_daily_bin1283.fits scfile=/scratch/kocevski/731629/ft2_4FGL_J2317.4-4533_daily_bin1283.fits outfile=/scratch/kocevski/731629/cmap_HighResolution_571881601_572140801_4FGL_J2317.4-4533_daily_bin1283.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/731629/ft1_filtered_4FGL_J2317.4-4533_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/731629/ft2_4FGL_J2317.4-4533_daily_bin1283.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731629/Model_4FGL_J2317.4-4533_daily_bin1283.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/731629/ft1_filtered_4FGL_J2317.4-4533_daily_bin1283.fits.....................!
real 28.20
user 26.85
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    75.412       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9595       1.0000         .10000E-03   10000.    
     7 'Prefactor '    209.62       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10597E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    44.234       1.0000         .10000E-03   10000.    
    12 'Prefactor '    68.984       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.154       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.532       1.0000         .10000E-03   10000.    
    20 'norm      '    3.8796       1.0000         .10000E-03   10000.    
    21 'norm      '    27.549       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .50595E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    51.879       1.0000         .10000E-03   10000.    
    24 'norm      '    .10208E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .37402E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.0230       1.0000         .10000E-03   10000.    
    28 'Prefactor '    27.598       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.3445       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    2.0581       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .36631       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=   2689.518     FROM MIGRAD    STATUS=CONVERGED    962 CALLS     5993 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.248        .70968E-06** at limit **
   2  Prefactor     75.440        55.810       -.15121E-05    .19801E-04
   3  Prefactor     .10000E-03    48.761        .79032E-06** at limit **
   4  Prefactor     .10000E-03    10.430        .58887E-07** at limit **
   5  norm          .10000E-03    7.9440       -.28806E-07** at limit **
   6  Prefactor     2.9603        10.819       -.89583E-06   -.32352E-05
   7  Prefactor     209.68        198.31        .11588E-06   -.87605E-05
   8  Prefactor     .10000E-03    6.0213        .26283E-07** at limit **
   9  Prefactor     .10000E-03    284.01       -.17990E-05** at limit **
  10  Prefactor     .10000E-03    85.939        .20149E-06** at limit **
  11  Prefactor     44.272        92.110       -.13414E-06   -.36376E-05
  12  Prefactor     68.997        48.988       -.88622E-06    .36631E-04
  13  Prefactor     .10000E-03    243.42        .18843E-05** at limit **
  14  Prefactor     .10000E-03    10.188       -.15607E-06** at limit **
  15  Prefactor     .10000E-03    34.423        .55624E-07** at limit **
  16  Prefactor     .10000E-03    52.288       -.41745E-06** at limit **
  17  Prefactor     19.210        41.753       -.28301E-05   -.19084E-04
  18  norm          .10000E-03    9.6068        .97549E-07** at limit **
  19  norm          13.549        14.117       -.59350E-06   -.11933E-03
  20  norm          3.8778        9.1056       -.81764E-07    .75999E-04
  21  norm          27.555        22.658       -.61470E-06    .59687E-04
  22  Prefactor     .10017E-03    69.642        .13579E-04** at limit **
  23  Prefactor     52.010        125.19       -.14336E-05   -.19323E-04
  24  norm          .10000E-03    11.313       -.74239E-06** at limit **
  25  Prefactor     .10277E-03    258.57       -.24346E-04** at limit **
  26  norm          .10000E-03    1.1143        .20457E-06** at limit **
  27  norm          9.0258        12.344       -.50422E-06    .32579E-04
  28  Prefactor     27.612        32.451       -.94203E-06    .30773E-04
  29  Prefactor     4.3469        5.4310       -.33953E-06    .50682E-04
  30  Prefactor     .10000E-03    57.293       -.79381E-06** at limit **
  31  norm          .10000E-03    11.415        .63454E-07** at limit **
  32  Prefactor     .10000E-03    5.0775        .27208E-06** at limit **
  33  Prefactor     .10000E-03    7.0452        .23775E-06** at limit **
  34  Normalizat    2.0576        .49762        .21554E-05   -.12307E-05
  35  Prefactor     .36657        .47031       -.24224E-05    .97846E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 75.4403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.96029
  Prefactor  = 209.676
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 44.2721
  Prefactor  = 68.9968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2097
  norm       = 0.0001
  norm       = 13.5485
  norm       = 3.87778
  norm       = 27.555
  Prefactor  = 0.000100175
  Prefactor  = 52.0103
  norm       = 0.0001
  Prefactor  = 0.000102773
  norm       = 0.0001
  norm       = 9.02577
  Prefactor  = 27.6123
  Prefactor  = 4.34685
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 2.05759
  Prefactor  = 0.366571
 **********
 **   18 **HESSE 
 **********

 FCN=   2689.518     FROM HESSE     STATUS=OK           770 CALLS     6763 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     75.440        55.539        .46237E-04   -1.3969    
   3  Prefactor     .10000E-03    48.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.456        .16359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.9441        .14277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9603        10.772        .23605E-03   -1.5364    
   7  Prefactor     209.68        197.77        .13961E-03   -1.2802    
   8  Prefactor     .10000E-03    6.0239        .12429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    284.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    85.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     44.272        92.042        .60280E-04   -1.4376    
  12  Prefactor     68.997        48.770        .48328E-04   -1.4045    
  13  Prefactor     .10000E-03    243.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.202        .16169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    52.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.210        41.943        .91515E-04   -1.4831    
  18  norm          .10000E-03    9.6061        .15700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.549        13.836        .10889E-03   -1.4972    
  20  norm          3.8778        9.1208        .20486E-03   -1.5314    
  21  norm          27.555        22.515        .76327E-04   -1.4658    
  22  Prefactor     .10017E-03    100.49        .33914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     52.010        125.31        .55682E-04   -1.4264    
  24  norm          .10000E-03    11.454        .17038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10277E-03    50.414        .84376E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.1314        .53464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.0258        12.274        .13343E-03   -1.5107    
  28  Prefactor     27.612        32.317        .76259E-04   -1.4657    
  29  Prefactor     4.3469        5.4163        .12795E-03   -1.5291    
  30  Prefactor     .10000E-03    57.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    11.416        .17116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    5.1280        .11413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    7.1088        .13427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    2.0576        .50470        .24547E-03   -.63115    
  35  Prefactor     .36657        .46566        .53331E-03   -1.1855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12439e-09
Minuit parameter uncertainties:
  1  0.000163575
  2  55.5771
  3  8.39232e-05
  4  1.59418e-05
  5  5.59185e-06
  6  10.7787
  7  198.406
  8  8.49255e-07
  9  0.00120027
  10  0.000288138
  11  92.339
  12  48.7978
  13  0.000676367
  14  3.08846e-06
  15  4.5797e-06
  16  0.00010565
  17  42.0074
  18  1.50179e-05
  19  13.8394
  20  9.12409
  21  22.5216
  22  0.00840003
  23  125.948
  24  0.000133725
  25  0.0236691
  26  1.17286e-05
  27  12.2778
  28  32.3375
  29  5.41687
  30  0.000532026
  31  2.31688e-06
  32  9.74307e-06
  33  1.60724e-05
  34  0.50603
  35  0.470563
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  1.502e-05  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:  3.666e-01  4.706e-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:  2.058e+00  5.060e-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: 6.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731629/likelihoodResults_571881601_572140801_4FGL_J2317.4-4533_daily_bin1283.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) = 2689.5181631
delta logL = -0.000322286532992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2689.27780559
delta logL = 0.240035231742

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10542       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.9263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45352       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=   2689.278     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      328 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10532        .16402        .23331E-04    .15368E-02
   2  alpha         5.0000        3.6192        .54067E-01** at limit **
   3  Normalizat    1.9256        .48056        .25145E-03   -.35749E-04
   4  Prefactor     .45423        .46340        .48203E-03   -.65743E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.105317
  alpha      = 5
  Normalizat = 1.92559
  Prefactor  = 0.454233
 **********
 **   18 **HESSE 
 **********

 FCN=   2689.278     FROM HESSE     STATUS=OK            23 CALLS      351 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10532        .16260        .93326E-06   -1.5643    
   2  alpha         5.0000        3.6200        .10813E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.9256        .48063        .50291E-04   -.66429    
   4  Prefactor     .45423        .46350        .19281E-04   -1.1412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92641e-10
Minuit parameter uncertainties:
  1  0.1626
  2  3.75034e-05
  3  0.481832
  4  0.467411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731629': 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) = 2689.27780315
delta logL = 0.240037668436

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.053e-01  1.626e-01  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  5.000e+00  3.750e-05  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:  4.542e-01  4.674e-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.926e+00  4.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/731629/cmap_HighResolution_571881601_572140801_4FGL_J2317.4-4533_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.83e-05', job_status='DONE', photon_flux_upper_limit='6.12e-08', time_completed='2021-09-29 10:44:41.472848', job_id='731629', GAL2='0.45', fit_tolerance='1e-08', EG2='1.93', EG='2.06', time_epoch_completed='1632937481.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.37', dlogl='2.40e-01', ts2='0.53', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1283' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:44:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 731629: <4FGL_J2317.4-4533_daily_bin1283> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1283 349.357 -45.5623 571881601 572140801 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 :                                   631.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            827 sec.

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

