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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1642
RA = 349.357, Dec = -45.5623
tmin = 664934401, tmax = 665193601
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='445130', job_status='RUN', time_executed='2022-01-30 00:36:34.930810', time_epoch_executed='1643531794.93' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445130

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445130/ft1_4FGL_J2317.4-4533_daily_bin1642.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445130/ft2_4FGL_J2317.4-4533_daily_bin1642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445130/ft1_4FGL_J2317.4-4533_daily_bin1642.fits outfile=/scratch/kocevski/445130/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1642.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=664934401.0 tmax=665193601.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.66
user 3.43
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/445130/ft1_filtered_4FGL_J2317.4-4533_daily_bin1642.fits" evtable="EVENTS" scfile=/scratch/kocevski/445130/ft2_4FGL_J2317.4-4533_daily_bin1642.fits sctable="SC_DATA" outfile=/scratch/kocevski/445130/ltcube_664934401_665193601_4FGL_J2317.4-4533_daily_bin1642.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/445130/ft2_4FGL_J2317.4-4533_daily_bin1642.fits
.....................!
real 12.23
user 11.87
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445130/ft1_filtered_4FGL_J2317.4-4533_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/445130/ft2_4FGL_J2317.4-4533_daily_bin1642.fits sctable="SC_DATA" expcube=/scratch/kocevski/445130/ltcube_664934401_665193601_4FGL_J2317.4-4533_daily_bin1642.fits outfile=/scratch/kocevski/445130/expmap_664934401_665193601_4FGL_J2317.4-4533_daily_bin1642.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/445130/ltcube_664934401_665193601_4FGL_J2317.4-4533_daily_bin1642.fits
.....................!
real 192.37
user 187.08
sys 4.03

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/445130/ft1_filtered_4FGL_J2317.4-4533_daily_bin1642.fits scfile=/scratch/kocevski/445130/ft2_4FGL_J2317.4-4533_daily_bin1642.fits outfile=/scratch/kocevski/445130/cmap_664934401_665193601_4FGL_J2317.4-4533_daily_bin1642.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/445130/ft1_filtered_4FGL_J2317.4-4533_daily_bin1642.fits scfile=/scratch/kocevski/445130/ft2_4FGL_J2317.4-4533_daily_bin1642.fits outfile=/scratch/kocevski/445130/cmap_HighResolution_664934401_665193601_4FGL_J2317.4-4533_daily_bin1642.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=349.357 yref=-45.5623 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/445130/ft1_filtered_4FGL_J2317.4-4533_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/445130/ft2_4FGL_J2317.4-4533_daily_bin1642.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/445130/Model_4FGL_J2317.4-4533_daily_bin1642.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/445130/ft1_filtered_4FGL_J2317.4-4533_daily_bin1642.fits.....................!
real 37.27
user 35.93
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.418       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.666       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .34597E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4250       1.0000         .10000E-03   10000.    
     5 'norm      '    8.5445       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.3406       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2634       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.787       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.142       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7019       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.010       1.0000         .10000E-03   10000.    
    18 'norm      '    4.6516       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.329       1.0000         .10000E-03   10000.    
    24 'norm      '    2.9448       1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.267       1.0000         .10000E-03   10000.    
    26 'norm      '    1.8104       1.0000         .10000E-03   10000.    
    27 'norm      '    .10864E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.5176       1.0000         .10000E-03   10000.    
    30 'Prefactor '    28.842       1.0000         .10000E-03   10000.    
    31 'norm      '    .69352       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .95909       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.3141       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .68407       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=   4488.151     FROM MIGRAD    STATUS=CONVERGED    956 CALLS     5084 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.421        63.729        .35090E-06   -.72194E-05
   2  Prefactor     18.667        18.059       -.48279E-06   -.20540E-03
   3  Prefactor     .10001E-03    201.76        .66550E-05** at limit **
   4  Prefactor     2.4266        9.5945        .60429E-05   -.79312E-04
   5  norm          8.5444        7.8450        .49477E-07   -.31505E-05
   6  Prefactor     7.3410        6.5293        .10606E-05    .12290E-04
   7  Prefactor     .10000E-03    20.941        .50934E-06** at limit **
   8  Prefactor     5.2625        9.4117        .24158E-05    .38405E-04
   9  Prefactor     33.788        32.929        .96210E-07   -.63859E-05
  10  Prefactor     .10000E-03    16.855       -.27729E-06** at limit **
  11  Prefactor     .10000E-03    31.451        .45917E-06** at limit **
  12  Prefactor     .10000E-03    3.4572       -.31762E-07** at limit **
  13  Prefactor     .10000E-03    46.582       -.89798E-06** at limit **
  14  Prefactor     .10000E-03    4.9411        .65905E-07** at limit **
  15  Prefactor     41.147        60.396       -.95635E-06   -.71780E-05
  16  Prefactor     1.6909        195.28        .58539E-05   -.81881E-05
  17  Prefactor     25.010        19.337        .29571E-06    .12160E-04
  18  norm          4.6517        14.817        .29319E-05    .29393E-04
  19  norm          .10000E-03    3.5055        .60515E-07** at limit **
  20  norm          .10000E-03    2.2901       -.20776E-08** at limit **
  21  norm          .10000E-03    4.8903       -.65708E-07** at limit **
  22  Prefactor     .10000E-03    17.909       -.44411E-06** at limit **
  23  Prefactor     12.330        24.133        .31058E-06   -.52858E-06
  24  norm          2.9450        3.1476        .85014E-07    .16396E-04
  25  Prefactor     16.268        16.720        .78756E-06    .21011E-03
  26  norm          1.8104        1.6159        .91190E-07    .69975E-04
  27  norm          .10140E-02    2.1217       -.43644E-06** at limit **
  28  Prefactor     .10000E-03    15.984        .38226E-06** at limit **
  29  Prefactor     4.5173        3.9148        .19046E-06   -.52378E-03
  30  Prefactor     28.844        29.221       -.62229E-06   -.23445E-03
  31  norm          .71931        21.991        .47211E-05   -.21054E-03
  32  Prefactor     .96195        4.5555       -.74172E-06   -.49386E-03
  33  Prefactor     .10000E-03    1.7804       -.22095E-09** at limit **
  34  Normalizat    1.3141        .22501       -.23693E-05   -.35783E-03
  35  Prefactor     .68413        .22160       -.33036E-06   -.29649E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.4212
  Prefactor  = 18.6671
  Prefactor  = 0.000100013
  Prefactor  = 2.42661
  norm       = 8.54435
  Prefactor  = 7.34102
  Prefactor  = 0.0001
  Prefactor  = 5.26248
  Prefactor  = 33.7876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.1466
  Prefactor  = 1.6909
  Prefactor  = 25.0098
  norm       = 4.65173
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3302
  norm       = 2.94501
  Prefactor  = 16.2681
  norm       = 1.8104
  norm       = 0.00101404
  Prefactor  = 0.0001
  Prefactor  = 4.51729
  Prefactor  = 28.8437
  norm       = 0.719308
  Prefactor  = 0.961955
  Prefactor  = 0.0001
  Normalizat = 1.31406
  Prefactor  = 0.684132
 **********
 **   18 **HESSE 
 **********

 FCN=   4488.151     FROM HESSE     STATUS=OK           780 CALLS     5864 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.421        63.777        .48178E-04   -1.4040    
   2  Prefactor     18.667        18.088        .92704E-04   -1.4844    
   3  Prefactor     .10001E-03    203.31        .42657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4266        9.6865        .13141E-02   -1.5396    
   5  norm          8.5444        7.8509        .13714E-03   -1.5123    
   6  Prefactor     7.3410        6.5303        .74018E-03   -1.5166    
   7  Prefactor     .10000E-03    20.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2625        9.4113        .87599E-03   -1.5249    
   9  Prefactor     33.788        32.927        .68940E-04   -1.4545    
  10  Prefactor     .10000E-03    16.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4600        .12165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.0026        .14542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.147        60.319        .62495E-04   -1.4424    
  16  Prefactor     1.6909        199.02        .32242E-03   -1.5448    
  17  Prefactor     25.010        19.318        .40050E-03   -1.4707    
  18  norm          4.6517        14.829        .93301E-03   -1.5277    
  19  norm          .10000E-03    3.5124        .12249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.2918        .98935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.9296        .14467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.021        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.330        24.094        .11408E-03   -1.5006    
  24  norm          2.9450        3.1419        .11703E-03   -1.5365    
  25  Prefactor     16.268        16.521        .99303E-04   -1.4901    
  26  norm          1.8104        1.5933        .71877E-04   -1.5439    
  27  norm          .10140E-02    2.9939        .36300E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    16.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.5173        3.8871        .11257E-03   -1.5283    
  30  Prefactor     28.844        29.282        .74600E-04   -1.4633    
  31  norm          .71931        126.51        .51053E-02   -1.5538    
  32  Prefactor     .96195        5.1113        .24794E-03   -1.5512    
  33  Prefactor     .10000E-03    1.7889        .87266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.3141        .27223        .22479E-03   -.83148    
  35  Prefactor     .68413        .26723        .31133E-03   -1.0415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76e-09
Minuit parameter uncertainties:
  1  63.8398
  2  18.0934
  3  0.00332048
  4  9.69279
  5  7.85186
  6  6.53095
  7  5.87881e-06
  8  9.41391
  9  32.9443
  10  7.24016e-06
  11  4.73881e-05
  12  2.93633e-06
  13  7.21869e-06
  14  1.46114e-06
  15  60.409
  16  36.8137
  17  19.3224
  18  14.8405
  19  5.69446e-07
  20  6.00937e-08
  21  3.41965e-06
  22  2.69832e-05
  23  24.1127
  24  3.14212
  25  16.5257
  26  1.59334
  27  0.104628
  28  6.33928e-06
  29  3.88731
  30  29.2966
  31  19.1184
  32  4.43517
  33  1.46522e-06
  34  0.272528
  35  0.267733
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  4.652e+00  1.484e+01  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:  6.841e-01  2.677e-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.314e+00  2.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 349.357 -45.562
Photon Flux Upper Limit: 5.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/445130/likelihoodResults_664934401_665193601_4FGL_J2317.4-4533_daily_bin1642.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) = 4488.10944441
delta logL = 0.0416195209382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4488.10701199
delta logL = 0.0440519354524

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8953       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0091       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68389       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=   4488.107     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8953        10.050        .51108E-02   -.67976E-03
   2  alpha         1.0089        1.3323        .50000       -.42535E-04
   3  Normalizat    1.3159        .21048        .50811E-01    .16235E-05
   4  Prefactor     .68390        .21868        .70353E-01    .18026E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.89535
  alpha      = 1.00887
  Normalizat = 1.31591
  Prefactor  = 0.683901
 **********
 **   18 **HESSE 
 **********

 FCN=   4488.107     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8953        11.969        .20443E-03   -1.5313    
   2  alpha         1.0089        1.5264        .47394E-02   -.63907    
   3  Normalizat    1.3159        .25110        .22464E-03   -.83093    
   4  Prefactor     .68390        .26054        .31136E-03   -1.0416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31317e-09
Minuit parameter uncertainties:
  1  11.9768
  2  1.73446
  3  0.251332
  4  0.261008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445130': 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) = 4488.10701196
delta logL = 0.0440519693884

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  3.895e+00  1.198e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  1.009e+00  1.734e+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:  6.839e-01  2.610e-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.316e+00  2.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/445130/cmap_HighResolution_664934401_665193601_4FGL_J2317.4-4533_daily_bin1642.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-05', job_status='DONE', photon_flux_upper_limit='5.18e-08', time_completed='2022-01-30 00:49:46.704914', job_id='445130', GAL2='0.68', fit_tolerance='1e-08', EG2='1.32', EG='1.31', time_epoch_completed='1643532586.7', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='4.41e-02', ts2='0.20', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1642' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 30 00:49:46 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 445130: <4FGL_J2317.4-4533_daily_bin1642> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1642> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jan 30 00:35:59 2022
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 30 00:36:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 30 00:36:01 2022
Terminated at Sun Jan 30 00:49:47 2022
Results reported at Sun Jan 30 00:49:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1642 349.357 -45.5623 664934401 665193601 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 :                                   790.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            828 sec.

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

