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


Performing analysis on: 4FGL_J1510.8+7959_daily_bin906
RA = 227.705, Dec = 79.991
tmin = 474163201, tmax = 474422401
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='206013', job_status='RUN', time_executed='2021-09-11 08:46:23.162684', time_epoch_executed='1631375183.16' WHERE source_name='4FGL J1510.8+7959' and cadence='daily' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/206013

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/206013/ft1_4FGL_J1510.8+7959_daily_bin906.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/206013/ft2_4FGL_J1510.8+7959_daily_bin906.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/206013/ft1_4FGL_J1510.8+7959_daily_bin906.fits outfile=/scratch/kocevski/206013/ft1_filteredMKT_4FGL_J1510.8+7959_daily_bin906.fits ra=227.705 dec=79.991 rad=12.0 tmin=474163201.0 tmax=474422401.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.55
user 5.28
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/206013/ft1_filtered_4FGL_J1510.8+7959_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/206013/ft2_4FGL_J1510.8+7959_daily_bin906.fits sctable="SC_DATA" expcube=/scratch/kocevski/206013/ltcube_474163201_474422401_4FGL_J1510.8+7959_daily_bin906.fits outfile=/scratch/kocevski/206013/expmap_474163201_474422401_4FGL_J1510.8+7959_daily_bin906.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/206013/ltcube_474163201_474422401_4FGL_J1510.8+7959_daily_bin906.fits
.....................!
real 192.15
user 187.32
sys 4.39

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/206013/ft1_filtered_4FGL_J1510.8+7959_daily_bin906.fits scfile=/scratch/kocevski/206013/ft2_4FGL_J1510.8+7959_daily_bin906.fits outfile=/scratch/kocevski/206013/cmap_474163201_474422401_4FGL_J1510.8+7959_daily_bin906.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/206013/ft1_filtered_4FGL_J1510.8+7959_daily_bin906.fits scfile=/scratch/kocevski/206013/ft2_4FGL_J1510.8+7959_daily_bin906.fits outfile=/scratch/kocevski/206013/cmap_HighResolution_474163201_474422401_4FGL_J1510.8+7959_daily_bin906.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.737       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.8319       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9915       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.6517       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    282.58       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.683       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.075       1.0000         .10000E-03   10000.    
    18 'norm      '    37.741       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.8182       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10779E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    127.34       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3744       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69044       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0142       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=   4434.248     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2847 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.738        13.392        .59408E-07   -.71442E-04
   2  Prefactor     .10000E-03    6.8917        .10484E-06** at limit **
   3  norm          3.8360        12.122        .37041E-05   -.49115E-03
   4  Prefactor     2.0030        84.659       -.10352E-04   -.19671E-03
   5  Prefactor     .10000E-03    13.615        .27910E-06** at limit **
   6  Prefactor     .10000E-03    83.597        .16107E-07** at limit **
   7  norm          .10000E-03    5.1546        .97347E-07** at limit **
   8  Prefactor     .10000E-03    34.883       -.11428E-06** at limit **
   9  Prefactor     8.6538        22.133        .19509E-06   -.25982E-04
  10  Prefactor     .10000E-03    83.741       -.68063E-07** at limit **
  11  Prefactor     282.54        197.63       -.20785E-06   -.18910E-04
  12  Prefactor     .10000E-03    8.4755       -.52054E-07** at limit **
  13  Prefactor     .10000E-03    30.124       -.21441E-06** at limit **
  14  Prefactor     .10000E-03    60.925        .44156E-06** at limit **
  15  Prefactor     .10000E-03    23.591        .67247E-07** at limit **
  16  Prefactor     30.679        46.061       -.60532E-07    .11496E-05
  17  Prefactor     39.072        44.125       -.31107E-07    .20561E-05
  18  norm          37.739        26.889       -.13476E-07    .60820E-04
  19  Prefactor     .10000E-03    82.213        .60394E-07** at limit **
  20  Prefactor     7.8145        4.4376       -.11312E-06    .14337E-02
  21  Prefactor     .10000E-03    98.850       -.68509E-06** at limit **
  22  Prefactor     127.35        78.887        .62011E-07    .75324E-05
  23  norm          1.3743        .97808       -.14826E-07    .80218E-03
  24  Normalizat    .69061        .22801        .23854E-06    .77692E-04
  25  Prefactor     1.0141        .13702       -.60662E-07    .27226E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7385
  Prefactor  = 0.0001
  norm       = 3.83602
  Prefactor  = 2.00304
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.65377
  Prefactor  = 0.0001
  Prefactor  = 282.537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 30.6786
  Prefactor  = 39.0723
  norm       = 37.739
  Prefactor  = 0.0001
  Prefactor  = 7.81453
  Prefactor  = 0.0001
  Prefactor  = 127.354
  norm       = 1.37428
  Normalizat = 0.690609
  Prefactor  = 1.01412
 **********
 **   18 **HESSE 
 **********

 FCN=   4434.248     FROM HESSE     STATUS=OK           415 CALLS     3262 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.738        13.435        .10433E-03   -1.4940    
   2  Prefactor     .10000E-03    6.8955        .17061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.8360        12.324        .19681E-03   -1.5316    
   4  Prefactor     2.0030        87.666        .29358E-03   -1.5425    
   5  Prefactor     .10000E-03    13.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    83.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.3493        .29487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.6538        22.120        .13628E-03   -1.5120    
  10  Prefactor     .10000E-03    83.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     282.54        198.83        .12069E-03   -1.2330    
  12  Prefactor     .10000E-03    8.4784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    61.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.679        46.074        .72333E-04   -1.4600    
  17  Prefactor     39.072        44.127        .64120E-04   -1.4457    
  18  norm          37.739        26.891        .65240E-04   -1.4479    
  19  Prefactor     .10000E-03    82.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.8145        4.4207        .99676E-04   -1.5149    
  21  Prefactor     .10000E-03    99.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     127.35        79.093        .35675E-04   -1.3446    
  23  norm          1.3743        .96544        .52868E-04   -1.5474    
  24  Normalizat    .69061        .25103        .34515E-03   -1.0426    
  25  Prefactor     1.0141        .15267        .17880E-03   -.92260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03629e-09
Minuit parameter uncertainties:
  1  13.4382
  2  7.14691e-05
  3  12.3326
  4  26.5437
  5  0.000201467
  6  8.83788e-06
  7  3.81455e-05
  8  3.45913e-05
  9  22.1408
  10  0.000232534
  11  199.313
  12  5.03773e-05
  13  4.96583e-05
  14  0.000420223
  15  0.000111932
  16  46.1272
  17  44.1635
  18  26.8993
  19  6.81442e-05
  20  4.42089
  21  3.89355e-05
  22  79.1591
  23  0.965446
  24  0.251451
  25  0.15274
Done.

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

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  3.907e+01  4.416e+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.014e+00  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:  6.906e-01  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.50
Ra Dec: 227.705 79.991
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.72e-08 +/- 1.94e-08
Energy Flux (Fixed Index): 7.45e-06 +/- 8.42e-06

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

Saving results to:
/scratch/kocevski/206013/likelihoodResults_474163201_474422401_4FGL_J1510.8+7959_daily_bin906.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) = 4433.41695805
delta logL = 0.830896775121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4433.23553067
delta logL = 1.01232415436

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    81.307       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2535       1.0000          .0000       10.000    
     3 'Normalizat'    .69688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0117       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=   4433.236     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      236 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.438        86.562        .22271E-03   -.28433E-04
   2  Index         1.2524        .57228        .98525E-02   -.53829E-05
   3  Normalizat    .69733        .23408        .34346E-03   -.66581E-03
   4  Prefactor     1.0113        .14589        .17895E-03   -.99184E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.4383
  Index      = 1.25236
  Normalizat = 0.697334
  Prefactor  = 1.0113
 **********
 **   18 **HESSE 
 **********

 FCN=   4433.236     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.438        87.157        .89086E-05   -1.3901    
   2  Index         1.2524        .57626        .39410E-03   -.84735    
   3  Normalizat    .69733        .23418        .68692E-04   -1.0400    
   4  Prefactor     1.0113        .14595        .35790E-04   -.92354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24665e-09
Minuit parameter uncertainties:
  1  87.2939
  2  0.57921
  3  0.234512
  4  0.146003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/206013': 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) = 4433.2355231
delta logL = 1.01233172479

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  8.144e+01  8.729e+01  1.000e-04  1.000e+04 ( 1.000e-14)
343        Index:  1.252e+00  5.792e-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.011e+00  1.460e-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:  6.973e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 227.705 79.991
Photon Index (Free Index): 1.25 +/- 0.58
Photon Flux (Free Index): 9.24e-09 +/- 1.05e-08
Energy Flux (Free Index): 6.57e-05 +/- 1.12e-04

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/206013/cmap_HighResolution_474163201_474422401_4FGL_J1510.8+7959_daily_bin906.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.69e-03', comment='SUCCESS', photon_flux='1.72e-08', energy_flux2='6.57e-05', photon_flux_error='1.94e-08', dlogl='1.01e+00', energy_flux='7.45e-06', photon_flux2='9.24e-09', job_status='DONE', time_completed='2021-09-11 08:57:23.547143', photon_index_error2='0.58', photon_index2='1.25', ts='2.50', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='8.76e-08', energy_flux_error2='1.12e-04', EG='0.69', time_epoch_completed='1631375843.55', return_code='0', job_id='206013', GAL2='1.01', EG2='0.70', return_code2='0', energy_flux_error='8.42e-06', photon_flux_error2='1.05e-08', ts2='4.52', photon_index='2.22' WHERE bin_id='906' AND source_name='4FGL J1510.8+7959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 08:57:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 206013: <4FGL_J1510.8+7959_daily_bin906> in cluster <slac> Done

Job <4FGL_J1510.8+7959_daily_bin906> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 08:46:10 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 08:46:12 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:46:12 2021
Terminated at Sat Sep 11 08:57:25 2021
Results reported at Sat Sep 11 08:57:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.8+7959_daily_bin906 227.705 79.991 474163201 474422401 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 :                                   645.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            675 sec.

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

