/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 9 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1510.1+5702_daily_bin354
RA = 227.542, Dec = 57.0398
tmin = 331084801, tmax = 331344001
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='149879', job_status='RUN', time_executed='2021-09-11 05:31:35.353093', time_epoch_executed='1631363495.35' WHERE source_name='4FGL J1510.1+5702' and cadence='daily' and bin_id='354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149879

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149879/ft1_4FGL_J1510.1+5702_daily_bin354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149879/ft2_4FGL_J1510.1+5702_daily_bin354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149879/ft1_4FGL_J1510.1+5702_daily_bin354.fits outfile=/scratch/kocevski/149879/ft1_filteredMKT_4FGL_J1510.1+5702_daily_bin354.fits ra=227.542 dec=57.0398 rad=12.0 tmin=331084801.0 tmax=331344001.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 3.39
user 3.14
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149879/ft1_filtered_4FGL_J1510.1+5702_daily_bin354.fits evtable="EVENTS" scfile=/scratch/kocevski/149879/ft2_4FGL_J1510.1+5702_daily_bin354.fits sctable="SC_DATA" expcube=/scratch/kocevski/149879/ltcube_331084801_331344001_4FGL_J1510.1+5702_daily_bin354.fits outfile=/scratch/kocevski/149879/expmap_331084801_331344001_4FGL_J1510.1+5702_daily_bin354.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/149879/ltcube_331084801_331344001_4FGL_J1510.1+5702_daily_bin354.fits
.....................!
real 191.86
user 185.86
sys 5.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/149879/ft1_filtered_4FGL_J1510.1+5702_daily_bin354.fits scfile=/scratch/kocevski/149879/ft2_4FGL_J1510.1+5702_daily_bin354.fits outfile=/scratch/kocevski/149879/cmap_331084801_331344001_4FGL_J1510.1+5702_daily_bin354.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149879/ft1_filtered_4FGL_J1510.1+5702_daily_bin354.fits scfile=/scratch/kocevski/149879/ft2_4FGL_J1510.1+5702_daily_bin354.fits outfile=/scratch/kocevski/149879/cmap_HighResolution_331084801_331344001_4FGL_J1510.1+5702_daily_bin354.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    303.73       1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.224       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .41736       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6802       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.5374       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.915       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.288       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10767E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3032       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .46161E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.088       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6535       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.6073       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.2862       1.0000         .10000E-03   10000.    
    27 'Prefactor '    41.822       1.0000         .10000E-03   10000.    
    28 'Prefactor '    21.168       1.0000         .10000E-03   10000.    
    29 'Prefactor '    22.062       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .95211       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .82520       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .93113       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=   6436.883     FROM MIGRAD    STATUS=CONVERGED    861 CALLS     3736 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.217       -.25966E-05** at limit **
   2  norm          .10000E-03    20.333        .22215E-05** at limit **
   3  norm          .10000E-03    2.1013       -.10079E-07** at limit **
   4  Prefactor     .10000E-03    14.878       -.31153E-06** at limit **
   5  Prefactor     303.64        474.82        .12122E-04    .22710E-04
   6  Prefactor     39.221        44.661        .86305E-06    .34138E-04
   7  Prefactor     .10000E-03    29.483       -.14562E-05** at limit **
   8  Prefactor     .41748        4.6436        .18299E-05    .41376E-03
   9  Prefactor     2.6799        2.2025        .55166E-08    .97769E-04
  10  Prefactor     9.5377        14.602        .17968E-06    .17845E-04
  11  Prefactor     .10000E-03    5.4699       -.23801E-07** at limit **
  12  Prefactor     44.915        37.038        .48621E-06    .45764E-04
  13  Prefactor     12.286        21.055       -.24402E-06   -.94154E-05
  14  Prefactor     .10000E-03    2.5529       -.14844E-07** at limit **
  15  Prefactor     .10000E-03    9.2857        .12191E-06** at limit **
  16  Prefactor     .10007E-03    20.736       -.61847E-05** at limit **
  17  norm          1.3034        1.0639       -.51130E-07    .30194E-03
  18  Prefactor     .10000E-03    3.2953        .21278E-07** at limit **
  19  Prefactor     .10000E-03    3.0213        .16965E-06** at limit **
  20  Prefactor     22.088        8.6699        .16871E-06    .21065E-03
  21  Prefactor     5.6518        12.863        .41209E-06    .21385E-04
  22  Prefactor     .10000E-03    8.5771       -.99872E-07** at limit **
  23  norm          5.6076        2.8126        .36768E-07    .46547E-04
  24  Prefactor     .10000E-03    22.340       -.22641E-05** at limit **
  25  Prefactor     .10000E-03    4.3699        .26891E-06** at limit **
  26  norm          8.2928        8.0258        .95648E-06    .64205E-03
  27  Prefactor     41.694        44.350       -.69603E-07    .24166E-04
  28  Prefactor     21.137        43.759        .30694E-06    .36696E-05
  29  Prefactor     22.062        8.3136        .93585E-07    .13835E-03
  30  Prefactor     .95683        6.9022        .12537E-05    .24575E-03
  31  Normalizat    .82510        .15169       -.54559E-06    .17694E-03
  32  Prefactor     .93134        .16491       -.39267E-06    .13133E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 303.643
  Prefactor  = 39.2212
  Prefactor  = 0.0001
  Prefactor  = 0.41748
  Prefactor  = 2.67995
  Prefactor  = 9.53767
  Prefactor  = 0.0001
  Prefactor  = 44.9148
  Prefactor  = 12.2861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100067
  norm       = 1.30338
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.0884
  Prefactor  = 5.6518
  Prefactor  = 0.0001
  norm       = 5.60758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.29279
  Prefactor  = 41.6938
  Prefactor  = 21.137
  Prefactor  = 22.0616
  Prefactor  = 0.95683
  Normalizat = 0.8251
  Prefactor  = 0.931337
 **********
 **   18 **HESSE 
 **********

 FCN=   6436.883     FROM HESSE     STATUS=OK           657 CALLS     4393 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    20.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.1323        .11348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     303.64        477.43        .11654E-03   -1.2205    
   6  Prefactor     39.221        44.613        .63999E-04   -1.4455    
   7  Prefactor     .10000E-03    29.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .41748        5.0754        .34893E-03   -1.5579    
   9  Prefactor     2.6799        2.1921        .99751E-04   -1.5381    
  10  Prefactor     9.5377        14.592        .12976E-03   -1.5090    
  11  Prefactor     .10000E-03    5.4731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     44.915        37.032        .59823E-04   -1.4367    
  13  Prefactor     12.286        21.041        .11428E-03   -1.5007    
  14  Prefactor     .10000E-03    2.5533        .12519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.3363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10007E-03    35.203        .42175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3034        1.0645        .71724E-04   -1.5480    
  18  Prefactor     .10000E-03    3.3022        .14217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.7619        .26891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.088        8.7232        .42613E-03   -1.4768    
  21  Prefactor     5.6518        12.853        .16895E-03   -1.5232    
  22  Prefactor     .10000E-03    8.5786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.6076        2.8110        .91936E-04   -1.5234    
  24  Prefactor     .10000E-03    22.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.3982        .16373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.2928        8.2956        .69635E-03   -1.5132    
  27  Prefactor     41.694        44.494        .61987E-04   -1.4416    
  28  Prefactor     21.137        43.756        .87056E-04   -1.4788    
  29  Prefactor     22.062        8.3124        .42638E-03   -1.4768    
  30  Prefactor     .95683        7.0151        .41100E-03   -1.5512    
  31  Normalizat    .82510        .17692        .22876E-03   -.99144    
  32  Prefactor     .93134        .19296        .24386E-03   -.95055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94544e-09
Minuit parameter uncertainties:
  1  0.000257196
  2  0.000158184
  3  7.79714e-07
  4  1.80925e-05
  5  483.817
  6  44.6511
  7  0.000132773
  8  2.91125
  9  2.19215
  10  14.5971
  11  9.54413e-07
  12  37.0506
  13  21.0536
  14  3.51075e-08
  15  9.5991e-06
  16  0.00307401
  17  1.06451
  18  3.07831e-06
  19  0.000216397
  20  8.72366
  21  12.8597
  22  3.61999e-06
  23  2.81108
  24  0.000166122
  25  1.93071e-05
  26  8.29679
  27  44.5291
  28  43.8228
  29  8.31283
  30  5.18219
  31  0.177048
  32  0.193101
Done.

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

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  2.209e+01  8.724e+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:  9.313e-01  1.931e-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:  8.251e-01  1.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.19
Ra Dec: 227.542 57.040
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 4.34e-08
Energy Flux (Fixed Index): 2.34e-05 +/- 9.24e-06

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) = 6436.85647566
delta logL = 0.0265658115595

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6436.85325462
delta logL = 0.0297868565476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.337       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7413       1.0000          .0000       10.000    
     3 'Normalizat'    .83490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92208       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6436.853     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      261 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.336        13.354        .81198E-04    .14150E-02
   2  Index         2.7414        .57718        .60930E-02    .31092E-03
   3  Normalizat    .83493        .17566        .22756E-03   -.22501E-03
   4  Prefactor     .92205        .19408        .24489E-03   -.33567E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.3359
  Index      = 2.74143
  Normalizat = 0.834935
  Prefactor  = 0.922048
 **********
 **   18 **HESSE 
 **********

 FCN=   6436.853     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.336        12.848        .16240E-04   -1.4721    
   2  Index         2.7414        .55484        .24372E-03   -.46869    
   3  Normalizat    .83493        .17558        .91025E-05   -.98786    
   4  Prefactor     .92205        .19399        .48979E-04   -.95375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10118e-09
Minuit parameter uncertainties:
  1  12.8498
  2  0.556278
  3  0.175703
  4  0.194135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149879': 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) = 6436.85325458
delta logL = 0.0297869004307

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  2.434e+01  1.285e+01  1.000e-04  1.000e+04 ( 1.000e-12)
345        Index:  2.741e+00  5.563e-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:  9.220e-01  1.941e-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:  8.349e-01  1.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.10
Ra Dec: 227.542 57.040
Photon Index (Free Index): 2.74 +/- 0.56
Photon Flux (Free Index): 1.05e-07 +/- 4.69e-08
Energy Flux (Free Index): 2.45e-05 +/- 1.09e-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/149879/cmap_HighResolution_331084801_331344001_4FGL_J1510.1+5702_daily_bin354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='2.45e-05', photon_flux_error='4.34e-08', dlogl='2.98e-02', energy_flux='2.34e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-11 05:46:13.223276', photon_index_error2='0.56', photon_index2='2.74', ts='11.19', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.09e-05', EG='0.83', time_epoch_completed='1631364373.22', return_code='0', job_id='149879', GAL2='0.92', EG2='0.83', return_code2='0', energy_flux_error='9.24e-06', photon_flux_error2='4.69e-08', ts2='11.10', photon_index='2.88' WHERE bin_id='354' AND source_name='4FGL J1510.1+5702' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 05:46:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 149879: <4FGL_J1510.1+5702_daily_bin354> in cluster <slac> Done

Job <4FGL_J1510.1+5702_daily_bin354> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 11 05:31:17 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 05:31:19 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:31:19 2021
Terminated at Sat Sep 11 05:46:16 2021
Results reported at Sat Sep 11 05:46:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.1+5702_daily_bin354 227.542 57.0398 331084801 331344001 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 :                                   871.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             362.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            899 sec.

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

