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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1393
RA = 349.357, Dec = -45.5623
tmin = 600393601, tmax = 600652801
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='732907', job_status='RUN', time_executed='2021-09-29 10:36:38.901103', time_epoch_executed='1632936998.9' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/732907

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/732907/ft1_4FGL_J2317.4-4533_daily_bin1393.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/732907/ft2_4FGL_J2317.4-4533_daily_bin1393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/732907/ft1_4FGL_J2317.4-4533_daily_bin1393.fits outfile=/scratch/kocevski/732907/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1393.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=600393601.0 tmax=600652801.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.67
user 3.47
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/732907/ft1_filtered_4FGL_J2317.4-4533_daily_bin1393.fits" evtable="EVENTS" scfile=/scratch/kocevski/732907/ft2_4FGL_J2317.4-4533_daily_bin1393.fits sctable="SC_DATA" outfile=/scratch/kocevski/732907/ltcube_600393601_600652801_4FGL_J2317.4-4533_daily_bin1393.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/732907/ft2_4FGL_J2317.4-4533_daily_bin1393.fits
.....................!
real 12.27
user 11.93
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/732907/ft1_filtered_4FGL_J2317.4-4533_daily_bin1393.fits evtable="EVENTS" scfile=/scratch/kocevski/732907/ft2_4FGL_J2317.4-4533_daily_bin1393.fits sctable="SC_DATA" expcube=/scratch/kocevski/732907/ltcube_600393601_600652801_4FGL_J2317.4-4533_daily_bin1393.fits outfile=/scratch/kocevski/732907/expmap_600393601_600652801_4FGL_J2317.4-4533_daily_bin1393.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/732907/ltcube_600393601_600652801_4FGL_J2317.4-4533_daily_bin1393.fits
.....................!
real 190.60
user 185.12
sys 5.07

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/732907/ft1_filtered_4FGL_J2317.4-4533_daily_bin1393.fits scfile=/scratch/kocevski/732907/ft2_4FGL_J2317.4-4533_daily_bin1393.fits outfile=/scratch/kocevski/732907/cmap_HighResolution_600393601_600652801_4FGL_J2317.4-4533_daily_bin1393.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.59
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.429       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    95.116       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.423       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.623       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.988       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    218.63       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4866       1.0000         .10000E-03   10000.    
    18 'norm      '    18.620       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.2485       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    57.554       1.0000         .10000E-03   10000.    
    26 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .63834E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    12.161       1.0000         .10000E-03   10000.    
    31 'norm      '    13.807       1.0000         .10000E-03   10000.    
    32 'Prefactor '    4.9645       1.0000         .10000E-03   10000.    
    33 'Prefactor '    9.1047       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0667       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .79336       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=   4150.467     FROM MIGRAD    STATUS=CONVERGED    943 CALLS     5075 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.425        45.141        .10817E-06   -.83055E-05
   2  Prefactor     .10000E-03    20.128        .18113E-06** at limit **
   3  Prefactor     95.131        59.977       -.23222E-06   -.17978E-04
   4  Prefactor     .10000E-03    30.355        .84532E-06** at limit **
   5  norm          .10000E-03    2.4285        .12937E-07** at limit **
   6  Prefactor     .10000E-03    1.5054       -.17221E-07** at limit **
   7  Prefactor     .10000E-03    15.474       -.10997E-07** at limit **
   8  Prefactor     .10000E-03    2.3183       -.22216E-09** at limit **
   9  Prefactor     36.420        49.192        .16407E-06   -.13555E-04
  10  Prefactor     14.620        21.504        .11114E-06   -.58242E-05
  11  Prefactor     .10000E-03    17.825        .67722E-07** at limit **
  12  Prefactor     14.987        12.910        .17698E-06   -.30911E-04
  13  Prefactor     .10000E-03    47.239       -.84299E-07** at limit **
  14  Prefactor     .10000E-03    3.9667       -.53400E-07** at limit **
  15  Prefactor     .10000E-03    36.286        .25095E-06** at limit **
  16  Prefactor     218.60        121.74        .16145E-06   -.44603E-04
  17  Prefactor     3.5067        28.557       -.21092E-05   -.12377E-03
  18  norm          18.618        15.620        .41335E-07   -.20254E-04
  19  norm          .10000E-03    2.5012        .23753E-07** at limit **
  20  norm          .10000E-03    2.8321       -.13405E-07** at limit **
  21  norm          .10000E-03    2.8501       -.33036E-07** at limit **
  22  Prefactor     9.2489        11.168       -.54625E-07   -.27139E-03
  23  Prefactor     .10000E-03    27.768       -.53431E-07** at limit **
  24  norm          .10000E-03    3.2441       -.49172E-07** at limit **
  25  Prefactor     57.572        30.593       -.47826E-06   -.25278E-03
  26  norm          .10000E-03    1.1044        .93750E-06** at limit **
  27  norm          .10000E-03    1.6667       -.50558E-08** at limit **
  28  Prefactor     .10000E-03    22.822        .63689E-07** at limit **
  29  Prefactor     .10003E-03    2.7756        .63375E-06** at limit **
  30  Prefactor     12.177        20.517       -.11153E-05   -.10056E-03
  31  norm          13.812        24.104       -.54824E-06   -.16580E-04
  32  Prefactor     4.9690        7.3976       -.15860E-06   -.12603E-03
  33  Prefactor     9.1054        6.3866        .60144E-07   -.13706E-03
  34  Normalizat    1.0665        .23179       -.16475E-05   -.22095E-03
  35  Prefactor     .79357        .22494        .10665E-05   -.22823E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4249
  Prefactor  = 0.0001
  Prefactor  = 95.1311
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.4202
  Prefactor  = 14.6205
  Prefactor  = 0.0001
  Prefactor  = 14.987
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 218.603
  Prefactor  = 3.50668
  norm       = 18.618
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.24894
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 57.5725
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 12.1767
  norm       = 13.8121
  Prefactor  = 4.969
  Prefactor  = 9.10541
  Normalizat = 1.06654
  Prefactor  = 0.793568
 **********
 **   18 **HESSE 
 **********

 FCN=   4150.467     FROM HESSE     STATUS=OK           760 CALLS     5835 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.425        45.141        .10930E-03   -1.4975    
   2  Prefactor     .10000E-03    20.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     95.131        59.762        .41211E-04   -1.3754    
   4  Prefactor     .10000E-03    30.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.4283        .98045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.5117        .77172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3256        .95780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.420        49.195        .66406E-04   -1.4500    
  10  Prefactor     14.620        21.497        .10474E-03   -1.4943    
  11  Prefactor     .10000E-03    17.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.987        12.905        .10346E-03   -1.4934    
  13  Prefactor     .10000E-03    47.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.9760        .12528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     218.60        121.68        .13676E-03   -1.2740    
  17  Prefactor     3.5067        29.467        .21655E-03   -1.5333    
  18  norm          18.618        15.621        .92819E-04   -1.4845    
  19  norm          .10000E-03    2.5012        .99503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.8380        .10588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.8514        .10622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.2489        11.121        .13178E-03   -1.5100    
  23  Prefactor     .10000E-03    27.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.2826        .11324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     57.572        30.796        .52880E-04   -1.4189    
  26  norm          .10000E-03    1.4659        .11963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.6747        .81219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    22.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10003E-03    22.789        .19347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     12.177        20.490        .11487E-03   -1.5010    
  31  norm          13.812        24.092        .10779E-03   -1.4965    
  32  Prefactor     4.9690        7.3597        .18050E-03   -1.5262    
  33  Prefactor     9.1054        6.3918        .12919E-03   -1.5104    
  34  Normalizat    1.0665        .26957        .23829E-03   -.90833    
  35  Prefactor     .79357        .26280        .28085E-03   -.99966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62967e-09
Minuit parameter uncertainties:
  1  45.2563
  2  1.21754e-05
  3  59.8003
  4  4.06254e-05
  5  2.26811e-06
  6  1.82704e-06
  7  6.13146e-06
  8  1.69712e-06
  9  49.2501
  10  21.508
  11  3.35992e-05
  12  12.9071
  13  6.09081e-05
  14  4.22152e-06
  15  0.000115447
  16  121.826
  17  20.3436
  18  15.6242
  19  1.97843e-06
  20  1.48662e-06
  21  1.61802e-06
  22  11.1235
  23  7.06888e-06
  24  5.01742e-06
  25  30.8049
  26  3.50084e-05
  27  1.1088e-06
  28  4.02375e-05
  29  0.00160823
  30  20.5023
  31  24.1089
  32  7.36102
  33  6.39225
  34  0.269921
  35  0.263211
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.862e+01  1.562e+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:  7.936e-01  2.632e-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.067e+00  2.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.63
Ra Dec: 349.357 -45.562
Photon Index (Fixed Index): 1.79 +/- 0.00
Photon Flux (Fixed Index): 2.05e-08 +/- 1.72e-08
Energy Flux (Fixed Index): 2.29e-05 +/- 1.92e-05

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

Saving results to:
/scratch/kocevski/732907/likelihoodResults_600393601_600652801_4FGL_J2317.4-4533_daily_bin1393.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) = 4149.78655985
delta logL = 0.680110180183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4149.67541545
delta logL = 0.79125457968

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6166       1.0000         .10000E-03   10000.    
     2 'alpha     '    .60300       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80897       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=   4149.675     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5639        8.9085        .36327E-02   -.70515E-04
   2  alpha         .59967        .62141        .42691       -.83496E-05
   3  Normalizat    1.0627        .21186        .39755E-01   -.14813E-04
   4  Prefactor     .80944        .22004        .63024E-01   -.29455E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.56387
  alpha      = 0.599673
  Normalizat = 1.06274
  Prefactor  = 0.809441
 **********
 **   18 **HESSE 
 **********

 FCN=   4149.675     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5639        18.207        .14531E-03   -1.5158    
   2  alpha         .59967        1.0811        .20757E-01   -.86351    
   3  Normalizat    1.0627        .25032        .23875E-03   -.90957    
   4  Prefactor     .80944        .26017        .27876E-03   -.99381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.91414e-10
Minuit parameter uncertainties:
  1  18.2204
  2  1.18286
  3  0.2506
  4  0.260565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/732907': 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) = 4149.67541097
delta logL = 0.791259058254

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  7.564e+00  1.822e+01  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  5.997e-01  1.183e+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:  8.094e-01  2.606e-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.063e+00  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.21
Ra Dec: 349.357 -45.562
Photon Index (Free Index): 0.60 +/- 1.18
Photon Flux (Free Index): 6.42e-09 +/- 8.99e-09
Energy Flux (Free Index): 7.66e-05 +/- 1.07e-04

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/732907/cmap_HighResolution_600393601_600652801_4FGL_J2317.4-4533_daily_bin1393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.60e-05', comment='SUCCESS', photon_flux='2.05e-08', energy_flux2='7.66e-05', photon_flux_error='1.72e-08', dlogl='7.91e-01', energy_flux='2.29e-05', photon_flux2='6.42e-09', job_status='DONE', time_completed='2021-09-29 10:49:21.881309', photon_index_error2='1.18', photon_index2='0.60', ts='3.63', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='6.81e-08', energy_flux_error2='1.07e-04', EG='1.07', time_epoch_completed='1632937761.88', return_code='0', job_id='732907', GAL2='0.81', EG2='1.06', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='8.99e-09', ts2='5.21', photon_index='1.79' WHERE bin_id='1393' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:49:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 732907: <4FGL_J2317.4-4533_daily_bin1393> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1393> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:35:21 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:35:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 10:35:23 2021
Terminated at Wed Sep 29 10:49:22 2021
Results reported at Wed Sep 29 10:49:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1393 349.357 -45.5623 600393601 600652801 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 :                                   750.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

