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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1106
RA = 349.357, Dec = -45.5623
tmin = 526003201, tmax = 526262401
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='731342', job_status='RUN', time_executed='2021-09-29 10:31:51.465941', time_epoch_executed='1632936711.47' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731342

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731342/ft1_4FGL_J2317.4-4533_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731342/ft2_4FGL_J2317.4-4533_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731342/ft1_4FGL_J2317.4-4533_daily_bin1106.fits outfile=/scratch/kocevski/731342/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1106.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=526003201.0 tmax=526262401.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.73
user 3.49
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731342/ft1_filtered_4FGL_J2317.4-4533_daily_bin1106.fits" evtable="EVENTS" scfile=/scratch/kocevski/731342/ft2_4FGL_J2317.4-4533_daily_bin1106.fits sctable="SC_DATA" outfile=/scratch/kocevski/731342/ltcube_526003201_526262401_4FGL_J2317.4-4533_daily_bin1106.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/731342/ft2_4FGL_J2317.4-4533_daily_bin1106.fits
.....................!
real 13.45
user 13.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731342/ft1_filtered_4FGL_J2317.4-4533_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/731342/ft2_4FGL_J2317.4-4533_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/731342/ltcube_526003201_526262401_4FGL_J2317.4-4533_daily_bin1106.fits outfile=/scratch/kocevski/731342/expmap_526003201_526262401_4FGL_J2317.4-4533_daily_bin1106.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/731342/ltcube_526003201_526262401_4FGL_J2317.4-4533_daily_bin1106.fits
.....................!
real 190.49
user 185.81
sys 4.28

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/731342/ft1_filtered_4FGL_J2317.4-4533_daily_bin1106.fits scfile=/scratch/kocevski/731342/ft2_4FGL_J2317.4-4533_daily_bin1106.fits outfile=/scratch/kocevski/731342/cmap_526003201_526262401_4FGL_J2317.4-4533_daily_bin1106.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731342/ft1_filtered_4FGL_J2317.4-4533_daily_bin1106.fits scfile=/scratch/kocevski/731342/ft2_4FGL_J2317.4-4533_daily_bin1106.fits outfile=/scratch/kocevski/731342/cmap_HighResolution_526003201_526262401_4FGL_J2317.4-4533_daily_bin1106.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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731342/ft1_filtered_4FGL_J2317.4-4533_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/731342/ft2_4FGL_J2317.4-4533_daily_bin1106.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731342/Model_4FGL_J2317.4-4533_daily_bin1106.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/731342/ft1_filtered_4FGL_J2317.4-4533_daily_bin1106.fits.....................!
real 44.15
user 42.09
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2758       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.7010       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.434       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2713       1.0000         .10000E-03   10000.    
     5 'norm      '    4.7275       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6247       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1813       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1589       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7494       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5580       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.818       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.3857       1.0000         .10000E-03   10000.    
    19 'norm      '    3.3153       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3302       1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.041       1.0000         .10000E-03   10000.    
    24 'norm      '    .18482E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.0522       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .82153       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    15.207       1.0000         .10000E-03   10000.    
    31 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1298       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .74572       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=   5928.511     FROM MIGRAD    STATUS=CONVERGED    955 CALLS     5051 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2806        142.96        .16404E-05    .58319E-05
   2  Prefactor     9.7011        14.576       -.36050E-06   -.14529E-04
   3  Prefactor     29.471        42.944        .30018E-05    .11268E-03
   4  Prefactor     2.2705        9.3608        .82998E-06   -.28521E-04
   5  norm          4.7273        5.7168        .64350E-07   -.59527E-05
   6  Prefactor     2.6249        2.6330       -.10027E-07    .74596E-05
   7  Prefactor     .10000E-03    22.760       -.13992E-05** at limit **
   8  Prefactor     6.1817        4.8894        .28868E-07   -.29921E-05
   9  Prefactor     3.1432        51.452       -.17433E-05   -.20360E-04
  10  Prefactor     .10000E-03    4.5091       -.16417E-06** at limit **
  11  Prefactor     .10000E-03    11.602        .11211E-06** at limit **
  12  Prefactor     9.7494        9.8490        .34615E-07   -.84910E-05
  13  Prefactor     .10000E-03    48.050        .15135E-05** at limit **
  14  Prefactor     5.5581        5.7253        .10171E-06    .20447E-04
  15  Prefactor     11.822        20.463        .76761E-07    .45309E-05
  16  Prefactor     .10000E-03    17.055        .84970E-06** at limit **
  17  Prefactor     .10000E-03    11.495        .67916E-07** at limit **
  18  norm          9.3862        8.4069       -.39657E-06    .39423E-04
  19  norm          3.3153        3.9484       -.41145E-07   -.23070E-05
  20  norm          .10000E-03    2.2743       -.20064E-06** at limit **
  21  norm          .10000E-03    3.0236       -.76642E-07** at limit **
  22  Prefactor     5.3304        4.8587       -.38338E-07    .15770E-04
  23  Prefactor     36.996        27.632        .93894E-06    .35315E-03
  24  norm          .10001E-03    3.7047       -.29969E-05** at limit **
  25  Prefactor     6.0528        10.548        .11470E-06    .11122E-04
  26  norm          .10000E-03    .22888       -.16177E-07** at limit **
  27  norm          .81768        3.9732        .28170E-05    .55231E-03
  28  Prefactor     .10000E-03    5.4664       -.11163E-06** at limit **
  29  Prefactor     .10000E-03    1.7362        .28209E-06** at limit **
  30  Prefactor     15.211        14.731       -.25353E-06   -.24213E-04
  31  norm          .10000E-03    11.151       -.33494E-06** at limit **
  32  Prefactor     .10000E-03    4.5908        .80779E-06** at limit **
  33  Prefactor     .10000E-03    1.0951        .14622E-07** at limit **
  34  Normalizat    1.1297        .17280       -.27745E-07    .33449E-03
  35  Prefactor     .74578        .18244        .39206E-06    .21283E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.28057
  Prefactor  = 9.70114
  Prefactor  = 29.4708
  Prefactor  = 2.27055
  norm       = 4.72733
  Prefactor  = 2.62489
  Prefactor  = 0.0001
  Prefactor  = 6.1817
  Prefactor  = 3.14319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.74939
  Prefactor  = 0.0001
  Prefactor  = 5.55809
  Prefactor  = 11.822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.38617
  norm       = 3.31525
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.33042
  Prefactor  = 36.9961
  norm       = 0.000100011
  Prefactor  = 6.05281
  norm       = 0.0001
  norm       = 0.817675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2109
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12971
  Prefactor  = 0.745777
 **********
 **   18 **HESSE 
 **********

 FCN=   5928.511     FROM HESSE     STATUS=OK           772 CALLS     5823 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2806        142.93        .22373E-03   -1.5346    
   2  Prefactor     9.7011        14.573        .12866E-03   -1.5085    
   3  Prefactor     29.471        43.358        .73848E-04   -1.4622    
   4  Prefactor     2.2705        9.2609        .27250E-03   -1.5407    
   5  norm          4.7273        5.7210        .18506E-03   -1.5273    
   6  Prefactor     2.6249        2.6290        .12024E-03   -1.5384    
   7  Prefactor     .10000E-03    22.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.1817        4.8838        .14450E-03   -1.5211    
   9  Prefactor     3.1432        51.743        .22805E-03   -1.5353    
  10  Prefactor     .10000E-03    4.5116        .15968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.7494        9.8396        .12834E-03   -1.5083    
  13  Prefactor     .10000E-03    48.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5581        5.7191        .17041E-03   -1.5236    
  15  Prefactor     11.822        20.466        .11653E-03   -1.5020    
  16  Prefactor     .10000E-03    17.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.3862        8.4050        .65407E-03   -1.5095    
  19  norm          3.3153        3.9466        .16275E-03   -1.5344    
  20  norm          .10000E-03    2.2896        .11334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.0376        .13075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.3304        4.8565        .14697E-03   -1.5246    
  23  Prefactor     36.996        27.350        .65851E-04   -1.4491    
  24  norm          .10001E-03    6.7721        .24713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.0528        10.531        .16321E-03   -1.5216    
  26  norm          .10000E-03    .23079        .35945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .81768        4.0890        .28521E-03   -1.5527    
  28  Prefactor     .10000E-03    5.4724        .17583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.7584        .98779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     15.211        14.731        .10271E-03   -1.4928    
  31  norm          .10000E-03    11.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    4.6523        .16027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    1.0997        .78661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.1297        .20748        .21102E-03   -.88804    
  35  Prefactor     .74578        .21794        .27473E-03   -1.0176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26067e-09
Minuit parameter uncertainties:
  1  43.4176
  2  14.5781
  3  43.4046
  4  9.17337
  5  5.72167
  6  2.62913
  7  0.000130263
  8  4.88407
  9  25.5316
  10  3.52545e-06
  11  5.90124e-06
  12  9.84124
  13  0.000215614
  14  5.71964
  15  20.478
  16  7.67144e-05
  17  5.92149e-07
  18  8.40601
  19  3.94694
  20  4.20033e-06
  21  1.08609e-06
  22  4.85684
  23  27.3589
  24  0.000553201
  25  10.5341
  26  4.2777e-07
  27  3.65722
  28  8.27803e-06
  29  8.088e-06
  30  14.7342
  31  3.46975e-05
  32  1.81116e-05
  33  1.76644e-06
  34  0.207632
  35  0.218189
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  9.386e+00  8.406e+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:  7.458e-01  2.182e-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.130e+00  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.58
Ra Dec: 349.357 -45.562
Photon Index (Fixed Index): 1.79 +/- 0.00
Photon Flux (Fixed Index): 1.03e-08 +/- 9.26e-09
Energy Flux (Fixed Index): 1.15e-05 +/- 1.03e-05

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) = 5926.78518606
delta logL = 1.72604840063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5926.72854627
delta logL = 1.78268818836

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5600       1.0000         .10000E-03   10000.    
     2 'alpha     '    .58937       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74673       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=   5926.729     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5524        5.5449        .39171E-02    .16068E-03
   2  alpha         .58952        .47280        .44142       -.40977E-04
   3  Normalizat    1.1314        .16560        .36850E-01   -.18541E-03
   4  Prefactor     .74654        .17967        .62059E-01   -.17883E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.55237
  alpha      = 0.589518
  Normalizat = 1.13139
  Prefactor  = 0.74654
 **********
 **   18 **HESSE 
 **********

 FCN=   5926.729     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5524        7.4140        .15558E-03   -1.5196    
   2  alpha         .58952        .57212        .21367E-01   -.86979    
   3  Normalizat    1.1314        .19754        .21080E-03   -.88750    
   4  Prefactor     .74654        .21403        .27450E-03   -1.0173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27334e-10
Minuit parameter uncertainties:
  1  7.41502
  2  0.584861
  3  0.197665
  4  0.214268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731342': 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) = 5926.72854429
delta logL = 1.78269017245

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  6.552e+00  7.415e+00  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  5.895e-01  5.849e-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.465e-01  2.143e-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.131e+00  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.15
Ra Dec: 349.357 -45.562
Photon Index (Free Index): 0.59 +/- 0.58
Photon Flux (Free Index): 5.62e-09 +/- 4.66e-09
Energy Flux (Free Index): 6.82e-05 +/- 7.69e-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/731342/cmap_HighResolution_526003201_526262401_4FGL_J2317.4-4533_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-08', energy_flux2='6.82e-05', photon_flux_error='9.26e-09', dlogl='1.78e+00', energy_flux='1.15e-05', photon_flux2='5.62e-09', job_status='DONE', time_completed='2021-09-29 10:45:52.304338', photon_index_error2='0.58', photon_index2='0.59', ts='6.58', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='7.69e-05', EG='1.13', time_epoch_completed='1632937552.3', return_code='0', job_id='731342', GAL2='0.75', EG2='1.13', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='4.66e-09', ts2='10.15', photon_index='1.79' WHERE bin_id='1106' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:45:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 731342: <4FGL_J2317.4-4533_daily_bin1106> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1106 349.357 -45.5623 526003201 526262401 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.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

