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


Performing analysis on: 4FGL_J1510.8+7959_daily_bin752
RA = 227.705, Dec = 79.991
tmin = 434246401, tmax = 434505601
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='204501', job_status='RUN', time_executed='2021-09-11 08:44:20.091170', time_epoch_executed='1631375060.09' WHERE source_name='4FGL J1510.8+7959' and cadence='daily' and bin_id='752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204501

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204501/ft1_4FGL_J1510.8+7959_daily_bin752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204501/ft2_4FGL_J1510.8+7959_daily_bin752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204501/ft1_4FGL_J1510.8+7959_daily_bin752.fits outfile=/scratch/kocevski/204501/ft1_filteredMKT_4FGL_J1510.8+7959_daily_bin752.fits ra=227.705 dec=79.991 rad=12.0 tmin=434246401.0 tmax=434505601.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 6.00
user 5.74
sys 0.24

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204501/ft1_filtered_4FGL_J1510.8+7959_daily_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/204501/ft2_4FGL_J1510.8+7959_daily_bin752.fits sctable="SC_DATA" expcube=/scratch/kocevski/204501/ltcube_434246401_434505601_4FGL_J1510.8+7959_daily_bin752.fits outfile=/scratch/kocevski/204501/expmap_434246401_434505601_4FGL_J1510.8+7959_daily_bin752.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/204501/ltcube_434246401_434505601_4FGL_J1510.8+7959_daily_bin752.fits
.....................!
real 191.96
user 187.10
sys 4.49

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/204501/ft1_filtered_4FGL_J1510.8+7959_daily_bin752.fits scfile=/scratch/kocevski/204501/ft2_4FGL_J1510.8+7959_daily_bin752.fits outfile=/scratch/kocevski/204501/cmap_434246401_434505601_4FGL_J1510.8+7959_daily_bin752.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204501/ft1_filtered_4FGL_J1510.8+7959_daily_bin752.fits scfile=/scratch/kocevski/204501/ft2_4FGL_J1510.8+7959_daily_bin752.fits outfile=/scratch/kocevski/204501/cmap_HighResolution_434246401_434505601_4FGL_J1510.8+7959_daily_bin752.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8403       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6515       1.0000         .10000E-03   10000.    
     8 'Prefactor '    72.083       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5090       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.504       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    66.212       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11678E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.350       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.754       1.0000         .10000E-03   10000.    
    22 'Prefactor '    42.868       1.0000         .10000E-03   10000.    
    23 'norm      '    1.5902       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0413       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90953       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=   6134.494     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2897 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5119        .21711E-07** at limit **
   2  Prefactor     .10000E-03    8.2262        .36298E-07** at limit **
   3  norm          .10000E-03    5.1771        .41129E-07** at limit **
   4  Prefactor     .10000E-03    8.7428        .38348E-07** at limit **
   5  Prefactor     .10000E-03    28.052        .23220E-05** at limit **
   6  Prefactor     1.7053        752.65        .54215E-04   -.42580E-05
   7  norm          2.6524        5.9380        .32160E-05   -.68037E-05
   8  Prefactor     72.052        61.773        .15687E-05    .20367E-04
   9  Prefactor     6.5103        17.998        .77431E-06   -.27940E-05
  10  Prefactor     .10000E-03    52.856        .13400E-05** at limit **
  11  Prefactor     .10000E-03    19.146       -.36859E-07** at limit **
  12  Prefactor     18.503        13.805       -.46133E-07   -.34755E-04
  13  Prefactor     .10000E-03    10.269       -.76820E-07** at limit **
  14  Prefactor     .10000E-03    66.256        .97612E-06** at limit **
  15  Prefactor     66.198        39.761        .63923E-06    .12489E-04
  16  Prefactor     .10000E-03    207.75       -.60005E-05** at limit **
  17  Prefactor     37.352        63.839        .17164E-06   -.40699E-06
  18  norm          .10000E-03    6.1168        .55955E-08** at limit **
  19  Prefactor     .10000E-03    46.766       -.18272E-05** at limit **
  20  Prefactor     .10000E-03    1.1648        .97904E-08** at limit **
  21  Prefactor     14.755        22.382        .37619E-06    .13883E-05
  22  Prefactor     42.899        51.667       -.19189E-05   -.37414E-04
  23  norm          1.5902        .85311        .42873E-07   -.12279E-04
  24  Normalizat    1.0415        .20297       -.10403E-06   -.99488E-04
  25  Prefactor     .90946        .13179       -.10969E-05   -.92934E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.70529
  norm       = 2.65239
  Prefactor  = 72.0518
  Prefactor  = 6.51033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.5035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.1978
  Prefactor  = 0.0001
  Prefactor  = 37.3516
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7547
  Prefactor  = 42.8991
  norm       = 1.59018
  Normalizat = 1.04147
  Prefactor  = 0.909459
 **********
 **   18 **HESSE 
 **********

 FCN=   6134.494     FROM HESSE     STATUS=OK           421 CALLS     3318 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5184        .17959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.2332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.2071        .17404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.7572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7053        753.42        .30750E-02   -1.5447    
   7  norm          2.6524        5.9448        .12518E-02   -1.5382    
   8  Prefactor     72.052        61.864        .23643E-03   -1.4008    
   9  Prefactor     6.5103        18.002        .78652E-03   -1.5198    
  10  Prefactor     .10000E-03    52.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.503        13.956        .93107E-04   -1.4847    
  13  Prefactor     .10000E-03    10.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    66.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     66.198        40.302        .49323E-04   -1.4079    
  16  Prefactor     .10000E-03    210.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     37.352        63.856        .65580E-04   -1.4485    
  18  norm          .10000E-03    6.1203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    46.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.1718        .82422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.755        22.359        .10427E-03   -1.4940    
  22  Prefactor     42.899        51.784        .61229E-04   -1.4397    
  23  norm          1.5902        .85261        .50320E-04   -1.5456    
  24  Normalizat    1.0415        .23689        .29208E-03   -.91654    
  25  Prefactor     .90946        .15260        .20905E-03   -.95811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98434e-10
Minuit parameter uncertainties:
  1  1.85277e-06
  2  9.89807e-08
  3  4.57896e-06
  4  6.41292e-06
  5  2.81964e-05
  6  72.6249
  7  5.94613
  8  61.9193
  9  18.0166
  10  0.00010449
  11  8.38986e-07
  12  13.9583
  13  9.08878e-06
  14  8.76813e-05
  15  40.3182
  16  0.000598353
  17  63.9729
  18  1.76524e-06
  19  0.0001174
  20  8.24131e-07
  21  22.3715
  22  51.8387
  23  0.852615
  24  0.237132
  25  0.152672
Done.

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

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  3.735e+01  6.397e+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.095e-01  1.527e-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.041e+00  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/204501/likelihoodResults_434246401_434505601_4FGL_J1510.8+7959_daily_bin752.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) = 6134.15710974
delta logL = 0.336470381259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6134.15608592
delta logL = 0.337494202951

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.352       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6159       1.0000          .0000       10.000    
     3 'Normalizat'    1.0493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90426       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=   6134.156     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      270 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.352        6718.2        .11488E-02   -.19052E-03
   2  Index         1.6159        5.0311        .28609       -.99495E-04
   3  Normalizat    1.0493        .10605        .65796E-01    .11136E-03
   4  Prefactor     .90422        .60006E-01    .45059E-01    .43010E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.3525
  Index      = 1.61586
  Normalizat = 1.04933
  Prefactor  = 0.904215
 **********
 **   18 **HESSE 
 **********

 FCN=   6134.156     FROM HESSE     STATUS=OK            31 CALLS      301 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.352        99.043        .45954E-04   -1.3958    
   2  Index         1.6159        .63253        .98239E-02   -.74344    
   3  Normalizat    1.0493        .21407        .29106E-03   -.91396    
   4  Prefactor     .90422        .14526        .20950E-03   -.95994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.15568e-10
Minuit parameter uncertainties:
  1  99.2581
  2  0.635688
  3  0.214243
  4  0.145322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204501': 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) = 6134.15608588
delta logL = 0.337494242865

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  7.635e+01  9.926e+01  1.000e-04  1.000e+04 ( 1.000e-14)
343        Index:  1.616e+00  6.357e-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.042e-01  1.453e-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.049e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 227.705 79.991
Photon Index (Free Index): 1.62 +/- 0.64
Photon Flux (Free Index): 1.19e-08 +/- 1.83e-08
Energy Flux (Free Index): 2.55e-05 +/- 4.63e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/204501/cmap_HighResolution_434246401_434505601_4FGL_J1510.8+7959_daily_bin752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.57e-03', comment='SUCCESS', energy_flux2='2.55e-05', dlogl='3.37e-01', photon_flux2='1.19e-08', job_status='DONE', time_completed='2021-09-11 08:56:51.708970', photon_index_error2='0.64', photon_index2='1.62', ts='0.53', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='9.92e-08', energy_flux_error2='4.63e-05', EG='1.04', time_epoch_completed='1631375811.71', return_code='0', job_id='204501', GAL2='0.90', EG2='1.05', return_code2='0', photon_flux_error2='1.83e-08', ts2='1.20', photon_index='2.22' WHERE bin_id='752' AND source_name='4FGL J1510.8+7959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 08:56:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 204501: <4FGL_J1510.8+7959_daily_bin752> in cluster <slac> Done

Job <4FGL_J1510.8+7959_daily_bin752> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 08:40:59 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 08:41:01 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:41:01 2021
Terminated at Sat Sep 11 08:56:52 2021
Results reported at Sat Sep 11 08:56:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.8+7959_daily_bin752 227.705 79.991 434246401 434505601 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 :                                   742.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            953 sec.

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

