/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 4 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 = 7451
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1516.1+4351_daily_bin758
RA = 229.049, Dec = 43.8527
tmin = 435801601, tmax = 436060801
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='431776', job_status='RUN', time_executed='2021-09-11 22:01:30.427396', time_epoch_executed='1631422890.43' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/431776

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/431776/ft1_4FGL_J1516.1+4351_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/431776/ft2_4FGL_J1516.1+4351_daily_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/431776/ft1_4FGL_J1516.1+4351_daily_bin758.fits outfile=/scratch/kocevski/431776/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin758.fits ra=229.049 dec=43.8527 rad=12.0 tmin=435801601.0 tmax=436060801.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 5.58
user 5.34
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/431776/ft2_4FGL_J1516.1+4351_daily_bin758.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/431776/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin758.fits evtable="EVENTS" outfile="/scratch/kocevski/431776/ft1_filtered_4FGL_J1516.1+4351_daily_bin758.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/431776/ft1_filtered_4FGL_J1516.1+4351_daily_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/431776/ft2_4FGL_J1516.1+4351_daily_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/431776/ltcube_435801601_436060801_4FGL_J1516.1+4351_daily_bin758.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/431776/ft2_4FGL_J1516.1+4351_daily_bin758.fits
.....................!
real 11.86
user 11.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/431776/ft1_filtered_4FGL_J1516.1+4351_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/431776/ft2_4FGL_J1516.1+4351_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/431776/ltcube_435801601_436060801_4FGL_J1516.1+4351_daily_bin758.fits outfile=/scratch/kocevski/431776/expmap_435801601_436060801_4FGL_J1516.1+4351_daily_bin758.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/431776/ltcube_435801601_436060801_4FGL_J1516.1+4351_daily_bin758.fits
.....................!
real 191.33
user 185.17
sys 5.79

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/431776/ft1_filtered_4FGL_J1516.1+4351_daily_bin758.fits scfile=/scratch/kocevski/431776/ft2_4FGL_J1516.1+4351_daily_bin758.fits outfile=/scratch/kocevski/431776/cmap_435801601_436060801_4FGL_J1516.1+4351_daily_bin758.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/431776/ft1_filtered_4FGL_J1516.1+4351_daily_bin758.fits scfile=/scratch/kocevski/431776/ft2_4FGL_J1516.1+4351_daily_bin758.fits outfile=/scratch/kocevski/431776/cmap_HighResolution_435801601_436060801_4FGL_J1516.1+4351_daily_bin758.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/431776/ft1_filtered_4FGL_J1516.1+4351_daily_bin758.fits', '/scratch/kocevski/431776/ft2_4FGL_J1516.1+4351_daily_bin758.fits', expMap='/scratch/kocevski/431776/expmap_435801601_436060801_4FGL_J1516.1+4351_daily_bin758.fits', expCube='/scratch/kocevski/431776/ltcube_435801601_436060801_4FGL_J1516.1+4351_daily_bin758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/431776/Model_4FGL_J1516.1+4351_daily_bin758.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/431776/ft1_filtered_4FGL_J1516.1+4351_daily_bin758.fits
Spacecraft file(s): /scratch/kocevski/431776/ft2_4FGL_J1516.1+4351_daily_bin758.fits
Exposure map: /scratch/kocevski/431776/expmap_435801601_436060801_4FGL_J1516.1+4351_daily_bin758.fits
Exposure cube: /scratch/kocevski/431776/ltcube_435801601_436060801_4FGL_J1516.1+4351_daily_bin758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/431776/Model_4FGL_J1516.1+4351_daily_bin758.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) = 6142.19476869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0579       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.657       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .51358E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12493       1.0000         .10000E-03   10000.    
     5 'norm      '    11.529       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10474E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.606       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.335       1.0000         .10000E-03   10000.    
    11 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8623       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3228       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.3039       1.0000         .10000E-03   10000.    
    18 'norm      '    5.2653       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .65830E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.700       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.6065       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    23.286       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    32.253       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .44878       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89971       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .92047       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=   6142.170     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     3942 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0568        3.5008        .14866E-06   -.98178E-03
   2  Prefactor     32.662        29.686        .26685E-06   -.24938E-04
   3  Prefactor     .10010E-03    21.263       -.43731E-06** at limit **
   4  Prefactor     .12937        54.536        .55743E-05   -.30429E-03
   5  norm          11.536        13.485       -.58679E-06   -.17946E-03
   6  Prefactor     .10000E-03    70.461       -.33631E-06** at limit **
   7  Prefactor     26.642        27.746        .53258E-06   -.59881E-04
   8  norm          .10000E-03    2.1443        .21285E-07** at limit **
   9  Prefactor     .10000E-03    17.067        .98300E-07** at limit **
  10  Prefactor     45.331        23.140       -.10025E-06   -.22477E-04
  11  norm          .10000E-03    5.3258        .10917E-07** at limit **
  12  Prefactor     .10000E-03    20.836        .87792E-06** at limit **
  13  Prefactor     1.8661        19.430        .46851E-06   -.27683E-03
  14  norm          1.3228        1.6565       -.18222E-08   -.86706E-05
  15  Prefactor     .10000E-03    8.7546        .93800E-07** at limit **
  16  Prefactor     .10000E-03    2.0291        .67343E-08** at limit **
  17  norm          3.3049        1.8670        .44758E-07   -.45045E-03
  18  norm          5.2679        3.9009       -.77186E-06   -.54296E-03
  19  Prefactor     .10010E-03    6.7895        .10806E-05** at limit **
  20  Prefactor     44.697        48.912        .33519E-06   -.23027E-05
  21  Prefactor     7.6087        16.672       -.16076E-05   -.44758E-04
  22  Prefactor     .10000E-03    19.016        .10165E-06** at limit **
  23  Prefactor     .10000E-03    11.025       -.19144E-06** at limit **
  24  norm          23.288        12.861       -.59850E-07   -.79473E-05
  25  Prefactor     .10000E-03    17.177       -.26120E-07** at limit **
  26  Prefactor     32.246        38.997        .34853E-06    .28866E-04
  27  Prefactor     .44269        12.349        .24575E-05    .46086E-03
  28  Prefactor     .10000E-03    14.415        .47838E-06** at limit **
  29  Normalizat    .90030        .17845       -.53878E-06   -.17642E-03
  30  Prefactor     .91984        .17676       -.63434E-07   -.18658E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.05684
  Prefactor  = 32.6625
  Prefactor  = 0.000100104
  Prefactor  = 0.129372
  norm       = 11.536
  Prefactor  = 0.0001
  Prefactor  = 26.6424
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.3314
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.86611
  norm       = 1.32282
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.3049
  norm       = 5.26788
  Prefactor  = 0.000100104
  Prefactor  = 44.6971
  Prefactor  = 7.60868
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.2876
  Prefactor  = 0.0001
  Prefactor  = 32.2463
  Prefactor  = 0.442688
  Prefactor  = 0.0001
  Normalizat = 0.900296
  Prefactor  = 0.919841
 **********
 **   18 **HESSE 
 **********

 FCN=   6142.170     FROM HESSE     STATUS=OK           606 CALLS     4548 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0568        4.5740        .12206E-02   -1.5421    
   2  Prefactor     32.662        29.781        .70118E-04   -1.4564    
   3  Prefactor     .10010E-03    95.381        .61628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .12937        22.610        .99568E-01   -1.5636    
   5  norm          11.536        13.474        .11799E-03   -1.5029    
   6  Prefactor     .10000E-03    70.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.642        27.722        .77666E-04   -1.4675    
   8  norm          .10000E-03    2.1479        .11207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     45.331        23.263        .59546E-04   -1.4360    
  11  norm          .10000E-03    5.3534        .17663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8661        37.096        .15267E-02   -1.5435    
  14  norm          1.3228        1.6473        .10411E-03   -1.5478    
  15  Prefactor     .10000E-03    8.8204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0337        .10901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.3049        1.8601        .75436E-04   -1.5344    
  18  norm          5.2679        4.5157        .12687E-03   -1.5249    
  19  Prefactor     .10010E-03    18.804        .55051E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     44.697        48.903        .59967E-04   -1.4370    
  21  Prefactor     7.6087        17.699        .14541E-03   -1.5156    
  22  Prefactor     .10000E-03    19.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          23.288        12.850        .83008E-04   -1.4742    
  25  Prefactor     .10000E-03    17.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     32.246        38.969        .70555E-04   -1.4572    
  27  Prefactor     .44269        12.840        .26229E-02   -1.5575    
  28  Prefactor     .10000E-03    14.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .90030        .20922        .25067E-03   -.96450    
  30  Prefactor     .91984        .20719        .25440E-03   -.95451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97654e-09
Minuit parameter uncertainties:
  1  4.57474
  2  29.7943
  3  0.00631645
  4  3.42057
  5  13.4771
  6  2.28597e-05
  7  27.735
  8  2.01757e-06
  9  1.22982e-05
  10  23.2679
  11  1.59789e-06
  12  3.78114e-05
  13  16.6518
  14  1.64736
  15  3.8631e-06
  16  1.36159e-06
  17  1.86013
  18  4.51595
  19  0.0027935
  20  48.9469
  21  17.7115
  22  1.21056e-05
  23  1.15954e-05
  24  12.8517
  25  1.0751e-06
  26  39
  27  4.76888
  28  5.07128e-05
  29  0.20941
  30  0.20737
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.001e-04  2.793e-03  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:  9.198e-01  2.074e-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:  9.003e-01  2.094e-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: 8.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/431776/likelihoodResults_435801601_436060801_4FGL_J1516.1+4351_daily_bin758.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) = 6142.16987508
delta logL = -2.58237905655e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6142.16987508
delta logL = -2.5817695132e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96344E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4630       1.0000          .0000       10.000    
     3 'Normalizat'    .90027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91985       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.

 FCN=   6142.170     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      231 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    .71839E-01    .90714E-01** at limit **
   2  Index         2.5717        5.2778        .50000       -.28992E-05
   3  Normalizat    .90030        .54161E-03    .44905E-01    .46578E-04
   4  Prefactor     .91984        .55813E-03    .45258E-01    .42212E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100046
  Index      = 2.5717
  Normalizat = 0.900296
  Prefactor  = 0.919841
 **********
 **   18 **HESSE 
 **********

 FCN=   6142.170     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      274 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    .25325        .49364E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5717        6.2082        .50000       -.50712    
   3  Normalizat    .90030        .63291E-03    .25067E-03   -.96450    
   4  Prefactor     .91984        .65226E-03    .25440E-03   -.95451    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.30494e-11
Minuit parameter uncertainties:
  1  0.000216563
  2  11.5041
  3  0.000632906
  4  0.000652264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/431776': 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) = 6142.16984915
delta logL = 1.05877916212e-07

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.166e-04  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.572e+00  1.150e+01  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:  9.198e-01  6.523e-04  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:  9.003e-01  6.329e-04  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/431776/cmap_HighResolution_435801601_436060801_4FGL_J1516.1+4351_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-03', job_status='DONE', photon_flux_upper_limit='8.97e-08', time_completed='2021-09-11 22:16:00.996778', job_id='431776', GAL2='0.92', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631423761.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='758' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:16:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 431776: <4FGL_J1516.1+4351_daily_bin758> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin758> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 22:01:16 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:01:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 22:01:18 2021
Terminated at Sat Sep 11 22:16:02 2021
Results reported at Sat Sep 11 22:16:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin758 229.049 43.8527 435801601 436060801 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 :                                   866.40 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            886 sec.

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

