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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin1764
RA = 225.895, Dec = 47.9959
tmin = 696556801, tmax = 696816001
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='452758', job_status='RUN', time_executed='2023-01-31 01:10:48.185458', time_epoch_executed='1675156248.19' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452758

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452758/ft1_4FGL_J1503.5+4759_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452758/ft2_4FGL_J1503.5+4759_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452758/ft1_4FGL_J1503.5+4759_daily_bin1764.fits outfile=/scratch/kocevski/452758/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin1764.fits ra=225.895 dec=47.9959 rad=12.0 tmin=696556801.0 tmax=696816001.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.75
user 3.49
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/452758/ft2_4FGL_J1503.5+4759_daily_bin1764.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/452758/ft2_4FGL_J1503.5+4759_daily_bin1764.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/452758/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin1764.fits evtable="EVENTS" outfile="/scratch/kocevski/452758/ft1_filtered_4FGL_J1503.5+4759_daily_bin1764.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.52
user 0.36
sys 0.15

Number of photons that the gtmktime cut: 530

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452758/ft1_filtered_4FGL_J1503.5+4759_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/452758/ft2_4FGL_J1503.5+4759_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/452758/ltcube_696556801_696816001_4FGL_J1503.5+4759_daily_bin1764.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/452758/ft2_4FGL_J1503.5+4759_daily_bin1764.fits
.....................!
real 17.26
user 16.77
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452758/ft1_filtered_4FGL_J1503.5+4759_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/452758/ft2_4FGL_J1503.5+4759_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/452758/ltcube_696556801_696816001_4FGL_J1503.5+4759_daily_bin1764.fits outfile=/scratch/kocevski/452758/expmap_696556801_696816001_4FGL_J1503.5+4759_daily_bin1764.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/452758/ltcube_696556801_696816001_4FGL_J1503.5+4759_daily_bin1764.fits
.....................!
real 193.61
user 187.91
sys 4.90

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

Setting source of interest to:
4FGL J1503.5+4759 @ 225.895 47.9959

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/452758/ft1_filtered_4FGL_J1503.5+4759_daily_bin1764.fits scfile=/scratch/kocevski/452758/ft2_4FGL_J1503.5+4759_daily_bin1764.fits outfile=/scratch/kocevski/452758/cmap_696556801_696816001_4FGL_J1503.5+4759_daily_bin1764.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.895 yref=47.9959 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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/452758/ft1_filtered_4FGL_J1503.5+4759_daily_bin1764.fits scfile=/scratch/kocevski/452758/ft2_4FGL_J1503.5+4759_daily_bin1764.fits outfile=/scratch/kocevski/452758/cmap_HighResolution_696556801_696816001_4FGL_J1503.5+4759_daily_bin1764.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.895 yref=47.9959 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/452758/ft1_filtered_4FGL_J1503.5+4759_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/452758/ft2_4FGL_J1503.5+4759_daily_bin1764.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/452758/Model_4FGL_J1503.5+4759_daily_bin1764.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/452758/ft1_filtered_4FGL_J1503.5+4759_daily_bin1764.fits.....................!
real 48.00
user 46.57
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/452758/ft1_filtered_4FGL_J1503.5+4759_daily_bin1764.fits', '/scratch/kocevski/452758/ft2_4FGL_J1503.5+4759_daily_bin1764.fits', expMap='/scratch/kocevski/452758/expmap_696556801_696816001_4FGL_J1503.5+4759_daily_bin1764.fits', expCube='/scratch/kocevski/452758/ltcube_696556801_696816001_4FGL_J1503.5+4759_daily_bin1764.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/452758/Model_4FGL_J1503.5+4759_daily_bin1764.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1503.5+4759'

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  2.127e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.221e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/452758/ft1_filtered_4FGL_J1503.5+4759_daily_bin1764.fits
Spacecraft file(s): /scratch/kocevski/452758/ft2_4FGL_J1503.5+4759_daily_bin1764.fits
Exposure map: /scratch/kocevski/452758/expmap_696556801_696816001_4FGL_J1503.5+4759_daily_bin1764.fits
Exposure cube: /scratch/kocevski/452758/ltcube_696556801_696816001_4FGL_J1503.5+4759_daily_bin1764.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/452758/Model_4FGL_J1503.5+4759_daily_bin1764.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) = 5795.54395258

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32307E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    23.660       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.0332       1.0000          .0000       .10000E+07
     4 'Prefactor '    .26645E-08   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.9064       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.7946       1.0000          .0000       .10000E+07
     7 'Prefactor '    .94369E-09   1.0000          .0000       .10000E+07
     8 'Prefactor '    16.280       1.0000          .0000       .10000E+07
     9 'Prefactor '    38.326       1.0000          .0000       .10000E+07
    10 'norm      '    .62228E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    11.813       1.0000          .0000       .10000E+07
    12 'norm      '    3.2990       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12934E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.6023       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11633       1.0000          .0000       .10000E+07
    16 'norm      '    .10131E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    14.577       1.0000          .0000       .10000E+07
    18 'norm      '    .42544E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    9.9893       1.0000          .0000       .10000E+07
    20 'Prefactor '    74.548       1.0000          .0000       .10000E+07
    21 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    22 'Prefactor '    1.1588       1.0000          .0000       .10000E+07
    23 'norm      '    .13878E-08   1.0000          .0000       .10000E+07
    24 'Prefactor '    .33307E-09   1.0000          .0000       .10000E+07
    25 'Prefactor '    .22204E-09   1.0000          .0000       .10000E+07
    26 'Prefactor '    .36041E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    .94213       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .77371       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5795.540     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     3014 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    30.499        .21148E-06** at limit **
   2  Prefactor     23.669        1.1109        .29890E-08   -.95154E-02
   3  Prefactor     2.0336        2.7711        .84191E-08    .19248E-03
   4  Prefactor     .51070E-08    1.8196       -.95353E-08** at limit **
   5  Prefactor     1.9069        1.8615       -.74846E-09   -.40459E-03
   6  Prefactor     2.7978        2.7361        .17402E-07   -.19613E-01
   7  Prefactor     .74940E-08    1.5131        .78446E-08** at limit **
   8  Prefactor     16.283        1.1183        .12648E-08    .10405E-01
   9  Prefactor     38.333        1.1375        .16395E-08   -.45275E-02
  10  norm          .99365E-08    7.8755        .84951E-07** at limit **
  11  Prefactor     11.814        2.4375        .71579E-08    .32919E-02
  12  norm          3.2993        1.6659        .37953E-08   -.44904E-03
  13  Prefactor     .12212E-08    5.3072        .28209E-07** at limit **
  14  Prefactor     1.6053        4.8291       -.11354E-06   -.36831E-03
  15  Prefactor     .12094        25.652       -.38243E-06** at limit **
  16  norm          .33307E-09    4.8281        .15063E-07** at limit **
  17  Prefactor     14.578        5.3225       -.39542E-07   -.28398E-02
  18  norm          .24036E-07    2.9951        .16079E-07** at limit **
  19  Prefactor     9.9962        5.7962        .15928E-07    .21351E-03
  20  Prefactor     74.502        2.5464        .68841E-09   -.12323    
  21  Prefactor     .21372E-07    3.5218       -.33653E-08** at limit **
  22  Prefactor     1.1547        8.4257       -.88919E-08   -.53400E-03
  23  norm          .19318E-07    5.8801        .71842E-07** at limit **
  24  Prefactor     .44964E-08    1.7226       -.10296E-07** at limit **
  25  Prefactor     .38858E-09    3.0033       -.25531E-08** at limit **
  26  Prefactor     .51625E-08    66.285        .37661E-06** at limit **
  27  Normalizat    .94203        .17972        .46172E-06   -.90516E-04
  28  Prefactor     .77361        .19343       -.10752E-05   -.84664E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 23.6694
  Prefactor  = 2.03358
  Prefactor  = 5.10703e-09
  Prefactor  = 1.90693
  Prefactor  = 2.79778
  Prefactor  = 7.49401e-09
  Prefactor  = 16.2832
  Prefactor  = 38.3326
  norm       = 9.9365e-09
  Prefactor  = 11.8139
  norm       = 3.29929
  Prefactor  = 1.22125e-09
  Prefactor  = 1.60534
  Prefactor  = 0.120941
  norm       = 3.33067e-10
  Prefactor  = 14.5781
  norm       = 2.40363e-08
  Prefactor  = 9.99616
  Prefactor  = 74.5024
  Prefactor  = 2.13718e-08
  Prefactor  = 1.15466
  norm       = 1.93179e-08
  Prefactor  = 4.4964e-09
  Prefactor  = 3.88578e-10
  Prefactor  = 5.16254e-09
  Normalizat = 0.942034
  Prefactor  = 0.773608
 **********
 **   18 **HESSE 
 **********

 FCN=   5795.540     FROM HESSE     STATUS=OK           587 CALLS     3601 TOTAL
                     EDM=   .42E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    30.762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.669        33.158        .20563E-03   -1.5611    
   3  Prefactor     2.0336        2.7901        .72514E-03   -1.5679    
   4  Prefactor     .51070E-08    6.2657        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9069        1.8749        .75276E-03   -1.5680    
   6  Prefactor     2.7978        47.351        .60834E-03   -1.5675    
   7  Prefactor     .74940E-08    5.6753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.283        48.279        .24796E-03   -1.5627    
   9  Prefactor     38.333        35.137        .16155E-03   -1.5584    
  10  norm          .99365E-08    8.7088        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.814        12.958        .29122E-03   -1.5639    
  12  norm          3.2993        1.6792        .55716E-03   -1.5672    
  13  Prefactor     .12212E-08    5.8197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6053        25.929        .83709E-03   -1.5683    
  15  Prefactor     .12094        2.3185        .69427E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .33307E-09    1.1747        .28077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.578        10.904        .26208E-03   -1.5632    
  18  norm          .24036E-07    8.5339        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.9962        10.321        .31680E-03   -1.5645    
  20  Prefactor     74.502        63.249        .11583E-03   -1.5535    
  21  Prefactor     .21372E-07    5.8422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1547        37.510        .10708E-02   -1.5686    
  23  norm          .19318E-07    7.3158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .44964E-08    6.2074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .38858E-09    6.5067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .51625E-08    66.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .94203        .15809        .45438E-01   -.94998    
  28  Prefactor     .77361        .16530        .43374E-01   -1.0071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22081e-06
Minuit parameter uncertainties:
  1  0.000100712
  2  33.1582
  3  2.79005
  4  0.000357464
  5  1.87495
  6  23.0201
  7  0.000412269
  8  48.2804
  9  35.1368
  10  0.000588489
  11  12.9583
  12  1.67922
  13  0.00016799
  14  12.9034
  15  1.05906
  16  4.08434e-05
  17  10.9036
  18  0.000905745
  19  10.321
  20  63.2493
  21  0.000706327
  22  13.1623
  23  0.000752112
  24  0.000334736
  25  9.99861e-05
  26  0.00117151
  27  0.158166
  28  0.165403
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.209e-01  1.059e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.221e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  7.736e-01  1.654e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.420e-01  1.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 225.895 47.996
Photon Flux Upper Limit: 5.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/452758/likelihoodResults_696556801_696816001_4FGL_J1503.5+4759_daily_bin1764.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) = 5795.53805825
delta logL = 0.00221855636482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5795.53718579
delta logL = 0.00309100841241

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5795.537     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      255 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19286        2.5533        .50829E-02** at limit **
   2  Index         2.5351        .44581        .50000       -.40591E-05
   3  Normalizat    .94137        .48421E-02    .45428E-01   -.20220E-04
   4  Prefactor     .77351        .53698E-02    .43371E-01   -.69912E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.192861
  Index      = 2.53507
  Normalizat = 0.941368
  Prefactor  = 0.77351
 **********
 **   18 **HESSE 
 **********

 FCN=   5795.537     FROM HESSE     STATUS=OK            35 CALLS      290 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19286        15.460        .18096E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5351        6.2604        .58133E-02   -.51552    
   3  Normalizat    .94137        .17408        .21087E-03   -.95021    
   4  Prefactor     .77351        .19286        .25426E-03   -1.0071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85329e-08
Minuit parameter uncertainties:
  1  3.45344
  2  4.91873
  3  0.174185
  4  0.193027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452758': 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) = 5795.53718565
delta logL = 0.00309115783784

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.929e-01  3.453e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  2.535e+00  4.919e+00  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  1.746e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  7.735e-01  1.930e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  9.414e-01  1.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 225.895 47.996

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/452758/cmap_HighResolution_696556801_696816001_4FGL_J1503.5+4759_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.15e-08', time_completed='2023-01-31 01:23:25.841735', job_id='452758', GAL2='0.77', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1675157005.84', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='3.09e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1764' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 01:23:25 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 452758: <4FGL_J1503.5+4759_daily_bin1764> in cluster <slac> Done

Job <4FGL_J1503.5+4759_daily_bin1764> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Jan 31 01:10:17 2023
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 01:10:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 01:10:28 2023
Terminated at Tue Jan 31 01:23:26 2023
Results reported at Tue Jan 31 01:23:26 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin1764 225.895 47.9959 696556801 696816001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1503.5+4759 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   759.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            789 sec.

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

