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


Performing analysis on: 4FGL_J1338.9+1153_daily_bin1717
RA = 204.732, Dec = 11.8956
tmin = 684374401, tmax = 684633601
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='136488', job_status='RUN', time_executed='2022-09-16 17:47:54.795567', time_epoch_executed='1663375674.8' WHERE source_name='4FGL J1338.9+1153' and cadence='daily' and bin_id='1717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/136488

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/136488/ft1_4FGL_J1338.9+1153_daily_bin1717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/136488/ft2_4FGL_J1338.9+1153_daily_bin1717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/136488/ft1_4FGL_J1338.9+1153_daily_bin1717.fits outfile=/scratch/kocevski/136488/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1717.fits ra=204.732 dec=11.8956 rad=12.0 tmin=684374401.0 tmax=684633601.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.03
user 4.77
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/136488/ft2_4FGL_J1338.9+1153_daily_bin1717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/136488/ft2_4FGL_J1338.9+1153_daily_bin1717.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/136488/ft1_filteredMKT_4FGL_J1338.9+1153_daily_bin1717.fits evtable="EVENTS" outfile="/scratch/kocevski/136488/ft1_filtered_4FGL_J1338.9+1153_daily_bin1717.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.53
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 525

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/136488/ft1_filtered_4FGL_J1338.9+1153_daily_bin1717.fits" evtable="EVENTS" scfile=/scratch/kocevski/136488/ft2_4FGL_J1338.9+1153_daily_bin1717.fits sctable="SC_DATA" outfile=/scratch/kocevski/136488/ltcube_684374401_684633601_4FGL_J1338.9+1153_daily_bin1717.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/136488/ft2_4FGL_J1338.9+1153_daily_bin1717.fits
.....................!
real 14.67
user 14.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/136488/ft1_filtered_4FGL_J1338.9+1153_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/136488/ft2_4FGL_J1338.9+1153_daily_bin1717.fits sctable="SC_DATA" expcube=/scratch/kocevski/136488/ltcube_684374401_684633601_4FGL_J1338.9+1153_daily_bin1717.fits outfile=/scratch/kocevski/136488/expmap_684374401_684633601_4FGL_J1338.9+1153_daily_bin1717.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/136488/ltcube_684374401_684633601_4FGL_J1338.9+1153_daily_bin1717.fits
.....................!
real 192.25
user 186.52
sys 5.37

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

Setting source of interest to:
4FGL J1338.9+1153 @ 204.732 11.8956

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/136488/ft1_filtered_4FGL_J1338.9+1153_daily_bin1717.fits scfile=/scratch/kocevski/136488/ft2_4FGL_J1338.9+1153_daily_bin1717.fits outfile=/scratch/kocevski/136488/cmap_684374401_684633601_4FGL_J1338.9+1153_daily_bin1717.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=204.732 yref=11.8956 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.60
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/136488/ft1_filtered_4FGL_J1338.9+1153_daily_bin1717.fits scfile=/scratch/kocevski/136488/ft2_4FGL_J1338.9+1153_daily_bin1717.fits outfile=/scratch/kocevski/136488/cmap_HighResolution_684374401_684633601_4FGL_J1338.9+1153_daily_bin1717.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=204.732 yref=11.8956 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/136488/ft1_filtered_4FGL_J1338.9+1153_daily_bin1717.fits evtable="EVENTS" scfile=/scratch/kocevski/136488/ft2_4FGL_J1338.9+1153_daily_bin1717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/136488/Model_4FGL_J1338.9+1153_daily_bin1717.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/136488/ft1_filtered_4FGL_J1338.9+1153_daily_bin1717.fits.....................!
real 45.01
user 43.72
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/136488/ft1_filtered_4FGL_J1338.9+1153_daily_bin1717.fits', '/scratch/kocevski/136488/ft2_4FGL_J1338.9+1153_daily_bin1717.fits', expMap='/scratch/kocevski/136488/expmap_684374401_684633601_4FGL_J1338.9+1153_daily_bin1717.fits', expCube='/scratch/kocevski/136488/ltcube_684374401_684633601_4FGL_J1338.9+1153_daily_bin1717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/136488/Model_4FGL_J1338.9+1153_daily_bin1717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.9+1153'

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  8.644e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
310        Index:  2.035e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/136488/ft1_filtered_4FGL_J1338.9+1153_daily_bin1717.fits
Spacecraft file(s): /scratch/kocevski/136488/ft2_4FGL_J1338.9+1153_daily_bin1717.fits
Exposure map: /scratch/kocevski/136488/expmap_684374401_684633601_4FGL_J1338.9+1153_daily_bin1717.fits
Exposure cube: /scratch/kocevski/136488/ltcube_684374401_684633601_4FGL_J1338.9+1153_daily_bin1717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/136488/Model_4FGL_J1338.9+1153_daily_bin1717.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5731.67834399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3701       1.0000          .0000       .10000E+07
     2 'Prefactor '    .91722       1.0000          .0000       .10000E+07
     3 'norm      '    7.4727       1.0000          .0000       .10000E+07
     4 'Prefactor '    10.563       1.0000          .0000       .10000E+07
     5 'Prefactor '    .20570E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .98699E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .31635E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.2721       1.0000          .0000       .10000E+07
     9 'Prefactor '    .27756E-09   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.6344       1.0000          .0000       .10000E+07
    11 'Prefactor '    19.417       1.0000          .0000       .10000E+07
    12 'Prefactor '    17.271       1.0000          .0000       .10000E+07
    13 'Prefactor '    .72513E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    185.03       1.0000          .0000       .10000E+07
    15 'Prefactor '    .73885E-07   1.0000          .0000       .10000E+07
    16 'Normalizat'    .77440       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1853       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5729.885     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      786 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3701        7.0745       -.27018E-06    .82858E-03
   2  Prefactor     .88231        .83398        .50894E-06   -.34205E-02
   3  norm          7.4704        7.6116       -.18882E-06   -.64648E-03
   4  Prefactor     10.574        1.5856       -.24843E-06    .12842E-01
   5  Prefactor     .39968E-08    9.4120        .13512E-06** at limit **
   6  norm          .11990E-07    7.3825       -.12722E-06** at limit **
   7  Prefactor     .11102E-09    22.569       -.88460E-06** at limit **
   8  Prefactor     4.2727        4.2853       -.13116E-06   -.33295E-03
   9  Prefactor     .38858E-09    10.644       -.53440E-06** at limit **
  10  Prefactor     3.6370        3.6049       -.11842E-06   -.58476E-04
  11  Prefactor     19.203        3.0931       -.47039E-06    .55959E-03
  12  Prefactor     17.384        12.925       -.21781E-05   -.10782E-01
  13  Prefactor      .0000        4.5141        .35535E-06** at limit **
  14  Prefactor     185.05        2.8397        .13634E-06   -.13412    
  15  Prefactor      .0000        2.6801        .14938E-06** at limit **
  16  Normalizat    .77443        .24018        .25996E-04   -.80334E-05
  17  Prefactor     1.1853        .19649       -.14358E-04   -.14978E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.3701
  Prefactor  = 0.882313
  norm       = 7.47042
  Prefactor  = 10.5742
  Prefactor  = 3.9968e-09
  norm       = 1.19904e-08
  Prefactor  = 1.11022e-10
  Prefactor  = 4.27267
  Prefactor  = 3.88578e-10
  Prefactor  = 3.63696
  Prefactor  = 19.2025
  Prefactor  = 17.3835
  Prefactor  = 0
  Prefactor  = 185.055
  Prefactor  = 0
  Normalizat = 0.774426
  Prefactor  = 1.18531
 **********
 **   18 **HESSE 
 **********

 FCN=   5729.885     FROM HESSE     STATUS=OK           257 CALLS     1043 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3701        7.0867        .48157E-03   -1.5666    
   2  Prefactor     .88231        18.573        .44577E-03   -1.5689    
   3  norm          7.4704        7.6370        .36664E-03   -1.5653    
   4  Prefactor     10.574        12.920        .30803E-03   -1.5643    
   5  Prefactor     .39968E-08    16.192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .11990E-07    16.978        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11102E-09    22.662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2727        4.2989        .48721E-03   -1.5667    
   9  Prefactor     .38858E-09    10.719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6370        3.6081        .52969E-03   -1.5670    
  11  Prefactor     19.203        15.384        .22702E-03   -1.5620    
  12  Prefactor     17.384        13.437        .24073E-03   -1.5625    
  13  Prefactor      .0000        4.5132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     185.05        45.325        .73522E-04   -1.5436    
  15  Prefactor      .0000        2.6746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .77443        .21067        .68867E-01   -1.0102    
  17  Prefactor     1.1853        .16900        .34989E-01   -.86785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09107e-07
Minuit parameter uncertainties:
  1  7.08669
  2  8.09631
  3  7.63696
  4  12.9199
  5  0.00050934
  6  0.000903289
  7  8.96367e-05
  8  4.29885
  9  0.000132348
  10  3.60813
  11  15.3843
  12  13.4371
  13  3.30754e-06
  14  45.3248
  15  9.18152e-07
  16  0.21089
  17  0.169077
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.110e-10  8.964e-05  0.000e+00  1.000e+06 ( 1.000e-14)
310        Index:  2.035e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.185e+00  1.691e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  7.744e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.732 11.896
Photon Flux Upper Limit: 5.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/136488/likelihoodResults_684374401_684633601_4FGL_J1338.9+1153_daily_bin1717.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) = 5729.9061535
delta logL = -0.0211008556698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5729.88506134
delta logL = -8.70242547535e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83159E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .90720       1.0000          .0000       10.000    
     3 'Normalizat'    .77384       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1854       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5729.885     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      193 TOTAL
                     EDM=   .72E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        22.845        .10279E-06** at limit **
   2  Index         1.9923        5.7024       -.54309E-05     .0000    
   3  Normalizat    .77443        .23261       -.50643E-05    .56472E-06
   4  Prefactor     1.1853        .19566        .30900E-05   -.14410E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.99225
  Normalizat = 0.774426
  Prefactor  = 1.18531
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5729.885     FROM HESSE     STATUS=FAILED        11 CALLS      204 TOTAL
                     EDM=   .72E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        23.453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .42514        1.8678       -.54309E-05   -.64544    
   3  Normalizat    .77443        1.1135       -.50643E-05   -1.0102    
   4  Prefactor     1.1853        1.1079        .30900E-05   -.86785    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.20183e-14
Minuit parameter uncertainties:
  1  1.6324e-05
  2  1.80124
  3  1.14903
  4  1.13082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/136488': 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): 101
logL (Free Index) = 5729.88505264
delta logL = 2.72848410532e-12

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  0.000e+00  1.632e-05  0.000e+00  1.000e+06 ( 1.000e-14)
310        Index:  1.992e+00  1.801e+00  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.185e+00  1.131e+00  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  7.744e-01  1.149e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.732 11.896

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/136488/cmap_HighResolution_684374401_684633601_4FGL_J1338.9+1153_daily_bin1717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-03', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2022-09-16 17:55:40.101319', job_id='136488', GAL2='1.19', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1663376140.1', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='2.73e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='1717' AND source_name='4FGL J1338.9+1153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:55:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 136488: <4FGL_J1338.9+1153_daily_bin1717> in cluster <slac> Done

Job <4FGL_J1338.9+1153_daily_bin1717> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 17:45:18 2022
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:47:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 17:47:06 2022
Terminated at Fri Sep 16 17:55:41 2022
Results reported at Fri Sep 16 17:55:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_daily_bin1717 204.732 11.8956 684374401 684633601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1338.9+1153 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   467.56 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             350.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   514 sec.
    Turnaround time :                            623 sec.

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

