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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1330
RA = 349.357, Dec = -45.5623
tmin = 584064001, tmax = 584323201
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='731704', job_status='RUN', time_executed='2021-09-29 10:31:42.214531', time_epoch_executed='1632936702.21' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731704

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731704/ft1_4FGL_J2317.4-4533_daily_bin1330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731704/ft2_4FGL_J2317.4-4533_daily_bin1330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731704/ft1_4FGL_J2317.4-4533_daily_bin1330.fits outfile=/scratch/kocevski/731704/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1330.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=584064001.0 tmax=584323201.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 4.58
user 4.29
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731704/ft1_filtered_4FGL_J2317.4-4533_daily_bin1330.fits" evtable="EVENTS" scfile=/scratch/kocevski/731704/ft2_4FGL_J2317.4-4533_daily_bin1330.fits sctable="SC_DATA" outfile=/scratch/kocevski/731704/ltcube_584064001_584323201_4FGL_J2317.4-4533_daily_bin1330.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/731704/ft2_4FGL_J2317.4-4533_daily_bin1330.fits
.....................!
real 13.35
user 12.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731704/ft1_filtered_4FGL_J2317.4-4533_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/731704/ft2_4FGL_J2317.4-4533_daily_bin1330.fits sctable="SC_DATA" expcube=/scratch/kocevski/731704/ltcube_584064001_584323201_4FGL_J2317.4-4533_daily_bin1330.fits outfile=/scratch/kocevski/731704/expmap_584064001_584323201_4FGL_J2317.4-4533_daily_bin1330.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/731704/ltcube_584064001_584323201_4FGL_J2317.4-4533_daily_bin1330.fits
.....................!
real 192.87
user 187.32
sys 5.17

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/731704/ft1_filtered_4FGL_J2317.4-4533_daily_bin1330.fits scfile=/scratch/kocevski/731704/ft2_4FGL_J2317.4-4533_daily_bin1330.fits outfile=/scratch/kocevski/731704/cmap_584064001_584323201_4FGL_J2317.4-4533_daily_bin1330.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731704/ft1_filtered_4FGL_J2317.4-4533_daily_bin1330.fits scfile=/scratch/kocevski/731704/ft2_4FGL_J2317.4-4533_daily_bin1330.fits outfile=/scratch/kocevski/731704/cmap_HighResolution_584064001_584323201_4FGL_J2317.4-4533_daily_bin1330.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.55
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731704/ft1_filtered_4FGL_J2317.4-4533_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/731704/ft2_4FGL_J2317.4-4533_daily_bin1330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731704/Model_4FGL_J2317.4-4533_daily_bin1330.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/731704/ft1_filtered_4FGL_J2317.4-4533_daily_bin1330.fits.....................!
real 42.93
user 41.56
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9609       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4582       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2711       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7024       1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.703       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3414       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.022       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13251E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .39277       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.362       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.856       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .49813       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.709       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0237       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .27609E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.3053       1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.552       1.0000         .10000E-03   10000.    
    26 'norm      '    .44970       1.0000         .10000E-03   10000.    
    27 'norm      '    .51074       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.2981       1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.6489       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.1135       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .65627       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .95383       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5970.909     FROM MIGRAD    STATUS=CONVERGED    989 CALLS     5151 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9599        25.924         .0000        .33916E-03
   2  Prefactor     3.4563        15.235         .0000       -.16643E-03
   3  Prefactor     .10000E-03    21.310         .0000    ** at limit **
   4  Prefactor     .10000E-03    3.6035         .0000    ** at limit **
   5  norm          4.2712        4.5012         .0000       -.21950E-03
   6  Prefactor     2.7028        3.7966         .0000        .15386E-01
   7  Prefactor     54.699        44.413         .0000        .67267E-03
   8  Prefactor     4.3416        4.8590         .0000        .71305E-03
   9  Prefactor     .10004E-03    12.323         .0000    ** at limit **
  10  Prefactor     .10000E-03    13.575         .0000    ** at limit **
  11  Prefactor     11.006        21.641         .0000       -.29859E-02
  12  Prefactor     .10000E-03    3.8756         .0000    ** at limit **
  13  Prefactor     .10114E-03    221.32         .0000    ** at limit **
  14  Prefactor     .37753        3.9810         .0000        .60559E-03
  15  Prefactor     .10000E-03    35.907         .0000    ** at limit **
  16  Prefactor     31.361        35.531         .0000        .24598E-03
  17  Prefactor     14.858        15.457         .0000       -.19617E-03
  18  norm          .10000E-03    2.8225         .0000    ** at limit **
  19  norm          .49891        9.7007         .0000        .39754E-01
  20  norm          .10000E-03    1.4578         .0000    ** at limit **
  21  norm          12.709        6.3376         .0000        .10778E-02
  22  Prefactor     4.0239        4.0793         .0000        .23750E-02
  23  Prefactor     .11383E-03    28.029         .0000    ** at limit **
  24  norm          3.3072        3.2278         .0000       -.52581E-03
  25  Prefactor     24.556        15.220         .0000        .65477E-03
  26  norm          .44909        1.0586         .0000        .13587E-02
  27  norm          .51088        2.5758         .0000        .11678E-02
  28  Prefactor     8.2977        10.131         .0000        .15885E-03
  29  Prefactor     5.6485        3.8491         .0000       -.27535E-02
  30  Prefactor     .10002E-03    12.024         .0000    ** at limit **
  31  norm          .10000E-03    6.6500         .0000    ** at limit **
  32  Prefactor     1.1141        2.9900         .0000        .97133E-03
  33  Prefactor     .10000E-03    1.7753         .0000    ** at limit **
  34  Normalizat    .65637        .16231         .0000       -.96228E-04
  35  Prefactor     .95373        .16479         .0000       -.12033E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.95992
  Prefactor  = 3.45633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.27115
  Prefactor  = 2.70276
  Prefactor  = 54.6994
  Prefactor  = 4.34161
  Prefactor  = 0.000100036
  Prefactor  = 0.000100004
  Prefactor  = 11.0055
  Prefactor  = 0.0001
  Prefactor  = 0.000101141
  Prefactor  = 0.377525
  Prefactor  = 0.000100001
  Prefactor  = 31.3607
  Prefactor  = 14.8581
  norm       = 0.0001
  norm       = 0.49891
  norm       = 0.0001
  norm       = 12.7094
  Prefactor  = 4.02392
  Prefactor  = 0.00011383
  norm       = 3.3072
  Prefactor  = 24.5556
  norm       = 0.449092
  norm       = 0.51088
  Prefactor  = 8.29767
  Prefactor  = 5.64852
  Prefactor  = 0.000100018
  norm       = 0.0001
  Prefactor  = 1.11411
  Prefactor  = 0.0001
  Normalizat = 0.656372
  Prefactor  = 0.953727
 **********
 **   18 **HESSE 
 **********

 FCN=   5970.909     FROM HESSE     STATUS=OK           780 CALLS     5931 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9599        25.926        .71053E-03   -1.5144    
   2  Prefactor     3.4563        15.173        .21747E-03   -1.5336    
   3  Prefactor     .10000E-03    21.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6135        .14325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2712        4.5033        .16418E-03   -1.5295    
   6  Prefactor     2.7028        3.7694        .80983E-03   -1.5379    
   7  Prefactor     54.699        44.294        .54233E-04   -1.4227    
   8  Prefactor     4.3416        4.8351        .16571E-03   -1.5291    
   9  Prefactor     .10004E-03    12.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.006        21.586        .12068E-03   -1.5044    
  12  Prefactor     .10000E-03    3.8857        .14840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10114E-03    222.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .37753        35.181        .28502E-02   -1.5585    
  15  Prefactor     .10000E-03    36.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.361        35.543        .71548E-04   -1.4587    
  17  Prefactor     14.858        14.939        .10392E-03   -1.4937    
  18  norm          .10000E-03    2.8241        .12678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .49891        9.1945        .21592E-02   -1.5567    
  20  norm          .10000E-03    1.4596        .91080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.709        6.3400        .11236E-03   -1.4995    
  22  Prefactor     4.0239        4.0623        .14497E-03   -1.5307    
  23  Prefactor     .11383E-03    170.55        .67044E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.3072        3.0785        .11850E-03   -1.5344    
  25  Prefactor     24.556        14.961        .80842E-04   -1.4716    
  26  norm          .44909        .84300        .96530E-03   -1.5574    
  27  norm          .51088        7.5392        .20884E-02   -1.5565    
  28  Prefactor     8.2977        10.105        .13917E-03   -1.5132    
  29  Prefactor     5.6485        3.7351        .11239E-03   -1.5233    
  30  Prefactor     .10002E-03    12.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    6.6545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.1141        2.5065        .20308E-02   -1.5497    
  33  Prefactor     .10000E-03    1.8187        .20076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .65637        .18770        .23927E-03   -1.0564    
  35  Prefactor     .95373        .19551        .22351E-03   -.94288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47744e-07
Minuit parameter uncertainties:
  1  25.963
  2  14.4896
  3  0.000130501
  4  4.58822e-06
  5  4.50366
  6  3.76969
  7  44.3207
  8  4.83558
  9  0.00132848
  10  0.000479203
  11  21.6013
  12  7.03666e-06
  13  0.0320124
  14  7.29231
  15  0.000269264
  16  35.5673
  17  14.9423
  18  1.56784e-06
  19  4.28389
  20  1.20757e-07
  21  6.3403
  22  4.06262
  23  0.0974108
  24  3.0786
  25  14.963
  26  0.843019
  27  3.92532
  28  10.1071
  29  3.73522
  30  0.000922843
  31  1.35166e-05
  32  2.50672
  33  5.5327e-07
  34  0.187881
  35  0.195653
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  1.568e-06  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.537e-01  1.957e-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:  6.564e-01  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/731704/likelihoodResults_584064001_584323201_4FGL_J2317.4-4533_daily_bin1330.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): 102
logL (Free Index) = 5970.91048656
delta logL = -0.00161040711828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5970.90887605
delta logL = 1.06533661892e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7801       1.0000          .0000       5.0000    
     3 'Normalizat'    .65636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95372       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=   5970.909     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      232 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    151.44        .12766E-01** at limit **
   2  alpha         1.2854        3.2903        .17419       -.36549E-08
   3  Normalizat    .65637        .25088E-01    .23927E-03    .36015E-04
   4  Prefactor     .95373        .28016E-01    .22351E-03    .43896E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.28538
  Normalizat = 0.656372
  Prefactor  = 0.953728
 **********
 **   18 **HESSE 
 **********

 FCN=   5970.909     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.2650        .13616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2854        4.1116        .69676E-02   -.50733    
   3  Normalizat    .65637        .17202        .95709E-05   -1.0564    
   4  Prefactor     .95373        .19212        .89404E-05   -.94288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51956e-12
Minuit parameter uncertainties:
  1  1.54453e-05
  2  227.466
  3  0.172163
  4  0.192258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731704': 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) = 5970.90887379
delta logL = 2.36532468989e-06

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  1.545e-05  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  1.285e+00  2.275e+02  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.537e-01  1.923e-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:  6.564e-01  1.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 349.357 -45.562

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/731704/cmap_HighResolution_584064001_584323201_4FGL_J2317.4-4533_daily_bin1330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-05', job_status='DONE', photon_flux_upper_limit='1.75e-08', time_completed='2021-09-29 10:47:41.586741', job_id='731704', GAL2='0.95', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1632937661.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.37e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1330' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:47:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 731704: <4FGL_J2317.4-4533_daily_bin1330> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1330 349.357 -45.5623 584064001 584323201 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 :                                   952.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            998 sec.

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

