aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 190 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1771
RA = 349.357, Dec = -45.5623
tmin = 698371201, tmax = 698630401
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='573478', job_status='RUN', time_executed='2023-02-21 02:33:37.551626', time_epoch_executed='1676975617.55' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573478

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573478/ft1_4FGL_J2317.4-4533_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573478/ft2_4FGL_J2317.4-4533_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573478/ft1_4FGL_J2317.4-4533_daily_bin1771.fits outfile=/scratch/kocevski/573478/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1771.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=698371201.0 tmax=698630401.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.08
user 2.90
sys 0.16

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

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

Number of photons that the gtmktime cut: 43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573478/ft1_filtered_4FGL_J2317.4-4533_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/573478/ft2_4FGL_J2317.4-4533_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/573478/ltcube_698371201_698630401_4FGL_J2317.4-4533_daily_bin1771.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/573478/ft2_4FGL_J2317.4-4533_daily_bin1771.fits
.....................!
real 12.48
user 12.10
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573478/ft1_filtered_4FGL_J2317.4-4533_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/573478/ft2_4FGL_J2317.4-4533_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/573478/ltcube_698371201_698630401_4FGL_J2317.4-4533_daily_bin1771.fits outfile=/scratch/kocevski/573478/expmap_698371201_698630401_4FGL_J2317.4-4533_daily_bin1771.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/573478/ltcube_698371201_698630401_4FGL_J2317.4-4533_daily_bin1771.fits
.....................!
real 189.71
user 184.40
sys 4.98

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/573478/ft1_filtered_4FGL_J2317.4-4533_daily_bin1771.fits scfile=/scratch/kocevski/573478/ft2_4FGL_J2317.4-4533_daily_bin1771.fits outfile=/scratch/kocevski/573478/cmap_698371201_698630401_4FGL_J2317.4-4533_daily_bin1771.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573478/ft1_filtered_4FGL_J2317.4-4533_daily_bin1771.fits scfile=/scratch/kocevski/573478/ft2_4FGL_J2317.4-4533_daily_bin1771.fits outfile=/scratch/kocevski/573478/cmap_HighResolution_698371201_698630401_4FGL_J2317.4-4533_daily_bin1771.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.58
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/573478/ft1_filtered_4FGL_J2317.4-4533_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/573478/ft2_4FGL_J2317.4-4533_daily_bin1771.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/573478/Model_4FGL_J2317.4-4533_daily_bin1771.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/573478/ft1_filtered_4FGL_J2317.4-4533_daily_bin1771.fits......................!
real 15.84
user 14.58
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/573478/ft1_filtered_4FGL_J2317.4-4533_daily_bin1771.fits', '/scratch/kocevski/573478/ft2_4FGL_J2317.4-4533_daily_bin1771.fits', expMap='/scratch/kocevski/573478/expmap_698371201_698630401_4FGL_J2317.4-4533_daily_bin1771.fits', expCube='/scratch/kocevski/573478/ltcube_698371201_698630401_4FGL_J2317.4-4533_daily_bin1771.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/573478/Model_4FGL_J2317.4-4533_daily_bin1771.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  0.000e+00  1.000e+06 ( 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 -5.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/573478/ft1_filtered_4FGL_J2317.4-4533_daily_bin1771.fits
Spacecraft file(s): /scratch/kocevski/573478/ft2_4FGL_J2317.4-4533_daily_bin1771.fits
Exposure map: /scratch/kocevski/573478/expmap_698371201_698630401_4FGL_J2317.4-4533_daily_bin1771.fits
Exposure cube: /scratch/kocevski/573478/ltcube_698371201_698630401_4FGL_J2317.4-4533_daily_bin1771.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/573478/Model_4FGL_J2317.4-4533_daily_bin1771.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) = 371.19894867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18263E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    .75417E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .26090E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    .47667E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .21205E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     7 'Prefactor '    .34275E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15543E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .56358E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .98033E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .59767E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    1063.0       1.0000          .0000       .10000E+07
    15 'norm      '    .56554E-05   1.0000          .0000       .10000E+07
    16 'norm      '    .53901E-06   1.0000          .0000       .10000E+07
    17 'norm      '    .50293E-07   1.0000          .0000       .10000E+07
    18 'norm      '    .14433E-08   1.0000          .0000       .10000E+07
    19 'Prefactor '    .19762E-07   1.0000          .0000       .10000E+07
    20 'Prefactor '    .57732E-08   1.0000          .0000       .10000E+07
    21 'norm      '    .10825E-07   1.0000          .0000       .10000E+07
    22 'Prefactor '    .58287E-08   1.0000          .0000       .10000E+07
    23 'norm      '    .17986E-07   1.0000          .0000       .10000E+07
    24 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    25 'Prefactor '    .72547E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    14.036       1.0000          .0000       .10000E+07
    27 'Prefactor '    .94369E-09   1.0000          .0000       .10000E+07
    28 'norm      '    56.676       1.0000          .0000       .10000E+07
    29 'Prefactor '    .31641E-08   1.0000          .0000       .10000E+07
    30 'Prefactor '    14.014       1.0000          .0000       .10000E+07
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .33837E-05   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=   369.4691     FROM MIGRAD    STATUS=CONVERGED    270 CALLS     5401 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85376E-07    26.024        .32292E-07** at limit **
   2  Prefactor     .27756E-09    24.616       -.55220E-06** at limit **
   3  Prefactor     .56410E-06    12.424        .51788E-07** at limit **
   4  Prefactor     .66613E-09    16.119        .39542E-07** at limit **
   5  norm           .0000        11.428        .36433E-07** at limit **
   6  Prefactor     .17764E-08    14.800        .78402E-07** at limit **
   7  Prefactor     .19935E-03    188.18       -.17942E-06** at limit **
   8  Prefactor      .0000        10.371        .28461E-07** at limit **
   9  Prefactor     .10000E+07    1.9179       -.35314E-08   -.23110E-02
  10  Prefactor     .78736E-01    1424.4        .11131E-06** at limit **
  11  Prefactor     .94369E-09    32.419       -.15944E-07** at limit **
  12  Prefactor     .10000E+07    211.06       -.29627E-07** at limit **
  13  Prefactor     .55882E-05    189.20       -.17171E-07** at limit **
  14  Prefactor     1063.0        1.0934       -.24464E-10   -.30583E-02
  15  norm          .19495E-02    220.38       -.15082E-06** at limit **
  16  norm          .44894E-02    305.43       -.12516E-06** at limit **
  17  norm           .0000        19.519        .57410E-07** at limit **
  18  norm          .97533E-07    15.009       -.62172E-07** at limit **
  19  Prefactor     .15421E-05    137.18       -.68434E-07** at limit **
  20  Prefactor     .25091E-07    71.246       -.11634E-06** at limit **
  21  norm           .0000        6.8045       -.27804E-08** at limit **
  22  Prefactor     .11646E-06    83.037        .16311E-06** at limit **
  23  norm          .76661E-07    15.090        .75336E-07** at limit **
  24  norm           .0000        4.3912       -.90891E-08** at limit **
  25  Prefactor     .55937E-02    437.73       -.24499E-06** at limit **
  26  Prefactor     14.038        14.508        .25243E-08    .92895E-04
  27  Prefactor     .24886E-06    16.337        .31190E-07** at limit **
  28  norm          56.668        1.4025        .45580E-09   -.34662E-03
  29  Prefactor      .0000        7.7626        .39707E-07** at limit **
  30  Prefactor     14.015        9.4721        .10986E-06    .47338E-02
  31  Normalizat    .10000E-01    .42930E-01    .13001E-05** at limit **
  32  Prefactor     .92502E-10    1.1004        .22154E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.53762e-08
  Prefactor  = 2.77556e-10
  Prefactor  = 5.64104e-07
  Prefactor  = 6.66134e-10
  norm       = 0
  Prefactor  = 1.77636e-09
  Prefactor  = 0.000199354
  Prefactor  = 0
  Prefactor  = 999999
  Prefactor  = 0.0787355
  Prefactor  = 9.4369e-10
  Prefactor  = 1e+06
  Prefactor  = 5.5882e-06
  Prefactor  = 1063.01
  norm       = 0.00194952
  norm       = 0.00448937
  norm       = 0
  norm       = 9.75331e-08
  Prefactor  = 1.5421e-06
  Prefactor  = 2.5091e-08
  norm       = 0
  Prefactor  = 1.16462e-07
  norm       = 7.66609e-08
  norm       = 0
  Prefactor  = 0.00559373
  Prefactor  = 14.0383
  Prefactor  = 2.48856e-07
  norm       = 56.6676
  Prefactor  = 0
  Prefactor  = 14.0149
  Normalizat = 0.01
  Prefactor  = 9.25016e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   369.4691     FROM HESSE     STATUS=OK           705 CALLS     6106 TOTAL
                     EDM=   .47E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85376E-07    26.423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .27756E-09    24.628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .56410E-06    28.084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .66613E-09    16.089        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        11.429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .17764E-08    14.805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .19935E-03    747.36        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        10.372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E+07    .19390E+06    .42118E-03    1.5689    
  10  Prefactor     .78736E-01    3414.2        .42118E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .94369E-09    32.421        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E+07    19839.        .13882E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55882E-05    189.36        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1063.0        68858.        .30688E-04   -1.5056    
  15  norm          .19495E-02    798.47        .42118E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .44894E-02    847.78        .42118E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        19.523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .97533E-07    15.031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .15421E-05    137.24        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .25091E-07    71.250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        6.8066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .11646E-06    83.043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .76661E-07    15.109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        4.3914        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .55937E-02    638.29        .42118E-03   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     14.038        15.828        .26709E-03   -1.5633    
  27  Prefactor     .24886E-06    28.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          56.668        103.61        .13284E-03   -1.5557    
  29  Prefactor      .0000        7.7644        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     14.015        9.5181        .26730E-03   -1.5633    
  31  Normalizat    .10000E-01    .42804E-01    .55703E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .92502E-10    .28980        .10711       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69883e-05
Minuit parameter uncertainties:
  1  0.00300414
  2  0.000158461
  3  0.00796053
  4  0.000209762
  5  3.03096e-05
  6  0.000323833
  7  0.772077
  8  2.24254e-05
  9  876.419
  10  32.8101
  11  0.000349084
  12  0.596317
  13  0.0650608
  14  17323.4
  15  2.49563
  16  3.90234
  17  1.27147e-05
  18  0.00242153
  19  0.0290955
  20  0.00267352
  21  2.84581e-06
  22  0.00622029
  23  0.00215282
  24  5.60967e-06
  25  3.7795
  26  15.8278
  27  0.00530882
  28  103.613
  29  2.92209e-05
  30  9.51808
  31  2.34085e-07
  32  1.04058e-05
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.950e-03  2.496e+00  0.000e+00  1.000e+06 ( 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 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
394           Eb:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  9.250e-11  1.041e-05  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.000e-02  2.341e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 349.357 -45.562
Photon Flux Upper Limit: 5.25e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573478/likelihoodResults_698371201_698630401_4FGL_J2317.4-4533_daily_bin1771.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) = 369.469718682
delta logL = -0.000599636706511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 369.469121178
delta logL = -2.13233795421e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32238E-03   1.0000          .0000       .10000E+07
     2 'alpha     '    2.8518       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61328E-05   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=   369.4691     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      245 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48295E-08    890.35       -.42777E-05** at limit **
   2  alpha         .97655        2.8680       -.35586E-03   -.25167E-11
   3  Normalizat    .10000E-01    .42916E-01    .22832E-06** at limit **
   4  Prefactor     .45736E-11    1.1018        .21870E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 4.82947e-09
  alpha      = 0.976555
  Normalizat = 0.01
  Prefactor  = 4.57356e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   369.4691     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      284 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48295E-08    1080.9        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .97655        3.3427        .41678       -.65528    
   3  Normalizat    .10000E-01    .10378E-03    .55703E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .45736E-11    .69497E-03    .10711       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.55805e-12
Minuit parameter uncertainties:
  1  0.00458338
  2  501487
  3  1.07309e-09
  4  1.12759e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573478': 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) = 369.469117825
delta logL = 1.22049777929e-06

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  4.829e-09  4.583e-03  0.000e+00  1.000e+06 ( 1.000e-13)
392        alpha:  9.766e-01  5.015e+05  0.000e+00  5.000e+00 ( 1.000e+00)
393         beta:  1.780e-01  0.000e+00 -5.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:  4.574e-12  1.128e-07  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.000e-02  1.073e-09  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/573478/cmap_HighResolution_698371201_698630401_4FGL_J2317.4-4533_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-03', job_status='DONE', photon_flux_upper_limit='5.25e-06', time_completed='2023-02-21 02:39:48.543561', job_id='573478', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1676975988.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='1.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1771' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 02:39:48 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 573478: <4FGL_J2317.4-4533_daily_bin1771> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1771> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 02:30:13 2023
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 02:30:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 02:30:14 2023
Terminated at Tue Feb 21 02:39:49 2023
Results reported at Tue Feb 21 02:39:49 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1771 349.357 -45.5623 698371201 698630401 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 :                                   373.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   574 sec.
    Turnaround time :                            576 sec.

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

