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


Performing analysis on: 4FGL_J1510.8+7959_daily_bin1747
RA = 227.705, Dec = 79.991
tmin = 692150401, tmax = 692409601
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='804932', job_status='RUN', time_executed='2022-12-11 01:08:58.483176', time_epoch_executed='1670749738.48' WHERE source_name='4FGL J1510.8+7959' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804932

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804932/ft1_4FGL_J1510.8+7959_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804932/ft2_4FGL_J1510.8+7959_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804932/ft1_4FGL_J1510.8+7959_daily_bin1747.fits outfile=/scratch/kocevski/804932/ft1_filteredMKT_4FGL_J1510.8+7959_daily_bin1747.fits ra=227.705 dec=79.991 rad=12.0 tmin=692150401.0 tmax=692409601.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.08
user 2.88
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/804932/ft2_4FGL_J1510.8+7959_daily_bin1747.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/804932/ft1_filteredMKT_4FGL_J1510.8+7959_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/804932/ft1_filtered_4FGL_J1510.8+7959_daily_bin1747.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.42
user 0.26
sys 0.15

Number of photons that the gtmktime cut: 892

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804932/ft1_filtered_4FGL_J1510.8+7959_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/804932/ft2_4FGL_J1510.8+7959_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/804932/ltcube_692150401_692409601_4FGL_J1510.8+7959_daily_bin1747.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/804932/ft2_4FGL_J1510.8+7959_daily_bin1747.fits
.....................!
real 9.14
user 8.81
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804932/ft1_filtered_4FGL_J1510.8+7959_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/804932/ft2_4FGL_J1510.8+7959_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/804932/ltcube_692150401_692409601_4FGL_J1510.8+7959_daily_bin1747.fits outfile=/scratch/kocevski/804932/expmap_692150401_692409601_4FGL_J1510.8+7959_daily_bin1747.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/804932/ltcube_692150401_692409601_4FGL_J1510.8+7959_daily_bin1747.fits
.....................!
real 146.66
user 142.75
sys 3.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 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/804932/ft1_filtered_4FGL_J1510.8+7959_daily_bin1747.fits scfile=/scratch/kocevski/804932/ft2_4FGL_J1510.8+7959_daily_bin1747.fits outfile=/scratch/kocevski/804932/cmap_692150401_692409601_4FGL_J1510.8+7959_daily_bin1747.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.45
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804932/ft1_filtered_4FGL_J1510.8+7959_daily_bin1747.fits scfile=/scratch/kocevski/804932/ft2_4FGL_J1510.8+7959_daily_bin1747.fits outfile=/scratch/kocevski/804932/cmap_HighResolution_692150401_692409601_4FGL_J1510.8+7959_daily_bin1747.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.45
user 0.30
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/804932/ft1_filtered_4FGL_J1510.8+7959_daily_bin1747.fits', '/scratch/kocevski/804932/ft2_4FGL_J1510.8+7959_daily_bin1747.fits', expMap='/scratch/kocevski/804932/expmap_692150401_692409601_4FGL_J1510.8+7959_daily_bin1747.fits', expCube='/scratch/kocevski/804932/ltcube_692150401_692409601_4FGL_J1510.8+7959_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/804932/Model_4FGL_J1510.8+7959_daily_bin1747.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/804932/ft1_filtered_4FGL_J1510.8+7959_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/804932/ft2_4FGL_J1510.8+7959_daily_bin1747.fits
Exposure map: /scratch/kocevski/804932/expmap_692150401_692409601_4FGL_J1510.8+7959_daily_bin1747.fits
Exposure cube: /scratch/kocevski/804932/ltcube_692150401_692409601_4FGL_J1510.8+7959_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/804932/Model_4FGL_J1510.8+7959_daily_bin1747.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) = 9398.5099108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.480       1.0000          .0000       .10000E+07
     2 'Prefactor '    .45552E-05   1.0000          .0000       .10000E+07
     3 'norm      '    8.2819       1.0000          .0000       .10000E+07
     4 'Prefactor '    .29421E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.8045       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.1464       1.0000          .0000       .10000E+07
     7 'norm      '    1.9156       1.0000          .0000       .10000E+07
     8 'Prefactor '    .64559E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.4987       1.0000          .0000       .10000E+07
    10 'Prefactor '    .79881E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .23259E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .21643E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .10436E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    .27756E-09   1.0000          .0000       .10000E+07
    15 'Prefactor '    49.532       1.0000          .0000       .10000E+07
    16 'Prefactor '    .37503E-06   1.0000          .0000       .10000E+07
    17 'norm      '    7.4980       1.0000          .0000       .10000E+07
    18 'Prefactor '    .30325E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    1.2410       1.0000          .0000       .10000E+07
    20 'Prefactor '    .10919E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .22515E-06   1.0000          .0000       .10000E+07
    22 'norm      '    2.2753       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.1629       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86037       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=   9398.402     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     2005 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.479        9.6294       -.26408E-07    .47700E-03
   2  Prefactor     .93148E-07    11.269        .12359E-05** at limit **
   3  norm          8.2803        4.1199       -.12752E-07    .49007E-02
   4  Prefactor     .11990E-07    7.3730       -.18333E-05** at limit **
   5  Prefactor     5.7997        9.9443        .27892E-07    .44004E-02
   6  Prefactor     3.0771        10.488        .38775E-05   -.38366E-01
   7  norm          1.9165        3.0781       -.13717E-06    .18561E-02
   8  Prefactor     .20650E-06    8.1921        .80354E-06** at limit **
   9  Prefactor     3.4935        11.292       -.18740E-05   -.72020E-02
  10  Prefactor     .85132E-06    27.475       -.28210E-05** at limit **
  11  Prefactor     .44131E-07    9.6125       -.96663E-06** at limit **
  12  Prefactor     .89440E-06    92.056       -.13984E-04** at limit **
  13  Prefactor     .69095E-06    30.553        .80905E-06** at limit **
  14  Prefactor     .56621E-08    6.8020        .77185E-06** at limit **
  15  Prefactor     49.487        4.6067        .41490E-06   -.65829E-01
  16  Prefactor     .39968E-07    19.827        .14792E-05** at limit **
  17  norm          7.4938        1.1310        .93069E-07   -.61606E-03
  18  Prefactor     .11430E-05    707.21       -.22170E-05** at limit **
  19  Prefactor     1.2376        2.7592       -.21382E-06    .22043E-02
  20  Prefactor     .27756E-08    8.1616        .76032E-06** at limit **
  21  Prefactor     .12962E-06    7.8286       -.32282E-06** at limit **
  22  norm          2.2748        .75467       -.33357E-07    .69491E-02
  23  Normalizat    1.1635        .16478        .28739E-05    .64713E-04
  24  Prefactor     .86010        .10736       -.35500E-06    .17561E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4795
  Prefactor  = 9.31477e-08
  norm       = 8.28025
  Prefactor  = 1.19904e-08
  Prefactor  = 5.79972
  Prefactor  = 3.0771
  norm       = 1.91647
  Prefactor  = 2.06501e-07
  Prefactor  = 3.49349
  Prefactor  = 8.51319e-07
  Prefactor  = 4.41314e-08
  Prefactor  = 8.94396e-07
  Prefactor  = 6.90947e-07
  Prefactor  = 5.66214e-09
  Prefactor  = 49.4873
  Prefactor  = 3.9968e-08
  norm       = 7.49384
  Prefactor  = 1.14303e-06
  Prefactor  = 1.23764
  Prefactor  = 2.77556e-09
  Prefactor  = 1.29619e-07
  norm       = 2.27481
  Normalizat = 1.16352
  Prefactor  = 0.860097
 **********
 **   18 **HESSE 
 **********

 FCN=   9398.402     FROM HESSE     STATUS=OK           449 CALLS     2454 TOTAL
                     EDM=   .91E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.479        9.6246        .21097E-03   -1.5613    
   2  Prefactor     .93148E-07    11.489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.2803        4.1345        .34812E-03   -1.5650    
   4  Prefactor     .11990E-07    7.4099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.7997        10.163        .41663E-03   -1.5660    
   6  Prefactor     3.0771        116.55        .57121E-03   -1.5673    
   7  norm          1.9165        3.1563        .75065E-03   -1.5680    
   8  Prefactor     .20650E-06    14.868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4935        11.361        .54029E-03   -1.5671    
  10  Prefactor     .85132E-06    28.721        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .44131E-07    9.7176        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .89440E-06    11.085        .10366E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .69095E-06    31.470        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .56621E-08    6.8223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     49.487        36.977        .14210E-03   -1.5567    
  16  Prefactor     .39968E-07    20.061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.4938        13.782        .36602E-03   -1.5653    
  18  Prefactor     .11430E-05    707.72        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2376        2.8255        .10061E-02   -1.5686    
  20  Prefactor     .27756E-08    8.1700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .12962E-06    15.319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.2748        .75940        .68049E-03   -1.5678    
  23  Normalizat    1.1635        .14860        .59740E-01   -.87738    
  24  Prefactor     .86010        .94904E-01    .44498E-01   -.97550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.08025e-07
Minuit parameter uncertainties:
  1  9.62464
  2  0.0020688
  3  4.1345
  4  0.000596493
  5  10.1635
  6  37.8758
  7  3.15628
  8  0.00350439
  9  11.3608
  10  0.00988952
  11  0.00130977
  12  0.00629733
  13  0.00932607
  14  0.000393826
  15  36.977
  16  0.0017909
  17  13.7824
  18  0.0568903
  19  2.82551
  20  0.000301763
  21  0.0028181
  22  0.759396
  23  0.148649
  24  0.0949226
Done.

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

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  3.997e-08  1.791e-03  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:  8.601e-01  9.492e-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:  1.164e+00  1.486e-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.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804932/likelihoodResults_692150401_692409601_4FGL_J1510.8+7959_daily_bin1747.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) = 9398.42609261
delta logL = -0.0238289813024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9398.4022637
delta logL = -6.80665834807e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43565E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .68244       1.0000          .0000       10.000    
     3 'Normalizat'    1.1636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86007       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.

 FCN=   9398.402     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      239 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22760E-08    .21013E-01    .42118E-03** at limit **
   2  Index         3.3209        7.3017        .42167        .17255E-08
   3  Normalizat    1.1635        .26222E-03    .59740E-01    .67915E-03
   4  Prefactor     .86010        .17446E-03    .44494E-01    .99175E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.27596e-09
  Index      = 3.32088
  Normalizat = 1.16352
  Prefactor  = 0.860098
 **********
 **   18 **HESSE 
 **********

 FCN=   9398.402     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      266 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22760E-08    .15898        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3209        6.7408        .50000       -.34248    
   3  Normalizat    1.1635        .71923E-03    .26421E-03   -.87738    
   4  Prefactor     .86010        .47873E-03    .20016E-03   -.97550    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.91356e-11
Minuit parameter uncertainties:
  1  3.80694e-05
  2  10353.7
  3  0.000719225
  4  0.000478726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804932': 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) = 9398.40226363
delta logL = 5.52972778678e-10

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  2.276e-09  3.807e-05  0.000e+00  1.000e+06 ( 1.000e-14)
343        Index:  3.321e+00  1.035e+04  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:  8.601e-01  4.787e-04  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:  1.164e+00  7.192e-04  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/804932/cmap_HighResolution_692150401_692409601_4FGL_J1510.8+7959_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.03e-03', job_status='DONE', photon_flux_upper_limit='3.97e-08', time_completed='2022-12-11 01:20:31.429540', job_id='804932', GAL2='0.86', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1670750431.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='5.53e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1747' AND source_name='4FGL J1510.8+7959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 01:20:31 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 804932: <4FGL_J1510.8+7959_daily_bin1747> in cluster <slac> Done

Job <4FGL_J1510.8+7959_daily_bin1747> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Dec 11 01:05:21 2022
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 01:05:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 01:05:22 2022
Terminated at Sun Dec 11 01:20:32 2022
Results reported at Sun Dec 11 01:20:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.8+7959_daily_bin1747 227.705 79.991 692150401 692409601 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 :                                   693.35 sec.
    Max Memory :                                 1193 MB
    Average Memory :                             303.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

