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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1745
RA = 225.257, Dec = 22.6364
tmin = 691632001, tmax = 691891201
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='649130', job_status='RUN', time_executed='2022-12-05 00:51:15.173971', time_epoch_executed='1670230275.17' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649130

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649130/ft1_4FGL_J1501.0+2238_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649130/ft2_4FGL_J1501.0+2238_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649130/ft1_4FGL_J1501.0+2238_daily_bin1745.fits outfile=/scratch/kocevski/649130/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1745.fits ra=225.257 dec=22.6364 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.35
user 2.13
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/649130/ft2_4FGL_J1501.0+2238_daily_bin1745.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/649130/ft2_4FGL_J1501.0+2238_daily_bin1745.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/649130/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/649130/ft1_filtered_4FGL_J1501.0+2238_daily_bin1745.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 940

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649130/ft1_filtered_4FGL_J1501.0+2238_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/649130/ft2_4FGL_J1501.0+2238_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/649130/ltcube_691632001_691891201_4FGL_J1501.0+2238_daily_bin1745.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/649130/ft2_4FGL_J1501.0+2238_daily_bin1745.fits
.....................!
real 12.64
user 12.26
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649130/ft1_filtered_4FGL_J1501.0+2238_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/649130/ft2_4FGL_J1501.0+2238_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/649130/ltcube_691632001_691891201_4FGL_J1501.0+2238_daily_bin1745.fits outfile=/scratch/kocevski/649130/expmap_691632001_691891201_4FGL_J1501.0+2238_daily_bin1745.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/649130/ltcube_691632001_691891201_4FGL_J1501.0+2238_daily_bin1745.fits
.....................!
real 189.96
user 184.80
sys 4.83

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

Setting source of interest to:
4FGL J1501.0+2238 @ 225.257 22.6364

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/649130/ft1_filtered_4FGL_J1501.0+2238_daily_bin1745.fits scfile=/scratch/kocevski/649130/ft2_4FGL_J1501.0+2238_daily_bin1745.fits outfile=/scratch/kocevski/649130/cmap_691632001_691891201_4FGL_J1501.0+2238_daily_bin1745.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=225.257 yref=22.6364 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649130/ft1_filtered_4FGL_J1501.0+2238_daily_bin1745.fits scfile=/scratch/kocevski/649130/ft2_4FGL_J1501.0+2238_daily_bin1745.fits outfile=/scratch/kocevski/649130/cmap_HighResolution_691632001_691891201_4FGL_J1501.0+2238_daily_bin1745.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=225.257 yref=22.6364 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/649130/ft1_filtered_4FGL_J1501.0+2238_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/649130/ft2_4FGL_J1501.0+2238_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/649130/Model_4FGL_J1501.0+2238_daily_bin1745.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/649130/ft1_filtered_4FGL_J1501.0+2238_daily_bin1745.fits....................!
real 72.57
user 71.14
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/649130/ft1_filtered_4FGL_J1501.0+2238_daily_bin1745.fits', '/scratch/kocevski/649130/ft2_4FGL_J1501.0+2238_daily_bin1745.fits', expMap='/scratch/kocevski/649130/expmap_691632001_691891201_4FGL_J1501.0+2238_daily_bin1745.fits', expCube='/scratch/kocevski/649130/ltcube_691632001_691891201_4FGL_J1501.0+2238_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/649130/Model_4FGL_J1501.0+2238_daily_bin1745.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1501.0+2238'

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.674e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/649130/ft1_filtered_4FGL_J1501.0+2238_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/649130/ft2_4FGL_J1501.0+2238_daily_bin1745.fits
Exposure map: /scratch/kocevski/649130/expmap_691632001_691891201_4FGL_J1501.0+2238_daily_bin1745.fits
Exposure cube: /scratch/kocevski/649130/ltcube_691632001_691891201_4FGL_J1501.0+2238_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/649130/Model_4FGL_J1501.0+2238_daily_bin1745.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) = 10198.1465071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29912E-03   1.0000          .0000       .10000E+07
     2 'norm      '    4.1368       1.0000          .0000       .10000E+07
     3 'norm      '    .80269E-07   1.0000          .0000       .10000E+07
     4 'norm      '    .34184E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    59.486       1.0000          .0000       .10000E+07
     6 'Prefactor '    10.004       1.0000          .0000       .10000E+07
     7 'Prefactor '    .50273E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .18927E-04   1.0000          .0000       .10000E+07
     9 'norm      '    .43899       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11762E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .61062E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    .25911E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    10.116       1.0000          .0000       .10000E+07
    14 'Prefactor '    .12768E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.6459       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.3479       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88075       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10198.13     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1279 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.3767       -.16018E-07** at limit **
   2  norm          4.1344        2.2627       -.46520E-07    .36798E-04
   3  norm           .0000        1.2233        .27485E-06** at limit **
   4  norm          .66613E-09    11.269        .18277E-05** at limit **
   5  Prefactor     59.396        4.6768       -.92342E-07   -.29208E-01
   6  Prefactor     9.9604        7.4289        .18048E-07    .48944E-01
   7  Prefactor      .0000        12.214        .17214E-06** at limit **
   8  Prefactor      .0000        2.7331       -.66736E-07** at limit **
   9  norm          .10035E-05    252.41       -.62446E-05** at limit **
  10  Prefactor     .28977E-07    39.816        .11329E-05** at limit **
  11  norm           .0000        .50229        .11385E-06** at limit **
  12  Prefactor      .0000        1.9452        .11366E-06** at limit **
  13  Prefactor     10.074        14.272       -.80728E-06   -.11291E-01
  14  Prefactor      .0000        .54349       -.67692E-07** at limit **
  15  Prefactor     2.8984        37.116        .52605E-06    .69865E-02
  16  Normalizat    1.3481        .17579        .60725E-06    .97558E-05
  17  Prefactor     .88119        .12486        .46239E-05    .19639E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 4.13445
  norm       = 0
  norm       = 6.66134e-10
  Prefactor  = 59.3959
  Prefactor  = 9.96044
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.00348e-06
  Prefactor  = 2.89768e-08
  norm       = 0
  Prefactor  = 0
  Prefactor  = 10.0741
  Prefactor  = 0
  Prefactor  = 2.89837
  Normalizat = 1.34814
  Prefactor  = 0.881192
 **********
 **   18 **HESSE 
 **********

 FCN=   10198.13     FROM HESSE     STATUS=OK           261 CALLS     1540 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.3729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1344        2.2635        .49535E-03   -1.5667    
   3  norm           .0000        1.2156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .66613E-09    10.960        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     59.396        32.633        .12966E-03   -1.5554    
   6  Prefactor     9.9604        20.693        .31657E-03   -1.5645    
   7  Prefactor      .0000        12.261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.7326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10035E-05    248.73        .85101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .28977E-07    39.973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .25227        .19592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        1.9477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.074        14.408        .31479E-03   -1.5644    
  14  Prefactor      .0000        .54179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8984        41.984        .52882E-03   -1.5674    
  16  Normalizat    1.3481        .15422        .58113E-01   -.82141    
  17  Prefactor     .88119        .10678        .44759E-01   -.96801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32712e-07
Minuit parameter uncertainties:
  1  3.40318e-07
  2  2.26349
  3  3.85104e-07
  4  0.000168067
  5  32.6328
  6  20.6936
  7  1.07414e-05
  8  3.41986e-06
  9  0.0315982
  10  0.00215289
  11  8.46054e-08
  12  1.73534e-06
  13  14.4077
  14  6.3635e-08
  15  22.0623
  16  0.154276
  17  0.106807
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  0.000e+00  3.420e-06  0.000e+00  1.000e+06 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.812e-01  1.068e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.348e+00  1.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 225.257 22.636
Photon Flux Upper Limit: 3.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/649130/likelihoodResults_691632001_691891201_4FGL_J1501.0+2238_daily_bin1745.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) = 10198.131594
delta logL = -0.000440502401034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10198.1311583
delta logL = -4.8416077334e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10198.13     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      251 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49960E-08    .42318E-01    .42118E-03** at limit **
   2  Index         2.3261        6.1252        .44347        .38967E-08
   3  Normalizat    1.3481        .53983E-03    .58113E-01    .20246E-03
   4  Prefactor     .88119        .38255E-03    .44765E-01    .28195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.996e-09
  Index      = 2.32614
  Normalizat = 1.34814
  Prefactor  = 0.881192
 **********
 **   18 **HESSE 
 **********

 FCN=   10198.13     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      282 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49960E-08    .37001        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3261        8.7652        .50000       -.56424    
   3  Normalizat    1.3481        .15904E-02    .25699E-03   -.82141    
   4  Prefactor     .88119        .11273E-02    .21860E-03   -.96801    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.98958e-10
Minuit parameter uncertainties:
  1  8.58365e-05
  2  3918.82
  3  0.00159042
  4  0.00112726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649130': 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) = 10198.1311535
delta logL = -1.10776454676e-09

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  4.996e-09  8.584e-05  0.000e+00  1.000e+06 ( 1.000e-13)
240        Index:  2.326e+00  3.919e+03  0.000e+00  1.000e+01 (-1.000e+00)
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  8.812e-01  1.127e-03  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.348e+00  1.590e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 225.257 22.636

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/649130/cmap_HighResolution_691632001_691891201_4FGL_J1501.0+2238_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-03', job_status='DONE', photon_flux_upper_limit='3.44e-08', time_completed='2022-12-05 01:01:13.736852', job_id='649130', GAL2='0.88', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1670230873.74', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='-1.11e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1745' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 01:01:13 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 649130: <4FGL_J1501.0+2238_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1745> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Dec  5 00:50:26 2022
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:50:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:50:28 2022
Terminated at Mon Dec  5 01:01:14 2022
Results reported at Mon Dec  5 01:01:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1745 225.257 22.6364 691632001 691891201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1501.0+2238 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   601.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             277.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            648 sec.

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

