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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1026
RA = 349.357, Dec = -45.5623
tmin = 505267201, tmax = 505526401
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='730472', job_status='RUN', time_executed='2021-09-29 10:26:15.120888', time_epoch_executed='1632936375.12' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1026'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/730472

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/730472/ft1_4FGL_J2317.4-4533_daily_bin1026.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/730472/ft2_4FGL_J2317.4-4533_daily_bin1026.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/730472/ft1_4FGL_J2317.4-4533_daily_bin1026.fits outfile=/scratch/kocevski/730472/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1026.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=505267201.0 tmax=505526401.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.59
user 3.39
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/730472/ft1_filtered_4FGL_J2317.4-4533_daily_bin1026.fits" evtable="EVENTS" scfile=/scratch/kocevski/730472/ft2_4FGL_J2317.4-4533_daily_bin1026.fits sctable="SC_DATA" outfile=/scratch/kocevski/730472/ltcube_505267201_505526401_4FGL_J2317.4-4533_daily_bin1026.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/730472/ft2_4FGL_J2317.4-4533_daily_bin1026.fits
.....................!
real 11.90
user 11.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/730472/ft1_filtered_4FGL_J2317.4-4533_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/730472/ft2_4FGL_J2317.4-4533_daily_bin1026.fits sctable="SC_DATA" expcube=/scratch/kocevski/730472/ltcube_505267201_505526401_4FGL_J2317.4-4533_daily_bin1026.fits outfile=/scratch/kocevski/730472/expmap_505267201_505526401_4FGL_J2317.4-4533_daily_bin1026.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/730472/ltcube_505267201_505526401_4FGL_J2317.4-4533_daily_bin1026.fits
.....................!
real 190.30
user 186.01
sys 3.93

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/730472/ft1_filtered_4FGL_J2317.4-4533_daily_bin1026.fits scfile=/scratch/kocevski/730472/ft2_4FGL_J2317.4-4533_daily_bin1026.fits outfile=/scratch/kocevski/730472/cmap_505267201_505526401_4FGL_J2317.4-4533_daily_bin1026.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=349.357 yref=-45.5623 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/730472/ft1_filtered_4FGL_J2317.4-4533_daily_bin1026.fits scfile=/scratch/kocevski/730472/ft2_4FGL_J2317.4-4533_daily_bin1026.fits outfile=/scratch/kocevski/730472/cmap_HighResolution_505267201_505526401_4FGL_J2317.4-4533_daily_bin1026.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/730472/ft1_filtered_4FGL_J2317.4-4533_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/730472/ft2_4FGL_J2317.4-4533_daily_bin1026.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/730472/Model_4FGL_J2317.4-4533_daily_bin1026.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/730472/ft1_filtered_4FGL_J2317.4-4533_daily_bin1026.fits.....................!
real 38.01
user 36.74
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.293       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.905       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4170       1.0000         .10000E-03   10000.    
     7 'Prefactor '    55.842       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.524       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .82396E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2976       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25622       1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.967       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.733       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.3141       1.0000         .10000E-03   10000.    
    20 'norm      '    5.0223       1.0000         .10000E-03   10000.    
    21 'norm      '    4.7796       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    52.297       1.0000         .10000E-03   10000.    
    24 'norm      '    .17321       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .76948E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    19.173       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.2513       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.0223       1.0000         .10000E-03   10000.    
    33 'Prefactor '    10.357       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.2435       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .56725       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=   4893.644     FROM MIGRAD    STATUS=CONVERGED   1007 CALLS     5199 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.259        54.663       -.24673E-05   -.29870E-05
   2  Prefactor     .10000E-03    10.806       -.56454E-06** at limit **
   3  Prefactor     30.907        38.861       -.45594E-06    .25652E-04
   4  Prefactor     .10000E-03    9.4966        .23106E-06** at limit **
   5  norm          .10000E-03    3.3511       -.12913E-07** at limit **
   6  Prefactor     1.4170        2.0711       -.53925E-07    .40760E-04
   7  Prefactor     55.839        47.142       -.17903E-06    .47797E-04
   8  Prefactor     .10000E-03    5.4785       -.63393E-07** at limit **
   9  Prefactor     30.525        38.919       -.39333E-06    .98168E-05
  10  Prefactor     .10000E-03    14.334        .84612E-06** at limit **
  11  Prefactor     .10005E-03    102.15        .84416E-05** at limit **
  12  Prefactor     2.3069        9.5472       -.31922E-05    .25530E-04
  13  Prefactor     .10000E-03    38.234       -.20156E-05** at limit **
  14  Prefactor     .25932        11.846       -.19969E-05    .85733E-04
  15  Prefactor     43.978        42.148        .16077E-06    .76668E-04
  16  Prefactor     26.731        40.218       -.19461E-06    .66458E-05
  17  Prefactor     .10000E-03    17.576       -.12635E-05** at limit **
  18  norm          .10000E-03    21.232       -.71510E-07** at limit **
  19  norm          5.3188        7.9144       -.90796E-07    .10626E-03
  20  norm          5.0197        4.8533        .13079E-06   -.13846E-03
  21  norm          4.7790        5.7998       -.13597E-06   -.17973E-04
  22  Prefactor     .10000E-03    1.8678       -.18372E-07** at limit **
  23  Prefactor     52.197        43.143        .19139E-06   -.12150E-03
  24  norm          .17508        6.9407        .18974E-05   -.60702E-03
  25  Prefactor     .10000E-03    3.4735       -.39923E-07** at limit **
  26  norm          .75909E-01    1.0933        .69947E-07    .27065E-04
  27  norm          .10000E-03    2.2522       -.24200E-06** at limit **
  28  Prefactor     19.173        14.562       -.85512E-07    .36838E-04
  29  Prefactor     3.2487        3.4854       -.24028E-07    .16348E-04
  30  Prefactor     .10000E-03    27.914        .15146E-05** at limit **
  31  norm          .10000E-03    8.4383       -.51084E-07** at limit **
  32  Prefactor     1.0212        6.2047       -.10736E-05   -.63844E-04
  33  Prefactor     10.356        5.1749        .10250E-06    .70729E-04
  34  Normalizat    1.2434        .20311        .77344E-06    .25990E-03
  35  Prefactor     .56735        .20034        .12997E-05    .28452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.259
  Prefactor  = 0.0001
  Prefactor  = 30.9066
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.41701
  Prefactor  = 55.8392
  Prefactor  = 0.0001
  Prefactor  = 30.525
  Prefactor  = 0.0001
  Prefactor  = 0.000100045
  Prefactor  = 2.30691
  Prefactor  = 0.0001
  Prefactor  = 0.259318
  Prefactor  = 43.9784
  Prefactor  = 26.7308
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.31883
  norm       = 5.01969
  norm       = 4.779
  Prefactor  = 0.0001
  Prefactor  = 52.1971
  norm       = 0.175083
  Prefactor  = 0.0001
  norm       = 0.0759087
  norm       = 0.0001
  Prefactor  = 19.1733
  Prefactor  = 3.24869
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.0212
  Prefactor  = 10.3563
  Normalizat = 1.24343
  Prefactor  = 0.567352
 **********
 **   18 **HESSE 
 **********

 FCN=   4893.644     FROM HESSE     STATUS=OK           776 CALLS     5975 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.259        54.769        .74026E-04   -1.4626    
   2  Prefactor     .10000E-03    10.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.907        38.656        .72074E-04   -1.4596    
   4  Prefactor     .10000E-03    9.5631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.3593        .12507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4170        2.0422        .11811E-03   -1.5470    
   7  Prefactor     55.839        47.264        .26840E-03   -1.4212    
   8  Prefactor     .10000E-03    5.6610        .31938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.525        38.945        .72520E-04   -1.4602    
  10  Prefactor     .10000E-03    14.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10005E-03    109.80        .63174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3069        9.7302        .13538E-02   -1.5404    
  13  Prefactor     .10000E-03    38.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .25932        105.77        .40831E-02   -1.5606    
  15  Prefactor     43.978        41.971        .60462E-04   -1.4381    
  16  Prefactor     26.731        40.210        .77481E-04   -1.4673    
  17  Prefactor     .10000E-03    17.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    21.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3188        8.0464        .17435E-03   -1.5247    
  20  norm          5.0197        5.4876        .14040E-03   -1.5260    
  21  norm          4.7790        5.7966        .18010E-03   -1.5271    
  22  Prefactor     .10000E-03    1.8702        .93349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     52.197        48.707        .55460E-04   -1.4262    
  24  norm          .17508        42.240        .21228E-02   -1.5624    
  25  Prefactor     .10000E-03    3.4758        .12733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .75909E-01    2.9446        .12333E-02   -1.5653    
  27  norm          .10000E-03    2.2892        .10265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     19.173        14.555        .91471E-04   -1.4832    
  29  Prefactor     3.2487        3.4329        .12468E-03   -1.5347    
  30  Prefactor     .10000E-03    27.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    8.4377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.0212        6.0975        .31728E-03   -1.5506    
  33  Prefactor     10.356        5.1835        .10678E-03   -1.5064    
  34  Normalizat    1.2434        .23260        .20790E-03   -.85271    
  35  Prefactor     .56735        .22952        .30860E-03   -1.0898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60173e-09
Minuit parameter uncertainties:
  1  54.863
  2  3.03605e-05
  3  38.6869
  4  2.18272e-05
  5  1.39521e-06
  6  2.04233
  7  47.2961
  8  1.58309e-05
  9  38.9777
  10  3.73139e-06
  11  0.00447169
  12  9.47802
  13  3.38314e-05
  14  10.4911
  15  41.9989
  16  40.2504
  17  4.51878e-05
  18  5.79363e-05
  19  8.04808
  20  5.48811
  21  5.79728
  22  2.18546e-06
  23  48.7443
  24  5.44126
  25  3.80406e-06
  26  0.944992
  27  4.36551e-06
  28  14.558
  29  3.43308
  30  0.000114827
  31  6.8998e-06
  32  4.99121
  33  5.1837
  34  0.232798
  35  0.229898
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  5.674e-01  2.299e-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.243e+00  2.328e-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: 4.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/730472/likelihoodResults_505267201_505526401_4FGL_J2317.4-4533_daily_bin1026.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) = 4893.64433087
delta logL = -0.00022014485603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4893.64411134
delta logL = -6.15269527771e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7399       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2434       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56737       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=   4893.644     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      280 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    27.101        .36285E-03** at limit **
   2  alpha         1.8352        3.3622        .50000       -.27423E-04
   3  Normalizat    1.2434        .21270        .20790E-03    .86672E-04
   4  Prefactor     .56735        .22148        .30860E-03    .53859E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100023
  alpha      = 1.83525
  Normalizat = 1.24343
  Prefactor  = 0.567349
 **********
 **   18 **HESSE 
 **********

 FCN=   4893.644     FROM HESSE     STATUS=OK            29 CALLS      309 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    26.965        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8352        3.3612        .50000       -.26914    
   3  Normalizat    1.2434        .21287        .41581E-04   -.85271    
   4  Prefactor     .56735        .22165        .12344E-04   -1.0898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56486e-09
Minuit parameter uncertainties:
  1  0.0015719
  2  2.41029
  3  0.213019
  4  0.221991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/730472': 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) = 4893.64411025
delta logL = 4.73404725199e-07

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  1.572e-03  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  1.835e+00  2.410e+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:  5.673e-01  2.220e-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.243e+00  2.130e-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/730472/cmap_HighResolution_505267201_505526401_4FGL_J2317.4-4533_daily_bin1026.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-05', job_status='DONE', photon_flux_upper_limit='4.01e-08', time_completed='2021-09-29 10:40:22.983155', job_id='730472', GAL2='0.57', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632937222.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='4.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1026' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:40:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 730472: <4FGL_J2317.4-4533_daily_bin1026> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1026> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 10:25:52 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:25:54 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:25:54 2021
Terminated at Wed Sep 29 10:40:23 2021
Results reported at Wed Sep 29 10:40:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1026 349.357 -45.5623 505267201 505526401 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 :                                   845.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

