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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1459
RA = 349.357, Dec = -45.5623
tmin = 617500801, tmax = 617760001
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='733008', job_status='RUN', time_executed='2021-09-29 10:36:36.617109', time_epoch_executed='1632936996.62' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1459'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733008/ft1_4FGL_J2317.4-4533_daily_bin1459.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733008/ft2_4FGL_J2317.4-4533_daily_bin1459.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733008/ft1_4FGL_J2317.4-4533_daily_bin1459.fits outfile=/scratch/kocevski/733008/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1459.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=617500801.0 tmax=617760001.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.63
user 2.43
sys 0.17

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733008/ft1_filtered_4FGL_J2317.4-4533_daily_bin1459.fits" evtable="EVENTS" scfile=/scratch/kocevski/733008/ft2_4FGL_J2317.4-4533_daily_bin1459.fits sctable="SC_DATA" outfile=/scratch/kocevski/733008/ltcube_617500801_617760001_4FGL_J2317.4-4533_daily_bin1459.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/733008/ft2_4FGL_J2317.4-4533_daily_bin1459.fits
.....................!
real 12.80
user 12.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733008/ft1_filtered_4FGL_J2317.4-4533_daily_bin1459.fits evtable="EVENTS" scfile=/scratch/kocevski/733008/ft2_4FGL_J2317.4-4533_daily_bin1459.fits sctable="SC_DATA" expcube=/scratch/kocevski/733008/ltcube_617500801_617760001_4FGL_J2317.4-4533_daily_bin1459.fits outfile=/scratch/kocevski/733008/expmap_617500801_617760001_4FGL_J2317.4-4533_daily_bin1459.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/733008/ltcube_617500801_617760001_4FGL_J2317.4-4533_daily_bin1459.fits
.....................!
real 190.70
user 185.20
sys 5.09

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/733008/ft1_filtered_4FGL_J2317.4-4533_daily_bin1459.fits scfile=/scratch/kocevski/733008/ft2_4FGL_J2317.4-4533_daily_bin1459.fits outfile=/scratch/kocevski/733008/cmap_617500801_617760001_4FGL_J2317.4-4533_daily_bin1459.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.58
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733008/ft1_filtered_4FGL_J2317.4-4533_daily_bin1459.fits scfile=/scratch/kocevski/733008/ft2_4FGL_J2317.4-4533_daily_bin1459.fits outfile=/scratch/kocevski/733008/cmap_HighResolution_617500801_617760001_4FGL_J2317.4-4533_daily_bin1459.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/733008/ft1_filtered_4FGL_J2317.4-4533_daily_bin1459.fits evtable="EVENTS" scfile=/scratch/kocevski/733008/ft2_4FGL_J2317.4-4533_daily_bin1459.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733008/Model_4FGL_J2317.4-4533_daily_bin1459.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/733008/ft1_filtered_4FGL_J2317.4-4533_daily_bin1459.fits.......................!
real 22.61
user 21.31
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.632       1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.101       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .57009E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9725       1.0000         .10000E-03   10000.    
     9 'Prefactor '    361.51       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23628E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15181E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12340E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17757E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    153.52       1.0000         .10000E-03   10000.    
    16 'Prefactor '    248.13       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    50.687       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.8607       1.0000         .10000E-03   10000.    
    27 'norm      '    1.5285       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    9.4986       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .67850E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .99065       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .92075       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=   1802.936     FROM MIGRAD    STATUS=CONVERGED   1027 CALLS     5929 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    82.106        .28786E-06** at limit **
   2  Prefactor     33.673        35.177       -.16805E-05   -.21170E-03
   3  Prefactor     42.165        57.984       -.52517E-07   -.56385E-04
   4  Prefactor     .10000E-03    5.0131       -.26267E-07** at limit **
   5  norm          .10000E-03    11.738        .11562E-07** at limit **
   6  Prefactor     .10000E-03    20.122       -.37905E-06** at limit **
   7  Prefactor     .10000E-03    1426.3       -.41807E-05** at limit **
   8  Prefactor     2.0007        89.455        .34427E-05    .24091E-04
   9  Prefactor     361.33        261.13        .11006E-05    .62007E-05
  10  Prefactor     .10000E-03    320.25       -.57124E-05** at limit **
  11  Prefactor     .10000E-03    213.78       -.90520E-06** at limit **
  12  Prefactor     .10000E-03    49.928        .12160E-06** at limit **
  13  Prefactor     .10000E-03    193.72        .28661E-06** at limit **
  14  Prefactor     .10211E-03    47.469       -.48107E-05** at limit **
  15  Prefactor     153.50        171.60       -.18000E-05   -.20168E-04
  16  Prefactor     248.02        221.87        .47722E-06   -.70451E-05
  17  Prefactor     .10000E-03    63.366        .55892E-06** at limit **
  18  norm          .10000E-03    10.973        .11230E-06** at limit **
  19  norm          .10000E-03    4.4672        .18641E-07** at limit **
  20  norm          .10000E-03    17.464        .11436E-05** at limit **
  21  norm          .10000E-03    7.0186        .60845E-07** at limit **
  22  Prefactor     .10000E-03    5.4963        .16836E-06** at limit **
  23  Prefactor     50.753        120.26       -.60635E-05   -.54110E-04
  24  norm          .10000E-03    7.5505        .80371E-06** at limit **
  25  Prefactor     .10000E-03    19.949        .45360E-06** at limit **
  26  norm          2.8609        2.1546        .31194E-07   -.15137E-03
  27  norm          1.5284        12.763        .40234E-05    .95301E-04
  28  Prefactor     .10000E-03    19.915        .22285E-06** at limit **
  29  Prefactor     .10000E-03    3.6316        .13834E-06** at limit **
  30  Prefactor     .10000E-03    26.789        .19585E-06** at limit **
  31  norm          9.4983        27.844       -.11120E-06   -.14401E-05
  32  Prefactor     .10000E-03    5.3060       -.77907E-07** at limit **
  33  Prefactor     .10001E-03    6.7786        .12561E-05** at limit **
  34  Normalizat    .99038        .36717       -.37700E-05   -.63232E-04
  35  Prefactor     .92087        .36778        .27084E-05   -.57857E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 33.6727
  Prefactor  = 42.1645
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.00066
  Prefactor  = 361.328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102114
  Prefactor  = 153.501
  Prefactor  = 248.017
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 50.7533
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.86091
  norm       = 1.52836
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.49826
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Normalizat = 0.990379
  Prefactor  = 0.920871
 **********
 **   18 **HESSE 
 **********

 FCN=   1802.936     FROM HESSE     STATUS=OK           752 CALLS     6681 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    82.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.673        34.399        .69098E-04   -1.4547    
   3  Prefactor     42.165        57.936        .61782E-04   -1.4408    
   4  Prefactor     .10000E-03    5.0142        .92858E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.742        .14211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1432.5        .18608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0007        84.224        .29522E-03   -1.5425    
   9  Prefactor     361.33        259.33        .10714E-03   -1.1883    
  10  Prefactor     .10000E-03    320.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    214.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    50.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    193.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10211E-03    275.60        .50423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     153.50        166.41        .16267E-03   -1.3224    
  16  Prefactor     248.02        221.43        .12857E-03   -1.2545    
  17  Prefactor     .10000E-03    63.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.975        .13740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.4675        .87659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    18.044        .34620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.0216        .10988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.5044        .97243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     50.753        123.23        .56329E-04   -1.4282    
  24  norm          .10000E-03    7.5685        .11374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    20.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.8609        2.1556        .51410E-04   -1.5370    
  27  norm          1.5284        12.604        .25530E-03   -1.5461    
  28  Prefactor     .10000E-03    19.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    3.6966        .78980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    26.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          9.4983        27.892        .13003E-03   -1.5091    
  32  Prefactor     .10000E-03    5.3387        .95437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10001E-03    43.428        .19811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .99038        .42480        .24998E-03   -.93353    
  35  Prefactor     .92087        .42280        .27266E-03   -.95416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86246e-09
Minuit parameter uncertainties:
  1  3.16936e-05
  2  34.4196
  3  58.0139
  4  8.91408e-07
  5  1.1655e-07
  6  2.6999e-05
  7  0.00199206
  8  26.0004
  9  260.177
  10  0.000281383
  11  0.000454787
  12  4.41669e-05
  13  0.000402839
  14  0.0484954
  15  166.925
  16  222.18
  17  0.000211991
  18  8.85738e-06
  19  1.02168e-06
  20  6.45657e-05
  21  4.64998e-06
  22  1.02011e-05
  23  123.859
  24  3.62975e-05
  25  5.55656e-05
  26  2.15565
  27  8.78044
  28  1.37127e-05
  29  8.10022e-06
  30  3.42466e-05
  31  27.9305
  32  6.18567e-06
  33  0.0011725
  34  0.426257
  35  0.424318
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  8.857e-06  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.209e-01  4.243e-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.904e-01  4.263e-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.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733008/likelihoodResults_617500801_617760001_4FGL_J2317.4-4533_daily_bin1459.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) = 1802.93605129
delta logL = -0.000401139337328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1802.93565015
delta logL = -6.33440322417e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7904       1.0000          .0000       5.0000    
     3 'Normalizat'    .99038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92085       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=   1802.936     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      194 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.013        .90712E-02** at limit **
   2  alpha         1.7877        3.3458        .43472        .11498E-05
   3  Normalizat    .99038        .32474        .46046E-01    .46355E-05
   4  Prefactor     .92087        .34435        .45270E-01    .55013E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.7877
  Normalizat = 0.990379
  Prefactor  = 0.920871
 **********
 **   18 **HESSE 
 **********

 FCN=   1802.936     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.939        .13744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7877        3.3446        .50000       -.28892    
   3  Normalizat    .99038        .37763        .24998E-03   -.93353    
   4  Prefactor     .92087        .40039        .27266E-03   -.95416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34706e-12
Minuit parameter uncertainties:
  1  3.46721e-06
  2  2.39709
  3  0.378651
  4  0.401683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733008': 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) = 1802.93565015
delta logL = 2.52362042374e-09

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  3.467e-06  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  1.788e+00  2.397e+00  0.000e+00  5.000e+00 ( 1.000e+00)
393         beta:  1.780e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
394           Eb:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  9.209e-01  4.017e-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.904e-01  3.787e-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/733008/cmap_HighResolution_617500801_617760001_4FGL_J2317.4-4533_daily_bin1459.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.64e-05', job_status='DONE', photon_flux_upper_limit='6.84e-08', time_completed='2021-09-29 10:45:31.882093', job_id='733008', GAL2='0.92', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632937531.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.52e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1459' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:45:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 733008: <4FGL_J2317.4-4533_daily_bin1459> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1459 349.357 -45.5623 617500801 617760001 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 :                                   520.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            602 sec.

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

