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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1681
RA = 349.438, Dec = 28.6589
tmin = 675043201, tmax = 675302401
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='756019', job_status='RUN', time_executed='2022-05-27 00:59:21.886520', time_epoch_executed='1653638361.89' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/756019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/756019/ft1_4FGL_J2317.7+2839_daily_bin1681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/756019/ft2_4FGL_J2317.7+2839_daily_bin1681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/756019/ft1_4FGL_J2317.7+2839_daily_bin1681.fits outfile=/scratch/kocevski/756019/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1681.fits ra=349.438 dec=28.6589 rad=12.0 tmin=675043201.0 tmax=675302401.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.57
user 3.31
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/756019/ft2_4FGL_J2317.7+2839_daily_bin1681.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/756019/ft2_4FGL_J2317.7+2839_daily_bin1681.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/756019/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1681.fits evtable="EVENTS" outfile="/scratch/kocevski/756019/ft1_filtered_4FGL_J2317.7+2839_daily_bin1681.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.52
user 0.34
sys 0.18

Number of photons that the gtmktime cut: 891

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/756019/ft1_filtered_4FGL_J2317.7+2839_daily_bin1681.fits" evtable="EVENTS" scfile=/scratch/kocevski/756019/ft2_4FGL_J2317.7+2839_daily_bin1681.fits sctable="SC_DATA" outfile=/scratch/kocevski/756019/ltcube_675043201_675302401_4FGL_J2317.7+2839_daily_bin1681.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/756019/ft2_4FGL_J2317.7+2839_daily_bin1681.fits
.....................!
real 15.01
user 14.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/756019/ft1_filtered_4FGL_J2317.7+2839_daily_bin1681.fits evtable="EVENTS" scfile=/scratch/kocevski/756019/ft2_4FGL_J2317.7+2839_daily_bin1681.fits sctable="SC_DATA" expcube=/scratch/kocevski/756019/ltcube_675043201_675302401_4FGL_J2317.7+2839_daily_bin1681.fits outfile=/scratch/kocevski/756019/expmap_675043201_675302401_4FGL_J2317.7+2839_daily_bin1681.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/756019/ltcube_675043201_675302401_4FGL_J2317.7+2839_daily_bin1681.fits
.....................!
real 192.64
user 186.93
sys 5.29

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 167 point sources and 0 extended sources

Setting source of interest to:
4FGL J2317.7+2839 @ 349.438 28.6589

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/756019/ft1_filtered_4FGL_J2317.7+2839_daily_bin1681.fits scfile=/scratch/kocevski/756019/ft2_4FGL_J2317.7+2839_daily_bin1681.fits outfile=/scratch/kocevski/756019/cmap_675043201_675302401_4FGL_J2317.7+2839_daily_bin1681.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.438 yref=28.6589 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/756019/ft1_filtered_4FGL_J2317.7+2839_daily_bin1681.fits scfile=/scratch/kocevski/756019/ft2_4FGL_J2317.7+2839_daily_bin1681.fits outfile=/scratch/kocevski/756019/cmap_HighResolution_675043201_675302401_4FGL_J2317.7+2839_daily_bin1681.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.438 yref=28.6589 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/756019/ft1_filtered_4FGL_J2317.7+2839_daily_bin1681.fits evtable="EVENTS" scfile=/scratch/kocevski/756019/ft2_4FGL_J2317.7+2839_daily_bin1681.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/756019/Model_4FGL_J2317.7+2839_daily_bin1681.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/756019/ft1_filtered_4FGL_J2317.7+2839_daily_bin1681.fits.....................!
real 106.00
user 104.57
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/756019/ft1_filtered_4FGL_J2317.7+2839_daily_bin1681.fits', '/scratch/kocevski/756019/ft2_4FGL_J2317.7+2839_daily_bin1681.fits', expMap='/scratch/kocevski/756019/expmap_675043201_675302401_4FGL_J2317.7+2839_daily_bin1681.fits', expCube='/scratch/kocevski/756019/ltcube_675043201_675302401_4FGL_J2317.7+2839_daily_bin1681.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/756019/Model_4FGL_J2317.7+2839_daily_bin1681.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2317.7+2839'

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  2.207e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.003e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/756019/ft1_filtered_4FGL_J2317.7+2839_daily_bin1681.fits
Spacecraft file(s): /scratch/kocevski/756019/ft2_4FGL_J2317.7+2839_daily_bin1681.fits
Exposure map: /scratch/kocevski/756019/expmap_675043201_675302401_4FGL_J2317.7+2839_daily_bin1681.fits
Exposure cube: /scratch/kocevski/756019/ltcube_675043201_675302401_4FGL_J2317.7+2839_daily_bin1681.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/756019/Model_4FGL_J2317.7+2839_daily_bin1681.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) = 9760.09318736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0495       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.2806       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.878       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5358       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.961       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .62844       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8672       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.613       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.845       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    57.970       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .65711       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0748       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9760.085     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     2054 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0496        1.1650        .58083E-02    .73474E-02
   2  Prefactor     .10001E-03    6.5337        .90712E-02** at limit **
   3  norm          5.2805        2.3072        .43727E-02   -.28736E-04
   4  Prefactor     30.877        13.557        .18026E-02   -.75189E-04
   5  Prefactor     5.5344        10.259        .42690E-02   -.38835E-03
   6  Prefactor     10.960        8.3083        .30254E-02   -.23195E-03
   7  Prefactor     .10000E-03    13.671        .90712E-02** at limit **
   8  norm          .62849        1.1836        .11784E-01    .20277E-02
   9  Prefactor     2.8733        37.132        .60016E-02   -.45680E-03
  10  Prefactor     .10001E-03    7.0796        .90712E-01** at limit **
  11  Prefactor     65.613        31.215        .12386E-02    .14399E-02
  12  Prefactor     .10000E-03    2.7179        .90712E-02** at limit **
  13  norm          .10000E-03    1.5832        .90712E-02** at limit **
  14  Prefactor     .10001E-03    6.4141        .90712E-02** at limit **
  15  norm          .10000E-03    1.1406        .37119E-01** at limit **
  16  Prefactor     32.840        17.718        .17480E-02    .10722E-02
  17  Prefactor     .10000E-03    7.0984        .90712E-02** at limit **
  18  Prefactor     57.970        38.784        .13173E-02    .39420E-03
  19  Normalizat    .65692        .20281        .92939E-01    .28405E-04
  20  Prefactor     1.0749        .10066        .38633E-01   -.71937E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.04957
  Prefactor  = 0.00010001
  norm       = 5.28053
  Prefactor  = 30.8772
  Prefactor  = 5.53445
  Prefactor  = 10.9599
  Prefactor  = 0.0001
  norm       = 0.628489
  Prefactor  = 2.87328
  Prefactor  = 0.000100005
  Prefactor  = 65.6128
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.0001
  Prefactor  = 32.8396
  Prefactor  = 0.000100001
  Prefactor  = 57.9702
  Normalizat = 0.656917
  Prefactor  = 1.07494
 **********
 **   18 **HESSE 
 **********

 FCN=   9760.085     FROM HESSE     STATUS=OK           295 CALLS     2349 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0496        1.1611        .31603E-03   -1.5359    
   2  Prefactor     .10001E-03    6.5411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.2805        2.3068        .93875E-04   -1.5248    
   4  Prefactor     30.877        13.540        .72105E-04   -1.4596    
   5  Prefactor     5.5344        10.258        .17076E-03   -1.5237    
   6  Prefactor     10.960        8.3025        .12101E-03   -1.5046    
   7  Prefactor     .10000E-03    13.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .62849        1.1431        .13802E-03   -1.5549    
   9  Prefactor     2.8733        36.734        .24006E-03   -1.5369    
  10  Prefactor     .10001E-03    52.328        .49874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     65.613        31.134        .49546E-04   -1.4086    
  12  Prefactor     .10000E-03    2.7466        .15893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.5962        .12136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    6.4373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8484        .20420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.840        17.694        .69918E-04   -1.4561    
  17  Prefactor     .10000E-03    7.1045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     57.970        38.835        .52691E-04   -1.4184    
  19  Normalizat    .65692        .22379        .41179E-03   -1.0562    
  20  Prefactor     1.0749        .11353        .17132E-03   -.90272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26366e-08
Minuit parameter uncertainties:
  1  1.16107
  2  0.000516133
  3  2.30688
  4  13.5413
  5  10.2618
  6  8.30342
  7  7.85822e-05
  8  1.14313
  9  20.5625
  10  0.0010521
  11  31.1421
  12  3.14182e-06
  13  7.29632e-06
  14  0.000402631
  15  9.37536e-06
  16  17.6972
  17  0.000156096
  18  38.8525
  19  0.224104
  20  0.113556
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  6.561e+01  3.114e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.003e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.075e+00  1.136e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  6.569e-01  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.96
Ra Dec: 349.438 28.659
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 8.40e-08 +/- 3.98e-08
Energy Flux (Fixed Index): 5.76e-05 +/- 2.74e-05

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) = 9759.65027394
delta logL = 0.435052049079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9759.64083003
delta logL = 0.444495962949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.949       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3726       1.0000          .0000       10.000    
     3 'Normalizat'    .61971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0870       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+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=   9759.641     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      302 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.950        49.051        .70889E-04    .18667E-03
   2  Index         2.3729        .59864        .31615E-02    .17305E-03
   3  Normalizat    .61896        .22177        .42329E-03    .82077E-04
   4  Prefactor     1.0873        .11472        .17044E-03    .27236E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.9502
  Index      = 2.37289
  Normalizat = 0.618965
  Prefactor  = 1.08732
 **********
 **   18 **HESSE 
 **********

 FCN=   9759.641     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.950        35.141        .28356E-05   -1.4577    
   2  Index         2.3729        .42888        .12646E-03   -.55321    
   3  Normalizat    .61896        .21845        .16932E-04   -1.0718    
   4  Prefactor     1.0873        .11343        .34088E-04   -.89873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08986e-11
Minuit parameter uncertainties:
  1  35.1635
  2  0.429609
  3  0.218759
  4  0.113458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/756019': 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) = 9759.64082362
delta logL = 0.444502367196

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  3.195e+01  3.516e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.373e+00  4.296e-01  0.000e+00  1.000e+01 (-1.000e+00)
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.087e+00  1.135e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  6.190e-01  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.94
Ra Dec: 349.438 28.659
Photon Index (Free Index): 2.37 +/- 0.43
Photon Flux (Free Index): 1.12e-07 +/- 5.43e-08
Energy Flux (Free Index): 3.81e-05 +/- 2.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/756019/cmap_HighResolution_675043201_675302401_4FGL_J2317.7+2839_daily_bin1681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.40e-08', energy_flux2='3.81e-05', photon_flux_error='3.98e-08', dlogl='4.45e-01', energy_flux='5.76e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2022-05-27 01:11:08.988968', photon_index_error2='0.43', photon_index2='2.37', ts='7.96', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='2.21e-05', EG='0.66', time_epoch_completed='1653639068.99', return_code='0', job_id='756019', GAL2='1.09', EG2='0.62', return_code2='0', energy_flux_error='2.74e-05', photon_flux_error2='5.43e-08', ts2='8.94', photon_index='2.00' WHERE bin_id='1681' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May 27 01:11:09 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 756019: <4FGL_J2317.7+2839_daily_bin1681> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1681> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri May 27 00:55:35 2022
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May 27 00:57:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May 27 00:57:59 2022
Terminated at Fri May 27 01:11:09 2022
Results reported at Fri May 27 01:11:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1681 349.438 28.6589 675043201 675302401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2317.7+2839 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   709.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            934 sec.

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

