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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1074
RA = 349.357, Dec = -45.5623
tmin = 517708801, tmax = 517968001
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='731290', job_status='RUN', time_executed='2021-09-29 10:30:47.289415', time_epoch_executed='1632936647.29' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1074'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731290

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731290/ft1_4FGL_J2317.4-4533_daily_bin1074.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731290/ft2_4FGL_J2317.4-4533_daily_bin1074.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731290/ft1_4FGL_J2317.4-4533_daily_bin1074.fits outfile=/scratch/kocevski/731290/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1074.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=517708801.0 tmax=517968001.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.70
user 3.44
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731290/ft1_filtered_4FGL_J2317.4-4533_daily_bin1074.fits" evtable="EVENTS" scfile=/scratch/kocevski/731290/ft2_4FGL_J2317.4-4533_daily_bin1074.fits sctable="SC_DATA" outfile=/scratch/kocevski/731290/ltcube_517708801_517968001_4FGL_J2317.4-4533_daily_bin1074.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/731290/ft2_4FGL_J2317.4-4533_daily_bin1074.fits
.....................!
real 12.07
user 11.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731290/ft1_filtered_4FGL_J2317.4-4533_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/731290/ft2_4FGL_J2317.4-4533_daily_bin1074.fits sctable="SC_DATA" expcube=/scratch/kocevski/731290/ltcube_517708801_517968001_4FGL_J2317.4-4533_daily_bin1074.fits outfile=/scratch/kocevski/731290/expmap_517708801_517968001_4FGL_J2317.4-4533_daily_bin1074.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/731290/ltcube_517708801_517968001_4FGL_J2317.4-4533_daily_bin1074.fits
.....................!
real 190.98
user 185.16
sys 5.39

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/731290/ft1_filtered_4FGL_J2317.4-4533_daily_bin1074.fits scfile=/scratch/kocevski/731290/ft2_4FGL_J2317.4-4533_daily_bin1074.fits outfile=/scratch/kocevski/731290/cmap_517708801_517968001_4FGL_J2317.4-4533_daily_bin1074.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731290/ft1_filtered_4FGL_J2317.4-4533_daily_bin1074.fits scfile=/scratch/kocevski/731290/ft2_4FGL_J2317.4-4533_daily_bin1074.fits outfile=/scratch/kocevski/731290/cmap_HighResolution_517708801_517968001_4FGL_J2317.4-4533_daily_bin1074.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.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731290/ft1_filtered_4FGL_J2317.4-4533_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/731290/ft2_4FGL_J2317.4-4533_daily_bin1074.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731290/Model_4FGL_J2317.4-4533_daily_bin1074.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/731290/ft1_filtered_4FGL_J2317.4-4533_daily_bin1074.fits.....................!
real 40.94
user 39.60
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5310       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.435       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10487E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21368E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5945       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12888E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3444       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0354       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71473       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.7662       1.0000         .10000E-03   10000.    
    19 'norm      '    7.3860       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4224       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .25581E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    2.0323       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.154       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .12301E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .68121       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.2505       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .91746       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=   5228.249     FROM MIGRAD    STATUS=CONVERGED   1004 CALLS     4402 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.354        .95226E-06** at limit **
   2  Prefactor     1.5249        69.708       -.12321E-05    .10531E-04
   3  Prefactor     23.500        38.893        .51194E-06    .28967E-04
   4  Prefactor     .10000E-03    14.705       -.96124E-06** at limit **
   5  norm          .10000E-03    7.1125        .39678E-07** at limit **
   6  Prefactor     .10000E-03    3.1441       -.15258E-05** at limit **
   7  Prefactor     .10000E-03    33.060       -.10554E-05** at limit **
   8  Prefactor     9.5916        7.3400        .55770E-06    .68451E-04
   9  Prefactor     .10000E-03    103.85       -.12547E-04** at limit **
  10  Prefactor     .10000E-03    9.1858       -.15555E-07** at limit **
  11  Prefactor     .10000E-03    73.253        .15828E-05** at limit **
  12  Prefactor     1.3434        15.701        .28729E-05   -.12872E-04
  13  Prefactor     3.0376        273.35       -.13497E-05   -.78247E-05
  14  Prefactor     .71357        4.9821       -.66799E-07   -.41387E-05
  15  Prefactor     .10000E-03    11.776        .10075E-06** at limit **
  16  Prefactor     .10000E-03    39.609       -.97324E-06** at limit **
  17  Prefactor     .10000E-03    8.3464       -.16797E-06** at limit **
  18  norm          8.7688        12.588       -.29169E-08    .33354E-04
  19  norm          7.3851        6.0833       -.12423E-06    .41023E-04
  20  norm          .10000E-03    1.7008       -.18418E-08** at limit **
  21  norm          .10000E-03    4.7831       -.12676E-07** at limit **
  22  Prefactor     1.4329        5.2328        .25012E-05    .30821E-03
  23  Prefactor     .10000E-03    11.452       -.26458E-06** at limit **
  24  norm          .10000E-03    1.2472       -.13023E-07** at limit **
  25  Prefactor     .10082E-03    20.607       -.46322E-05** at limit **
  26  norm          2.0337        1.3806        .78893E-07    .63290E-03
  27  norm          .10000E-03    1.5208       -.10813E-07** at limit **
  28  Prefactor     13.167        19.838        .40128E-06    .37941E-04
  29  Prefactor     .10000E-03    5.3349       -.62855E-06** at limit **
  30  Prefactor     .10000E-03    45.284       -.32994E-07** at limit **
  31  norm          .10000E-03    17.779       -.78283E-07** at limit **
  32  Prefactor     .65627        4.3424        .68943E-06    .16636E-03
  33  Prefactor     .10000E-03    1.3650       -.17334E-08** at limit **
  34  Normalizat    1.2508        .19866        .49139E-06    .30608E-03
  35  Prefactor     .91749        .20686       -.45788E-06    .30616E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.52495
  Prefactor  = 23.4999
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.59164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.34339
  Prefactor  = 3.03761
  Prefactor  = 0.71357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.76883
  norm       = 7.38508
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.43286
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100819
  norm       = 2.03372
  norm       = 0.0001
  Prefactor  = 13.167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.656269
  Prefactor  = 0.0001
  Normalizat = 1.25077
  Prefactor  = 0.917493
 **********
 **   18 **HESSE 
 **********

 FCN=   5228.249     FROM HESSE     STATUS=OK           778 CALLS     5180 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5249        70.140        .34492E-03   -1.5461    
   3  Prefactor     23.500        38.868        .82744E-04   -1.4738    
   4  Prefactor     .10000E-03    14.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.2385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.707        .20215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.5916        7.3155        .12938E-03   -1.5088    
   9  Prefactor     .10000E-03    104.85        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.1956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    73.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3434        15.341        .37775E-03   -1.5476    
  13  Prefactor     3.0376        271.07        .23290E-03   -1.5359    
  14  Prefactor     .71357        21.006        .30399E-02   -1.5539    
  15  Prefactor     .10000E-03    11.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.3667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.7688        12.590        .67690E-03   -1.5116    
  19  norm          7.3851        6.0916        .14758E-03   -1.5164    
  20  norm          .10000E-03    1.7016        .92092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.7968        .15443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.4329        6.4516        .16266E-02   -1.5469    
  23  Prefactor     .10000E-03    11.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.2494        .78853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10082E-03    15.924        .73653E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.0337        1.3717        .65592E-04   -1.5423    
  27  norm          .10000E-03    1.5320        .87071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     13.167        19.789        .11044E-03   -1.4982    
  29  Prefactor     .10000E-03    5.5204        .32507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    45.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    17.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .65627        13.713        .26076E-02   -1.5546    
  33  Prefactor     .10000E-03    1.3728        .82451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.2508        .23597        .22430E-03   -.85048    
  35  Prefactor     .91749        .24750        .27368E-03   -.95532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45619e-08
Minuit parameter uncertainties:
  1  8.14411e-05
  2  20.7094
  3  38.9094
  4  2.88564e-05
  5  8.93905e-06
  6  0.00021437
  7  0.000101484
  8  7.31617
  9  0.000123207
  10  1.11303e-06
  11  0.000605776
  12  9.08215
  13  57.6601
  14  7.74556
  15  8.22442e-07
  16  0.000107345
  17  1.73148e-05
  18  12.5938
  19  6.09214
  20  2.63763e-07
  21  3.04533e-06
  22  6.08174
  23  1.82702e-05
  24  8.38124e-07
  25  0.00722602
  26  1.37176
  27  1.03109e-06
  28  19.7986
  29  8.70539e-06
  30  5.08123e-05
  31  1.33197e-07
  32  6.00086
  33  1.45605e-07
  34  0.236175
  35  0.2478
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  8.769e+00  1.259e+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:  9.175e-01  2.478e-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.251e+00  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/731290/likelihoodResults_517708801_517968001_4FGL_J2317.4-4533_daily_bin1074.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) = 5228.24348828
delta logL = 0.00546022168965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5228.24317729
delta logL = 0.00577121109018

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0735       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6970       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91749       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=   5228.243     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      262 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0739        13.161        .13306E-03    .10920E-03
   2  alpha         1.6970        .87154        .21492E-01    .11750E-04
   3  Normalizat    1.2514        .22812        .22425E-03    .55056E-04
   4  Prefactor     .91727        .24446        .27371E-03    .74972E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.07388
  alpha      = 1.69699
  Normalizat = 1.25142
  Prefactor  = 0.91727
 **********
 **   18 **HESSE 
 **********

 FCN=   5228.243     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0739        13.061        .53222E-05   -1.5105    
   2  alpha         1.6970        .86547        .85966E-03   -.32700    
   3  Normalizat    1.2514        .22837        .89700E-05   -.85028    
   4  Prefactor     .91727        .24474        .10948E-04   -.95540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9066e-11
Minuit parameter uncertainties:
  1  13.0654
  2  0.886011
  3  0.228557
  4  0.245038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731290': 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) = 5228.24317689
delta logL = 0.0057716169631

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  9.173e-01  2.450e-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.251e+00  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.73
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/731290/cmap_HighResolution_517708801_517968001_4FGL_J2317.4-4533_daily_bin1074.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-05', job_status='DONE', photon_flux_upper_limit='4.90e-08', time_completed='2021-09-29 10:44:44.972308', job_id='731290', GAL2='0.92', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1632937484.97', return_code2='0', ts='0.73', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='5.77e-03', ts2='0.74', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1074' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:44:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 731290: <4FGL_J2317.4-4533_daily_bin1074> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1074 349.357 -45.5623 517708801 517968001 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 :                                   833.00 sec.
    Max Memory :                                 1071 MB
    Average Memory :                             329.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            864 sec.

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

