/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 103 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1510.1+5702_daily_bin54
RA = 227.542, Dec = 57.0398
tmin = 253324801, tmax = 253584001
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='148544', job_status='RUN', time_executed='2021-09-11 05:27:52.587060', time_epoch_executed='1631363272.59' WHERE source_name='4FGL J1510.1+5702' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/148544

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/148544/ft1_4FGL_J1510.1+5702_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/148544/ft2_4FGL_J1510.1+5702_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/148544/ft1_4FGL_J1510.1+5702_daily_bin54.fits outfile=/scratch/kocevski/148544/ft1_filteredMKT_4FGL_J1510.1+5702_daily_bin54.fits ra=227.542 dec=57.0398 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.45
user 1.23
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/148544/ft2_4FGL_J1510.1+5702_daily_bin54.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/148544/ft2_4FGL_J1510.1+5702_daily_bin54.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/148544/ft1_filteredMKT_4FGL_J1510.1+5702_daily_bin54.fits evtable="EVENTS" outfile="/scratch/kocevski/148544/ft1_filtered_4FGL_J1510.1+5702_daily_bin54.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.30
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/148544/ft1_filtered_4FGL_J1510.1+5702_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/148544/ft2_4FGL_J1510.1+5702_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/148544/ltcube_253324801_253584001_4FGL_J1510.1+5702_daily_bin54.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/148544/ft2_4FGL_J1510.1+5702_daily_bin54.fits
.....................!
real 12.80
user 12.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/148544/ft1_filtered_4FGL_J1510.1+5702_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/148544/ft2_4FGL_J1510.1+5702_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/148544/ltcube_253324801_253584001_4FGL_J1510.1+5702_daily_bin54.fits outfile=/scratch/kocevski/148544/expmap_253324801_253584001_4FGL_J1510.1+5702_daily_bin54.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/148544/ltcube_253324801_253584001_4FGL_J1510.1+5702_daily_bin54.fits
.....................!
real 189.25
user 184.44
sys 4.48

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 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1510.1+5702 @ 227.542 57.0398

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/148544/ft1_filtered_4FGL_J1510.1+5702_daily_bin54.fits scfile=/scratch/kocevski/148544/ft2_4FGL_J1510.1+5702_daily_bin54.fits outfile=/scratch/kocevski/148544/cmap_253324801_253584001_4FGL_J1510.1+5702_daily_bin54.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.542 yref=57.0398 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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/148544/ft1_filtered_4FGL_J1510.1+5702_daily_bin54.fits scfile=/scratch/kocevski/148544/ft2_4FGL_J1510.1+5702_daily_bin54.fits outfile=/scratch/kocevski/148544/cmap_HighResolution_253324801_253584001_4FGL_J1510.1+5702_daily_bin54.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.542 yref=57.0398 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.35
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/148544/ft1_filtered_4FGL_J1510.1+5702_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/148544/ft2_4FGL_J1510.1+5702_daily_bin54.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/148544/Model_4FGL_J1510.1+5702_daily_bin54.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/148544/ft1_filtered_4FGL_J1510.1+5702_daily_bin54.fits.....................!
real 37.44
user 36.11
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/148544/ft1_filtered_4FGL_J1510.1+5702_daily_bin54.fits', '/scratch/kocevski/148544/ft2_4FGL_J1510.1+5702_daily_bin54.fits', expMap='/scratch/kocevski/148544/expmap_253324801_253584001_4FGL_J1510.1+5702_daily_bin54.fits', expCube='/scratch/kocevski/148544/ltcube_253324801_253584001_4FGL_J1510.1+5702_daily_bin54.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/148544/Model_4FGL_J1510.1+5702_daily_bin54.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1510.1+5702'

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  1.597e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
345        Index:  2.882e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  4.831e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/148544/ft1_filtered_4FGL_J1510.1+5702_daily_bin54.fits
Spacecraft file(s): /scratch/kocevski/148544/ft2_4FGL_J1510.1+5702_daily_bin54.fits
Exposure map: /scratch/kocevski/148544/expmap_253324801_253584001_4FGL_J1510.1+5702_daily_bin54.fits
Exposure cube: /scratch/kocevski/148544/ltcube_253324801_253584001_4FGL_J1510.1+5702_daily_bin54.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/148544/Model_4FGL_J1510.1+5702_daily_bin54.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) = 3940.19923933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8040       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8150       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    94.888       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.540       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.945       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6177       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10923E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .46354       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.927       1.0000         .10000E-03   10000.    
    21 'Prefactor '    50.321       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    293.07       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.597       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0054       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .78556       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3940.187     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     5058 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8638        218.48        .14379E-03    .14012E-04
   2  norm          .10000E-03    31.022        .18559E-05** at limit **
   3  norm          2.8138        5.6571       -.24273E-05   -.74320E-03
   4  Prefactor     .10000E-03    33.446        .10376E-04** at limit **
   5  Prefactor     94.718        834.30       -.17503E-03   -.27818E-05
   6  Prefactor     24.548        57.727        .86830E-05    .31383E-04
   7  Prefactor     10.936        67.371       -.92728E-05   -.13553E-04
   8  Prefactor     .10000E-03    3.7342        .98093E-07** at limit **
   9  Prefactor     1.6175        3.8511        .26359E-06    .21530E-03
  10  Prefactor     .10134E-03    16.895       -.89723E-06** at limit **
  11  Prefactor     .10000E-03    67.800       -.41073E-04** at limit **
  12  Prefactor     .10000E-03    98.696        .54009E-04** at limit **
  13  Prefactor     .10000E-03    13.879       -.47180E-05** at limit **
  14  Prefactor     .10000E-03    12.068        .33224E-05** at limit **
  15  Prefactor     .10000E-03    9.9186       -.19872E-05** at limit **
  16  Prefactor     .10000E-03    27.593       -.12802E-04** at limit **
  17  norm          .46349        1.4365        .20719E-06   -.31816E-03
  18  Prefactor     .10000E-03    4.3955        .43577E-08** at limit **
  19  Prefactor     .10000E-03    6.9260        .16547E-06** at limit **
  20  Prefactor     21.928        12.830        .27215E-06    .15092E-04
  21  Prefactor     50.322        25.883       -.77058E-06   -.47987E-04
  22  Prefactor     .10000E-03    17.669        .43717E-05** at limit **
  23  norm          .10000E-03    3.3281       -.11919E-05** at limit **
  24  Prefactor     293.15        157.66        .42245E-04    .15922E-04
  25  Prefactor     .10000E-03    12.200        .39777E-06** at limit **
  26  norm          .10000E-03    4.9046       -.11247E-06** at limit **
  27  Prefactor     13.600        53.667       -.57735E-06   -.16616E-04
  28  Prefactor     .10000E-03    39.706        .82371E-05** at limit **
  29  Prefactor     .10000E-03    2.5491        .10032E-07** at limit **
  30  Prefactor     .10000E-03    9.3984        .13551E-05** at limit **
  31  Normalizat    1.0053        .20888       -.49483E-05    .19391E-03
  32  Prefactor     .78565        .20574       -.31891E-06   -.97712E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.8638
  norm       = 0.0001
  norm       = 2.81377
  Prefactor  = 0.0001
  Prefactor  = 94.7176
  Prefactor  = 24.5476
  Prefactor  = 10.9362
  Prefactor  = 0.0001
  Prefactor  = 1.61748
  Prefactor  = 0.000101336
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.463487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9285
  Prefactor  = 50.3221
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 293.15
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.5999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00528
  Prefactor  = 0.785645
 **********
 **   18 **HESSE 
 **********

 FCN=   3940.187     FROM HESSE     STATUS=OK           649 CALLS     5707 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8638        215.76        .20696E-03   -1.5315    
   2  norm          .10000E-03    31.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8138        5.6157        .19167E-03   -1.5372    
   4  Prefactor     .10000E-03    33.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     94.718        841.53        .20630E-03   -1.3758    
   6  Prefactor     24.548        57.324        .80862E-04   -1.4717    
   7  Prefactor     10.936        67.596        .12110E-03   -1.5046    
   8  Prefactor     .10000E-03    3.7406        .11843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.6175        3.7066        .16406E-03   -1.5454    
  10  Prefactor     .10134E-03    220.31        .48647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    67.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    99.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.9227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .46349        1.3982        .12616E-03   -1.5572    
  18  Prefactor     .10000E-03    4.3978        .12848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.0386        .16124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.928        12.940        .85538E-04   -1.4771    
  21  Prefactor     50.322        25.902        .56533E-04   -1.4288    
  22  Prefactor     .10000E-03    17.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.4096        .22344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     293.15        157.50        .11858E-03   -1.2267    
  25  Prefactor     .10000E-03    12.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.9327        .13567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     13.600        53.652        .10862E-03   -1.4970    
  28  Prefactor     .10000E-03    39.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.5551        .97870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    9.5699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0053        .24765        .21922E-03   -.92854    
  32  Prefactor     .78565        .24264        .26071E-03   -1.0026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.27875e-09
Minuit parameter uncertainties:
  1  57.9669
  2  2.22594e-05
  3  5.61675
  4  3.70455e-05
  5  575.813
  6  57.4529
  7  54.4691
  8  1.74331e-05
  9  3.70714
  10  0.0344343
  11  0.000538362
  12  0.000244361
  13  1.32479e-05
  14  4.43276e-05
  15  8.73619e-06
  16  0.000317546
  17  1.39825
  18  5.23096e-06
  19  6.92234e-05
  20  12.9417
  21  25.9077
  22  4.02905e-06
  23  0.000219825
  24  157.732
  25  4.8863e-05
  26  1.25242e-06
  27  53.8429
  28  4.62531e-05
  29  7.25677e-06
  30  7.57875e-06
  31  0.247934
  32  0.24297
Done.

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

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  2.193e+01  1.294e+01  1.000e-04  1.000e+04 ( 1.000e-12)
345        Index:  2.882e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  4.831e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  7.856e-01  2.430e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.005e+00  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.52
Ra Dec: 227.542 57.040
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 6.44e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 1.37e-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) = 3939.74439145
delta logL = 0.44222528474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3939.74280243
delta logL = 0.443814312976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.132       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6484       1.0000          .0000       10.000    
     3 'Normalizat'    .96786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81592       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3939.743     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      235 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.149        127.14        .28752E-02    .10298E-03
   2  Index         3.6476        6.7530        .12365        .70064E-04
   3  Normalizat    .96771        .89072E-01    .45763E-01    .55045E-05
   4  Prefactor     .81604        .93996E-01    .43924E-01    .95185E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1494
  Index      = 3.64755
  Normalizat = 0.967708
  Prefactor  = 0.816037
 **********
 **   18 **HESSE 
 **********

 FCN=   3939.743     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.149        15.260        .10828E-03   -1.5011    
   2  Index         3.6476        1.0602        .50600E-02   -.27390    
   3  Normalizat    .96771        .23334        .22277E-03   -.94120    
   4  Prefactor     .81604        .24424        .25639E-03   -.99140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.17497e-12
Minuit parameter uncertainties:
  1  15.2646
  2  1.069
  3  0.233587
  4  0.244562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/148544': 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) = 3939.74280136
delta logL = 0.443815381803

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  1.215e+01  1.526e+01  1.000e-04  1.000e+04 ( 1.000e-12)
345        Index:  3.648e+00  1.069e+00  0.000e+00  1.000e+01 (-1.000e+00)
346        Scale:  4.831e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  8.160e-01  2.446e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.677e-01  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.52
Ra Dec: 227.542 57.040
Photon Index (Free Index): 3.65 +/- 1.07
Photon Flux (Free Index): 1.44e-07 +/- 7.89e-08
Energy Flux (Free Index): 2.31e-05 +/- 1.25e-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/148544/cmap_HighResolution_253324801_253584001_4FGL_J1510.1+5702_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='2.31e-05', photon_flux_error='6.44e-08', dlogl='4.44e-01', energy_flux='2.32e-05', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-09-11 05:39:55.170941', photon_index_error2='1.07', photon_index2='3.65', ts='4.52', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='1.01', time_epoch_completed='1631363995.17', return_code='0', job_id='148544', GAL2='0.82', EG2='0.97', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='7.89e-08', ts2='5.52', photon_index='2.88' WHERE bin_id='54' AND source_name='4FGL J1510.1+5702' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 05:39:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 148544: <4FGL_J1510.1+5702_daily_bin54> in cluster <slac> Done

Job <4FGL_J1510.1+5702_daily_bin54> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 05:25:58 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 05:26:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 05:26:00 2021
Terminated at Sat Sep 11 05:39:56 2021
Results reported at Sat Sep 11 05:39:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.1+5702_daily_bin54 227.542 57.0398 253324801 253584001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1510.1+5702 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   719.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            838 sec.

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

