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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1233
RA = 349.357, Dec = -45.5623
tmin = 558921601, tmax = 559180801
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='731551', job_status='RUN', time_executed='2021-09-29 10:31:16.802738', time_epoch_executed='1632936676.8' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731551

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731551/ft1_4FGL_J2317.4-4533_daily_bin1233.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731551/ft2_4FGL_J2317.4-4533_daily_bin1233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731551/ft1_4FGL_J2317.4-4533_daily_bin1233.fits outfile=/scratch/kocevski/731551/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1233.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=558921601.0 tmax=559180801.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.61
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731551/ft1_filtered_4FGL_J2317.4-4533_daily_bin1233.fits" evtable="EVENTS" scfile=/scratch/kocevski/731551/ft2_4FGL_J2317.4-4533_daily_bin1233.fits sctable="SC_DATA" outfile=/scratch/kocevski/731551/ltcube_558921601_559180801_4FGL_J2317.4-4533_daily_bin1233.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/731551/ft2_4FGL_J2317.4-4533_daily_bin1233.fits
.....................!
real 11.99
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731551/ft1_filtered_4FGL_J2317.4-4533_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/731551/ft2_4FGL_J2317.4-4533_daily_bin1233.fits sctable="SC_DATA" expcube=/scratch/kocevski/731551/ltcube_558921601_559180801_4FGL_J2317.4-4533_daily_bin1233.fits outfile=/scratch/kocevski/731551/expmap_558921601_559180801_4FGL_J2317.4-4533_daily_bin1233.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/731551/ltcube_558921601_559180801_4FGL_J2317.4-4533_daily_bin1233.fits
.....................!
real 190.79
user 185.11
sys 5.27

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731551/ft1_filtered_4FGL_J2317.4-4533_daily_bin1233.fits scfile=/scratch/kocevski/731551/ft2_4FGL_J2317.4-4533_daily_bin1233.fits outfile=/scratch/kocevski/731551/cmap_HighResolution_558921601_559180801_4FGL_J2317.4-4533_daily_bin1233.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.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/731551/ft1_filtered_4FGL_J2317.4-4533_daily_bin1233.fits', '/scratch/kocevski/731551/ft2_4FGL_J2317.4-4533_daily_bin1233.fits', expMap='/scratch/kocevski/731551/expmap_558921601_559180801_4FGL_J2317.4-4533_daily_bin1233.fits', expCube='/scratch/kocevski/731551/ltcube_558921601_559180801_4FGL_J2317.4-4533_daily_bin1233.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/731551/Model_4FGL_J2317.4-4533_daily_bin1233.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/731551/ft1_filtered_4FGL_J2317.4-4533_daily_bin1233.fits
Spacecraft file(s): /scratch/kocevski/731551/ft2_4FGL_J2317.4-4533_daily_bin1233.fits
Exposure map: /scratch/kocevski/731551/expmap_558921601_559180801_4FGL_J2317.4-4533_daily_bin1233.fits
Exposure cube: /scratch/kocevski/731551/ltcube_558921601_559180801_4FGL_J2317.4-4533_daily_bin1233.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/731551/Model_4FGL_J2317.4-4533_daily_bin1233.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 543.238192827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 539.649746837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20926E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .47460E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2483       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .78008E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6153       1.0000         .10000E-03   10000.    
     6 'Prefactor '    64.378       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .83158E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .36764E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.279       1.0000         .10000E-03   10000.    
    10 'Prefactor '    240.34       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1691       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7212       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0694       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27303E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2105       1.0000         .10000E-03   10000.    
    16 'Prefactor '    154.85       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .60531E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .41650E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .50784E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    40.940       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.4270       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .20733E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    6.3960       1.0000         .10000E-03   10000.    
    25 'Prefactor '    146.89       1.0000         .10000E-03   10000.    
    26 'norm      '    .25834E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.1836       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .62883E-02   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .13629E-01   1.0000         .10000E-03   10000.    
    31 'norm      '    .39214       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .18158E-02   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.6422       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .26680       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   539.6347     FROM MIGRAD    STATUS=CONVERGED    255 CALLS      574 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10053E-03    181.48       -.11562E-03** at limit **
   2  Prefactor     .13289E-03    89.384        .69763E-04** at limit **
   3  Prefactor     .10005E-03    485.92        .87415E-04** at limit **
   4  Prefactor     .10000E-03    85.057        .98807E-06** at limit **
   5  norm          1.6153        1.0584         .0000         .0000    
   6  Prefactor     63.867        15.927        .40127E-05   -.15528E-01
   7  Prefactor     .10128E-03    209.52       -.93177E-04** at limit **
   8  Prefactor     .10000E-03    272.20       -.28388E-04** at limit **
   9  Prefactor     .78296E-02    1694.6       -.72889E-04    .94076E-03
  10  Prefactor     250.45        185.45        .16770E-04    .49770E-02
  11  Prefactor     4.1691        1.0074         .0000         .0000    
  12  Prefactor     2.7212        1.0180         .0000         .0000    
  13  Prefactor     4.0694        1.0077         .0000         .0000    
  14  Prefactor     .10000E-03    65.253       -.45390E-04** at limit **
  15  Prefactor     .10565E-01    1300.7       -.32641E-04   -.19941E-02
  16  Prefactor     162.78        85.281        .11565E-04   -.10425E-01
  17  Prefactor     .19334E-03    23.916       -.57954E-04** at limit **
  18  norm          .10000E-03    64.224        .13036E-04** at limit **
  19  norm          .12983E-03    92.885       -.47311E-04** at limit **
  20  norm          .10000E-03    19.525       -.86050E-05** at limit **
  21  norm          40.902        3.2637        .24364E-05   -.38181E-03
  22  Prefactor     .10000E-03    112.23        .13415E-03** at limit **
  23  Prefactor     .10000E-03    89.735       -.64533E-04** at limit **
  24  norm          6.3746        11.841       -.51623E-05   -.23976E-04
  25  Prefactor     151.94        66.758        .46100E-05   -.12218E-02
  26  norm          .10000E-03    13.669        .39427E-07** at limit **
  27  norm          .10000E-03    17.296        .38496E-05** at limit **
  28  Prefactor     2.1836        1.0290         .0000         .0000    
  29  Prefactor     .10000E-03    79.204       -.51575E-04** at limit **
  30  Prefactor     .10184E-03    136.00        .12059E-03** at limit **
  31  norm          .12201E-03    1327.8        .16764E-03** at limit **
  32  Prefactor     .10599E-03    18.968        .35826E-04** at limit **
  33  Prefactor     .10000E-03    13.633       -.40687E-05** at limit **
  34  Normalizat    1.6344        .93725       -.12069E-03   -.75426E-05
  35  Prefactor     .27305        .86212        .30942E-03   -.11347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100532
  Prefactor  = 0.000132887
  Prefactor  = 0.000100047
  Prefactor  = 0.0001
  norm       = 1.61533
  Prefactor  = 63.8673
  Prefactor  = 0.000101278
  Prefactor  = 0.000100004
  Prefactor  = 0.00782963
  Prefactor  = 250.454
  Prefactor  = 4.16915
  Prefactor  = 2.7212
  Prefactor  = 4.06936
  Prefactor  = 0.000100004
  Prefactor  = 0.0105646
  Prefactor  = 162.777
  Prefactor  = 0.000193339
  norm       = 0.0001
  norm       = 0.000129826
  norm       = 0.0001
  norm       = 40.902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.37464
  Prefactor  = 151.944
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.18357
  Prefactor  = 0.0001
  Prefactor  = 0.000101845
  norm       = 0.000122015
  Prefactor  = 0.000105986
  Prefactor  = 0.0001
  Normalizat = 1.63439
  Prefactor  = 0.273049
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   539.6347     FROM HESSE     STATUS=FAILED        25 CALLS      599 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10053E-03    184.08        .91272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .13289E-03    132.52        .92577E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10005E-03    488.71        .10013E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    85.334        .94059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          575.65        573.86         .0000       -1.5454    
   6  Prefactor     63.867        .99608        .40127E-05   -1.4108    
   7  Prefactor     .10128E-03    .22234       -.93177E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .21184       -.28388E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .78296E-02    .23297E-01   -.72889E-04   -1.5690    
  10  Prefactor     250.45        1.0203        .16770E-04   -1.2529    
  11  Prefactor     4.1691        1.0074         .0000       -1.5300    
  12  Prefactor     2.7212        1.0180         .0000       -1.5378    
  13  Prefactor     4.0694        1.0077         .0000       -1.5304    
  14  Prefactor     .10000E-03    .24821       -.45390E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10565E-01    .48456E-01   -.32641E-04   -1.5728    
  16  Prefactor     162.78        1.0249        .11565E-04   -1.3149    
  17  Prefactor     .19334E-03    .27718       -.57954E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .23629        .13036E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .12983E-03    .21501       -.47311E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .20571       -.86050E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          40.902        .99961        .24364E-05   -1.4428    
  22  Prefactor     .10000E-03    .20454        .13415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .25493       -.64533E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.3746        1.0014       -.51623E-05   -1.5203    
  25  Prefactor     151.94        1.0168        .46100E-05   -1.3236    
  26  norm          .10000E-03    .28761        .39427E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .20571        .38496E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.1836        1.0290         .0000       -1.5412    
  29  Prefactor     .10000E-03    .22251       -.51575E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10184E-03    .20662        .12059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .12201E-03    .29280        .16764E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10599E-03    .25790        .35826E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    .20571       -.40687E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.6344        1.0355       -.12069E-03   -.74069    
  35  Prefactor     .27305        .57856        .30942E-03   -1.2388    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.90961e-10
Minuit parameter uncertainties:
  1  0.0198574
  2  0.13233
  3  0.00962126
  4  0.000101632
  5  1.05842
  6  0.99608
  7  0.00106606
  8  5.45792e-05
  9  0.0232975
  10  1.02029
  11  1.00738
  12  1.01796
  13  1.00775
  14  6.06164e-05
  15  0.0450367
  16  1.02486
  17  0.0101729
  18  8.72934e-06
  19  0.00506481
  20  4.3546e-06
  21  0.999608
  22  1.38085e-05
  23  1.86781e-05
  24  1.00141
  25  1.01679
  26  6.55179e-07
  27  3.19572e-06
  28  1.02897
  29  2.0166e-05
  30  0.00123471
  31  0.00507776
  32  0.00248499
  33  2.66991e-06
  34  1.04964
  35  0.591458
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 539.63474085

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.000e-04  8.729e-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:  2.730e-01  5.915e-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.634e+00  1.050e+00  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.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731551/likelihoodResults_558921601_559180801_4FGL_J2317.4-4533_daily_bin1233.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) = 539.634769333
delta logL = -2.84827079895e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 539.616680508
delta logL = 0.0180603423737

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12704       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .30828       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   539.6167     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      276 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12728        112.99        .95489E-02    .28551E-03
   2  alpha         5.0000        2.5107        .46267    ** at limit **
   3  Normalizat    1.5795        .34762        .59141E-01    .43843E-05
   4  Prefactor     .30798        .28973        .11864        .76158E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.12728
  alpha      = 5
  Normalizat = 1.57951
  Prefactor  = 0.307981
 **********
 **   18 **HESSE 
 **********

 FCN=   539.6167     FROM HESSE     STATUS=OK            29 CALLS      305 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12728        .95662        .40688E-03   -1.5637    
   2  alpha         5.0000        4.9999        .72104E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.5795        .97149        .26150E-03   -.75568    
   4  Prefactor     .30798        .87453        .52600E-03   -1.2180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12065e-12
Minuit parameter uncertainties:
  1  0.697622
  2  2.99799e-07
  3  0.983445
  4  0.916976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731551': 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) = 539.616680363
delta logL = 0.018060486782

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.273e-01  6.976e-01  1.000e-04  1.000e+04 ( 1.000e-13)
392        alpha:  5.000e+00  2.998e-07  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.080e-01  9.170e-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.580e+00  9.834e-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/731551/cmap_HighResolution_558921601_559180801_4FGL_J2317.4-4533_daily_bin1233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-04', job_status='DONE', photon_flux_upper_limit='3.59e-07', time_completed='2021-09-29 10:36:52.924019', job_id='731551', GAL2='0.31', fit_tolerance='1e-08', EG2='1.58', EG='1.63', time_epoch_completed='1632937012.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.27', dlogl='1.81e-02', ts2='0.04', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1233' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 10:36:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 731551: <4FGL_J2317.4-4533_daily_bin1233> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1233> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep 29 10:30:48 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 10:30:49 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:49 2021
Terminated at Wed Sep 29 10:36:53 2021
Results reported at Wed Sep 29 10:36:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1233 349.357 -45.5623 558921601 559180801 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 :                                   331.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   364 sec.
    Turnaround time :                            365 sec.

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

