/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 43 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1510.8+7959_daily_bin468
RA = 227.705, Dec = 79.991
tmin = 360633601, tmax = 360892801
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='200764', job_status='RUN', time_executed='2021-09-11 08:28:46.673764', time_epoch_executed='1631374126.67' WHERE source_name='4FGL J1510.8+7959' and cadence='daily' and bin_id='468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200764/ft1_4FGL_J1510.8+7959_daily_bin468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200764/ft2_4FGL_J1510.8+7959_daily_bin468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200764/ft1_4FGL_J1510.8+7959_daily_bin468.fits outfile=/scratch/kocevski/200764/ft1_filteredMKT_4FGL_J1510.8+7959_daily_bin468.fits ra=227.705 dec=79.991 rad=12.0 tmin=360633601.0 tmax=360892801.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.36
user 2.98
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/200764/ft2_4FGL_J1510.8+7959_daily_bin468.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/200764/ft1_filteredMKT_4FGL_J1510.8+7959_daily_bin468.fits evtable="EVENTS" outfile="/scratch/kocevski/200764/ft1_filtered_4FGL_J1510.8+7959_daily_bin468.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.25
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/200764/ft1_filtered_4FGL_J1510.8+7959_daily_bin468.fits" evtable="EVENTS" scfile=/scratch/kocevski/200764/ft2_4FGL_J1510.8+7959_daily_bin468.fits sctable="SC_DATA" outfile=/scratch/kocevski/200764/ltcube_360633601_360892801_4FGL_J1510.8+7959_daily_bin468.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/200764/ft2_4FGL_J1510.8+7959_daily_bin468.fits
.....................!
real 10.85
user 10.44
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200764/ft1_filtered_4FGL_J1510.8+7959_daily_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/200764/ft2_4FGL_J1510.8+7959_daily_bin468.fits sctable="SC_DATA" expcube=/scratch/kocevski/200764/ltcube_360633601_360892801_4FGL_J1510.8+7959_daily_bin468.fits outfile=/scratch/kocevski/200764/expmap_360633601_360892801_4FGL_J1510.8+7959_daily_bin468.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/200764/ltcube_360633601_360892801_4FGL_J1510.8+7959_daily_bin468.fits
.....................!
real 143.29
user 136.95
sys 3.85

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/200764/ft1_filtered_4FGL_J1510.8+7959_daily_bin468.fits scfile=/scratch/kocevski/200764/ft2_4FGL_J1510.8+7959_daily_bin468.fits outfile=/scratch/kocevski/200764/cmap_360633601_360892801_4FGL_J1510.8+7959_daily_bin468.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.44
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/200764/ft1_filtered_4FGL_J1510.8+7959_daily_bin468.fits scfile=/scratch/kocevski/200764/ft2_4FGL_J1510.8+7959_daily_bin468.fits outfile=/scratch/kocevski/200764/cmap_HighResolution_360633601_360892801_4FGL_J1510.8+7959_daily_bin468.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.31
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/200764/ft1_filtered_4FGL_J1510.8+7959_daily_bin468.fits', '/scratch/kocevski/200764/ft2_4FGL_J1510.8+7959_daily_bin468.fits', expMap='/scratch/kocevski/200764/expmap_360633601_360892801_4FGL_J1510.8+7959_daily_bin468.fits', expCube='/scratch/kocevski/200764/ltcube_360633601_360892801_4FGL_J1510.8+7959_daily_bin468.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/200764/Model_4FGL_J1510.8+7959_daily_bin468.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  1.000e-04  1.000e+04 ( 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/200764/ft1_filtered_4FGL_J1510.8+7959_daily_bin468.fits
Spacecraft file(s): /scratch/kocevski/200764/ft2_4FGL_J1510.8+7959_daily_bin468.fits
Exposure map: /scratch/kocevski/200764/expmap_360633601_360892801_4FGL_J1510.8+7959_daily_bin468.fits
Exposure cube: /scratch/kocevski/200764/ltcube_360633601_360892801_4FGL_J1510.8+7959_daily_bin468.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/200764/Model_4FGL_J1510.8+7959_daily_bin468.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) = 9035.27467867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.488       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .98244       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .48282E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .37378       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.089       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.969       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.209       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15842E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.056       1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.277       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7928       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .79344       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78630       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0622       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9035.271     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2939 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.489        8.5282        .96659E-07    .85782E-05
   2  Prefactor     .10000E-03    4.6368       -.12204E-06** at limit **
   3  norm          .98099        3.2433        .19230E-05    .20165E-04
   4  Prefactor     .10000E-03    7.6400       -.84437E-06** at limit **
   5  Prefactor     .10001E-03    5.6870       -.18683E-05** at limit **
   6  Prefactor     .10000E-03    30.109       -.63792E-06** at limit **
   7  norm          .37327        2.2896        .25742E-05   -.25590E-04
   8  Prefactor     .10000E-03    47.627        .60238E-06** at limit **
   9  Prefactor     20.088        14.694       -.35742E-07    .76537E-04
  10  Prefactor     10.974        23.301        .30839E-06    .75753E-05
  11  Prefactor     .10000E-03    9.7605        .35774E-06** at limit **
  12  Prefactor     18.205        9.6904        .84875E-07    .13296E-04
  13  Prefactor     .10000E-03    53.232       -.15533E-07** at limit **
  14  Prefactor     .10000E-03    42.622        .37618E-06** at limit **
  15  Prefactor     .10001E-03    67.321       -.25123E-05** at limit **
  16  Prefactor     30.037        57.530       -.33885E-06   -.59165E-04
  17  Prefactor     33.278        43.622        .15514E-06   -.11557E-05
  18  norm          .10000E-03    13.327        .22619E-06** at limit **
  19  Prefactor     .10000E-03    49.545        .46647E-06** at limit **
  20  Prefactor     3.7941        2.5102        .35687E-07    .92194E-05
  21  Prefactor     .10000E-03    10.460       -.39044E-06** at limit **
  22  Prefactor     .10000E-03    45.336        .74263E-06** at limit **
  23  norm          .79353        .47768        .15037E-07    .67739E-04
  24  Normalizat    .78605        .15227       -.33197E-06    .14322E-03
  25  Prefactor     1.0623        .98513E-01   -.32952E-06    .21148E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4885
  Prefactor  = 0.0001
  norm       = 0.980989
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  norm       = 0.373268
  Prefactor  = 0.000100001
  Prefactor  = 20.0883
  Prefactor  = 10.9737
  Prefactor  = 0.0001
  Prefactor  = 18.2047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 30.037
  Prefactor  = 33.2776
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.79414
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.793529
  Normalizat = 0.786047
  Prefactor  = 1.06229
 **********
 **   18 **HESSE 
 **********

 FCN=   9035.271     FROM HESSE     STATUS=OK           421 CALLS     3360 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.489        8.5350        .12372E-03   -1.5060    
   2  Prefactor     .10000E-03    4.6529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .98099        3.2440        .29676E-03   -1.5510    
   4  Prefactor     .10000E-03    7.8010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    28.230        .40971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .37327        2.2716        .27772E-03   -1.5586    
   8  Prefactor     .10000E-03    47.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.088        14.643        .89362E-04   -1.4811    
  10  Prefactor     10.974        23.288        .12096E-03   -1.5045    
  11  Prefactor     .10000E-03    9.7984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.205        9.7603        .93861E-04   -1.4854    
  13  Prefactor     .10000E-03    55.365        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    42.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    68.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.037        57.785        .73082E-04   -1.4611    
  17  Prefactor     33.278        43.612        .69464E-04   -1.4554    
  18  norm          .10000E-03    13.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    49.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.7941        2.5008        .11667E-03   -1.5318    
  21  Prefactor     .10000E-03    10.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    45.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .79353        .47212        .49062E-04   -1.5530    
  24  Normalizat    .78605        .16976        .30243E-03   -1.0059    
  25  Prefactor     1.0623        .11103        .17987E-03   -.90681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67247e-10
Minuit parameter uncertainties:
  1  8.53601
  2  1.26624e-05
  3  3.24459
  4  9.66184e-05
  5  0.000858847
  6  0.000371548
  7  1.84148
  8  0.000331393
  9  14.646
  10  23.3074
  11  8.54405e-05
  12  9.76116
  13  0.000151495
  14  0.00029012
  15  0.00117634
  16  57.8934
  17  43.6536
  18  8.43078e-05
  19  0.000310328
  20  2.5009
  21  0.000124084
  22  0.000342623
  23  0.472124
  24  0.169874
  25  0.111051
Done.

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

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  3.328e+01  4.365e+01  1.000e-04  1.000e+04 ( 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:  1.062e+00  1.111e-01  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:  7.860e-01  1.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.04
Ra Dec: 227.705 79.991
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.46e-08 +/- 1.92e-08
Energy Flux (Fixed Index): 6.35e-06 +/- 8.33e-06

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

Saving results to:
/scratch/kocevski/200764/likelihoodResults_360633601_360892801_4FGL_J1510.8+7959_daily_bin468.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) = 9035.21966159
delta logL = 0.0517471114799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9035.21822161
delta logL = 0.0531870824107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.015       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9534       1.0000          .0000       10.000    
     3 'Normalizat'    .78919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0610       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=   9035.218     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      265 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.139        1643.3        .14619E-02   -.66877E-06
   2  Index         1.9560        3.2592        .26064        .50407E-04
   3  Normalizat    .78904        .49948E-01    .68232E-01    .30439E-04
   4  Prefactor     1.0608        .29731E-01    .39304E-01   -.36334E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.1385
  Index      = 1.95597
  Normalizat = 0.789035
  Prefactor  = 1.06083
 **********
 **   18 **HESSE 
 **********

 FCN=   9035.218     FROM HESSE     STATUS=OK            31 CALLS      296 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.139        70.879        .58478E-04   -1.4334    
   2  Index         1.9560        .77329        .92159E-02   -.65455    
   3  Normalizat    .78904        .15809        .30190E-03   -1.0048    
   4  Prefactor     1.0608        .10832        .17998E-03   -.90728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64672e-09
Minuit parameter uncertainties:
  1  71.006
  2  0.778269
  3  0.158187
  4  0.108341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200764': 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) = 9035.21819906
delta logL = 0.0532096415754

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  4.714e+01  7.101e+01  1.000e-04  1.000e+04 ( 1.000e-14)
343        Index:  1.956e+00  7.783e-01  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:  1.061e+00  1.083e-01  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:  7.890e-01  1.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 227.705 79.991
Photon Index (Free Index): 1.96 +/- 0.78
Photon Flux (Free Index): 1.25e-08 +/- 1.74e-08
Energy Flux (Free Index): 9.68e-06 +/- 1.85e-05

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/200764/cmap_HighResolution_360633601_360892801_4FGL_J1510.8+7959_daily_bin468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', comment='SUCCESS', photon_flux='1.46e-08', energy_flux2='9.68e-06', photon_flux_error='1.92e-08', dlogl='5.32e-02', energy_flux='6.35e-06', photon_flux2='1.25e-08', job_status='DONE', time_completed='2021-09-11 08:42:45.491582', photon_index_error2='0.78', photon_index2='1.96', ts='1.04', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='6.67e-08', energy_flux_error2='1.85e-05', EG='0.79', time_epoch_completed='1631374965.49', return_code='0', job_id='200764', GAL2='1.06', EG2='0.79', return_code2='0', energy_flux_error='8.33e-06', photon_flux_error2='1.74e-08', ts2='1.15', photon_index='2.22' WHERE bin_id='468' AND source_name='4FGL J1510.8+7959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 08:42:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 200764: <4FGL_J1510.8+7959_daily_bin468> in cluster <slac> Done

Job <4FGL_J1510.8+7959_daily_bin468> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 08:27:10 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 08:27:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 08:27:11 2021
Terminated at Sat Sep 11 08:42:46 2021
Results reported at Sat Sep 11 08:42:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.8+7959_daily_bin468 227.705 79.991 360633601 360892801 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 :                                   767.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

