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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1665
RA = 349.438, Dec = 28.6589
tmin = 670896001, tmax = 671155201
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='358137', job_status='RUN', time_executed='2022-04-09 00:43:03.881854', time_epoch_executed='1649490183.88' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/358137

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/358137/ft1_4FGL_J2317.7+2839_daily_bin1665.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/358137/ft2_4FGL_J2317.7+2839_daily_bin1665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/358137/ft1_4FGL_J2317.7+2839_daily_bin1665.fits outfile=/scratch/kocevski/358137/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1665.fits ra=349.438 dec=28.6589 rad=12.0 tmin=670896001.0 tmax=671155201.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 5.44
user 5.19
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/358137/ft2_4FGL_J2317.7+2839_daily_bin1665.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/358137/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1665.fits evtable="EVENTS" outfile="/scratch/kocevski/358137/ft1_filtered_4FGL_J2317.7+2839_daily_bin1665.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.34
sys 0.13

Number of photons that the gtmktime cut: 732

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/358137/ft1_filtered_4FGL_J2317.7+2839_daily_bin1665.fits" evtable="EVENTS" scfile=/scratch/kocevski/358137/ft2_4FGL_J2317.7+2839_daily_bin1665.fits sctable="SC_DATA" outfile=/scratch/kocevski/358137/ltcube_670896001_671155201_4FGL_J2317.7+2839_daily_bin1665.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/358137/ft2_4FGL_J2317.7+2839_daily_bin1665.fits
.....................!
real 11.86
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/358137/ft1_filtered_4FGL_J2317.7+2839_daily_bin1665.fits evtable="EVENTS" scfile=/scratch/kocevski/358137/ft2_4FGL_J2317.7+2839_daily_bin1665.fits sctable="SC_DATA" expcube=/scratch/kocevski/358137/ltcube_670896001_671155201_4FGL_J2317.7+2839_daily_bin1665.fits outfile=/scratch/kocevski/358137/expmap_670896001_671155201_4FGL_J2317.7+2839_daily_bin1665.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/358137/ltcube_670896001_671155201_4FGL_J2317.7+2839_daily_bin1665.fits
.....................!
real 190.86
user 185.95
sys 4.42

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/358137/ft1_filtered_4FGL_J2317.7+2839_daily_bin1665.fits scfile=/scratch/kocevski/358137/ft2_4FGL_J2317.7+2839_daily_bin1665.fits outfile=/scratch/kocevski/358137/cmap_670896001_671155201_4FGL_J2317.7+2839_daily_bin1665.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/358137/ft1_filtered_4FGL_J2317.7+2839_daily_bin1665.fits scfile=/scratch/kocevski/358137/ft2_4FGL_J2317.7+2839_daily_bin1665.fits outfile=/scratch/kocevski/358137/cmap_HighResolution_670896001_671155201_4FGL_J2317.7+2839_daily_bin1665.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/358137/ft1_filtered_4FGL_J2317.7+2839_daily_bin1665.fits evtable="EVENTS" scfile=/scratch/kocevski/358137/ft2_4FGL_J2317.7+2839_daily_bin1665.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/358137/Model_4FGL_J2317.7+2839_daily_bin1665.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/358137/ft1_filtered_4FGL_J2317.7+2839_daily_bin1665.fits.....................!
real 92.06
user 90.81
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/358137/ft1_filtered_4FGL_J2317.7+2839_daily_bin1665.fits', '/scratch/kocevski/358137/ft2_4FGL_J2317.7+2839_daily_bin1665.fits', expMap='/scratch/kocevski/358137/expmap_670896001_671155201_4FGL_J2317.7+2839_daily_bin1665.fits', expCube='/scratch/kocevski/358137/ltcube_670896001_671155201_4FGL_J2317.7+2839_daily_bin1665.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/358137/Model_4FGL_J2317.7+2839_daily_bin1665.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/358137/ft1_filtered_4FGL_J2317.7+2839_daily_bin1665.fits
Spacecraft file(s): /scratch/kocevski/358137/ft2_4FGL_J2317.7+2839_daily_bin1665.fits
Exposure map: /scratch/kocevski/358137/expmap_670896001_671155201_4FGL_J2317.7+2839_daily_bin1665.fits
Exposure cube: /scratch/kocevski/358137/ltcube_670896001_671155201_4FGL_J2317.7+2839_daily_bin1665.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/358137/Model_4FGL_J2317.7+2839_daily_bin1665.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) = 8145.96442401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6706       1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.516       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0387       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9907       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1277       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.890       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.8244       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.253       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .45731       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .91828       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1649       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0033       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.

 FCN=   8145.960     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2047 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6704        1.9938        .42807E-07   -.42344E-04
   2  Prefactor     34.514        27.087        .28187E-06    .40687E-04
   3  norm          2.0386        1.4167        .87859E-07    .11533E-03
   4  Prefactor     4.9906        7.1043       -.14449E-05    .22857E-03
   5  Prefactor     .10000E-03    11.186        .63385E-06** at limit **
   6  Prefactor     .10000E-03    4.6073        .13820E-06** at limit **
   7  Prefactor     .10000E-03    8.8938       -.23020E-06** at limit **
   8  norm          2.1284        1.8633       -.20850E-06   -.52649E-03
   9  Prefactor     20.891        18.561       -.18074E-06   -.59143E-04
  10  Prefactor     5.8231        10.427        .61314E-07    .80210E-05
  11  Prefactor     17.224        32.317        .30018E-05    .44560E-03
  12  Prefactor     .10000E-03    7.2239        .20334E-07** at limit **
  13  norm          .46462        7.5062       -.47852E-05   -.35577E-03
  14  Prefactor     .93325        137.60        .36144E-04   -.10430E-03
  15  norm          .10000E-03    1.5255        .58486E-07** at limit **
  16  Prefactor     .10000E-03    7.2391        .19878E-06** at limit **
  17  Prefactor     .10000E-03    13.083       -.30430E-06** at limit **
  18  Prefactor     .10000E-03    23.584       -.90368E-07** at limit **
  19  Normalizat    1.1650        .24078       -.35962E-05   -.28875E-03
  20  Prefactor     1.0034        .11509        .63942E-06   -.24227E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.67038
  Prefactor  = 34.5142
  norm       = 2.03865
  Prefactor  = 4.99056
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.12837
  Prefactor  = 20.8914
  Prefactor  = 5.82311
  Prefactor  = 17.2243
  Prefactor  = 0.0001
  norm       = 0.464619
  Prefactor  = 0.933247
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16497
  Prefactor  = 1.00339
 **********
 **   18 **HESSE 
 **********

 FCN=   8145.960     FROM HESSE     STATUS=OK           293 CALLS     2340 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6704        1.9984        .59200E-04   -1.5154    
   2  Prefactor     34.514        27.153        .68210E-04   -1.4532    
   3  norm          2.0386        1.4243        .87219E-04   -1.5422    
   4  Prefactor     4.9906        7.0972        .90006E-03   -1.5261    
   5  Prefactor     .10000E-03    11.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.8973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1284        1.8419        .10746E-03   -1.5416    
   9  Prefactor     20.891        18.581        .87634E-04   -1.4794    
  10  Prefactor     5.8231        10.426        .16641E-03   -1.5225    
  11  Prefactor     17.224        33.395        .96423E-04   -1.4878    
  12  Prefactor     .10000E-03    7.3819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .46462        19.725        .35622E-02   -1.5572    
  14  Prefactor     .93325        164.90        .60384E-02   -1.5515    
  15  norm          .10000E-03    1.5762        .21764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.2503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1650        .27935        .36537E-03   -.87692    
  20  Prefactor     1.0034        .13524        .19353E-03   -.92617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10688e-09
Minuit parameter uncertainties:
  1  1.99844
  2  27.1627
  3  1.42431
  4  7.09843
  5  0.000150414
  6  2.58408e-05
  7  3.56128e-05
  8  1.84194
  9  18.5858
  10  10.4289
  11  33.4308
  12  4.3385e-05
  13  6.05604
  14  24.8789
  15  1.16549e-05
  16  4.06651e-05
  17  4.59357e-05
  18  6.08699e-06
  19  0.279711
  20  0.135284
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  1.722e+01  3.343e+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.003e+00  1.353e-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:  1.165e+00  2.797e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 349.438 28.659
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/358137/likelihoodResults_670896001_671155201_4FGL_J2317.7+2839_daily_bin1665.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) = 8145.86990242
delta logL = 0.0904965801747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8145.86371013
delta logL = 0.0966888713356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8605       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5124       1.0000          .0000       10.000    
     3 'Normalizat'    1.1441       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0086       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=   8145.864     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      322 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8532        780.05        .14302E-03   -.41248E-03
   2  Index         2.5124        5.5775        .87595E-02   -.14570E-03
   3  Normalizat    1.1430        .34171        .36843E-03    .50082E-03
   4  Prefactor     1.0092        .15468        .19301E-03    .75201E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.85322
  Index      = 2.51245
  Normalizat = 1.14297
  Prefactor  = 1.00923
 **********
 **   18 **HESSE 
 **********

 FCN=   8145.864     FROM HESSE     STATUS=OK            25 CALLS      347 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8532        27.405        .57207E-05   -1.5147    
   2  Index         2.5124        1.3322        .35038E-03   -.52073    
   3  Normalizat    1.1430        .27307        .73685E-04   -.88384    
   4  Prefactor     1.0092        .13394        .38602E-04   -.92422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61104e-09
Minuit parameter uncertainties:
  1  27.4485
  2  1.35413
  3  0.27341
  4  0.13398
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/358137': 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) = 8145.8636992
delta logL = 0.0966998066951

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  7.853e+00  2.745e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.512e+00  1.354e+00  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.009e+00  1.340e-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:  1.143e+00  2.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
Ra Dec: 349.438 28.659

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/358137/cmap_HighResolution_670896001_671155201_4FGL_J2317.7+2839_daily_bin1665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.77e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2022-04-09 00:54:46.534315', job_id='358137', GAL2='1.01', fit_tolerance='1e-08', EG2='1.14', EG='1.16', time_epoch_completed='1649490886.53', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='9.67e-02', ts2='0.55', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1665' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr  9 00:54:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 358137: <4FGL_J2317.7+2839_daily_bin1665> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1665> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Apr  9 00:40:13 2022
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr  9 00:40:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr  9 00:40:15 2022
Terminated at Sat Apr  9 00:54:47 2022
Results reported at Sat Apr  9 00:54:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1665 349.438 28.6589 670896001 671155201 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 :                                   696.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            874 sec.

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

