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


Performing analysis on: 4FGL_J1510.1+5702_daily_bin1
RA = 227.542, Dec = 57.0398
tmin = 239587201, tmax = 239846401
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='147233', job_status='RUN', time_executed='2021-09-11 05:22:28.651185', time_epoch_executed='1631362948.65' WHERE source_name='4FGL J1510.1+5702' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147233

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147233/ft1_4FGL_J1510.1+5702_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147233/ft2_4FGL_J1510.1+5702_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147233/ft1_4FGL_J1510.1+5702_daily_bin1.fits outfile=/scratch/kocevski/147233/ft1_filteredMKT_4FGL_J1510.1+5702_daily_bin1.fits ra=227.542 dec=57.0398 rad=12.0 tmin=239587201.0 tmax=239846401.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.04
user 0.84
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147233/ft2_4FGL_J1510.1+5702_daily_bin1.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/147233/ft1_filteredMKT_4FGL_J1510.1+5702_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/147233/ft1_filtered_4FGL_J1510.1+5702_daily_bin1.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.40
user 0.25
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147233/ft1_filtered_4FGL_J1510.1+5702_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/147233/ft2_4FGL_J1510.1+5702_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/147233/ltcube_239587201_239846401_4FGL_J1510.1+5702_daily_bin1.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/147233/ft2_4FGL_J1510.1+5702_daily_bin1.fits
.....................!
real 9.31
user 9.00
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147233/ft1_filtered_4FGL_J1510.1+5702_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/147233/ft2_4FGL_J1510.1+5702_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/147233/ltcube_239587201_239846401_4FGL_J1510.1+5702_daily_bin1.fits outfile=/scratch/kocevski/147233/expmap_239587201_239846401_4FGL_J1510.1+5702_daily_bin1.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/147233/ltcube_239587201_239846401_4FGL_J1510.1+5702_daily_bin1.fits
.....................!
real 143.89
user 140.13
sys 3.52

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/147233/ft1_filtered_4FGL_J1510.1+5702_daily_bin1.fits scfile=/scratch/kocevski/147233/ft2_4FGL_J1510.1+5702_daily_bin1.fits outfile=/scratch/kocevski/147233/cmap_239587201_239846401_4FGL_J1510.1+5702_daily_bin1.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.44
user 0.30
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147233/ft1_filtered_4FGL_J1510.1+5702_daily_bin1.fits scfile=/scratch/kocevski/147233/ft2_4FGL_J1510.1+5702_daily_bin1.fits outfile=/scratch/kocevski/147233/cmap_HighResolution_239587201_239846401_4FGL_J1510.1+5702_daily_bin1.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.44
user 0.30
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/147233/ft1_filtered_4FGL_J1510.1+5702_daily_bin1.fits', '/scratch/kocevski/147233/ft2_4FGL_J1510.1+5702_daily_bin1.fits', expMap='/scratch/kocevski/147233/expmap_239587201_239846401_4FGL_J1510.1+5702_daily_bin1.fits', expCube='/scratch/kocevski/147233/ltcube_239587201_239846401_4FGL_J1510.1+5702_daily_bin1.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/147233/Model_4FGL_J1510.1+5702_daily_bin1.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/147233/ft1_filtered_4FGL_J1510.1+5702_daily_bin1.fits
Spacecraft file(s): /scratch/kocevski/147233/ft2_4FGL_J1510.1+5702_daily_bin1.fits
Exposure map: /scratch/kocevski/147233/expmap_239587201_239846401_4FGL_J1510.1+5702_daily_bin1.fits
Exposure cube: /scratch/kocevski/147233/ltcube_239587201_239846401_4FGL_J1510.1+5702_daily_bin1.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/147233/Model_4FGL_J1510.1+5702_daily_bin1.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) = 4246.23417984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4706       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .75075E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.814       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4005       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.076       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2028       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.396       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11654E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.908       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2295       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.768       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.8763       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.4153       1.0000         .10000E-03   10000.    
    27 'Prefactor '    30.434       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .59400E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    25.125       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .59914       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2261       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=   4246.221     FROM MIGRAD    STATUS=CONVERGED    840 CALLS     4304 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.084       -.28152E-06** at limit **
   2  norm          .10000E-03    38.376        .28378E-05** at limit **
   3  norm          1.4706        6.9675        .20132E-05    .32249E-06
   4  Prefactor     .10000E-03    59.644       -.12078E-05** at limit **
   5  Prefactor     .10000E-03    358.16        .54241E-05** at limit **
   6  Prefactor     .10000E-03    206.87       -.21460E-05** at limit **
   7  Prefactor     14.869        59.720       -.16712E-04   -.15669E-03
   8  Prefactor     .10000E-03    10.988        .11787E-05** at limit **
   9  Prefactor     3.4099        6.7392        .10368E-05   -.42037E-03
  10  Prefactor     .10000E-03    15.158       -.17593E-05** at limit **
  11  Prefactor     41.087        64.299       -.52694E-05   -.30245E-03
  12  Prefactor     2.0352        805.31        .83796E-04   -.56716E-04
  13  Prefactor     32.406        32.622        .22766E-06   -.22823E-04
  14  Prefactor     .10004E-03    31.799       -.12297E-04** at limit **
  15  Prefactor     14.905        20.782        .49826E-06   -.76882E-05
  16  Prefactor     .10000E-03    8.9021       -.85565E-06** at limit **
  17  norm          .10000E-03    .64631       -.40935E-06** at limit **
  18  Prefactor     .10000E-03    4.8759       -.44653E-08** at limit **
  19  Prefactor     3.2292        4.3051        .62689E-07   -.69734E-04
  20  Prefactor     11.766        11.191        .89765E-06   -.87349E-04
  21  Prefactor     .10000E-03    5.3791        .51911E-07** at limit **
  22  Prefactor     .10000E-03    16.143        .20058E-05** at limit **
  23  norm          2.8761        2.5387        .11572E-06   -.25240E-04
  24  Prefactor     .10000E-03    33.940       -.31258E-06** at limit **
  25  Prefactor     .10000E-03    8.7755        .18683E-05** at limit **
  26  norm          1.4198        8.2870        .15917E-04   -.28206E-03
  27  Prefactor     30.441        42.149       -.41475E-05   -.20746E-04
  28  Prefactor     .10000E-03    24.165       -.35965E-06** at limit **
  29  Prefactor     .10003E-03    3.7250       -.12419E-05** at limit **
  30  Prefactor     25.123        11.477       -.11168E-06   -.29572E-04
  31  Normalizat    .59930        .20073       -.33814E-05   -.42199E-03
  32  Prefactor     1.2261        .20690       -.96739E-06   -.44701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.47061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 14.8688
  Prefactor  = 0.000100001
  Prefactor  = 3.40986
  Prefactor  = 0.0001
  Prefactor  = 41.0873
  Prefactor  = 2.03525
  Prefactor  = 32.4061
  Prefactor  = 0.000100045
  Prefactor  = 14.9049
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.22924
  Prefactor  = 11.7658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.87613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.41984
  Prefactor  = 30.4411
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 25.1231
  Normalizat = 0.599298
  Prefactor  = 1.22609
 **********
 **   18 **HESSE 
 **********

 FCN=   4246.221     FROM HESSE     STATUS=OK           651 CALLS     4955 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    38.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4706        6.7669        .30925E-03   -1.5465    
   4  Prefactor     .10000E-03    59.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    358.12        .20940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    208.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.869        60.670        .10406E-03   -1.4937    
   8  Prefactor     .10000E-03    11.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4099        6.5297        .14846E-03   -1.5339    
  10  Prefactor     .10000E-03    15.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     41.087        63.394        .62545E-04   -1.4425    
  12  Prefactor     2.0352        838.50        .27720E-02   -1.5423    
  13  Prefactor     32.406        32.621        .70400E-04   -1.4569    
  14  Prefactor     .10004E-03    33.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.905        20.784        .10373E-03   -1.4936    
  16  Prefactor     .10000E-03    8.9252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .65428        .51152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.8820        .14048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.2292        4.2963        .15163E-03   -1.5349    
  20  Prefactor     11.766        11.221        .58389E-03   -1.5022    
  21  Prefactor     .10000E-03    5.3834        .14760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.8761        2.5409        .94375E-04   -1.5369    
  24  Prefactor     .10000E-03    33.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.9499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.4198        8.4483        .17414E-02   -1.5470    
  27  Prefactor     30.441        42.245        .72628E-04   -1.4604    
  28  Prefactor     .10000E-03    24.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10003E-03    22.412        .24037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     25.123        11.481        .79918E-04   -1.4705    
  31  Normalizat    .59930        .24046        .27363E-03   -1.0801    
  32  Prefactor     1.2261        .25037        .21914E-03   -.85532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50867e-09
Minuit parameter uncertainties:
  1  1.16561e-05
  2  0.000105534
  3  6.31018
  4  0.00013703
  5  0.000540262
  6  0.00170459
  7  60.1751
  8  0.000191091
  9  6.5311
  10  6.89451e-05
  11  63.4981
  12  83.8282
  13  32.6389
  14  0.00242988
  15  20.7942
  16  5.88478e-05
  17  1.12747e-05
  18  1.48338e-06
  19  4.29667
  20  11.2227
  21  7.11893e-06
  22  3.88559e-05
  23  2.54102
  24  3.24044e-05
  25  1.35781e-05
  26  6.92804
  27  42.2863
  28  2.67165e-05
  29  0.00175047
  30  11.4819
  31  0.240878
  32  0.250611
Done.

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

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  1.177e+01  1.122e+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:  1.226e+00  2.506e-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:  5.993e-01  2.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 227.542 57.040
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 5.86e-08 +/- 5.58e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.19e-05

TS (Fixed Index): 1.58
Ra Dec: 227.542 57.040
Photon Flux Upper Limit: 1.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/147233/likelihoodResults_239587201_239846401_4FGL_J1510.1+5702_daily_bin1.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) = 4246.02075318
delta logL = 0.200733238908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4246.01993874
delta logL = 0.201547683055

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.750       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4038       1.0000          .0000       10.000    
     3 'Normalizat'    .61361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2100       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=   4246.020     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      268 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.734        570.36        .24465E-02    .23494E-04
   2  Index         2.4028        5.5622        .21360        .85541E-05
   3  Normalizat    .61372        .11395        .61136E-01    .20218E-04
   4  Prefactor     1.2099        .16904        .49826E-01    .27892E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7342
  Index      = 2.4028
  Normalizat = 0.613718
  Prefactor  = 1.20995
 **********
 **   18 **HESSE 
 **********

 FCN=   4246.020     FROM HESSE     STATUS=OK            33 CALLS      301 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.734        15.067        .97861E-04   -1.4890    
   2  Index         2.4028        .66546        .80310E-02   -.54619    
   3  Normalizat    .61372        .22166        .27047E-03   -1.0740    
   4  Prefactor     1.2099        .24501        .22027E-03   -.86026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27222e-13
Minuit parameter uncertainties:
  1  15.0709
  2  0.668176
  3  0.22198
  4  0.245242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147233': 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) = 4246.0199367
delta logL = 0.201549723809

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  1.673e+01  1.507e+01  1.000e-04  1.000e+04 ( 1.000e-12)
345        Index:  2.403e+00  6.682e-01  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:  1.210e+00  2.452e-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:  6.137e-01  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.95
Ra Dec: 227.542 57.040
Photon Index (Free Index): 2.40 +/- 0.67
Photon Flux (Free Index): 5.25e-08 +/- 4.91e-08
Energy Flux (Free Index): 1.72e-05 +/- 1.75e-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/147233/cmap_HighResolution_239587201_239846401_4FGL_J1510.1+5702_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', photon_flux='5.86e-08', energy_flux2='1.72e-05', photon_flux_error='5.58e-08', dlogl='2.02e-01', energy_flux='1.25e-05', photon_flux2='5.25e-08', job_status='DONE', time_completed='2021-09-11 05:32:22.262441', photon_index_error2='0.67', photon_index2='2.40', ts='1.58', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.76e-07', energy_flux_error2='1.75e-05', EG='0.60', time_epoch_completed='1631363542.26', return_code='0', job_id='147233', GAL2='1.21', EG2='0.61', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.91e-08', ts2='1.95', photon_index='2.88' WHERE bin_id='1' AND source_name='4FGL J1510.1+5702' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 05:32:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 147233: <4FGL_J1510.1+5702_daily_bin1> in cluster <slac> Done

Job <4FGL_J1510.1+5702_daily_bin1> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 05:21:10 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 05:21: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 05:21:12 2021
Terminated at Sat Sep 11 05:32:22 2021
Results reported at Sat Sep 11 05:32:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.1+5702_daily_bin1 227.542 57.0398 239587201 239846401 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 :                                   592.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            672 sec.

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

