/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 53 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 = 7401
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1510.1+5702_daily_bin19
RA = 227.542, Dec = 57.0398
tmin = 244252801, tmax = 244512001
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='147260', job_status='RUN', time_executed='2021-09-11 05:22:27.833991', time_epoch_executed='1631362947.83' WHERE source_name='4FGL J1510.1+5702' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147260

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147260/ft1_4FGL_J1510.1+5702_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147260/ft2_4FGL_J1510.1+5702_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147260/ft1_4FGL_J1510.1+5702_daily_bin19.fits outfile=/scratch/kocevski/147260/ft1_filteredMKT_4FGL_J1510.1+5702_daily_bin19.fits ra=227.542 dec=57.0398 rad=12.0 tmin=244252801.0 tmax=244512001.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 2.60
user 2.20
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147260/ft1_filtered_4FGL_J1510.1+5702_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/147260/ft2_4FGL_J1510.1+5702_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/147260/ltcube_244252801_244512001_4FGL_J1510.1+5702_daily_bin19.fits outfile=/scratch/kocevski/147260/expmap_244252801_244512001_4FGL_J1510.1+5702_daily_bin19.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/147260/ltcube_244252801_244512001_4FGL_J1510.1+5702_daily_bin19.fits
.....................!
real 191.25
user 186.93
sys 3.88

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/147260/ft1_filtered_4FGL_J1510.1+5702_daily_bin19.fits scfile=/scratch/kocevski/147260/ft2_4FGL_J1510.1+5702_daily_bin19.fits outfile=/scratch/kocevski/147260/cmap_244252801_244512001_4FGL_J1510.1+5702_daily_bin19.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147260/ft1_filtered_4FGL_J1510.1+5702_daily_bin19.fits scfile=/scratch/kocevski/147260/ft2_4FGL_J1510.1+5702_daily_bin19.fits outfile=/scratch/kocevski/147260/cmap_HighResolution_244252801_244512001_4FGL_J1510.1+5702_daily_bin19.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.384       1.0000         .10000E-03   10000.    
     4 'Prefactor '    55.445       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10626E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1922       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.644       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.077       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .37971       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4901       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3138       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.2954       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.6534       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.7592       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.5141       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1148       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0878       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=   4516.009     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     4414 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    80.047        .99397E-07** at limit **
   2  norm          .10000E-03    102.31        .11607E-06** at limit **
   3  norm          12.384        6.5696        .84995E-07   -.20082E-04
   4  Prefactor     55.442        88.030        .71036E-06   -.46409E-05
   5  Prefactor     .10001E-03    1074.7       -.18765E-05** at limit **
   6  Prefactor     .10000E-03    32.508        .56334E-07** at limit **
   7  Prefactor     .10000E-03    43.650       -.17371E-07** at limit **
   8  Prefactor     3.1919        6.4128        .32456E-06   -.81081E-05
   9  Prefactor     .10000E-03    1.5536       -.93916E-07** at limit **
  10  Prefactor     39.629        45.555        .71339E-07   -.23863E-04
  11  Prefactor     .10000E-03    10.732       -.10012E-06** at limit **
  12  Prefactor     .10000E-03    20.103       -.56677E-07** at limit **
  13  Prefactor     18.082        58.220        .30344E-06   -.57960E-05
  14  Prefactor     .10000E-03    7.5225       -.13564E-06** at limit **
  15  Prefactor     .10000E-03    109.23        .18163E-05** at limit **
  16  Prefactor     .35183        15.752        .30998E-05   -.38269E-03
  17  norm          1.4907        1.8212       -.78283E-06   -.89732E-03
  18  Prefactor     .10000E-03    5.8398       -.14288E-07** at limit **
  19  Prefactor     .10000E-03    3.4123       -.20840E-06** at limit **
  20  Prefactor     3.3148        9.1700        .68513E-06   -.80381E-05
  21  Prefactor     3.2952        20.076        .16484E-05    .97477E-05
  22  Prefactor     4.6666        91.683       -.17663E-06   -.43335E-05
  23  norm          .10000E-03    1.3496        .46183E-07** at limit **
  24  Prefactor     .10000E-03    62.875        .69283E-07** at limit **
  25  Prefactor     7.7587        8.4377        .23074E-06   -.10996E-04
  26  norm          .10000E-03    4.4567        .15598E-07** at limit **
  27  Prefactor     .10000E-03    17.474        .68905E-07** at limit **
  28  Prefactor     .10000E-03    66.091        .21327E-07** at limit **
  29  Prefactor     2.5142        4.0638        .17864E-06    .49257E-05
  30  Prefactor     .10000E-03    11.128        .12023E-06** at limit **
  31  Normalizat    1.1146        .20779       -.92250E-06   -.26153E-03
  32  Prefactor     1.0880        .22364       -.10117E-05   -.22020E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.3838
  Prefactor  = 55.4422
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.19194
  Prefactor  = 0.0001
  Prefactor  = 39.6292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.351826
  norm       = 1.49073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.31478
  Prefactor  = 3.29521
  Prefactor  = 4.66663
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.75866
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.51417
  Prefactor  = 0.0001
  Normalizat = 1.11464
  Prefactor  = 1.08799
 **********
 **   18 **HESSE 
 **********

 FCN=   4516.009     FROM HESSE     STATUS=OK           655 CALLS     5069 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    80.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    102.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.384        6.5700        .11383E-03   -1.5004    
   4  Prefactor     55.442        88.104        .53871E-04   -1.4217    
   5  Prefactor     .10001E-03    1074.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    43.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1919        6.3982        .22679E-03   -1.5351    
   9  Prefactor     .10000E-03    1.5632        .81674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     39.629        45.616        .63660E-04   -1.4448    
  11  Prefactor     .10000E-03    10.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.082        58.107        .94201E-04   -1.4857    
  14  Prefactor     .10000E-03    7.5409        .17997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    113.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .35183        9.6336        .13172       -1.5589    
  17  norm          1.4907        1.8003        .94658E-04   -1.5464    
  18  Prefactor     .10000E-03    5.8535        .15857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4253        .12109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3148        9.1626        .22238E-03   -1.5344    
  21  Prefactor     3.2952        19.361        .22303E-03   -1.5345    
  22  Prefactor     4.6666        88.588        .18657E-03   -1.5276    
  23  norm          .10000E-03    1.3578        .76253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    62.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.7587        8.4240        .14396E-03   -1.5151    
  26  norm          .10000E-03    4.4994        .13836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    17.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    66.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.5142        4.0457        .16757E-03   -1.5391    
  30  Prefactor     .10000E-03    11.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1146        .25542        .23978E-03   -.89283    
  32  Prefactor     1.0880        .27399        .26483E-03   -.89851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00801e-10
Minuit parameter uncertainties:
  1  6.90745e-05
  2  6.69425e-05
  3  6.57035
  4  88.3122
  5  0.00521403
  6  3.07661e-05
  7  2.44273e-06
  8  6.3996
  9  1.81159e-06
  10  45.6559
  11  3.05747e-06
  12  6.94702e-06
  13  58.29
  14  5.5313e-08
  15  0.000341356
  16  3.68217
  17  1.80038
  18  3.58064e-06
  19  2.39009e-06
  20  9.16651
  21  15.9822
  22  40.7343
  23  2.42217e-06
  24  1.41095e-05
  25  8.42528
  26  3.61369e-06
  27  1.57239e-05
  28  2.13158e-05
  29  4.04617
  30  2.45281e-05
  31  0.255702
  32  0.274343
Done.

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

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  3.315e+00  9.167e+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

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.088e+00  2.743e-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.115e+00  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/147260/likelihoodResults_244252801_244512001_4FGL_J1510.1+5702_daily_bin19.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) = 4515.54980387
delta logL = 0.459661834469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4515.39294809
delta logL = 0.616517616136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8868       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7040       1.0000          .0000       10.000    
     3 'Normalizat'    1.1301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0637       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=   4515.393     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      224 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8713        9.8245        .33613E-02    .92661E-03
   2  Index         1.7024        .43851        .21401       -.59481E-04
   3  Normalizat    1.1301        .20103        .53861E-01    .31736E-05
   4  Prefactor     1.0637        .22065        .60391E-01    .63730E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.8713
  Index      = 1.70241
  Normalizat = 1.13012
  Prefactor  = 1.0637
 **********
 **   18 **HESSE 
 **********

 FCN=   4515.393     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8713        11.507        .67227E-03   -1.5112    
   2  Index         1.7024        .63677        .76401E-02   -.72018    
   3  Normalizat    1.1301        .24507        .23815E-03   -.88790    
   4  Prefactor     1.0637        .26860        .26708E-03   -.90635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5236e-12
Minuit parameter uncertainties:
  1  11.5097
  2  0.639856
  3  0.245314
  4  0.268946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147260': 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) = 4515.39294513
delta logL = 0.616520567844

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  8.871e+00  1.151e+01  1.000e-04  1.000e+04 ( 1.000e-12)
345        Index:  1.702e+00  6.399e-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.064e+00  2.689e-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.130e+00  2.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 227.542 57.040
Photon Index (Free Index): 1.70 +/- 0.64
Photon Flux (Free Index): 1.83e-08 +/- 2.51e-08
Energy Flux (Free Index): 2.97e-05 +/- 4.90e-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/147260/cmap_HighResolution_244252801_244512001_4FGL_J1510.1+5702_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', energy_flux2='2.97e-05', dlogl='6.17e-01', photon_flux2='1.83e-08', job_status='DONE', time_completed='2021-09-11 05:36:21.071875', photon_index_error2='0.64', photon_index2='1.70', ts='0.16', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='4.90e-05', EG='1.11', time_epoch_completed='1631363781.07', return_code='0', job_id='147260', GAL2='1.06', EG2='1.13', return_code2='0', photon_flux_error2='2.51e-08', ts2='1.40', photon_index='2.88' WHERE bin_id='19' AND source_name='4FGL J1510.1+5702' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 05:36:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 147260: <4FGL_J1510.1+5702_daily_bin19> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.1+5702_daily_bin19 227.542 57.0398 244252801 244512001 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 :                                   831.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             315.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            909 sec.

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

