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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1349
RA = 349.357, Dec = -45.5623
tmin = 588988801, tmax = 589248001
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='731734', job_status='RUN', time_executed='2021-09-29 10:32:21.075772', time_epoch_executed='1632936741.08' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731734

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731734/ft1_4FGL_J2317.4-4533_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731734/ft2_4FGL_J2317.4-4533_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731734/ft1_4FGL_J2317.4-4533_daily_bin1349.fits outfile=/scratch/kocevski/731734/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1349.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=588988801.0 tmax=589248001.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.11
user 2.90
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731734/ft1_filtered_4FGL_J2317.4-4533_daily_bin1349.fits" evtable="EVENTS" scfile=/scratch/kocevski/731734/ft2_4FGL_J2317.4-4533_daily_bin1349.fits sctable="SC_DATA" outfile=/scratch/kocevski/731734/ltcube_588988801_589248001_4FGL_J2317.4-4533_daily_bin1349.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/731734/ft2_4FGL_J2317.4-4533_daily_bin1349.fits
.....................!
real 12.50
user 12.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731734/ft1_filtered_4FGL_J2317.4-4533_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/731734/ft2_4FGL_J2317.4-4533_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/731734/ltcube_588988801_589248001_4FGL_J2317.4-4533_daily_bin1349.fits outfile=/scratch/kocevski/731734/expmap_588988801_589248001_4FGL_J2317.4-4533_daily_bin1349.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/731734/ltcube_588988801_589248001_4FGL_J2317.4-4533_daily_bin1349.fits
.....................!
real 190.41
user 185.45
sys 4.64

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/731734/ft1_filtered_4FGL_J2317.4-4533_daily_bin1349.fits scfile=/scratch/kocevski/731734/ft2_4FGL_J2317.4-4533_daily_bin1349.fits outfile=/scratch/kocevski/731734/cmap_588988801_589248001_4FGL_J2317.4-4533_daily_bin1349.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.35
sys 0.17

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731734/ft1_filtered_4FGL_J2317.4-4533_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/731734/ft2_4FGL_J2317.4-4533_daily_bin1349.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731734/Model_4FGL_J2317.4-4533_daily_bin1349.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/731734/ft1_filtered_4FGL_J2317.4-4533_daily_bin1349.fits.......!
real 13.85
user 12.66
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.291       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11644E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31598E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5434       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32376E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.794       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.907       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11909E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .18489E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18416E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.233       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    18 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    19 'norm      '    .26054E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .73766E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .41163E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5066.2       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11709E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10292E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .98294E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .21278E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .11574E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    .28606E-07   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=   72.11841     FROM MIGRAD    STATUS=CONVERGED   1781 CALLS     5925 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    171.53        .10930E-02** at limit **
   2  Prefactor     .10000E-03    84.041        .76415E-03** at limit **
   3  Prefactor     45.493        180.98        .59576E-04    .10837E-04
   4  Prefactor     .10000E-03    23.623        .40477E-03** at limit **
   5  norm          .10000E-03    40.962        .53305E-03** at limit **
   6  Prefactor     .10000E-03    268.36        .13696E-02** at limit **
   7  Prefactor     .10001E-03    9867.9        .94433E-03** at limit **
   8  Prefactor     .10000E-03    164.58        .10707E-02** at limit **
   9  Prefactor    10000.0        5709.0        .53923E-02** at limit **
  10  Prefactor    10000.0        9711.0        .46055E-01** at limit **
  11  Prefactor     .10003E-03    369.95        .16109E-02** at limit **
  12  Prefactor     .10000E-03    128.22        .94447E-03** at limit **
  13  Prefactor     .10004E-03    6166.0        .20298E-02** at limit **
  14  Prefactor    10000.0        9561.8        .18676E-02** at limit **
  15  Prefactor     .10008E-03    7521.7        .20302E-02** at limit **
  16  Prefactor    10000.0        9515.6        .45664E-02** at limit **
  17  Prefactor    10000.0        6382.8        .18142E-02** at limit **
  18  norm         10000.0        8973.5        .19344E-02** at limit **
  19  norm          .10002E-03    1304.9        .18305E-02** at limit **
  20  norm          .10001E-03    733.53        .20950E-02** at limit **
  21  norm          .10001E-03    1301.4        .19459E-02** at limit **
  22  Prefactor     5034.6        3780.4        .40004E-04    .28224E-05
  23  Prefactor     .10001E-03    9926.7        .18142E-02** at limit **
  24  norm          .10002E-03    390.54        .16551E-02** at limit **
  25  Prefactor     .10002E-03    1206.4        .20774E-02** at limit **
  26  norm          .10000E-03    78.919        .74043E-03** at limit **
  27  norm          .10000E-03    93.580        .80623E-03** at limit **
  28  Prefactor     .10002E-03    230.50        .12684E-02** at limit **
  29  Prefactor     .10000E-03    23.566        .40416E-03** at limit **
  30  Prefactor     .10001E-03    161.76        .10615E-02** at limit **
  31  norm          .10000E-03    86.065        .77324E-03** at limit **
  32  Prefactor     .10000E-03    46.919        .56934E-03** at limit **
  33  Prefactor     .10000E-03    26.771        .43056E-03** at limit **
  34  Normalizat    .10000E-01    .18809        .11436E-02** at limit **
  35  Prefactor     .39801E-12    .14542        .10058E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Prefactor  = 0.000100001
  Prefactor  = 45.4926
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100034
  Prefactor  = 0.000100004
  Prefactor  = 0.000100037
  Prefactor  = 10000
  Prefactor  = 0.000100084
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  norm       = 0.000100025
  norm       = 0.000100014
  norm       = 0.000100013
  Prefactor  = 5034.63
  Prefactor  = 0.000100009
  norm       = 0.000100018
  Prefactor  = 0.000100023
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 3.98015e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   72.11841     FROM HESSE     STATUS=OK           738 CALLS     6663 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    171.53        .21860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    84.041        .15283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     45.493        180.98        .11915E-04   -1.4358    
   4  Prefactor     .10000E-03    23.623        .80953E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    40.962        .10661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    268.36        .27393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    9867.9        .18887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    164.58        .21415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        5708.9        .10785E-02    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        9706.9        .92111E-02    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    369.95        .32218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    128.22        .18889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10004E-03    6166.0        .40596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        9565.0        .37351E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10008E-03    7521.7        .40603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        9587.8        .91329E-03    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        6382.7        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm         10000.0        8972.8        .38687E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10002E-03    1304.9        .36610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10001E-03    733.53        .41900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10001E-03    1301.4        .38917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5034.6        3780.4        .80007E-05    .69264E-02
  23  Prefactor     .10001E-03    9926.7        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10002E-03    390.54        .33102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10002E-03    1206.4        .41547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    78.919        .14809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    93.580        .16125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10002E-03    230.50        .25368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    23.566        .80832E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10001E-03    161.76        .21230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    86.065        .15465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    46.919        .11387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    26.771        .86111E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .10000E-01    .18809        .22872E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .39801E-12    .14542        .20116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44228e-10
Minuit parameter uncertainties:
  1  0.00275876
  2  0.000431675
  3  182.448
  4  0.000104107
  5  1.44609e-06
  6  8.48622e-05
  7  0.0256788
  8  0.000542251
  9  41.2226
  10  12.1127
  11  0.00710848
  12  0.00142713
  13  0.0194573
  14  0.247463
  15  0.0458461
  16  5.98892
  17  0.0189528
  18  0.0778334
  19  0.0115928
  20  0.00640068
  21  0.00842875
  22  4286.57
  23  0.0282394
  24  0.00528388
  25  0.010658
  26  0.000319453
  27  0.000490103
  28  0.00437884
  29  4.89378e-05
  30  0.00188998
  31  8.4148e-05
  32  0.000415814
  33  4.72821e-05
  34  1.07015e-06
  35  4.82185e-07
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e+04  7.783e-02  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:  3.980e-13  4.822e-07  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.000e-02  1.070e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 0.88
Ra Dec: 349.357 -45.562
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -1.12e+03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731734/likelihoodResults_588988801_589248001_4FGL_J2317.4-4533_daily_bin1349.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) = 55.1292713234
delta logL = 16.9891337033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 55.1269519118
delta logL = 16.9914531148

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'alpha     '    4.4965       1.0000          .0000       5.0000    
 **********
 **   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=   55.12695     FROM MIGRAD    STATUS=CONVERGED     13 CALLS       54 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       4.4965        .17039        .18741E-01   -.46117E-04
                               ERR DEF=  .500    
Final values: 
  alpha      = 4.49652
 **********
 **   18 **HESSE 
 **********

 FCN=   55.12695     FROM HESSE     STATUS=OK             5 CALLS       59 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       4.4965        .17035        .82660E-04    .92498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73593e-11
Minuit parameter uncertainties:
  1  0.170719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731734': 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) = 55.1269519117
delta logL = 16.9914531149

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
392        alpha:  4.497e+00  1.707e-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.009e-12  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 34.86
Ra Dec: 349.357 -45.562
Photon Index (Free Index): 4.50 +/- 0.17
Photon Flux (Free Index): 3.09e-03 +/- 1.30e-03
Energy Flux (Free Index): 4.80e-01 +/- 1.87e-01

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/731734/cmap_HighResolution_588988801_589248001_4FGL_J2317.4-4533_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-1.12e+03', comment='SUCCESS', energy_flux2='4.80e-01', dlogl='1.70e+01', photon_flux2='3.09e-03', job_status='DONE', time_completed='2021-09-29 10:38:02.740742', photon_index_error2='0.17', photon_index2='4.50', ts='0.88', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='1.87e-01', EG='0.01', time_epoch_completed='1632937082.74', return_code='0', job_id='731734', GAL2='0.00', EG2='0.01', return_code2='0', photon_flux_error2='1.30e-03', ts2='34.86', photon_index='1.79' WHERE bin_id='1349' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:38:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 731734: <4FGL_J2317.4-4533_daily_bin1349> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1349> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep 29 10:31:06 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:31:08 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:31:08 2021
Terminated at Wed Sep 29 10:38:03 2021
Results reported at Wed Sep 29 10:38:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1349 349.357 -45.5623 588988801 589248001 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 :                                   338.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   414 sec.
    Turnaround time :                            417 sec.

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

