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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1765
RA = 225.257, Dec = 22.6364
tmin = 696816001, tmax = 697075201
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='638276', job_status='RUN', time_executed='2023-02-03 01:11:21.135421', time_epoch_executed='1675415481.14' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638276

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638276/ft1_4FGL_J1501.0+2238_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638276/ft2_4FGL_J1501.0+2238_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638276/ft1_4FGL_J1501.0+2238_daily_bin1765.fits outfile=/scratch/kocevski/638276/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1765.fits ra=225.257 dec=22.6364 rad=12.0 tmin=696816001.0 tmax=697075201.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.68
user 3.46
sys 0.20

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

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

Number of photons that the gtmktime cut: 666

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638276/ft1_filtered_4FGL_J1501.0+2238_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/638276/ft2_4FGL_J1501.0+2238_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/638276/ltcube_696816001_697075201_4FGL_J1501.0+2238_daily_bin1765.fits outfile=/scratch/kocevski/638276/expmap_696816001_697075201_4FGL_J1501.0+2238_daily_bin1765.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/638276/ltcube_696816001_697075201_4FGL_J1501.0+2238_daily_bin1765.fits
.....................!
real 192.07
user 186.59
sys 5.01

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/638276/ft1_filtered_4FGL_J1501.0+2238_daily_bin1765.fits scfile=/scratch/kocevski/638276/ft2_4FGL_J1501.0+2238_daily_bin1765.fits outfile=/scratch/kocevski/638276/cmap_696816001_697075201_4FGL_J1501.0+2238_daily_bin1765.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638276/ft1_filtered_4FGL_J1501.0+2238_daily_bin1765.fits scfile=/scratch/kocevski/638276/ft2_4FGL_J1501.0+2238_daily_bin1765.fits outfile=/scratch/kocevski/638276/cmap_HighResolution_696816001_697075201_4FGL_J1501.0+2238_daily_bin1765.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.56
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/638276/ft1_filtered_4FGL_J1501.0+2238_daily_bin1765.fits', '/scratch/kocevski/638276/ft2_4FGL_J1501.0+2238_daily_bin1765.fits', expMap='/scratch/kocevski/638276/expmap_696816001_697075201_4FGL_J1501.0+2238_daily_bin1765.fits', expCube='/scratch/kocevski/638276/ltcube_696816001_697075201_4FGL_J1501.0+2238_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/638276/Model_4FGL_J1501.0+2238_daily_bin1765.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/638276/ft1_filtered_4FGL_J1501.0+2238_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/638276/ft2_4FGL_J1501.0+2238_daily_bin1765.fits
Exposure map: /scratch/kocevski/638276/expmap_696816001_697075201_4FGL_J1501.0+2238_daily_bin1765.fits
Exposure cube: /scratch/kocevski/638276/ltcube_696816001_697075201_4FGL_J1501.0+2238_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/638276/Model_4FGL_J1501.0+2238_daily_bin1765.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) = 7351.8249684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19994E-02   1.0000          .0000       .10000E+07
     2 'norm      '    2.1137       1.0000          .0000       .10000E+07
     3 'norm      '    .31288E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .31416       1.0000          .0000       .10000E+07
     5 'Prefactor '    249.56       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10198E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.9681       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.7384       1.0000          .0000       .10000E+07
     9 'norm      '    .19515E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .82470E-01   1.0000          .0000       .10000E+07
    11 'norm      '    .74940E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    .23964E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .60547E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .52847E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    12.511       1.0000          .0000       .10000E+07
    16 'Normalizat'    .94105       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1283       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=   7351.822     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1226 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    6.5677        .36423E-07** at limit **
   2  norm          2.1133        2.1349       -.39121E-08   -.15835E-02
   3  norm          .16653E-09    3.8382       -.12072E-06** at limit **
   4  norm          .27497        10.757        .15900E-06   -.26004E-03
   5  Prefactor     249.02        52.071       -.79389E-07    .51753E-01
   6  Prefactor     .55511E-10    8.0836       -.23017E-07** at limit **
   7  Prefactor     1.9554        26.352       -.16996E-06   -.39116E-01
   8  Prefactor     5.7584        6.6424       -.13377E-07   -.21412E-02
   9  norm          .27756E-09    25.868       -.15495E-06** at limit **
  10  Prefactor     .89490E-06    36.974        .12213E-06** at limit **
  11  norm          .55511E-10    .45882       -.54119E-07** at limit **
  12  Prefactor     .24980E-08    4.6617        .45541E-07** at limit **
  13  Prefactor     .29999E-05    23.764       -.86354E-07** at limit **
  14  Prefactor      .0000        .53138        .22553E-07** at limit **
  15  Prefactor     12.464        19.385        .53706E-07   -.76547E-01
  16  Normalizat    .94150        .22524        .79641E-06   -.39441E-03
  17  Prefactor     1.1282        .16055       -.24155E-05   -.71099E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 2.11326
  norm       = 1.66533e-10
  norm       = 0.27497
  Prefactor  = 249.016
  Prefactor  = 5.55112e-11
  Prefactor  = 1.95537
  Prefactor  = 5.75839
  norm       = 2.77556e-10
  Prefactor  = 8.94895e-07
  norm       = 5.55112e-11
  Prefactor  = 2.498e-09
  Prefactor  = 2.99993e-06
  Prefactor  = 0
  Prefactor  = 12.4637
  Normalizat = 0.941498
  Prefactor  = 1.12821
 **********
 **   18 **HESSE 
 **********

 FCN=   7351.822     FROM HESSE     STATUS=OK           259 CALLS     1485 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    6.5457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1133        2.1357        .70926E-03   -1.5679    
   3  norm          .16653E-09    3.7753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .27497        2.1608        .67270E-02   -1.5697    
   5  Prefactor     249.02        52.613        .63310E-04   -1.5392    
   6  Prefactor     .55511E-10    8.0771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.9554        58.656        .73890E-03   -1.5680    
   8  Prefactor     5.7584        6.6447        .41906E-03   -1.5660    
   9  norm          .27756E-09    25.844        .17069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .89490E-06    59.344        .14426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55511E-10    .45067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .24980E-08    4.6917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .29999E-05    55.829        .15143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        .53058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.464        25.963        .28295E-03   -1.5637    
  16  Normalizat    .94150        .19210        .68929E-01   -.95017    
  17  Prefactor     1.1282        .13667        .36600E-01   -.88570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.59084e-07
Minuit parameter uncertainties:
  1  2.96496e-05
  2  2.1357
  3  5.24505e-05
  4  1.54162
  5  52.6128
  6  3.46076e-05
  7  21.4193
  8  6.64473
  9  0.000163044
  10  0.014575
  11  7.64503e-06
  12  0.000216883
  13  0.0258833
  14  3.18694e-06
  15  25.9628
  16  0.192244
  17  0.136711
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  5.758e+00  6.645e+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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.128e+00  1.367e-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:  9.415e-01  1.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.87e-08 +/- 2.16e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.48e-05

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

Saving results to:
/scratch/kocevski/638276/likelihoodResults_696816001_697075201_4FGL_J1501.0+2238_daily_bin1765.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) = 7351.81805662
delta logL = 0.00425753244508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7351.81730095
delta logL = 0.00501320021522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5190       1.0000          .0000       .10000E+07
     2 'Index     '    2.0755       1.0000          .0000       10.000    
     3 'Normalizat'    .94027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1282       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=   7351.817     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      215 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5141        242.55        .42744E-03    .18206E-02
   2  Index         2.0764        5.7103        .16681        .91374E-04
   3  Normalizat    .94004        .92645E-01    .68977E-01   -.21382E-04
   4  Prefactor     1.1284        .53210E-01    .36603E-01    .34895E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.51411
  Index      = 2.07644
  Normalizat = 0.940042
  Prefactor  = 1.12839
 **********
 **   18 **HESSE 
 **********

 FCN=   7351.817     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5141        7.1371        .17098E-04   -1.5661    
   2  Index         2.0764        .76725        .10347E-01   -.62453    
   3  Normalizat    .94004        .22147        .30515E-03   -.95067    
   4  Prefactor     1.1284        .15976        .20186E-03   -.88564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23892e-11
Minuit parameter uncertainties:
  1  7.13716
  2  0.771899
  3  0.221682
  4  0.159832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638276': 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) = 7351.81729897
delta logL = 0.00501517938392

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  5.514e+00  7.137e+00  0.000e+00  1.000e+06 ( 1.000e-13)
240        Index:  2.076e+00  7.719e-01  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:  1.128e+00  1.598e-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:  9.400e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.56
Ra Dec: 225.257 22.636
Photon Index (Free Index): 2.08 +/- 0.77
Photon Flux (Free Index): 2.07e-08 +/- 2.99e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.68e-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/638276/cmap_HighResolution_696816001_697075201_4FGL_J1501.0+2238_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-03', comment='SUCCESS', photon_flux='1.87e-08', energy_flux2='1.19e-05', photon_flux_error='2.16e-08', dlogl='5.02e-03', energy_flux='1.29e-05', photon_flux2='2.07e-08', job_status='DONE', time_completed='2023-02-03 01:20:03.612718', photon_index_error2='0.77', photon_index2='2.08', ts='1.55', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='7.86e-08', energy_flux_error2='1.68e-05', EG='0.94', time_epoch_completed='1675416003.61', return_code='0', job_id='638276', GAL2='1.13', EG2='0.94', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='2.99e-08', ts2='1.56', photon_index='2.00' WHERE bin_id='1765' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:20:03 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 638276: <4FGL_J1501.0+2238_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1765> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Feb  3 01:10:16 2023
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:10:44 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:10:44 2023
Terminated at Fri Feb  3 01:20:04 2023
Results reported at Fri Feb  3 01:20:04 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1765 225.257 22.6364 696816001 697075201 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 :                                   524.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   559 sec.
    Turnaround time :                            588 sec.

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

