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


Performing analysis on: 4FGL_J1503.5+4759_daily_bin1709
RA = 225.895, Dec = 47.9959
tmin = 682300801, tmax = 682560001
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='155300', job_status='RUN', time_executed='2022-09-16 18:47:02.056766', time_epoch_executed='1663379222.06' WHERE source_name='4FGL J1503.5+4759' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155300

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155300/ft1_4FGL_J1503.5+4759_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155300/ft2_4FGL_J1503.5+4759_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155300/ft1_4FGL_J1503.5+4759_daily_bin1709.fits outfile=/scratch/kocevski/155300/ft1_filteredMKT_4FGL_J1503.5+4759_daily_bin1709.fits ra=225.895 dec=47.9959 rad=12.0 tmin=682300801.0 tmax=682560001.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.78
user 3.52
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155300/ft1_filtered_4FGL_J1503.5+4759_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/155300/ft2_4FGL_J1503.5+4759_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/155300/ltcube_682300801_682560001_4FGL_J1503.5+4759_daily_bin1709.fits outfile=/scratch/kocevski/155300/expmap_682300801_682560001_4FGL_J1503.5+4759_daily_bin1709.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/155300/ltcube_682300801_682560001_4FGL_J1503.5+4759_daily_bin1709.fits
.....................!
real 191.72
user 185.87
sys 4.61

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/155300/ft1_filtered_4FGL_J1503.5+4759_daily_bin1709.fits scfile=/scratch/kocevski/155300/ft2_4FGL_J1503.5+4759_daily_bin1709.fits outfile=/scratch/kocevski/155300/cmap_682300801_682560001_4FGL_J1503.5+4759_daily_bin1709.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/155300/ft1_filtered_4FGL_J1503.5+4759_daily_bin1709.fits scfile=/scratch/kocevski/155300/ft2_4FGL_J1503.5+4759_daily_bin1709.fits outfile=/scratch/kocevski/155300/cmap_HighResolution_682300801_682560001_4FGL_J1503.5+4759_daily_bin1709.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11371E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .30862E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.7931       1.0000          .0000       .10000E+07
     4 'Prefactor '    22.261       1.0000          .0000       .10000E+07
     5 'Prefactor '    5.7246       1.0000          .0000       .10000E+07
     6 'Prefactor '    .61523E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    32.428       1.0000          .0000       .10000E+07
     8 'Prefactor '    .71549E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    27.184       1.0000          .0000       .10000E+07
    10 'norm      '    4.3481       1.0000          .0000       .10000E+07
    11 'Prefactor '    12.025       1.0000          .0000       .10000E+07
    12 'norm      '    1.3787       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.8188       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.7693       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.4472       1.0000          .0000       .10000E+07
    16 'norm      '    3.3816       1.0000          .0000       .10000E+07
    17 'Prefactor '    25.692       1.0000          .0000       .10000E+07
    18 'norm      '    .78552       1.0000          .0000       .10000E+07
    19 'Prefactor '    .20308E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .43387E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .20904E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .97331E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .23191E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .34599E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    .29070E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    44.823       1.0000          .0000       .10000E+07
    27 'Normalizat'    .94206       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88672       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=   6039.865     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     2474 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97700E-08    18.182        .58216E-06** at limit **
   2  Prefactor     .47740E-08    9.1459       -.39462E-07** at limit **
   3  Prefactor     2.7887        3.9562        .13558E-06   -.27078E-02
   4  Prefactor     22.410        1.5946       -.36753E-06    .93100E-02
   5  Prefactor     5.7068        2.9994        .55122E-08   -.42274E-02
   6  Prefactor     .66686E-06    4.8145       -.50031E-05** at limit **
   7  Prefactor     32.761        3.8233       -.11489E-06    .60277E-01
   8  Prefactor     .17764E-08    38.195        .17273E-05** at limit **
   9  Prefactor     27.511        4.0791       -.12528E-07   -.60825E-01
  10  norm          4.4119        1.6840        .20864E-07    .94526E-02
  11  Prefactor     12.007        9.7543       -.31820E-05    .10545    
  12  norm          1.3790        1.4923        .68407E-07    .61423E-02
  13  Prefactor     7.7766        7.2800       -.13828E-06   -.99302E-03
  14  Prefactor     2.6898        5.5242        .17793E-06    .22358E-02
  15  Prefactor     3.3877        5.2720        .21501E-06   -.10025E-02
  16  norm          3.3844        1.9613        .68899E-07   -.77393E-02
  17  Prefactor     25.640        6.2168       -.18278E-06   -.21482E-02
  18  norm          .77451        2.4807       -.14835E-06    .25120E-03
  19  Prefactor     .55511E-10    3.4165        .21690E-06** at limit **
  20  Prefactor     .20539E-07    23.965       -.18469E-05** at limit **
  21  Prefactor     .18574E-06    3.7565        .26971E-05** at limit **
  22  Prefactor     .29976E-08    5.6214       -.11559E-06** at limit **
  23  norm          .16931E-07    2.9561        .44489E-06** at limit **
  24  Prefactor     .13944E-06    5.7322        .27995E-05** at limit **
  25  Prefactor     .55511E-10    3.5354        .22721E-06** at limit **
  26  Prefactor     44.382        69.702       -.89637E-05    .16178E-01
  27  Normalizat    .94189        .20376        .12029E-04   -.18423E-03
  28  Prefactor     .88716        .22058        .54322E-06   -.23111E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.76996e-09
  Prefactor  = 4.77396e-09
  Prefactor  = 2.78867
  Prefactor  = 22.4102
  Prefactor  = 5.70685
  Prefactor  = 6.66855e-07
  Prefactor  = 32.7606
  Prefactor  = 1.77636e-09
  Prefactor  = 27.5114
  norm       = 4.4119
  Prefactor  = 12.0072
  norm       = 1.37901
  Prefactor  = 7.77658
  Prefactor  = 2.68984
  Prefactor  = 3.38772
  norm       = 3.38436
  Prefactor  = 25.6399
  norm       = 0.774514
  Prefactor  = 5.55112e-11
  Prefactor  = 2.05391e-08
  Prefactor  = 1.8574e-07
  Prefactor  = 2.9976e-09
  norm       = 1.69309e-08
  Prefactor  = 1.39444e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 44.3824
  Normalizat = 0.941889
  Prefactor  = 0.88716
 **********
 **   18 **HESSE 
 **********

 FCN=   6039.865     FROM HESSE     STATUS=OK           575 CALLS     3049 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97700E-08    18.247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .47740E-08    9.1556        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7887        3.9984        .60852E-03   -1.5675    
   4  Prefactor     22.410        20.988        .21200E-03   -1.5613    
   5  Prefactor     5.7068        3.2827        .41957E-03   -1.5660    
   6  Prefactor     .66686E-06    6.3813        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     32.761        30.884        .17563E-03   -1.5593    
   8  Prefactor     .17764E-08    38.385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.511        25.991        .19183E-03   -1.5603    
  10  norm          4.4119        11.447        .48282E-03   -1.5666    
  11  Prefactor     12.007        16.988        .28862E-03   -1.5639    
  12  norm          1.3790        1.5244        .92691E-03   -1.5684    
  13  Prefactor     7.7766        7.3813        .35837E-03   -1.5652    
  14  Prefactor     2.6898        10.541        .61132E-03   -1.5675    
  15  Prefactor     3.3877        5.2869        .54449E-03   -1.5671    
  16  norm          3.3844        1.9665        .54999E-03   -1.5671    
  17  Prefactor     25.640        10.046        .19733E-03   -1.5607    
  18  norm          .77451        2.4927        .54021E-03   -1.5690    
  19  Prefactor     .55511E-10    3.4109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .20539E-07    24.230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .18574E-06    6.7557        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .29976E-08    5.6312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .16931E-07    6.6553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .13944E-06    6.0520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .55511E-10    3.5340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     44.382        71.775        .14938E-03   -1.5575    
  27  Normalizat    .94189        .17872        .45437E-01   -.95003    
  28  Prefactor     .88716        .18799        .44835E-01   -.96591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30726e-07
Minuit parameter uncertainties:
  1  0.000843501
  2  0.000418088
  3  3.99841
  4  20.9882
  5  3.28266
  6  0.00412573
  7  30.8846
  8  0.00051875
  9  25.9914
  10  11.4467
  11  16.9885
  12  1.52439
  13  7.3813
  14  10.541
  15  5.28688
  16  1.96653
  17  10.0459
  18  2.49267
  19  1.95731e-05
  20  0.00141006
  21  0.00224026
  22  0.00026077
  23  0.000671
  24  0.00183717
  25  3.21093e-05
  26  71.7761
  27  0.178829
  28  0.188122
Done.

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

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  3.388e+00  5.287e+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:  8.872e-01  1.881e-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.419e-01  1.788e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/155300/likelihoodResults_682300801_682560001_4FGL_J1503.5+4759_daily_bin1709.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) = 6039.48864184
delta logL = 0.376475206828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6039.48609579
delta logL = 0.379021249614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9625       1.0000          .0000       .10000E+07
     2 'Index     '    1.5775       1.0000          .0000       10.000    
     3 'Normalizat'    .95655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87124       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6039.486     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      288 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9599        9.0069        .71018E-04   -.65153E-04
   2  Index         1.5775        .59438        .10485E-01   -.17674E-05
   3  Normalizat    .95647        .19774        .23620E-03   -.25152E-03
   4  Prefactor     .87120        .21777        .26911E-03   -.21655E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.95995
  Index      = 1.57751
  Normalizat = 0.956474
  Prefactor  = 0.871195
 **********
 **   18 **HESSE 
 **********

 FCN=   6039.486     FROM HESSE     STATUS=OK            27 CALLS      315 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9599        8.9731        .28407E-05   -1.5652    
   2  Index         1.5775        .59230        .41940E-03   -.75392    
   3  Normalizat    .95647        .19792        .47240E-04   -.94503    
   4  Prefactor     .87120        .21800        .10764E-04   -.97155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4139e-11
Minuit parameter uncertainties:
  1  8.97312
  2  0.594937
  3  0.198075
  4  0.218216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155300': 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) = 6039.48609495
delta logL = 0.379022094985

Extracting fit parameters...

4FGL J1503.5+4759
   Spectrum: PowerLaw
292    Prefactor:  7.960e+00  8.973e+00  0.000e+00  1.000e+06 ( 1.000e-13)
293        Index:  1.578e+00  5.949e-01  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:  8.712e-01  2.182e-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.565e-01  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 225.895 47.996
Photon Index (Free Index): 1.58 +/- 0.59
Photon Flux (Free Index): 1.23e-08 +/- 1.62e-08
Energy Flux (Free Index): 3.00e-05 +/- 5.17e-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/155300/cmap_HighResolution_682300801_682560001_4FGL_J1503.5+4759_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.91e-03', comment='SUCCESS', energy_flux2='3.00e-05', dlogl='3.79e-01', photon_flux2='1.23e-08', job_status='DONE', time_completed='2022-09-16 18:58:55.066369', photon_index_error2='0.59', photon_index2='1.58', ts='0.53', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='7.75e-08', energy_flux_error2='5.17e-05', EG='0.94', time_epoch_completed='1663379935.07', return_code='0', job_id='155300', GAL2='0.87', EG2='0.96', return_code2='0', photon_flux_error2='1.62e-08', ts2='1.30', photon_index='2.22' WHERE bin_id='1709' AND source_name='4FGL J1503.5+4759' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 18:58:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 155300: <4FGL_J1503.5+4759_daily_bin1709> in cluster <slac> Done

Job <4FGL_J1503.5+4759_daily_bin1709> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 18:45:20 2022
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 18:45:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 18:45:53 2022
Terminated at Fri Sep 16 18:58:55 2022
Results reported at Fri Sep 16 18:58:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1503.5+4759_daily_bin1709 225.895 47.9959 682300801 682560001 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 :                                   713.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            815 sec.

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

