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


Performing analysis on: 4FGL_J1501.0+2238_weekly_bin751
RA = 225.257, Dec = 22.6364
tmin = 693187201, tmax = 693792001
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='677860', job_status='RUN', time_executed='2022-12-27 01:23:17.095394', time_epoch_executed='1672132997.1' WHERE source_name='4FGL J1501.0+2238' and cadence='weekly' and bin_id='751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/677860

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/677860/ft1_4FGL_J1501.0+2238_weekly_bin751.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/677860/ft2_4FGL_J1501.0+2238_weekly_bin751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/677860/ft1_4FGL_J1501.0+2238_weekly_bin751.fits outfile=/scratch/kocevski/677860/ft1_filteredMKT_4FGL_J1501.0+2238_weekly_bin751.fits ra=225.257 dec=22.6364 rad=12.0 tmin=693187201.0 tmax=693792001.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 7.85
user 7.53
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/677860/ft2_4FGL_J1501.0+2238_weekly_bin751.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/677860/ft1_filteredMKT_4FGL_J1501.0+2238_weekly_bin751.fits evtable="EVENTS" outfile="/scratch/kocevski/677860/ft1_filtered_4FGL_J1501.0+2238_weekly_bin751.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.58
user 0.41
sys 0.15

Number of photons that the gtmktime cut: 1447

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/677860/ft1_filtered_4FGL_J1501.0+2238_weekly_bin751.fits" evtable="EVENTS" scfile=/scratch/kocevski/677860/ft2_4FGL_J1501.0+2238_weekly_bin751.fits sctable="SC_DATA" outfile=/scratch/kocevski/677860/ltcube_693187201_693792001_4FGL_J1501.0+2238_weekly_bin751.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/677860/ft2_4FGL_J1501.0+2238_weekly_bin751.fits
.....................!
real 36.83
user 36.15
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/677860/ft1_filtered_4FGL_J1501.0+2238_weekly_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/677860/ft2_4FGL_J1501.0+2238_weekly_bin751.fits sctable="SC_DATA" expcube=/scratch/kocevski/677860/ltcube_693187201_693792001_4FGL_J1501.0+2238_weekly_bin751.fits outfile=/scratch/kocevski/677860/expmap_693187201_693792001_4FGL_J1501.0+2238_weekly_bin751.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/677860/ltcube_693187201_693792001_4FGL_J1501.0+2238_weekly_bin751.fits
.....................!
real 193.64
user 188.04
sys 4.63

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/677860/ft1_filtered_4FGL_J1501.0+2238_weekly_bin751.fits scfile=/scratch/kocevski/677860/ft2_4FGL_J1501.0+2238_weekly_bin751.fits outfile=/scratch/kocevski/677860/cmap_693187201_693792001_4FGL_J1501.0+2238_weekly_bin751.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.59
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/677860/ft1_filtered_4FGL_J1501.0+2238_weekly_bin751.fits scfile=/scratch/kocevski/677860/ft2_4FGL_J1501.0+2238_weekly_bin751.fits outfile=/scratch/kocevski/677860/cmap_HighResolution_693187201_693792001_4FGL_J1501.0+2238_weekly_bin751.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.60
user 0.41
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66297       1.0000          .0000       .10000E+07
     2 'norm      '    3.9700       1.0000          .0000       .10000E+07
     3 'norm      '    1.5498       1.0000          .0000       .10000E+07
     4 'norm      '    4.7519       1.0000          .0000       .10000E+07
     5 'Prefactor '    62.125       1.0000          .0000       .10000E+07
     6 'Prefactor '    7.2603       1.0000          .0000       .10000E+07
     7 'Prefactor '    .86857       1.0000          .0000       .10000E+07
     8 'Prefactor '    .33670E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .12129E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .65791E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .69755       1.0000          .0000       .10000E+07
    12 'Prefactor '    .38769E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .89505E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .68834E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    18.238       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.2193       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .86365       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=   15523.18     FROM MIGRAD    STATUS=CONVERGED    119 CALLS      981 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .66051        11.427       -.11997E-05   -.64613E-03
   2  norm          3.9699        1.5820       -.30889E-06    .31169E-02
   3  norm          1.5532        1.6935        .63733E-07    .39625E-03
   4  norm          4.7533        2.4243        .11662E-06    .29486E-03
   5  Prefactor     63.205        12.831        .15975E-06    .90542E-01
   6  Prefactor     7.3392        12.018        .21504E-05    .26743E-01
   7  Prefactor     .70202        46.173       -.29546E-05    .14640E-01
   8  Prefactor      .0000        4.9579        .42076E-06** at limit **
   9  norm          .55511E-10    7.3715        .39809E-06** at limit **
  10  Prefactor     .71998E-07    23.660        .33490E-06** at limit **
  11  norm          .69785        .47598        .42523E-07    .19534E-02
  12  Prefactor      .0000        1.7151        .12662E-06** at limit **
  13  Prefactor     .49960E-09    18.336       -.19305E-05** at limit **
  14  Prefactor      .0000        1.2168        .32614E-06** at limit **
  15  Prefactor     18.244        7.5119        .60059E-06   -.52147E-01
  16  Normalizat    1.2179        .14335       -.58727E-05    .55204E-04
  17  Prefactor     .86426        .10156        .52706E-05    .23992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.660508
  norm       = 3.96993
  norm       = 1.55325
  norm       = 4.75335
  Prefactor  = 63.205
  Prefactor  = 7.33918
  Prefactor  = 0.702018
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 7.1998e-08
  norm       = 0.697849
  Prefactor  = 0
  Prefactor  = 4.996e-10
  Prefactor  = 0
  Prefactor  = 18.2435
  Normalizat = 1.2179
  Prefactor  = 0.864259
 **********
 **   18 **HESSE 
 **********

 FCN=   15523.18     FROM HESSE     STATUS=OK           261 CALLS     1242 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .66051        11.266        .63766E-03   -1.5692    
   2  norm          3.9699        1.5837        .50598E-03   -1.5668    
   3  norm          1.5532        1.7127        .85531E-03   -1.5683    
   4  norm          4.7533        2.4269        .46133E-03   -1.5664    
   5  Prefactor     63.205        25.391        .12688E-03   -1.5549    
   6  Prefactor     7.3392        13.322        .37202E-03   -1.5654    
   7  Prefactor     .70202        64.352        .47958E-03   -1.5691    
   8  Prefactor      .0000        4.9369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    7.3800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .71998E-07    24.494        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .69785        .47873        .60907E-03   -1.5691    
  12  Prefactor      .0000        1.7155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .49960E-09    18.343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.1864        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.244        14.623        .23425E-03   -1.5623    
  16  Normalizat    1.2179        .12387        .58220E-01   -.86051    
  17  Prefactor     .86426        .85696E-01    .44540E-01   -.97401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9363e-07
Minuit parameter uncertainties:
  1  5.45584
  2  1.58368
  3  1.71274
  4  2.42692
  5  25.3913
  6  13.3225
  7  13.4428
  8  7.65163e-06
  9  4.5979e-05
  10  0.00265622
  11  0.478726
  12  9.75883e-06
  13  0.000187923
  14  2.59823e-07
  15  14.6234
  16  0.123898
  17  0.085709
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  0.000e+00  7.652e-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.643e-01  8.571e-02  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.218e+00  1.239e-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.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/677860/likelihoodResults_693187201_693792001_4FGL_J1501.0+2238_weekly_bin751.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) = 15522.1640676
delta logL = 1.0146386739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15522.0830463
delta logL = 1.09565997045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43547E-01   1.0000          .0000       .10000E+07
     2 'Index     '    4.4632       1.0000          .0000       10.000    
     3 'Normalizat'    1.1598       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88499       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=   15522.08     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      392 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43574E-01    .30834        .40628E-03** at limit **
   2  Index         4.4631        1.5485        .89778E-01    .50734E-03
   3  Normalizat    1.1600        .24190E-01    .59451E-01   -.34961E-04
   4  Prefactor     .88492        .17286E-01    .44813E-01   -.53290E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.043574
  Index      = 4.46314
  Normalizat = 1.15995
  Prefactor  = 0.884918
 **********
 **   18 **HESSE 
 **********

 FCN=   15522.08     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      427 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43574E-01    1.0654        .18365E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.4631        3.4188        .52385E-02   -.10758    
   3  Normalizat    1.1600        .98024E-01    .26293E-03   -.87850    
   4  Prefactor     .88492        .69116E-01    .21100E-03   -.96670    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.79036e-07
Minuit parameter uncertainties:
  1  0.430931
  2  3.76994
  3  0.0980399
  4  0.0691224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/677860': 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) = 15522.0830452
delta logL = 1.09566101085

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  4.357e-02  4.309e-01  0.000e+00  1.000e+06 ( 1.000e-13)
240        Index:  4.463e+00  3.770e+00  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.849e-01  6.912e-02  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.160e+00  9.804e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 225.257 22.636
Photon Index (Free Index): 4.46 +/- 3.77
Photon Flux (Free Index): 5.05e-08 +/- 3.39e-08
Energy Flux (Free Index): 7.08e-06 +/- 5.93e-06

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/677860/cmap_HighResolution_693187201_693792001_4FGL_J1501.0+2238_weekly_bin751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-03', comment='SUCCESS', energy_flux2='7.08e-06', dlogl='1.10e+00', photon_flux2='5.05e-08', job_status='DONE', time_completed='2022-12-27 01:36:44.357220', photon_index_error2='3.77', photon_index2='4.46', ts='0.00', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='3.53e-08', energy_flux_error2='5.93e-06', EG='1.22', time_epoch_completed='1672133804.36', return_code='0', job_id='677860', GAL2='0.88', EG2='1.16', return_code2='102', photon_flux_error2='3.39e-08', ts2='2.31', photon_index='2.00' WHERE bin_id='751' AND source_name='4FGL J1501.0+2238' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 27 01:36:44 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 677860: <4FGL_J1501.0+2238_weekly_bin751> in cluster <slac> Done

Job <4FGL_J1501.0+2238_weekly_bin751> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 27 01:20:22 2022
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 27 01:21:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 27 01:21:29 2022
Terminated at Tue Dec 27 01:36:44 2022
Results reported at Tue Dec 27 01:36:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_weekly_bin751 225.257 22.6364 693187201 693792001 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 :                                   804.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            982 sec.

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

