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


Performing analysis on: 4FGL_J1510.8+7959_daily_bin616
RA = 227.705, Dec = 79.991
tmin = 398995201, tmax = 399254401
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='200921', job_status='RUN', time_executed='2021-09-11 08:28:40.490062', time_epoch_executed='1631374120.49' WHERE source_name='4FGL J1510.8+7959' and cadence='daily' and bin_id='616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200921

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200921/ft1_4FGL_J1510.8+7959_daily_bin616.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200921/ft2_4FGL_J1510.8+7959_daily_bin616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200921/ft1_4FGL_J1510.8+7959_daily_bin616.fits outfile=/scratch/kocevski/200921/ft1_filteredMKT_4FGL_J1510.8+7959_daily_bin616.fits ra=227.705 dec=79.991 rad=12.0 tmin=398995201.0 tmax=399254401.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 5.49
user 5.19
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/200921/ft1_filtered_4FGL_J1510.8+7959_daily_bin616.fits" evtable="EVENTS" scfile=/scratch/kocevski/200921/ft2_4FGL_J1510.8+7959_daily_bin616.fits sctable="SC_DATA" outfile=/scratch/kocevski/200921/ltcube_398995201_399254401_4FGL_J1510.8+7959_daily_bin616.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/200921/ft2_4FGL_J1510.8+7959_daily_bin616.fits
.....................!
real 14.51
user 13.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200921/ft1_filtered_4FGL_J1510.8+7959_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/200921/ft2_4FGL_J1510.8+7959_daily_bin616.fits sctable="SC_DATA" expcube=/scratch/kocevski/200921/ltcube_398995201_399254401_4FGL_J1510.8+7959_daily_bin616.fits outfile=/scratch/kocevski/200921/expmap_398995201_399254401_4FGL_J1510.8+7959_daily_bin616.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/200921/ltcube_398995201_399254401_4FGL_J1510.8+7959_daily_bin616.fits
.....................!
real 199.10
user 186.97
sys 5.60

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/200921/ft1_filtered_4FGL_J1510.8+7959_daily_bin616.fits scfile=/scratch/kocevski/200921/ft2_4FGL_J1510.8+7959_daily_bin616.fits outfile=/scratch/kocevski/200921/cmap_398995201_399254401_4FGL_J1510.8+7959_daily_bin616.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/200921/ft1_filtered_4FGL_J1510.8+7959_daily_bin616.fits scfile=/scratch/kocevski/200921/ft2_4FGL_J1510.8+7959_daily_bin616.fits outfile=/scratch/kocevski/200921/cmap_HighResolution_398995201_399254401_4FGL_J1510.8+7959_daily_bin616.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.54
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1182       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.336       1.0000         .10000E-03   10000.    
     3 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.083       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.003       1.0000         .10000E-03   10000.    
     7 'norm      '    2.3116       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12137E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.289       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11778E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14280E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    92.732       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 '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.573       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .96342       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0537       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99609       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=   7313.623     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2876 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1193        11.402        .49601E-05    .80609E-04
   2  Prefactor     24.337        15.144       -.16536E-06   -.62130E-05
   3  norm          .10000E-03    3.4419       -.16665E-09** at limit **
   4  Prefactor     23.078        11.529       -.16240E-06    .22959E-04
   5  Prefactor     .10000E-03    9.7037       -.15543E-06** at limit **
   6  Prefactor     21.993        48.100       -.63241E-06   -.29539E-04
   7  norm          2.3131        3.1797        .32968E-06    .60146E-04
   8  Prefactor     .10000E-03    16.500       -.49868E-06** at limit **
   9  Prefactor     .10002E-03    7.3158       -.10226E-05** at limit **
  10  Prefactor     .10000E-03    19.935        .16599E-06** at limit **
  11  Prefactor     26.251        31.933        .16561E-05   -.45386E-04
  12  Prefactor     .10005E-03    6.9303       -.66116E-06** at limit **
  13  Prefactor     .10000E-03    13.539        .14536E-06** at limit **
  14  Prefactor     .10000E-03    29.029       -.38087E-06** at limit **
  15  Prefactor     .10000E-03    18.118        .10646E-06** at limit **
  16  Prefactor     .10000E-03    87.454       -.99818E-06** at limit **
  17  Prefactor     92.727        60.113       -.45078E-06   -.12388E-04
  18  norm          .10000E-03    6.9826        .12442E-07** at limit **
  19  Prefactor     .10000E-03    54.750        .64328E-06** at limit **
  20  Prefactor     .10000E-03    1.0688        .32250E-07** at limit **
  21  Prefactor     11.577        34.856       -.13201E-05    .42373E-05
  22  Prefactor     .10000E-03    28.235       -.24383E-06** at limit **
  23  norm          .96401        .96154        .97078E-07    .60868E-04
  24  Normalizat    1.0534        .18418        .32472E-05    .71653E-04
  25  Prefactor     .99620        .11741       -.18149E-05    .36966E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11928
  Prefactor  = 24.3375
  norm       = 0.0001
  Prefactor  = 23.0781
  Prefactor  = 0.0001
  Prefactor  = 21.9927
  norm       = 2.31307
  Prefactor  = 0.000100001
  Prefactor  = 0.00010002
  Prefactor  = 0.000100001
  Prefactor  = 26.2512
  Prefactor  = 0.000100052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 92.7266
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.5767
  Prefactor  = 0.0001
  norm       = 0.964013
  Normalizat = 1.05338
  Prefactor  = 0.996201
 **********
 **   18 **HESSE 
 **********

 FCN=   7313.623     FROM HESSE     STATUS=OK           423 CALLS     3299 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1193        11.070        .44471E-03   -1.5496    
   2  Prefactor     24.337        15.138        .81200E-04   -1.4721    
   3  norm          .10000E-03    3.4614        .15393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.078        11.468        .83372E-04   -1.4747    
   5  Prefactor     .10000E-03    9.8489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.993        48.140        .85392E-04   -1.4770    
   7  norm          2.3131        3.1540        .17078E-03   -1.5404    
   8  Prefactor     .10000E-03    16.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    37.599        .43608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.251        32.103        .78131E-04   -1.4683    
  12  Prefactor     .10005E-03    49.896        .41056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    88.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     92.727        60.136        .41733E-04   -1.3779    
  18  norm          .10000E-03    6.9894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    54.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.0729        .86138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.577        34.148        .11776E-03   -1.5027    
  22  Prefactor     .10000E-03    28.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .96401        .91435        .73374E-04   -1.5512    
  24  Normalizat    1.0534        .19743        .28140E-03   -.91263    
  25  Prefactor     .99620        .12656        .19255E-03   -.92856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81723e-09
Minuit parameter uncertainties:
  1  7.04125
  2  15.14
  3  3.10303e-06
  4  11.4692
  5  3.40064e-05
  6  48.225
  7  3.15425
  8  0.000207796
  9  0.00173955
  10  0.000248241
  11  32.1242
  12  0.00322969
  13  1.45847e-05
  14  0.000219662
  15  2.68446e-05
  16  0.000730074
  17  60.1753
  18  2.2987e-06
  19  0.000458068
  20  9.64582e-07
  21  34.2061
  22  0.000138925
  23  0.914366
  24  0.197569
  25  0.126603
Done.

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

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  9.273e+01  6.018e+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:  9.962e-01  1.266e-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:  1.053e+00  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.45
Ra Dec: 227.705 79.991
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 4.07e-08 +/- 2.64e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.15e-05

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) = 7313.58164266
delta logL = 0.0418086322225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7313.57947044
delta logL = 0.0439808481533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.969       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3744       1.0000          .0000       10.000    
     3 'Normalizat'    1.0482       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99788       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7313.579     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      283 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     74.953        84.131        .46373E-04    .75705E-04
   2  Index         2.3744        .58746        .51066E-02    .40115E-04
   3  Normalizat    1.0484        .18398        .28197E-03   -.10001E-02
   4  Prefactor     .99794        .12251        .19240E-03   -.14292E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 74.9526
  Index      = 2.37436
  Normalizat = 1.04835
  Prefactor  = 0.997938
 **********
 **   18 **HESSE 
 **********

 FCN=   7313.579     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     74.953        77.007        .92746E-05   -1.3974    
   2  Index         2.3744        .53769        .20427E-03   -.55286    
   3  Normalizat    1.0484        .18397        .56394E-04   -.91428    
   4  Prefactor     .99794        .12254        .38480E-04   -.92798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30316e-09
Minuit parameter uncertainties:
  1  77.1099
  2  0.539132
  3  0.184086
  4  0.122574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200921': 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) = 7313.57946881
delta logL = 0.0439824806008

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  7.495e+01  7.711e+01  1.000e-04  1.000e+04 ( 1.000e-14)
343        Index:  2.374e+00  5.391e-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:  9.979e-01  1.226e-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:  1.048e+00  1.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.54
Ra Dec: 227.705 79.991
Photon Index (Free Index): 2.37 +/- 0.54
Photon Flux (Free Index): 4.54e-08 +/- 3.22e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.17e-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/200921/cmap_HighResolution_398995201_399254401_4FGL_J1510.8+7959_daily_bin616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.07e-08', energy_flux2='1.54e-05', photon_flux_error='2.64e-08', dlogl='4.40e-02', energy_flux='1.77e-05', photon_flux2='4.54e-08', job_status='DONE', time_completed='2021-09-11 08:42:53.046347', photon_index_error2='0.54', photon_index2='2.37', ts='5.45', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='1.05', time_epoch_completed='1631374973.05', return_code='0', job_id='200921', GAL2='1.00', EG2='1.05', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='3.22e-08', ts2='5.54', photon_index='2.22' WHERE bin_id='616' AND source_name='4FGL J1510.8+7959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 08:42:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 200921: <4FGL_J1510.8+7959_daily_bin616> in cluster <slac> Done

Job <4FGL_J1510.8+7959_daily_bin616> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 08:27:26 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 08:27:27 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:27 2021
Terminated at Sat Sep 11 08:42:53 2021
Results reported at Sat Sep 11 08:42:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.8+7959_daily_bin616 227.705 79.991 398995201 399254401 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 :                                   786.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            927 sec.

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

