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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1221
RA = 349.357, Dec = -45.5623
tmin = 555811201, tmax = 556070401
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='731530', job_status='RUN', time_executed='2021-09-29 10:34:38.182578', time_epoch_executed='1632936878.18' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731530

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731530/ft1_4FGL_J2317.4-4533_daily_bin1221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731530/ft2_4FGL_J2317.4-4533_daily_bin1221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731530/ft1_4FGL_J2317.4-4533_daily_bin1221.fits outfile=/scratch/kocevski/731530/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1221.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=555811201.0 tmax=556070401.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.57
user 3.37
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731530/ft1_filtered_4FGL_J2317.4-4533_daily_bin1221.fits" evtable="EVENTS" scfile=/scratch/kocevski/731530/ft2_4FGL_J2317.4-4533_daily_bin1221.fits sctable="SC_DATA" outfile=/scratch/kocevski/731530/ltcube_555811201_556070401_4FGL_J2317.4-4533_daily_bin1221.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/731530/ft2_4FGL_J2317.4-4533_daily_bin1221.fits
.....................!
real 11.56
user 11.22
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731530/ft1_filtered_4FGL_J2317.4-4533_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/731530/ft2_4FGL_J2317.4-4533_daily_bin1221.fits sctable="SC_DATA" expcube=/scratch/kocevski/731530/ltcube_555811201_556070401_4FGL_J2317.4-4533_daily_bin1221.fits outfile=/scratch/kocevski/731530/expmap_555811201_556070401_4FGL_J2317.4-4533_daily_bin1221.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/731530/ltcube_555811201_556070401_4FGL_J2317.4-4533_daily_bin1221.fits
.....................!
real 192.93
user 186.86
sys 5.71

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/731530/ft1_filtered_4FGL_J2317.4-4533_daily_bin1221.fits scfile=/scratch/kocevski/731530/ft2_4FGL_J2317.4-4533_daily_bin1221.fits outfile=/scratch/kocevski/731530/cmap_555811201_556070401_4FGL_J2317.4-4533_daily_bin1221.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731530/ft1_filtered_4FGL_J2317.4-4533_daily_bin1221.fits scfile=/scratch/kocevski/731530/ft2_4FGL_J2317.4-4533_daily_bin1221.fits outfile=/scratch/kocevski/731530/cmap_HighResolution_555811201_556070401_4FGL_J2317.4-4533_daily_bin1221.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.55
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731530/ft1_filtered_4FGL_J2317.4-4533_daily_bin1221.fits evtable="EVENTS" scfile=/scratch/kocevski/731530/ft2_4FGL_J2317.4-4533_daily_bin1221.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731530/Model_4FGL_J2317.4-4533_daily_bin1221.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/731530/ft1_filtered_4FGL_J2317.4-4533_daily_bin1221.fits........................!
real 19.54
user 18.28
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.957       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0386       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10738E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18374E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15115E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    121.89       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .40484E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .67701E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10670E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    21.490       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.4902       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.2656       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .23015E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.1670       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.0728       1.0000         .10000E-03   10000.    
    30 'Prefactor '    59.680       1.0000         .10000E-03   10000.    
    31 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    23.276       1.0000         .10000E-03   10000.    
    33 'Prefactor '    1.4492       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.3522       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .43642       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=   1276.968     FROM MIGRAD    STATUS=CONVERGED    959 CALLS     4999 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.418       -.28947E-05** at limit **
   2  Prefactor     .10000E-03    70.460       -.25686E-05** at limit **
   3  Prefactor     13.961        100.52        .27480E-05    .10523E-04
   4  Prefactor     .10000E-03    12.874        .26950E-06** at limit **
   5  norm          .10000E-03    9.5972        .16347E-07** at limit **
   6  Prefactor     5.0365        7.7207        .16014E-06    .10695E-03
   7  Prefactor     .10000E-03    54.420       -.85400E-06** at limit **
   8  Prefactor     .10000E-03    27.537       -.27329E-05** at limit **
   9  Prefactor     .10000E-03    26.536       -.81724E-06** at limit **
  10  Prefactor     .10000E-03    31.270       -.96572E-06** at limit **
  11  Prefactor     .10000E-03    123.36        .21277E-05** at limit **
  12  Prefactor     .10000E-03    39.153        .93797E-06** at limit **
  13  Prefactor     .10000E-03    148.10        .26385E-05** at limit **
  14  Prefactor     .10000E-03    12.572       -.52009E-06** at limit **
  15  Prefactor     .10000E-03    52.267       -.19285E-06** at limit **
  16  Prefactor     121.86        153.68       -.35370E-05   -.14657E-04
  17  Prefactor     .10002E-03    336.96       -.26484E-04** at limit **
  18  norm          .10000E-03    12.171       -.56019E-07** at limit **
  19  norm          .10195E-03    42.464       -.49638E-05** at limit **
  20  norm          .10000E-03    19.156        .72315E-07** at limit **
  21  norm          21.497        20.329       -.84873E-07    .10719E-04
  22  Prefactor     8.4970        12.885       -.94775E-06    .14861E-03
  23  Prefactor     .10000E-03    100.09        .16158E-05** at limit **
  24  norm          8.2639        9.1987        .23585E-06    .13691E-03
  25  Prefactor     .10000E-03    109.67       -.54668E-07** at limit **
  26  norm          .10000E-03    1.9504       -.14084E-06** at limit **
  27  norm          3.1678        7.8690       -.94891E-06   -.49611E-04
  28  Prefactor     .10000E-03    21.773        .18346E-05** at limit **
  29  Prefactor     3.0728        9.5295       -.40747E-05   -.25282E-03
  30  Prefactor     59.659        61.390        .98047E-07   -.23302E-04
  31  norm          .10000E-03    36.696        .11721E-05** at limit **
  32  Prefactor     23.278        17.329        .59120E-06   -.81084E-04
  33  Prefactor     1.4483        11.215       -.10986E-05    .20562E-04
  34  Normalizat    1.3510        .40306       -.27599E-05    .16587E-03
  35  Prefactor     .43771        .41688        .98208E-05    .15938E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9608
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.03649
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 121.86
  Prefactor  = 0.00010002
  norm       = 0.0001
  norm       = 0.000101951
  norm       = 0.0001
  norm       = 21.4971
  Prefactor  = 8.49703
  Prefactor  = 0.0001
  norm       = 8.26392
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 3.16782
  Prefactor  = 0.0001
  Prefactor  = 3.07282
  Prefactor  = 59.6589
  norm       = 0.0001
  Prefactor  = 23.2782
  Prefactor  = 1.44828
  Normalizat = 1.35097
  Prefactor  = 0.437709
 **********
 **   18 **HESSE 
 **********

 FCN=   1276.968     FROM HESSE     STATUS=OK           760 CALLS     5759 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    70.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.961        100.53        .10721E-03   -1.4961    
   4  Prefactor     .10000E-03    12.887        .12525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.5976        .10815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.0365        7.7021        .11778E-03   -1.5259    
   7  Prefactor     .10000E-03    54.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.463        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.535        .17988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    123.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    148.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.631        .12382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    52.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     121.86        154.08        .18227E-03   -1.3496    
  17  Prefactor     .10002E-03    334.33        .51409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    12.171        .12179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10195E-03    178.15        .35496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    19.183        .15204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          21.497        20.326        .86404E-04   -1.4780    
  22  Prefactor     8.4970        12.465        .68788E-03   -1.5125    
  23  Prefactor     .10000E-03    100.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.2639        9.1621        .10660E-03   -1.5133    
  25  Prefactor     .10000E-03    111.24        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.9824        .96458E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.1678        7.8582        .14825E-03   -1.5352    
  28  Prefactor     .10000E-03    21.766        .16287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     3.0728        9.7501        .84741E-03   -1.5357    
  30  Prefactor     59.659        61.394        .51935E-04   -1.4162    
  31  norm          .10000E-03    36.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     23.278        17.355        .83026E-04   -1.4743    
  33  Prefactor     1.4483        11.090        .22334E-03   -1.5467    
  34  Normalizat    1.3510        .45787        .20482E-03   -.82057    
  35  Prefactor     .43771        .47078        .35932E-03   -1.1493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1136e-08
Minuit parameter uncertainties:
  1  0.000371387
  2  0.00015607
  3  75.1037
  4  4.20439e-06
  5  3.44734e-06
  6  7.70357
  7  0.000123654
  8  0.000441823
  9  5.23691e-05
  10  0.000102821
  11  0.000337357
  12  0.000194006
  13  0.000310553
  14  5.59486e-05
  15  6.17865e-05
  16  154.595
  17  0.00517067
  18  6.04952e-06
  19  0.037402
  20  9.64606e-05
  21  20.3321
  22  12.4683
  23  0.000276723
  24  9.16369
  25  0.00053228
  26  1.2227e-05
  27  7.86073
  28  9.74465e-05
  29  9.75509
  30  61.4593
  31  6.38997e-05
  32  17.3583
  33  8.01719
  34  0.459265
  35  0.475037
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  6.050e-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:  4.377e-01  4.750e-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.351e+00  4.593e-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: 7.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731530/likelihoodResults_555811201_556070401_4FGL_J2317.4-4533_daily_bin1221.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): 102
logL (Free Index) = 1276.96855221
delta logL = -0.000320503856528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1276.96823893
delta logL = -7.22661002328e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7611       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3511       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43758       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1276.968     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      287 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    931.54        .75636E-02** at limit **
   2  alpha         1.3398        4.3059        .16576        .30247E-07
   3  Normalizat    1.3510        .80448E-01    .20482E-03    .29785E-03
   4  Prefactor     .43770        .84541E-01    .35932E-03    .17511E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.33977
  Normalizat = 1.35098
  Prefactor  = 0.437703
 **********
 **   18 **HESSE 
 **********

 FCN=   1276.968     FROM HESSE     STATUS=OK            23 CALLS      310 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.043        .13063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3398        3.8058        .66302E-02   -.48261    
   3  Normalizat    1.3510        .44054        .40964E-04   -.82057    
   4  Prefactor     .43770        .46037        .71864E-04   -1.1493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71682e-10
Minuit parameter uncertainties:
  1  4.48602e-05
  2  438.591
  3  0.441781
  4  0.464344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731530': 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) = 1276.96823117
delta logL = 5.3652729548e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  4.377e-01  4.643e-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.351e+00  4.418e-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/731530/cmap_HighResolution_555811201_556070401_4FGL_J2317.4-4533_daily_bin1221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.76e-05', job_status='DONE', photon_flux_upper_limit='7.85e-08', time_completed='2021-09-29 10:42:43.183295', job_id='731530', GAL2='0.44', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1632937363.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.44', dlogl='5.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1221' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:42:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 731530: <4FGL_J2317.4-4533_daily_bin1221> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1221 349.357 -45.5623 555811201 556070401 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 :                                   460.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             248.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            718 sec.

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

