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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1590
RA = 349.357, Dec = -45.5623
tmin = 651456001, tmax = 651715201
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='733205', job_status='RUN', time_executed='2021-09-29 10:36:04.353713', time_epoch_executed='1632936964.35' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733205

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733205/ft1_4FGL_J2317.4-4533_daily_bin1590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733205/ft2_4FGL_J2317.4-4533_daily_bin1590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733205/ft1_4FGL_J2317.4-4533_daily_bin1590.fits outfile=/scratch/kocevski/733205/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1590.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=651456001.0 tmax=651715201.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.48
user 3.25
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733205/ft1_filtered_4FGL_J2317.4-4533_daily_bin1590.fits" evtable="EVENTS" scfile=/scratch/kocevski/733205/ft2_4FGL_J2317.4-4533_daily_bin1590.fits sctable="SC_DATA" outfile=/scratch/kocevski/733205/ltcube_651456001_651715201_4FGL_J2317.4-4533_daily_bin1590.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/733205/ft2_4FGL_J2317.4-4533_daily_bin1590.fits
.....................!
real 15.93
user 15.51
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733205/ft1_filtered_4FGL_J2317.4-4533_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/733205/ft2_4FGL_J2317.4-4533_daily_bin1590.fits sctable="SC_DATA" expcube=/scratch/kocevski/733205/ltcube_651456001_651715201_4FGL_J2317.4-4533_daily_bin1590.fits outfile=/scratch/kocevski/733205/expmap_651456001_651715201_4FGL_J2317.4-4533_daily_bin1590.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/733205/ltcube_651456001_651715201_4FGL_J2317.4-4533_daily_bin1590.fits
.....................!
real 192.17
user 186.35
sys 5.35

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/733205/ft1_filtered_4FGL_J2317.4-4533_daily_bin1590.fits scfile=/scratch/kocevski/733205/ft2_4FGL_J2317.4-4533_daily_bin1590.fits outfile=/scratch/kocevski/733205/cmap_651456001_651715201_4FGL_J2317.4-4533_daily_bin1590.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733205/ft1_filtered_4FGL_J2317.4-4533_daily_bin1590.fits scfile=/scratch/kocevski/733205/ft2_4FGL_J2317.4-4533_daily_bin1590.fits outfile=/scratch/kocevski/733205/cmap_HighResolution_651456001_651715201_4FGL_J2317.4-4533_daily_bin1590.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.57
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.262       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1721       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .91727       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.278       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.736       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .97969       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.330       1.0000         .10000E-03   10000.    
    16 'Prefactor '    88.710       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .25337E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.9398       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.785       1.0000         .10000E-03   10000.    
    26 'norm      '    3.0863       1.0000         .10000E-03   10000.    
    27 'norm      '    4.9779       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.2361       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .95497       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0018       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=   4598.407     FROM MIGRAD    STATUS=CONVERGED    946 CALLS     5001 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.554        .92485E-06** at limit **
   2  Prefactor     16.270        20.440       -.68071E-06   -.45420E-04
   3  Prefactor     .10000E-03    19.840        .49660E-06** at limit **
   4  Prefactor     5.1725        7.7999        .79871E-07   -.95042E-05
   5  norm          .10000E-03    4.1138        .20441E-06** at limit **
   6  Prefactor     .91742        3.0873        .22258E-06   -.47743E-05
   7  Prefactor     .10000E-03    17.187        .11280E-05** at limit **
   8  Prefactor     10.278        6.5767        .94301E-07    .29974E-04
   9  Prefactor     16.727        35.963        .14615E-05   -.15691E-04
  10  Prefactor     .10000E-03    44.407        .40434E-05** at limit **
  11  Prefactor     .10000E-03    10.995       -.81569E-06** at limit **
  12  Prefactor     .10000E-03    11.737       -.50942E-06** at limit **
  13  Prefactor     .10000E-03    32.738       -.26379E-05** at limit **
  14  Prefactor     .97945        10.408        .90514E-06   -.36400E-05
  15  Prefactor     17.326        42.285        .13004E-05    .95943E-05
  16  Prefactor     88.709        76.759        .16826E-06   -.89943E-05
  17  Prefactor     .10000E-03    29.014       -.25832E-05** at limit **
  18  norm          .10000E-03    7.3094        .46103E-06** at limit **
  19  norm          .10000E-03    2.1977        .32604E-08** at limit **
  20  norm          .10000E-03    3.5730       -.23506E-06** at limit **
  21  norm          6.9405        8.3030        .32711E-07   -.34445E-05
  22  Prefactor     .10000E-03    4.7528        .46178E-06** at limit **
  23  Prefactor     .10000E-03    20.602        .35859E-06** at limit **
  24  norm          .10000E-03    5.4208        .14635E-06** at limit **
  25  Prefactor     16.789        13.221       -.62199E-07   -.64423E-04
  26  norm          3.0860        1.2916        .48753E-07   -.27103E-04
  27  norm          4.9788        6.2855        .18232E-05    .14866E-03
  28  Prefactor     .10000E-03    6.5125       -.45633E-07** at limit **
  29  Prefactor     .10000E-03    2.0819        .97055E-06** at limit **
  30  Prefactor     8.2378        12.563        .25231E-06   -.30734E-04
  31  norm          .10000E-03    6.0472       -.34607E-06** at limit **
  32  Prefactor     .10000E-03    1.6155       -.10885E-07** at limit **
  33  Prefactor     .10000E-03    4.2157       -.46527E-07** at limit **
  34  Normalizat    .95496        .20529       -.10999E-05   -.59830E-04
  35  Prefactor     1.0017        .21745        .22496E-06   -.68430E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.2703
  Prefactor  = 0.0001
  Prefactor  = 5.17252
  norm       = 0.0001
  Prefactor  = 0.917418
  Prefactor  = 0.0001
  Prefactor  = 10.278
  Prefactor  = 16.7269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.979454
  Prefactor  = 17.3261
  Prefactor  = 88.7087
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.94046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.7891
  norm       = 3.08599
  norm       = 4.97879
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.23779
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.95496
  Prefactor  = 1.00167
 **********
 **   18 **HESSE 
 **********

 FCN=   4598.407     FROM HESSE     STATUS=OK           770 CALLS     5771 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.270        20.171        .99319E-04   -1.4901    
   3  Prefactor     .10000E-03    19.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.1725        7.7906        .17677E-03   -1.5253    
   5  norm          .10000E-03    4.1227        .13433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .91742        3.0401        .20950E-03   -1.5516    
   7  Prefactor     .10000E-03    17.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.278        6.5780        .12498E-03   -1.5067    
   9  Prefactor     16.727        35.883        .97903E-04   -1.4890    
  10  Prefactor     .10000E-03    44.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .97945        10.526        .41890E-03   -1.5510    
  15  Prefactor     17.326        42.364        .96210E-04   -1.4875    
  16  Prefactor     88.709        76.744        .42660E-04   -1.3821    
  17  Prefactor     .10000E-03    29.646        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.3234        .17907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.1981        .98180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.901        .24865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.9405        8.2970        .15229E-03   -1.5181    
  22  Prefactor     .10000E-03    4.8018        .14397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.6039        .30778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     16.789        13.202        .97760E-04   -1.4888    
  26  norm          3.0860        1.2899        .47593E-04   -1.5357    
  27  norm          4.9788        6.4364        .90125E-03   -1.5262    
  28  Prefactor     .10000E-03    6.5192        .16902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.2890        .17509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     8.2378        12.509        .13970E-03   -1.5134    
  31  norm          .10000E-03    6.0484        .16289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    1.6219        .84160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    8.2135        .26108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .95496        .24294        .23818E-03   -.94555    
  35  Prefactor     1.0017        .25986        .25309E-03   -.92674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0655e-10
Minuit parameter uncertainties:
  1  6.0587e-06
  2  20.1795
  3  8.32109e-06
  4  7.79211
  5  4.28513e-07
  6  3.04065
  7  4.50144e-06
  8  6.57847
  9  35.9292
  10  8.8725e-05
  11  4.4932e-06
  12  6.60933e-06
  13  2.45493e-05
  14  6.42292
  15  42.4376
  16  76.8301
  17  6.02428e-05
  18  7.37939e-07
  19  7.22151e-09
  20  1.72431e-05
  21  8.29838
  22  2.34485e-06
  23  1.59378e-06
  24  5.68657e-06
  25  13.2039
  26  1.28993
  27  6.43726
  28  2.15742e-07
  29  0.000106771
  30  12.513
  31  1.50357e-06
  32  1.17624e-07
  33  3.76334e-05
  34  0.243225
  35  0.260183
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  7.379e-07  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:  1.002e+00  2.602e-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:  9.550e-01  2.432e-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: 3.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733205/likelihoodResults_651456001_651715201_4FGL_J2317.4-4533_daily_bin1590.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) = 4598.4081139
delta logL = -0.000648766852464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4598.40746513
delta logL = 5.70707925363e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7981       1.0000          .0000       5.0000    
     3 'Normalizat'    .95496       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0017       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=   4598.407     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      226 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    75.533        .17926E-02** at limit **
   2  alpha         2.1542        3.4313        .17366        .77247E-08
   3  Normalizat    .95496        .23542        .23818E-03    .27804E-03
   4  Prefactor     1.0017        .25688        .25309E-03    .17866E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.15417
  Normalizat = 0.954962
  Prefactor  = 1.00167
 **********
 **   18 **HESSE 
 **********

 FCN=   4598.407     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.5900        .35851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1542        3.5702        .69466E-02   -.13878    
   3  Normalizat    .95496        .23567        .47636E-04   -.94555    
   4  Prefactor     1.0017        .25715        .50618E-04   -.92674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2612e-10
Minuit parameter uncertainties:
  1  1.39669e-05
  2  548.299
  3  0.235923
  4  0.257463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733205': 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) = 4598.4074649
delta logL = 2.38843313127e-07

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  1.397e-05  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  2.154e+00  5.483e+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:  1.002e+00  2.575e-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:  9.550e-01  2.359e-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/733205/cmap_HighResolution_651456001_651715201_4FGL_J2317.4-4533_daily_bin1590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-05', job_status='DONE', photon_flux_upper_limit='3.62e-08', time_completed='2021-09-29 10:49:32.767737', job_id='733205', GAL2='1.00', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1632937772.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1590' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:49:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 733205: <4FGL_J2317.4-4533_daily_bin1590> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1590> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 29 10:35:49 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:35:51 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:51 2021
Terminated at Wed Sep 29 10:49:33 2021
Results reported at Wed Sep 29 10:49:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1590 349.357 -45.5623 651456001 651715201 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 :                                   798.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

