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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1575
RA = 349.357, Dec = -45.5623
tmin = 647568001, tmax = 647827201
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='733181', job_status='RUN', time_executed='2021-09-29 10:36:24.178519', time_epoch_executed='1632936984.18' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733181

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733181/ft1_4FGL_J2317.4-4533_daily_bin1575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733181/ft2_4FGL_J2317.4-4533_daily_bin1575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733181/ft1_4FGL_J2317.4-4533_daily_bin1575.fits outfile=/scratch/kocevski/733181/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1575.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=647568001.0 tmax=647827201.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.44
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733181/ft1_filtered_4FGL_J2317.4-4533_daily_bin1575.fits" evtable="EVENTS" scfile=/scratch/kocevski/733181/ft2_4FGL_J2317.4-4533_daily_bin1575.fits sctable="SC_DATA" outfile=/scratch/kocevski/733181/ltcube_647568001_647827201_4FGL_J2317.4-4533_daily_bin1575.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/733181/ft2_4FGL_J2317.4-4533_daily_bin1575.fits
.....................!
real 11.93
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733181/ft1_filtered_4FGL_J2317.4-4533_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/733181/ft2_4FGL_J2317.4-4533_daily_bin1575.fits sctable="SC_DATA" expcube=/scratch/kocevski/733181/ltcube_647568001_647827201_4FGL_J2317.4-4533_daily_bin1575.fits outfile=/scratch/kocevski/733181/expmap_647568001_647827201_4FGL_J2317.4-4533_daily_bin1575.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/733181/ltcube_647568001_647827201_4FGL_J2317.4-4533_daily_bin1575.fits
.....................!
real 190.74
user 185.50
sys 4.91

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/733181/ft1_filtered_4FGL_J2317.4-4533_daily_bin1575.fits scfile=/scratch/kocevski/733181/ft2_4FGL_J2317.4-4533_daily_bin1575.fits outfile=/scratch/kocevski/733181/cmap_647568001_647827201_4FGL_J2317.4-4533_daily_bin1575.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/733181/ft1_filtered_4FGL_J2317.4-4533_daily_bin1575.fits scfile=/scratch/kocevski/733181/ft2_4FGL_J2317.4-4533_daily_bin1575.fits outfile=/scratch/kocevski/733181/cmap_HighResolution_647568001_647827201_4FGL_J2317.4-4533_daily_bin1575.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/733181/ft1_filtered_4FGL_J2317.4-4533_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/733181/ft2_4FGL_J2317.4-4533_daily_bin1575.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733181/Model_4FGL_J2317.4-4533_daily_bin1575.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/733181/ft1_filtered_4FGL_J2317.4-4533_daily_bin1575.fits.....................!
real 43.21
user 41.97
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16187E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.154       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6655       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15401       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2313       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4863       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.625       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.588       1.0000         .10000E-03   10000.    
    18 'norm      '    10.433       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.4128       1.0000         .10000E-03   10000.    
    21 'norm      '    8.7428       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.9066       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .11313E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .24313E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .93209       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .94097       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=   5802.115     FROM MIGRAD    STATUS=CONVERGED    969 CALLS     6257 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.753        .28076E-04** at limit **
   2  Prefactor     .10000E-03    67.807       -.42925E-04** at limit **
   3  Prefactor     42.147        37.920       -.57312E-05    .49017E-04
   4  Prefactor     5.6634        10.695        .41612E-06   -.37435E-04
   5  norm          .10000E-03    3.9606       -.74725E-06** at limit **
   6  Prefactor     .15545        1.7621       -.25210E-06    .27186E-04
   7  Prefactor     2.2310        63.860       -.22359E-05   -.34729E-04
   8  Prefactor     .10000E-03    1.7572       -.55052E-07** at limit **
   9  Prefactor     .10000E-03    11.191       -.28853E-05** at limit **
  10  Prefactor     .10000E-03    6.5916       -.39058E-05** at limit **
  11  Prefactor     .10000E-03    29.137       -.11611E-04** at limit **
  12  Prefactor     6.4867        10.183       -.76114E-07   -.94075E-05
  13  Prefactor     .10000E-03    51.895        .22342E-04** at limit **
  14  Prefactor     .10000E-03    1.9229        .48102E-07** at limit **
  15  Prefactor     40.625        37.741       -.43012E-06    .13004E-04
  16  Prefactor     .10000E-03    17.522        .37861E-06** at limit **
  17  Prefactor     24.584        19.067       -.55140E-06   -.13739E-03
  18  norm          10.433        9.3202        .19908E-06    .26836E-03
  19  norm          .10000E-03    1.8020       -.55277E-10** at limit **
  20  norm          3.4126        3.5909        .12691E-05    .16059E-03
  21  norm          8.7432        7.2956       -.10965E-06   -.54445E-04
  22  Prefactor     3.9074        4.8765       -.94603E-08   -.64931E-03
  23  Prefactor     .10000E-03    19.655       -.10246E-04** at limit **
  24  norm          .10000E-03    1.5904       -.76751E-07** at limit **
  25  Prefactor     .10000E-03    7.4858        .73547E-05** at limit **
  26  norm          .10000E-03    .39498        .10017E-06** at limit **
  27  norm          .10000E-03    1.7128       -.80064E-07** at limit **
  28  Prefactor     .10000E-03    10.794       -.42045E-05** at limit **
  29  Prefactor     .10000E-03    1.8518       -.84903E-07** at limit **
  30  Prefactor     .10000E-03    12.945        .59596E-05** at limit **
  31  norm          .10000E-03    9.5377       -.46762E-05** at limit **
  32  Prefactor     .10000E-03    4.1602        .11515E-05** at limit **
  33  Prefactor     .10012E-03    2.0339        .17827E-05** at limit **
  34  Normalizat    .93212        .16646        .73217E-06   -.19139E-03
  35  Prefactor     .94087        .17612       -.29748E-06   -.45007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 42.1466
  Prefactor  = 5.66341
  norm       = 0.0001
  Prefactor  = 0.155449
  Prefactor  = 2.23105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.48672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.6245
  Prefactor  = 0.0001
  Prefactor  = 24.5844
  norm       = 10.4332
  norm       = 0.0001
  norm       = 3.41257
  norm       = 8.7432
  Prefactor  = 3.9074
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100123
  Normalizat = 0.932116
  Prefactor  = 0.940871
 **********
 **   18 **HESSE 
 **********

 FCN=   5802.115     FROM HESSE     STATUS=OK           768 CALLS     7025 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    68.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.147        37.776        .61743E-04   -1.4409    
   4  Prefactor     5.6634        10.680        .16876E-03   -1.5232    
   5  norm          .10000E-03    3.9767        .14804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .15545        17.946        .18947E-02   -1.5629    
   7  Prefactor     2.2310        64.174        .27521E-03   -1.5409    
   8  Prefactor     .10000E-03    1.7639        .98581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.6014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.4867        10.157        .15758E-03   -1.5199    
  13  Prefactor     .10000E-03    51.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.9294        .10314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     40.625        37.727        .62890E-04   -1.4432    
  16  Prefactor     .10000E-03    17.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.584        18.864        .80784E-04   -1.4716    
  18  norm          10.433        9.3235        .62024E-03   -1.5062    
  19  norm          .10000E-03    1.8025        .99856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.4126        3.5891        .14414E-03   -1.5338    
  21  norm          8.7432        7.2940        .13556E-03   -1.5117    
  22  Prefactor     3.9074        4.8411        .17826E-03   -1.5313    
  23  Prefactor     .10000E-03    19.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.6110        .93659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.5140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .49357        .91143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.0590        .19317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.9014        .20214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    13.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    9.5487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    4.2686        .30321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10012E-03    14.406        .20281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .93212        .19830        .22113E-03   -.95341    
  35  Prefactor     .94087        .21152        .24222E-03   -.94727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.93022e-09
Minuit parameter uncertainties:
  1  7.02192e-05
  2  0.000906833
  3  37.7978
  4  10.6838
  5  9.67541e-07
  6  3.34042
  7  23.9589
  8  1.1456e-06
  9  6.75118e-07
  10  1.47575e-06
  11  4.69774e-05
  12  10.1597
  13  3.72685e-06
  14  2.17995e-08
  15  37.7495
  16  2.34569e-06
  17  18.8685
  18  9.32476
  19  4.85291e-08
  20  3.58937
  21  7.29476
  22  4.84154
  23  5.51225e-05
  24  8.0121e-06
  25  1.40975e-05
  26  1.69499e-06
  27  1.93986e-05
  28  1.00126e-05
  29  7.93952e-06
  30  1.46286e-05
  31  5.2363e-06
  32  2.17176e-05
  33  0.00265982
  34  0.198452
  35  0.211706
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.043e+01  9.325e+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:  9.409e-01  2.117e-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:  9.321e-01  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.18
Ra Dec: 349.357 -45.562
Photon Index (Fixed Index): 1.79 +/- 0.00
Photon Flux (Fixed Index): 1.15e-08 +/- 1.03e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.15e-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) = 5801.26710507
delta logL = 0.847715953597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5801.26597584
delta logL = 0.848845188101

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.811       1.0000         .10000E-03   10000.    
     2 'alpha     '    .91845       1.0000          .0000       5.0000    
     3 'Normalizat'    .93601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93834       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=   5801.266     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      187 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.811        8.7645        .30463E-02   -.10127E-02
   2  alpha         .91840        .50155        .44133       -.29874E-04
   3  Normalizat    .93607        .15799        .45360E-01    .20217E-03
   4  Prefactor     .93833        .17471        .45492E-01    .86800E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.811
  alpha      = 0.918398
  Normalizat = 0.936066
  Prefactor  = 0.93833
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.266     FROM HESSE     STATUS=OK            27 CALLS      214 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.811        10.117        .12185E-03   -1.5050    
   2  alpha         .91840        .57892        .19432E-02   -.68496    
   3  Normalizat    .93607        .18974        .22065E-03   -.95204    
   4  Prefactor     .93833        .20985        .24242E-03   -.94814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07373e-09
Minuit parameter uncertainties:
  1  10.1184
  2  0.587915
  3  0.189872
  4  0.210027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733181': 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) = 5801.26597569
delta logL = 0.848845340054

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.081e+01  1.012e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  9.184e-01  5.879e-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:  9.383e-01  2.100e-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:  9.361e-01  1.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.88
Ra Dec: 349.357 -45.562
Photon Index (Free Index): 0.92 +/- 0.59
Photon Flux (Free Index): 7.42e-09 +/- 6.37e-09
Energy Flux (Free Index): 4.94e-05 +/- 5.88e-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/733181/cmap_HighResolution_647568001_647827201_4FGL_J2317.4-4533_daily_bin1575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-08', energy_flux2='4.94e-05', photon_flux_error='1.03e-08', dlogl='8.49e-01', energy_flux='1.28e-05', photon_flux2='7.42e-09', job_status='DONE', time_completed='2021-09-29 10:51:23.205301', photon_index_error2='0.59', photon_index2='0.92', ts='6.18', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='5.88e-05', EG='0.93', time_epoch_completed='1632937883.21', return_code='0', job_id='733181', GAL2='0.94', EG2='0.94', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='6.37e-09', ts2='7.88', photon_index='1.79' WHERE bin_id='1575' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:51:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 733181: <4FGL_J2317.4-4533_daily_bin1575> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1575> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:35:46 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:35:48 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:48 2021
Terminated at Wed Sep 29 10:51:23 2021
Results reported at Wed Sep 29 10:51:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1575 349.357 -45.5623 647568001 647827201 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 :                                   894.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

