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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin1752
RA = 225.895, Dec = 47.9959
tmin = 693446401, tmax = 693705601
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='266411', job_status='RUN', time_executed='2022-12-26 01:07:48.300061', time_epoch_executed='1672045668.3' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266411

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266411/ft1_4FGL_J1503.5+4759_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266411/ft2_4FGL_J1503.5+4759_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266411/ft1_4FGL_J1503.5+4759_daily_bin1752.fits outfile=/scratch/kocevski/266411/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin1752.fits ra=225.895 dec=47.9959 rad=12.0 tmin=693446401.0 tmax=693705601.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.52
user 3.30
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/266411/ft2_4FGL_J1503.5+4759_daily_bin1752.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/266411/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin1752.fits evtable="EVENTS" outfile="/scratch/kocevski/266411/ft1_filtered_4FGL_J1503.5+4759_daily_bin1752.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.33
sys 0.16

Number of photons that the gtmktime cut: 465

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266411/ft1_filtered_4FGL_J1503.5+4759_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/266411/ft2_4FGL_J1503.5+4759_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/266411/ltcube_693446401_693705601_4FGL_J1503.5+4759_daily_bin1752.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/266411/ft2_4FGL_J1503.5+4759_daily_bin1752.fits
.....................!
real 15.65
user 15.22
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266411/ft1_filtered_4FGL_J1503.5+4759_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/266411/ft2_4FGL_J1503.5+4759_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/266411/ltcube_693446401_693705601_4FGL_J1503.5+4759_daily_bin1752.fits outfile=/scratch/kocevski/266411/expmap_693446401_693705601_4FGL_J1503.5+4759_daily_bin1752.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/266411/ltcube_693446401_693705601_4FGL_J1503.5+4759_daily_bin1752.fits
.....................!
real 192.18
user 186.04
sys 5.18

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/266411/ft1_filtered_4FGL_J1503.5+4759_daily_bin1752.fits scfile=/scratch/kocevski/266411/ft2_4FGL_J1503.5+4759_daily_bin1752.fits outfile=/scratch/kocevski/266411/cmap_693446401_693705601_4FGL_J1503.5+4759_daily_bin1752.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266411/ft1_filtered_4FGL_J1503.5+4759_daily_bin1752.fits scfile=/scratch/kocevski/266411/ft2_4FGL_J1503.5+4759_daily_bin1752.fits outfile=/scratch/kocevski/266411/cmap_HighResolution_693446401_693705601_4FGL_J1503.5+4759_daily_bin1752.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.55
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/266411/ft1_filtered_4FGL_J1503.5+4759_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/266411/ft2_4FGL_J1503.5+4759_daily_bin1752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/266411/Model_4FGL_J1503.5+4759_daily_bin1752.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/266411/ft1_filtered_4FGL_J1503.5+4759_daily_bin1752.fits.....................!
real 44.12
user 42.63
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/266411/ft1_filtered_4FGL_J1503.5+4759_daily_bin1752.fits', '/scratch/kocevski/266411/ft2_4FGL_J1503.5+4759_daily_bin1752.fits', expMap='/scratch/kocevski/266411/expmap_693446401_693705601_4FGL_J1503.5+4759_daily_bin1752.fits', expCube='/scratch/kocevski/266411/ltcube_693446401_693705601_4FGL_J1503.5+4759_daily_bin1752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/266411/Model_4FGL_J1503.5+4759_daily_bin1752.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/266411/ft1_filtered_4FGL_J1503.5+4759_daily_bin1752.fits
Spacecraft file(s): /scratch/kocevski/266411/ft2_4FGL_J1503.5+4759_daily_bin1752.fits
Exposure map: /scratch/kocevski/266411/expmap_693446401_693705601_4FGL_J1503.5+4759_daily_bin1752.fits
Exposure cube: /scratch/kocevski/266411/ltcube_693446401_693705601_4FGL_J1503.5+4759_daily_bin1752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/266411/Model_4FGL_J1503.5+4759_daily_bin1752.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) = 5054.19563817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50120E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    55.705       1.0000          .0000       .10000E+07
     3 'Prefactor '    .61583E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.1668       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.5721       1.0000          .0000       .10000E+07
     6 'Prefactor '    38.953       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.2714       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12067E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    20.392       1.0000          .0000       .10000E+07
    10 'norm      '    2.3659       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.091       1.0000          .0000       .10000E+07
    12 'norm      '    2.8521       1.0000          .0000       .10000E+07
    13 'Prefactor '    .93285E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .86511E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.9932       1.0000          .0000       .10000E+07
    16 'norm      '    1.8225       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.4271       1.0000          .0000       .10000E+07
    18 'norm      '    1.4355       1.0000          .0000       .10000E+07
    19 'Prefactor '    .85006E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    10.294       1.0000          .0000       .10000E+07
    21 'Prefactor '    .58360E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    14.820       1.0000          .0000       .10000E+07
    23 'norm      '    .29387E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .48276E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    4.1229       1.0000          .0000       .10000E+07
    26 'Prefactor '    46.141       1.0000          .0000       .10000E+07
    27 'Normalizat'    .66727       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1892       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=   5054.084     FROM MIGRAD    STATUS=CONVERGED    193 CALLS     2505 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22487E-04    26.161        .20918E-05** at limit **
   2  Prefactor     58.433        41.693       -.31705E-05   -.27773E-01
   3  Prefactor     .16653E-09    2.4465        .28051E-05** at limit **
   4  Prefactor     3.1437        3.6440        .13748E-07   -.33930E-02
   5  Prefactor     3.5324        2.8945       -.68614E-06    .35710E-02
   6  Prefactor     40.108        9.5243       -.13457E-05    .90430E-01
   7  Prefactor     5.9375        22.850        .10597E-04    .34184E-01
   8  Prefactor     .11867E-05    26.607        .96331E-07** at limit **
   9  Prefactor     21.376        5.0353        .30654E-06    .35696E-01
  10  norm          2.3750        8.7046       -.30439E-06   -.24329E-03
  11  Prefactor     10.062        10.721        .14780E-05    .39642E-02
  12  norm          2.8546        1.7299        .51322E-07   -.18681E-02
  13  Prefactor     .55511E-10    3.8218        .10714E-05** at limit **
  14  Prefactor     .13878E-08    7.0826       -.12248E-05** at limit **
  15  Prefactor     6.9610        7.4382       -.11904E-05    .21989E-02
  16  norm          1.8180        1.7635       -.61677E-06   -.64361E-03
  17  Prefactor     5.3799        7.0226        .21076E-06    .25496E-03
  18  norm          1.4326        2.4559       -.18890E-05    .21719E-02
  19  Prefactor     .55511E-10    3.6638       -.22928E-05** at limit **
  20  Prefactor     11.770        27.034        .19159E-05    .10606    
  21  Prefactor     .23455E-04    25.520        .66380E-06** at limit **
  22  Prefactor     15.004        13.999        .34982E-06   -.29511E-02
  23  norm          .55511E-09    8.3460        .10337E-05** at limit **
  24  Prefactor     .54401E-08    7.1525        .31307E-05** at limit **
  25  Prefactor     4.1600        7.9359       -.46824E-05    .73302E-03
  26  Prefactor     43.560        64.475       -.70552E-05    .88927E-01
  27  Normalizat    .66375        .22076       -.36984E-04    .41661E-04
  28  Prefactor     1.1908        .24044        .53345E-04    .36489E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.24872e-05
  Prefactor  = 58.4333
  Prefactor  = 1.66533e-10
  Prefactor  = 3.14368
  Prefactor  = 3.53237
  Prefactor  = 40.1085
  Prefactor  = 5.93746
  Prefactor  = 1.18666e-06
  Prefactor  = 21.3763
  norm       = 2.37503
  Prefactor  = 10.0621
  norm       = 2.85464
  Prefactor  = 5.55112e-11
  Prefactor  = 1.38778e-09
  Prefactor  = 6.96104
  norm       = 1.81798
  Prefactor  = 5.3799
  norm       = 1.43264
  Prefactor  = 5.55112e-11
  Prefactor  = 11.7697
  Prefactor  = 2.3455e-05
  Prefactor  = 15.0039
  norm       = 5.55112e-10
  Prefactor  = 5.44009e-09
  Prefactor  = 4.16002
  Prefactor  = 43.5602
  Normalizat = 0.663754
  Prefactor  = 1.19079
 **********
 **   18 **HESSE 
 **********

 FCN=   5054.084     FROM HESSE     STATUS=OK           581 CALLS     3086 TOTAL
                     EDM=   .60E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22487E-04    49.792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     58.433        43.569        .13399E-03   -1.5555    
   3  Prefactor     .16653E-09    2.4372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1437        13.256        .56927E-03   -1.5673    
   5  Prefactor     3.5324        2.9227        .53447E-03   -1.5670    
   6  Prefactor     40.108        26.497        .16024E-03   -1.5581    
   7  Prefactor     5.9375        25.309        .43754E-03   -1.5659    
   8  Prefactor     .11867E-05    27.976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.376        32.943        .22152E-03   -1.5615    
  10  norm          2.3750        8.7621        .66593E-03   -1.5677    
  11  Prefactor     10.062        10.738        .31519E-03   -1.5645    
  12  norm          2.8546        1.7335        .60176E-03   -1.5674    
  13  Prefactor     .55511E-10    3.8201        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .13878E-08    7.1033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.9610        7.4736        .37912E-03   -1.5655    
  16  norm          1.8180        1.8063        .77311E-03   -1.5681    
  17  Prefactor     5.3799        7.0326        .43111E-03   -1.5662    
  18  norm          1.4326        2.5073        .90068E-03   -1.5684    
  19  Prefactor     .55511E-10    3.6668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.770        74.258        .31206E-03   -1.5639    
  21  Prefactor     .23455E-04    47.871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.004        14.300        .25991E-03   -1.5630    
  23  norm          .55511E-09    8.3371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .54401E-08    7.2534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.1600        7.9544        .49621E-03   -1.5667    
  26  Prefactor     43.560        71.920        .14723E-03   -1.5576    
  27  Normalizat    .66375        .18981        .41852E-01   -1.0534    
  28  Prefactor     1.1908        .20225        .52258E-01   -.86615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98069e-06
Minuit parameter uncertainties:
  1  0.0669237
  2  43.569
  3  4.06609e-05
  4  12.9107
  5  2.92272
  6  26.497
  7  24.5171
  8  0.0115234
  9  32.9429
  10  8.76214
  11  10.738
  12  1.73345
  13  2.52237e-05
  14  0.000196917
  15  7.47356
  16  1.80633
  17  7.03263
  18  2.50731
  19  2.22271e-05
  20  59.1279
  21  0.0670176
  22  14.3004
  23  0.000136582
  24  0.000396598
  25  7.95438
  26  71.9212
  27  0.189992
  28  0.202379
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  6.961e+00  7.474e+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:  1.191e+00  2.024e-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:  6.638e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 225.895 47.996
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.27e-08 +/- 3.51e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.52e-05

TS (Fixed Index): 1.12
Ra Dec: 225.895 47.996
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266411/likelihoodResults_693446401_693705601_4FGL_J1503.5+4759_daily_bin1752.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) = 5053.4011572
delta logL = 0.683177279083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5053.3866897
delta logL = 0.697644777389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0173       1.0000          .0000       .10000E+07
     2 'Index     '    3.3680       1.0000          .0000       10.000    
     3 'Normalizat'    .61647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2279       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=   5053.387     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      253 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0174        11.834        .11366E-02    .13306E-01
   2  Index         3.3681        2.2159        .98960E-01    .92505E-04
   3  Normalizat    .61646        .44027E-01    .61437E-01    .14404E-04
   4  Prefactor     1.2278        .50094E-01    .51542E-01    .39973E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.01741
  Index      = 3.36814
  Normalizat = 0.616461
  Prefactor  = 1.22781
 **********
 **   18 **HESSE 
 **********

 FCN=   5053.387     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      288 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0174        26.785        .51607E-04   -1.5688    
   2  Index         3.3681        3.7377        .36584E-02   -.33246    
   3  Normalizat    .61646        .17855        .27180E-03   -1.0729    
   4  Prefactor     1.2278        .20483        .22787E-03   -.85480    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25876e-08
Minuit parameter uncertainties:
  1  10.4406
  2  4.31123
  3  0.178715
  4  0.204967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266411': 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) = 5053.38668944
delta logL = 0.697645043842

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  1.017e+00  1.044e+01  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  3.368e+00  4.311e+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:  1.228e+00  2.050e-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:  6.165e-01  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.57
Ra Dec: 225.895 47.996
Photon Index (Free Index): 3.37 +/- 4.31
Photon Flux (Free Index): 6.56e-08 +/- 5.03e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.45e-05

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/266411/cmap_HighResolution_693446401_693705601_4FGL_J1503.5+4759_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.21e-03', comment='SUCCESS', photon_flux='3.27e-08', energy_flux2='1.13e-05', photon_flux_error='3.51e-08', dlogl='6.98e-01', energy_flux='1.41e-05', photon_flux2='6.56e-08', job_status='DONE', time_completed='2022-12-26 01:19:34.052912', photon_index_error2='4.31', photon_index2='3.37', ts='1.12', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.45e-05', EG='0.66', time_epoch_completed='1672046374.05', return_code='0', job_id='266411', GAL2='1.23', EG2='0.62', return_code2='102', energy_flux_error='1.52e-05', photon_flux_error2='5.03e-08', ts2='2.57', photon_index='2.22' WHERE bin_id='1752' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 01:19:34 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 266411: <4FGL_J1503.5+4759_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1503.5+4759_daily_bin1752> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Dec 26 01:05:18 2022
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 01:05:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 01:05:59 2022
Terminated at Mon Dec 26 01:19:34 2022
Results reported at Mon Dec 26 01:19:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin1752 225.895 47.9959 693446401 693705601 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 :                                   707.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            856 sec.

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

