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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin295
RA = 229.049, Dec = 43.8527
tmin = 315792001, tmax = 316051201
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='426579', job_status='RUN', time_executed='2021-09-11 21:41:14.312688', time_epoch_executed='1631421674.31' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/426579

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/426579/ft1_4FGL_J1516.1+4351_daily_bin295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/426579/ft2_4FGL_J1516.1+4351_daily_bin295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/426579/ft1_4FGL_J1516.1+4351_daily_bin295.fits outfile=/scratch/kocevski/426579/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin295.fits ra=229.049 dec=43.8527 rad=12.0 tmin=315792001.0 tmax=316051201.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.53
user 3.32
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/426579/ft2_4FGL_J1516.1+4351_daily_bin295.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/426579/ft2_4FGL_J1516.1+4351_daily_bin295.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/426579/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin295.fits evtable="EVENTS" outfile="/scratch/kocevski/426579/ft1_filtered_4FGL_J1516.1+4351_daily_bin295.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.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/426579/ft1_filtered_4FGL_J1516.1+4351_daily_bin295.fits" evtable="EVENTS" scfile=/scratch/kocevski/426579/ft2_4FGL_J1516.1+4351_daily_bin295.fits sctable="SC_DATA" outfile=/scratch/kocevski/426579/ltcube_315792001_316051201_4FGL_J1516.1+4351_daily_bin295.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/426579/ft2_4FGL_J1516.1+4351_daily_bin295.fits
.....................!
real 12.28
user 11.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/426579/ft1_filtered_4FGL_J1516.1+4351_daily_bin295.fits evtable="EVENTS" scfile=/scratch/kocevski/426579/ft2_4FGL_J1516.1+4351_daily_bin295.fits sctable="SC_DATA" expcube=/scratch/kocevski/426579/ltcube_315792001_316051201_4FGL_J1516.1+4351_daily_bin295.fits outfile=/scratch/kocevski/426579/expmap_315792001_316051201_4FGL_J1516.1+4351_daily_bin295.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/426579/ltcube_315792001_316051201_4FGL_J1516.1+4351_daily_bin295.fits
.....................!
real 190.06
user 185.24
sys 4.46

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

Setting source of interest to:
4FGL J1516.1+4351 @ 229.049 43.8527

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/426579/ft1_filtered_4FGL_J1516.1+4351_daily_bin295.fits scfile=/scratch/kocevski/426579/ft2_4FGL_J1516.1+4351_daily_bin295.fits outfile=/scratch/kocevski/426579/cmap_315792001_316051201_4FGL_J1516.1+4351_daily_bin295.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=229.049 yref=43.8527 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/426579/ft1_filtered_4FGL_J1516.1+4351_daily_bin295.fits scfile=/scratch/kocevski/426579/ft2_4FGL_J1516.1+4351_daily_bin295.fits outfile=/scratch/kocevski/426579/cmap_HighResolution_315792001_316051201_4FGL_J1516.1+4351_daily_bin295.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=229.049 yref=43.8527 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/426579/ft1_filtered_4FGL_J1516.1+4351_daily_bin295.fits evtable="EVENTS" scfile=/scratch/kocevski/426579/ft2_4FGL_J1516.1+4351_daily_bin295.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/426579/Model_4FGL_J1516.1+4351_daily_bin295.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/426579/ft1_filtered_4FGL_J1516.1+4351_daily_bin295.fits.....................!
real 43.09
user 41.77
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/426579/ft1_filtered_4FGL_J1516.1+4351_daily_bin295.fits', '/scratch/kocevski/426579/ft2_4FGL_J1516.1+4351_daily_bin295.fits', expMap='/scratch/kocevski/426579/expmap_315792001_316051201_4FGL_J1516.1+4351_daily_bin295.fits', expCube='/scratch/kocevski/426579/ltcube_315792001_316051201_4FGL_J1516.1+4351_daily_bin295.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/426579/Model_4FGL_J1516.1+4351_daily_bin295.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.1+4351'

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.184e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/426579/ft1_filtered_4FGL_J1516.1+4351_daily_bin295.fits
Spacecraft file(s): /scratch/kocevski/426579/ft2_4FGL_J1516.1+4351_daily_bin295.fits
Exposure map: /scratch/kocevski/426579/expmap_315792001_316051201_4FGL_J1516.1+4351_daily_bin295.fits
Exposure cube: /scratch/kocevski/426579/ltcube_315792001_316051201_4FGL_J1516.1+4351_daily_bin295.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/426579/Model_4FGL_J1516.1+4351_daily_bin295.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) = 5224.06928768

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12484E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8140       1.0000         .10000E-03   10000.    
     5 'norm      '    17.978       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.197       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .28559       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3234       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .69623E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .16287E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10638E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.1407       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10629E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    16.442       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0865       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0566       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5224.057     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     3942 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1190        .21434E-07** at limit **
   2  Prefactor     .10000E-03    23.700        .53389E-06** at limit **
   3  Prefactor     .10001E-03    153.96       -.68215E-05** at limit **
   4  Prefactor     5.7996        37.488       -.19918E-05    .64751E-04
   5  norm          17.980        17.842       -.17866E-07    .51061E-04
   6  Prefactor     .10001E-03    130.62        .36197E-05** at limit **
   7  Prefactor     39.218        35.512        .14859E-05    .23768E-03
   8  norm          .10000E-03    3.9928       -.42626E-07** at limit **
   9  Prefactor     .10000E-03    21.400       -.14399E-05** at limit **
  10  Prefactor     .10000E-03    25.659        .17330E-05** at limit **
  11  norm          .10000E-03    3.7576       -.54244E-07** at limit **
  12  Prefactor     .10000E-03    17.829       -.67603E-06** at limit **
  13  Prefactor     .10000E-03    7.9826       -.74721E-06** at limit **
  14  norm          .28465        1.5682        .21940E-06   -.29845E-03
  15  Prefactor     6.3191        9.0111        .33417E-05   -.42462E-03
  16  Prefactor     .10000E-03    3.7824       -.22900E-06** at limit **
  17  norm          .10000E-03    1.0785       -.65708E-06** at limit **
  18  norm          .10000E-03    2.9195       -.70607E-06** at limit **
  19  Prefactor     .10000E-03    5.6768        .53053E-06** at limit **
  20  Prefactor     .10000E-03    33.550       -.25713E-05** at limit **
  21  Prefactor     .10000E-03    6.9019        .18185E-05** at limit **
  22  Prefactor     9.1529        12.361        .17429E-05   -.24297E-03
  23  Prefactor     .10000E-03    24.983        .13260E-05** at limit **
  24  norm          16.448        12.660        .14871E-06   -.89985E-05
  25  Prefactor     .10000E-03    6.4406       -.15692E-05** at limit **
  26  Prefactor     .10000E-03    86.075        .26684E-05** at limit **
  27  Prefactor     .10000E-03    2.8138        .15025E-08** at limit **
  28  Prefactor     .10000E-03    12.229        .32305E-06** at limit **
  29  Normalizat    1.0862        .20401       -.72867E-06    .29738E-03
  30  Prefactor     1.0569        .20604       -.37127E-07    .21863E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 5.79961
  norm       = 17.9805
  Prefactor  = 0.000100005
  Prefactor  = 39.2176
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.284652
  Prefactor  = 6.31908
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 9.15289
  Prefactor  = 0.000100001
  norm       = 16.4483
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08625
  Prefactor  = 1.05695
 **********
 **   18 **HESSE 
 **********

 FCN=   5224.057     FROM HESSE     STATUS=OK           576 CALLS     4518 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1344        .12466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    155.47        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7996        36.278        .16656E-03   -1.5226    
   5  norm          17.980        17.817        .94461E-04   -1.4860    
   6  Prefactor     .10001E-03    131.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.218        35.771        .64021E-04   -1.4455    
   8  norm          .10000E-03    4.0091        .14100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.7621        .13684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.0291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .28465        2.9532        .17042E-02   -1.5601    
  15  Prefactor     6.3191        9.3386        .79811E-03   -1.5205    
  16  Prefactor     .10000E-03    10.647        .27234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.3128        .13892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.3332        .23402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.7166        .16824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.1265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.1529        12.301        .66282E-03   -1.5103    
  23  Prefactor     .10000E-03    25.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          16.448        12.636        .98775E-04   -1.4897    
  25  Prefactor     .10000E-03    6.6106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    86.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.8277        .11840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    12.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0862        .24371        .24287E-03   -.90195    
  30  Prefactor     1.0569        .24761        .25883E-03   -.90855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04958e-08
Minuit parameter uncertainties:
  1  1.67619e-07
  2  7.89186e-05
  3  0.00249302
  4  29.0359
  5  17.8221
  6  0.00166981
  7  35.7908
  8  1.77833e-06
  9  0.000285935
  10  0.000349234
  11  4.22772e-06
  12  0.000117469
  13  8.54446e-05
  14  1.83352
  15  9.34079
  16  0.000159142
  17  3.9603e-05
  18  4.22757e-05
  19  5.4926e-05
  20  0.000628025
  21  0.000202272
  22  12.3041
  23  0.000247482
  24  12.638
  25  0.000168821
  26  0.00102089
  27  4.47884e-07
  28  4.57878e-05
  29  0.243962
  30  0.247881
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  5.493e-05  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.057e+00  2.479e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.086e+00  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.049 43.853
Photon Flux Upper Limit: 7.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/426579/likelihoodResults_315792001_316051201_4FGL_J1516.1+4351_daily_bin295.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): 102
logL (Free Index) = 5224.05766105
delta logL = -0.00083302944131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5224.05682807
delta logL = -4.80031303596e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4490       1.0000          .0000       10.000    
     3 'Normalizat'    1.0862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0570       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+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=   5224.057     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10099E-03    64.965        .16957E-02** at limit **
   2  Index         2.3949        8.7139        .50000        .18184E-04
   3  Normalizat    1.0862        .15952E-01    .24287E-03   -.98301E-05
   4  Prefactor     1.0569        .16864E-01    .25883E-03   -.22049E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010099
  Index      = 2.39486
  Normalizat = 1.08625
  Prefactor  = 1.05695
 **********
 **   18 **HESSE 
 **********

 FCN=   5224.057     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10099E-03    295.69        .33914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3949        5.3429        .50000       -.54805    
   3  Normalizat    1.0862        .35808E-01    .97148E-05   -.90195    
   4  Prefactor     1.0569        .37845E-01    .10353E-04   -.90855    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.52306e-08
Minuit parameter uncertainties:
  1  0.0343951
  2  724.725
  3  0.0358086
  4  0.0378455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/426579': 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): 102
logL (Free Index) = 5224.05682779
delta logL = 2.28995304496e-07

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.010e-04  3.440e-02  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.395e+00  7.247e+02  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.335e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.057e+00  3.785e-02  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  1.086e+00  3.581e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.049 43.853

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/426579/cmap_HighResolution_315792001_316051201_4FGL_J1516.1+4351_daily_bin295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', job_status='DONE', photon_flux_upper_limit='7.96e-08', time_completed='2021-09-11 21:54:27.889939', job_id='426579', GAL2='1.06', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631422467.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='295' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 21:54:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 426579: <4FGL_J1516.1+4351_daily_bin295> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin295> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 21:41:03 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 21:41:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 21:41:04 2021
Terminated at Sat Sep 11 21:54:28 2021
Results reported at Sat Sep 11 21:54:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin295 229.049 43.8527 315792001 316051201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.1+4351 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   790.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            805 sec.

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

