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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1287
RA = 349.357, Dec = -45.5623
tmin = 572918401, tmax = 573177601
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='731636', job_status='RUN', time_executed='2021-09-29 10:33:29.997127', time_epoch_executed='1632936810.0' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731636

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731636/ft1_4FGL_J2317.4-4533_daily_bin1287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731636/ft2_4FGL_J2317.4-4533_daily_bin1287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731636/ft1_4FGL_J2317.4-4533_daily_bin1287.fits outfile=/scratch/kocevski/731636/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1287.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=572918401.0 tmax=573177601.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.86
user 4.61
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731636/ft1_filtered_4FGL_J2317.4-4533_daily_bin1287.fits" evtable="EVENTS" scfile=/scratch/kocevski/731636/ft2_4FGL_J2317.4-4533_daily_bin1287.fits sctable="SC_DATA" outfile=/scratch/kocevski/731636/ltcube_572918401_573177601_4FGL_J2317.4-4533_daily_bin1287.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/731636/ft2_4FGL_J2317.4-4533_daily_bin1287.fits
.....................!
real 11.83
user 11.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731636/ft1_filtered_4FGL_J2317.4-4533_daily_bin1287.fits evtable="EVENTS" scfile=/scratch/kocevski/731636/ft2_4FGL_J2317.4-4533_daily_bin1287.fits sctable="SC_DATA" expcube=/scratch/kocevski/731636/ltcube_572918401_573177601_4FGL_J2317.4-4533_daily_bin1287.fits outfile=/scratch/kocevski/731636/expmap_572918401_573177601_4FGL_J2317.4-4533_daily_bin1287.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/731636/ltcube_572918401_573177601_4FGL_J2317.4-4533_daily_bin1287.fits
.....................!
real 190.25
user 185.39
sys 4.48

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/731636/ft1_filtered_4FGL_J2317.4-4533_daily_bin1287.fits scfile=/scratch/kocevski/731636/ft2_4FGL_J2317.4-4533_daily_bin1287.fits outfile=/scratch/kocevski/731636/cmap_572918401_573177601_4FGL_J2317.4-4533_daily_bin1287.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731636/ft1_filtered_4FGL_J2317.4-4533_daily_bin1287.fits scfile=/scratch/kocevski/731636/ft2_4FGL_J2317.4-4533_daily_bin1287.fits outfile=/scratch/kocevski/731636/cmap_HighResolution_572918401_573177601_4FGL_J2317.4-4533_daily_bin1287.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/731636/ft1_filtered_4FGL_J2317.4-4533_daily_bin1287.fits evtable="EVENTS" scfile=/scratch/kocevski/731636/ft2_4FGL_J2317.4-4533_daily_bin1287.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731636/Model_4FGL_J2317.4-4533_daily_bin1287.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/731636/ft1_filtered_4FGL_J2317.4-4533_daily_bin1287.fits.....................!
real 33.83
user 32.54
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .39741       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.3061       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9332       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.699       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.156       1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.088       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13758E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    49.222       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0672       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    57.821       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.179       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.8116       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7436       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.847       1.0000         .10000E-03   10000.    
    24 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .74202E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    2.6457       1.0000         .10000E-03   10000.    
    27 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.6054       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.6655       1.0000         .10000E-03   10000.    
    30 'Prefactor '    18.268       1.0000         .10000E-03   10000.    
    31 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .50567E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.3861       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .35965       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=   3762.380     FROM MIGRAD    STATUS=CONVERGED   1783 CALLS     5928 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.782        .18142E-02** at limit **
   2  Prefactor     .41402        175.56        .49797E-02    .81501E-04
   3  Prefactor     .10000E-03    13.291        .18142E-02** at limit **
   4  Prefactor     .10000E-03    4.3479        .12485E-02** at limit **
   5  norm          8.3041        9.0745        .13910E-03    .17776E-04
   6  Prefactor     6.9318        6.4385        .13554E-03    .19195E-03
   7  Prefactor     12.737        46.577        .11241E-03   -.59166E-05
   8  Prefactor     16.152        9.5379        .99644E-04    .66801E-04
   9  Prefactor     50.103        48.274        .56664E-04   -.37117E-05
  10  Prefactor     .10082E-03    38.174        .97350E-01** at limit **
  11  Prefactor     49.202        35.244        .57158E-04    .29338E-04
  12  Prefactor     8.0667        8.6014        .14116E-03    .11154E-04
  13  Prefactor     .10000E-03    50.766        .18142E-02** at limit **
  14  Prefactor     .10000E-03    7.3531        .16202E-02** at limit **
  15  Prefactor     57.835        41.526        .52759E-04    .34693E-05
  16  Prefactor     36.114        77.482        .66629E-04    .25577E-04
  17  Prefactor     .10000E-03    7.1977        .16062E-02** at limit **
  18  norm          .10000E-03    6.8436        .15660E-02** at limit **
  19  norm          .10000E-03    2.6960        .98350E-03** at limit **
  20  norm          .10000E-03    3.9634        .11893E-02** at limit **
  21  norm          1.8086        7.0104        .30964E-03    .17244E-03
  22  Prefactor     3.7440        5.7900        .17025E-03    .17281E-03
  23  Prefactor     26.814        38.289        .77317E-04   -.36245E-04
  24  norm          .10000E-03    4.2783        .12286E-02** at limit **
  25  Prefactor     .10448E-03    19.109        .66416E-01** at limit **
  26  norm          2.6455        1.5810        .55433E-04    .49713E-03
  27  norm          .10000E-03    1.3793        .70294E-03** at limit **
  28  Prefactor     4.5966        20.808        .18756E-03    .22791E-04
  29  Prefactor     2.6641        5.1556        .15748E-03    .19134E-03
  30  Prefactor     18.287        31.709        .93709E-04    .95357E-04
  31  norm          .10000E-03    7.8620        .16798E-02** at limit **
  32  Prefactor     .10000E-03    3.5271        .11191E-02** at limit **
  33  Prefactor     .10000E-03    8.5785        .23285E-02** at limit **
  34  Normalizat    1.3864        .27082        .20272E-03    .12368E-03
  35  Prefactor     .35980        .25116        .37666E-03    .13395E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.414024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.30413
  Prefactor  = 6.93176
  Prefactor  = 12.7367
  Prefactor  = 16.1525
  Prefactor  = 50.1031
  Prefactor  = 0.000100819
  Prefactor  = 49.2015
  Prefactor  = 8.06673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.8351
  Prefactor  = 36.1137
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.8086
  Prefactor  = 3.74399
  Prefactor  = 26.8141
  norm       = 0.0001
  Prefactor  = 0.000104476
  norm       = 2.6455
  norm       = 0.0001
  Prefactor  = 4.59664
  Prefactor  = 2.6641
  Prefactor  = 18.2869
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.38636
  Prefactor  = 0.359799
 **********
 **   18 **HESSE 
 **********

 FCN=   3762.380     FROM HESSE     STATUS=OK           758 CALLS     6686 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .41402        178.58        .19919E-03   -1.5579    
   3  Prefactor     .10000E-03    13.291        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3480        .24970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.3041        9.0745        .55641E-05   -1.5132    
   6  Prefactor     6.9318        6.4366        .54217E-05   -1.5181    
   7  Prefactor     12.737        46.572        .44963E-05   -1.4994    
   8  Prefactor     16.152        9.5359        .39858E-05   -1.4904    
   9  Prefactor     50.103        48.263        .22666E-05   -1.4291    
  10  Prefactor     .10082E-03    35.953        .10146       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     49.202        35.238        .22863E-05   -1.4304    
  12  Prefactor     8.0667        8.6009        .56464E-05   -1.5140    
  13  Prefactor     .10000E-03    50.767        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.3541        .32404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     57.835        41.525        .10552E-04   -1.4186    
  16  Prefactor     36.114        77.469        .13326E-04   -1.4505    
  17  Prefactor     .10000E-03    7.1980        .32124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.8439        .31321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.6960        .19670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.9637        .23785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.8086        7.0097        .12385E-04   -1.5439    
  22  Prefactor     3.7440        5.7834        .68101E-05   -1.5321    
  23  Prefactor     26.814        38.282        .30927E-05   -1.4672    
  24  norm          .10000E-03    4.2787        .24572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10448E-03    17.164        .71725E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.6455        1.5809        .22173E-05   -1.5383    
  27  norm          .10000E-03    1.3793        .14059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.5966        20.798        .75023E-05   -1.5279    
  29  Prefactor     2.6641        5.1531        .62991E-05   -1.5382    
  30  Prefactor     18.287        31.668        .37483E-05   -1.4852    
  31  norm          .10000E-03    7.8620        .33597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    3.5276        .22381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    8.6200        .46571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.3864        .27040        .40544E-04   -.81024    
  35  Prefactor     .35980        .25123        .15067E-04   -1.1891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88158e-09
Minuit parameter uncertainties:
  1  6.84034e-06
  2  17.2474
  3  2.76116e-06
  4  1.94415e-06
  5  9.07603
  6  6.43727
  7  46.7053
  8  9.5368
  9  48.3004
  10  0.010857
  11  35.2526
  12  8.6022
  13  1.58537e-05
  14  2.10785e-05
  15  41.5455
  16  77.6856
  17  1.2393e-05
  18  4.36545e-06
  19  6.69177e-06
  20  2.2401e-05
  21  7.01291
  22  5.78428
  23  38.3174
  24  6.07785e-05
  25  0.0175355
  26  1.58096
  27  2.70805e-06
  28  19.5663
  29  5.15391
  30  31.6972
  31  3.89596e-06
  32  1.31034e-05
  33  0.000128125
  34  0.270683
  35  0.252002
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  4.365e-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:  3.598e-01  2.520e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.386e+00  2.707e-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.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731636/likelihoodResults_572918401_573177601_4FGL_J2317.4-4533_daily_bin1287.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) = 3762.38069966
delta logL = -0.000676760214446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3762.380023
delta logL = -1.00063971331e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7882       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .35981       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=   3762.380     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      242 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10022E-03    367.36        .15674E-02** at limit **
   2  alpha         1.7418        3.4776        .50000        .19195E-05
   3  Normalizat    1.3864        .40687E-01    .20272E-03    .54960E-05
   4  Prefactor     .35980        .40771E-01    .37667E-03    .73796E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100218
  alpha      = 1.74182
  Normalizat = 1.38636
  Prefactor  = 0.359797
 **********
 **   18 **HESSE 
 **********

 FCN=   3762.380     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10022E-03    1210.7        .31349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7418        4.1042        .50000       -.30812    
   3  Normalizat    1.3864        .10252        .81086E-05   -.81024    
   4  Prefactor     .35980        .10270        .15067E-04   -1.1891    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.10079e-08
Minuit parameter uncertainties:
  1  0.0332188
  2  3048.56
  3  0.102533
  4  0.10275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731636': 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): 102
logL (Free Index) = 3762.38002285
delta logL = 4.06184881285e-08

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.002e-04  3.322e-02  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  1.742e+00  3.049e+03  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:  3.598e-01  1.028e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.386e+00  1.025e-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/731636/cmap_HighResolution_572918401_573177601_4FGL_J2317.4-4533_daily_bin1287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.98e-05', job_status='DONE', photon_flux_upper_limit='3.57e-08', time_completed='2021-09-29 10:46:25.998791', job_id='731636', GAL2='0.36', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1632937586.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.36', dlogl='4.06e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1287' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:46:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 731636: <4FGL_J2317.4-4533_daily_bin1287> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1287> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep 29 10:30:56 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:30:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 10:30:58 2021
Terminated at Wed Sep 29 10:46:26 2021
Results reported at Wed Sep 29 10:46:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1287 349.357 -45.5623 572918401 573177601 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 :                                   769.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

