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


Performing analysis on: 4FGL_J1510.8+7959_daily_bin1158
RA = 227.705, Dec = 79.991
tmin = 539481601, tmax = 539740801
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='207705', job_status='RUN', time_executed='2021-09-11 08:51:53.779248', time_epoch_executed='1631375513.78' WHERE source_name='4FGL J1510.8+7959' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207705

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207705/ft1_4FGL_J1510.8+7959_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207705/ft2_4FGL_J1510.8+7959_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207705/ft1_4FGL_J1510.8+7959_daily_bin1158.fits outfile=/scratch/kocevski/207705/ft1_filteredMKT_4FGL_J1510.8+7959_daily_bin1158.fits ra=227.705 dec=79.991 rad=12.0 tmin=539481601.0 tmax=539740801.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.22
user 4.89
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207705/ft1_filtered_4FGL_J1510.8+7959_daily_bin1158.fits" evtable="EVENTS" scfile=/scratch/kocevski/207705/ft2_4FGL_J1510.8+7959_daily_bin1158.fits sctable="SC_DATA" outfile=/scratch/kocevski/207705/ltcube_539481601_539740801_4FGL_J1510.8+7959_daily_bin1158.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/207705/ft2_4FGL_J1510.8+7959_daily_bin1158.fits
.....................!
real 11.66
user 11.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207705/ft1_filtered_4FGL_J1510.8+7959_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/207705/ft2_4FGL_J1510.8+7959_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/207705/ltcube_539481601_539740801_4FGL_J1510.8+7959_daily_bin1158.fits outfile=/scratch/kocevski/207705/expmap_539481601_539740801_4FGL_J1510.8+7959_daily_bin1158.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/207705/ltcube_539481601_539740801_4FGL_J1510.8+7959_daily_bin1158.fits
.....................!
real 191.64
user 186.84
sys 4.37

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/207705/ft1_filtered_4FGL_J1510.8+7959_daily_bin1158.fits scfile=/scratch/kocevski/207705/ft2_4FGL_J1510.8+7959_daily_bin1158.fits outfile=/scratch/kocevski/207705/cmap_539481601_539740801_4FGL_J1510.8+7959_daily_bin1158.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207705/ft1_filtered_4FGL_J1510.8+7959_daily_bin1158.fits scfile=/scratch/kocevski/207705/ft2_4FGL_J1510.8+7959_daily_bin1158.fits outfile=/scratch/kocevski/207705/cmap_HighResolution_539481601_539740801_4FGL_J1510.8+7959_daily_bin1158.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.58
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.2923       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .35380E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.027       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.941       1.0000         .10000E-03   10000.    
     7 'norm      '    .10977E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1240       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.339       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.084       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2575       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10534E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.777       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.355       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0190       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.1542       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0620       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0316       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=   6940.603     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2924 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7679       -.14915E-07** at limit **
   2  Prefactor     .10000E-03    10.303       -.28849E-06** at limit **
   3  norm          5.2883        4.8086        .41241E-05   -.11607E-02
   4  Prefactor     .10000E-03    7.7639       -.62939E-05** at limit **
   5  Prefactor     23.023        14.518        .55792E-06    .90484E-03
   6  Prefactor     22.912        56.495       -.55605E-05   -.66921E-04
   7  norm          .10000E-03    2.7641       -.77639E-07** at limit **
   8  Prefactor     .10000E-03    19.101        .10880E-06** at limit **
   9  Prefactor     6.1215        16.315        .12703E-06    .47730E-04
  10  Prefactor     .10000E-03    25.269        .32991E-06** at limit **
  11  Prefactor     36.340        31.084        .39571E-07    .55593E-05
  12  Prefactor     12.084        11.607        .13875E-06    .20113E-04
  13  Prefactor     2.2498        28.414       -.14121E-05   -.67577E-04
  14  Prefactor     .10000E-03    111.86       -.20336E-06** at limit **
  15  Prefactor     .10000E-03    22.571       -.48062E-06** at limit **
  16  Prefactor     .10000E-03    184.00        .19258E-05** at limit **
  17  Prefactor     28.747        47.353       -.35141E-05   -.87366E-04
  18  norm          .10000E-03    7.0019        .76423E-08** at limit **
  19  Prefactor     41.484        159.73        .34803E-04    .10427E-03
  20  Prefactor     2.0189        3.0610        .43953E-07   -.40888E-03
  21  Prefactor     .10000E-03    23.477        .57355E-07** at limit **
  22  Prefactor     .10000E-03    14.773       -.26805E-07** at limit **
  23  norm          1.1542        .73313        .87144E-08   -.19569E-03
  24  Normalizat    1.0620        .19139        .13772E-06    .35449E-03
  25  Prefactor     1.0316        .11645       -.40564E-06    .50046E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.28832
  Prefactor  = 0.0001
  Prefactor  = 23.0234
  Prefactor  = 22.9116
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.1215
  Prefactor  = 0.0001
  Prefactor  = 36.3401
  Prefactor  = 12.0845
  Prefactor  = 2.24975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 28.7474
  norm       = 0.0001
  Prefactor  = 41.4842
  Prefactor  = 2.01887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.15416
  Normalizat = 1.06196
  Prefactor  = 1.03159
 **********
 **   18 **HESSE 
 **********

 FCN=   6940.603     FROM HESSE     STATUS=OK           419 CALLS     3343 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7724        .13536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.2883        5.1515        .87356E-03   -1.5248    
   4  Prefactor     .10000E-03    31.800        .40092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.023        14.353        .83473E-04   -1.4748    
   6  Prefactor     22.912        56.824        .83630E-04   -1.4750    
   7  norm          .10000E-03    2.8729        .26965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1215        16.298        .16223E-03   -1.5213    
  10  Prefactor     .10000E-03    25.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.340        31.129        .66482E-04   -1.4502    
  12  Prefactor     12.084        11.660        .11524E-03   -1.5013    
  13  Prefactor     2.2498        28.602        .27342E-03   -1.5408    
  14  Prefactor     .10000E-03    112.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    187.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.747        47.582        .74684E-04   -1.4635    
  18  norm          .10000E-03    7.0041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     41.484        165.54        .31167E-03   -1.4419    
  20  Prefactor     2.0189        3.0437        .16879E-03   -1.5424    
  21  Prefactor     .10000E-03    23.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1542        .71862        .54102E-04   -1.5493    
  24  Normalizat    1.0620        .21657        .29437E-03   -.90983    
  25  Prefactor     1.0316        .13170        .19422E-03   -.91684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86727e-09
Minuit parameter uncertainties:
  1  5.32249e-07
  2  2.56898e-05
  3  5.15188
  4  8.482e-06
  5  14.3548
  6  56.9588
  7  2.64378e-06
  8  2.79411e-05
  9  16.3094
  10  3.26176e-05
  11  31.1432
  12  11.662
  13  16.0526
  14  2.93509e-05
  15  5.01138e-05
  16  0.00115417
  17  47.6451
  18  7.5305e-06
  19  166.55
  20  3.04389
  21  1.63856e-06
  22  1.87821e-06
  23  0.718626
  24  0.216755
  25  0.131742
Done.

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

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  2.875e+01  4.765e+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.032e+00  1.317e-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.062e+00  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/207705/likelihoodResults_539481601_539740801_4FGL_J1510.8+7959_daily_bin1158.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) = 6940.59944773
delta logL = 0.00359314971047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6940.59769871
delta logL = 0.00534217054974

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.928       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0778       1.0000          .0000       10.000    
     3 'Normalizat'    1.0645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0307       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=   6940.598     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      261 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.926        61.100        .70912E-04    .87920E-04
   2  Index         2.0777        1.3433        .13374E-01    .40625E-04
   3  Normalizat    1.0645        .19949        .29404E-03   -.13304E-03
   4  Prefactor     1.0307        .12971        .19429E-03   -.65313E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.9262
  Index      = 2.07773
  Normalizat = 1.06453
  Prefactor  = 1.03072
 **********
 **   18 **HESSE 
 **********

 FCN=   6940.598     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.926        58.924        .14182E-04   -1.4577    
   2  Index         2.0777        1.2963        .53496E-03   -.62421    
   3  Normalizat    1.0645        .19935        .11762E-04   -.90899    
   4  Prefactor     1.0307        .12973        .38858E-04   -.91712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9483e-10
Minuit parameter uncertainties:
  1  59.0313
  2  1.31939
  3  0.199493
  4  0.129768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207705': 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) = 6940.59769871
delta logL = 0.0053421774428

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  3.193e+01  5.903e+01  1.000e-04  1.000e+04 ( 1.000e-14)
343        Index:  2.078e+00  1.319e+00  0.000e+00  1.000e+01 (-1.000e+00)
344        Scale:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.031e+00  1.298e-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.065e+00  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
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/207705/cmap_HighResolution_539481601_539740801_4FGL_J1510.8+7959_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-03', job_status='DONE', photon_flux_upper_limit='7.68e-08', time_completed='2021-09-11 09:06:40.682389', job_id='207705', GAL2='1.03', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631376400.68', return_code2='0', ts='0.59', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='5.34e-03', ts2='0.60', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1158' AND source_name='4FGL J1510.8+7959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 09:06:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 207705: <4FGL_J1510.8+7959_daily_bin1158> in cluster <slac> Done

Job <4FGL_J1510.8+7959_daily_bin1158> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 08:51:32 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 08:51:34 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:51:34 2021
Terminated at Sat Sep 11 09:06:41 2021
Results reported at Sat Sep 11 09:06:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.8+7959_daily_bin1158 227.705 79.991 539481601 539740801 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 :                                   864.35 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             345.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            909 sec.

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

