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


Performing analysis on: 4FGL_J1510.8+7959_daily_bin1708
RA = 227.705, Dec = 79.991
tmin = 682041601, tmax = 682300801
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='158149', job_status='RUN', time_executed='2022-09-16 18:56:38.868177', time_epoch_executed='1663379798.87' WHERE source_name='4FGL J1510.8+7959' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158149/ft1_4FGL_J1510.8+7959_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158149/ft2_4FGL_J1510.8+7959_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158149/ft1_4FGL_J1510.8+7959_daily_bin1708.fits outfile=/scratch/kocevski/158149/ft1_filteredMKT_4FGL_J1510.8+7959_daily_bin1708.fits ra=227.705 dec=79.991 rad=12.0 tmin=682041601.0 tmax=682300801.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 4.14
user 3.75
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/158149/ft2_4FGL_J1510.8+7959_daily_bin1708.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158149/ft2_4FGL_J1510.8+7959_daily_bin1708.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/158149/ft1_filteredMKT_4FGL_J1510.8+7959_daily_bin1708.fits evtable="EVENTS" outfile="/scratch/kocevski/158149/ft1_filtered_4FGL_J1510.8+7959_daily_bin1708.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.34
sys 0.16

Number of photons that the gtmktime cut: 921

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158149/ft1_filtered_4FGL_J1510.8+7959_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/158149/ft2_4FGL_J1510.8+7959_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/158149/ltcube_682041601_682300801_4FGL_J1510.8+7959_daily_bin1708.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/158149/ft2_4FGL_J1510.8+7959_daily_bin1708.fits
.....................!
real 15.55
user 15.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158149/ft1_filtered_4FGL_J1510.8+7959_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/158149/ft2_4FGL_J1510.8+7959_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/158149/ltcube_682041601_682300801_4FGL_J1510.8+7959_daily_bin1708.fits outfile=/scratch/kocevski/158149/expmap_682041601_682300801_4FGL_J1510.8+7959_daily_bin1708.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/158149/ltcube_682041601_682300801_4FGL_J1510.8+7959_daily_bin1708.fits
.....................!
real 192.67
user 187.11
sys 4.52

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

Setting source of interest to:
4FGL J1510.8+7959 @ 227.705 79.991

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/158149/ft1_filtered_4FGL_J1510.8+7959_daily_bin1708.fits scfile=/scratch/kocevski/158149/ft2_4FGL_J1510.8+7959_daily_bin1708.fits outfile=/scratch/kocevski/158149/cmap_682041601_682300801_4FGL_J1510.8+7959_daily_bin1708.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=227.705 yref=79.991 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158149/ft1_filtered_4FGL_J1510.8+7959_daily_bin1708.fits scfile=/scratch/kocevski/158149/ft2_4FGL_J1510.8+7959_daily_bin1708.fits outfile=/scratch/kocevski/158149/cmap_HighResolution_682041601_682300801_4FGL_J1510.8+7959_daily_bin1708.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=227.705 yref=79.991 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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/158149/ft1_filtered_4FGL_J1510.8+7959_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/158149/ft2_4FGL_J1510.8+7959_daily_bin1708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158149/Model_4FGL_J1510.8+7959_daily_bin1708.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/158149/ft1_filtered_4FGL_J1510.8+7959_daily_bin1708.fits.....................!
real 112.48
user 110.85
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/158149/ft1_filtered_4FGL_J1510.8+7959_daily_bin1708.fits', '/scratch/kocevski/158149/ft2_4FGL_J1510.8+7959_daily_bin1708.fits', expMap='/scratch/kocevski/158149/expmap_682041601_682300801_4FGL_J1510.8+7959_daily_bin1708.fits', expCube='/scratch/kocevski/158149/ltcube_682041601_682300801_4FGL_J1510.8+7959_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/158149/Model_4FGL_J1510.8+7959_daily_bin1708.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1510.8+7959'

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  6.990e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
343        Index:  2.218e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
344        Scale:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/158149/ft1_filtered_4FGL_J1510.8+7959_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/158149/ft2_4FGL_J1510.8+7959_daily_bin1708.fits
Exposure map: /scratch/kocevski/158149/expmap_682041601_682300801_4FGL_J1510.8+7959_daily_bin1708.fits
Exposure cube: /scratch/kocevski/158149/ltcube_682041601_682300801_4FGL_J1510.8+7959_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/158149/Model_4FGL_J1510.8+7959_daily_bin1708.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) = 9725.4440743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.059       1.0000          .0000       .10000E+07
     2 'Prefactor '    .15035E-04   1.0000          .0000       .10000E+07
     3 'norm      '    3.6889       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14271E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10257E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .43377E-05   1.0000          .0000       .10000E+07
     7 'norm      '    2.4514       1.0000          .0000       .10000E+07
     8 'Prefactor '    21.300       1.0000          .0000       .10000E+07
     9 'Prefactor '    8.9506       1.0000          .0000       .10000E+07
    10 'Prefactor '    .50035E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .32494E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .26631E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .16276E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .34121E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    20.184       1.0000          .0000       .10000E+07
    16 'Prefactor '    .22508E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .14811E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .39547E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    1.5502       1.0000          .0000       .10000E+07
    20 'Prefactor '    27.122       1.0000          .0000       .10000E+07
    21 'Prefactor '    55.692       1.0000          .0000       .10000E+07
    22 'norm      '    3.2278       1.0000          .0000       .10000E+07
    23 'Normalizat'    .81649       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99131       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9725.420     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1911 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.032        7.3165       -.18407E-06   -.39996E-03
   2  Prefactor      .0000        2.0592       -.30451E-07** at limit **
   3  norm          3.6876        3.0184       -.78333E-06    .49700E-02
   4  Prefactor     .11102E-08    6.1081       -.40220E-06** at limit **
   5  Prefactor      .0000        3.6099       -.85516E-06** at limit **
   6  Prefactor     .10648E-05    54.159        .26514E-05** at limit **
   7  norm          2.4512        2.2497       -.43178E-06    .23586E-02
   8  Prefactor     21.292        1.0744       -.20548E-07    .62254E-02
   9  Prefactor     8.9432        1.0163        .11457E-07    .20509E-02
  10  Prefactor     .23642E-06    4.7855       -.27119E-06** at limit **
  11  Prefactor     .40468E-07    10.085       -.10381E-05** at limit **
  12  Prefactor     .18928E-05    11.802       -.21302E-05** at limit **
  13  Prefactor     .14647E-05    6.8216        .11384E-06** at limit **
  14  Prefactor     .22926E-07    5.4219       -.12413E-06** at limit **
  15  Prefactor     19.713        3.1757        .17866E-06   -.11039    
  16  Prefactor     .45533E-05    4.4038       -.11182E-05** at limit **
  17  norm          .77716E-09    6.4203       -.68442E-06** at limit **
  18  Prefactor     .71951E-04    2.4444        .65744E-06** at limit **
  19  Prefactor     1.5611        2.3828       -.13593E-05    .72879E-02
  20  Prefactor     26.826        2.7773        .13293E-06   -.12616    
  21  Prefactor     55.728        1.0584       -.15727E-08    .40361E-01
  22  norm          3.2290        .79510        .49800E-07   -.98324E-02
  23  Normalizat    .81689        .14942        .11101E-04   -.19985E-03
  24  Prefactor     .99128        .10231        .27325E-05   -.35389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0317
  Prefactor  = 0
  norm       = 3.68765
  Prefactor  = 1.11022e-09
  Prefactor  = 0
  Prefactor  = 1.06481e-06
  norm       = 2.45122
  Prefactor  = 21.2923
  Prefactor  = 8.94321
  Prefactor  = 2.36422e-07
  Prefactor  = 4.04676e-08
  Prefactor  = 1.89276e-06
  Prefactor  = 1.46466e-06
  Prefactor  = 2.29261e-08
  Prefactor  = 19.7128
  Prefactor  = 4.5533e-06
  norm       = 7.77156e-10
  Prefactor  = 7.19507e-05
  Prefactor  = 1.56106
  Prefactor  = 26.8255
  Prefactor  = 55.7278
  norm       = 3.22905
  Normalizat = 0.816886
  Prefactor  = 0.991281
 **********
 **   18 **HESSE 
 **********

 FCN=   9725.420     FROM HESSE     STATUS=OK           445 CALLS     2356 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.032        7.3094        .27692E-03   -1.5636    
   2  Prefactor      .0000        2.0546        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.6876        3.0303        .52560E-03   -1.5670    
   4  Prefactor     .11102E-08    6.0892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        3.6073        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10648E-05    54.882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4512        2.2607        .65305E-03   -1.5677    
   8  Prefactor     21.292        20.801        .21674E-03   -1.5616    
   9  Prefactor     8.9432        12.076        .33478E-03   -1.5648    
  10  Prefactor     .23642E-06    18.266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .40468E-07    10.122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .18928E-05    14.359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .14647E-05    18.915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .22926E-07    18.568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.713        29.392        .22266E-03   -1.5619    
  16  Prefactor     .45533E-05    16.569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .77716E-09    6.4205        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .71951E-04    393.90        .15984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.5611        2.6927        .85518E-03   -1.5683    
  20  Prefactor     26.826        28.717        .19205E-03   -1.5604    
  21  Prefactor     55.728        43.840        .13401E-03   -1.5559    
  22  norm          3.2290        .81259        .56358E-03   -1.5672    
  23  Normalizat    .81689        .13465        .65949E-01   -.99445    
  24  Prefactor     .99128        .91534E-01    .46158E-01   -.93021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79826e-06
Minuit parameter uncertainties:
  1  7.30943
  2  4.42581e-06
  3  3.03032
  4  0.000165122
  5  1.70365e-05
  6  0.0152895
  7  2.26071
  8  20.8009
  9  12.0764
  10  0.00415643
  11  0.00127963
  12  0.0104264
  13  0.0105269
  14  0.00130445
  15  29.3922
  16  0.017372
  17  0.000143512
  18  0.336718
  19  2.69271
  20  28.7171
  21  43.84
  22  0.812594
  23  0.134707
  24  0.0915481
Done.

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

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  4.553e-06  1.737e-02  0.000e+00  1.000e+06 ( 1.000e-14)
343        Index:  2.218e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
344        Scale:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  9.913e-01  9.155e-02  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  8.169e-01  1.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 227.705 79.991
Photon Flux Upper Limit: 3.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158149/likelihoodResults_682041601_682300801_4FGL_J1510.8+7959_daily_bin1708.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): 102
logL (Free Index) = 9725.44868801
delta logL = -0.0288972995586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9725.41979282
delta logL = -2.10670441447e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9725.420     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      208 TOTAL
                     EDM=   .62E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        21.580        .42118E-03** at limit **
   2  Index         2.0342        1.4288        .19372E-04     .0000    
   3  Normalizat    .81689        1.1553       -.56224E-05   -.76193E-05
   4  Prefactor     .99128        1.3309        .43046E-05   -.36179E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.03417
  Normalizat = 0.816887
  Prefactor  = 0.991281
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9725.420     FROM HESSE     STATUS=FAILED         9 CALLS      217 TOTAL
                     EDM=   .62E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        21.580        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .44648        1.7808        .19372E-04   -.63499    
   3  Normalizat    .81689        1.1553       -.56224E-05   -.99445    
   4  Prefactor     .99128        1.3309        .43046E-05   -.93021    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.24121e-13
Minuit parameter uncertainties:
  1  1.99597e-05
  2  1.46061
  3  1.1931
  4  1.37935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158149': 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): 101
logL (Free Index) = 9725.41979058
delta logL = 1.37393726618e-07

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  0.000e+00  1.996e-05  0.000e+00  1.000e+06 ( 1.000e-14)
343        Index:  2.034e+00  1.461e+00  0.000e+00  1.000e+01 (-1.000e+00)
344        Scale:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  9.913e-01  1.379e+00  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  8.169e-01  1.193e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 227.705 79.991

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/158149/cmap_HighResolution_682041601_682300801_4FGL_J1510.8+7959_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-03', job_status='DONE', photon_flux_upper_limit='3.20e-08', time_completed='2022-09-16 19:11:15.271364', job_id='158149', GAL2='0.99', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1663380675.27', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.37e-07', ts2='0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1708' AND source_name='4FGL J1510.8+7959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:11:15 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 158149: <4FGL_J1510.8+7959_daily_bin1708> in cluster <slac> Done

Job <4FGL_J1510.8+7959_daily_bin1708> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 18:55:25 2022
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 18:56:30 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:56:30 2022
Terminated at Fri Sep 16 19:11:16 2022
Results reported at Fri Sep 16 19:11:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.8+7959_daily_bin1708 227.705 79.991 682041601 682300801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1510.8+7959 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   877.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            951 sec.

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

