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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin924
RA = 229.049, Dec = 43.8527
tmin = 478828801, tmax = 479088001
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='433090', job_status='RUN', time_executed='2021-09-11 22:06:24.717066', time_epoch_executed='1631423184.72' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='924'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433090

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433090/ft1_4FGL_J1516.1+4351_daily_bin924.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433090/ft2_4FGL_J1516.1+4351_daily_bin924.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433090/ft1_4FGL_J1516.1+4351_daily_bin924.fits outfile=/scratch/kocevski/433090/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin924.fits ra=229.049 dec=43.8527 rad=12.0 tmin=478828801.0 tmax=479088001.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.81
user 3.25
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433090/ft1_filtered_4FGL_J1516.1+4351_daily_bin924.fits" evtable="EVENTS" scfile=/scratch/kocevski/433090/ft2_4FGL_J1516.1+4351_daily_bin924.fits sctable="SC_DATA" outfile=/scratch/kocevski/433090/ltcube_478828801_479088001_4FGL_J1516.1+4351_daily_bin924.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/433090/ft2_4FGL_J1516.1+4351_daily_bin924.fits
.....................!
real 12.19
user 11.83
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433090/ft1_filtered_4FGL_J1516.1+4351_daily_bin924.fits evtable="EVENTS" scfile=/scratch/kocevski/433090/ft2_4FGL_J1516.1+4351_daily_bin924.fits sctable="SC_DATA" expcube=/scratch/kocevski/433090/ltcube_478828801_479088001_4FGL_J1516.1+4351_daily_bin924.fits outfile=/scratch/kocevski/433090/expmap_478828801_479088001_4FGL_J1516.1+4351_daily_bin924.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/433090/ltcube_478828801_479088001_4FGL_J1516.1+4351_daily_bin924.fits
.....................!
real 190.86
user 185.02
sys 5.29

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/433090/ft1_filtered_4FGL_J1516.1+4351_daily_bin924.fits scfile=/scratch/kocevski/433090/ft2_4FGL_J1516.1+4351_daily_bin924.fits outfile=/scratch/kocevski/433090/cmap_478828801_479088001_4FGL_J1516.1+4351_daily_bin924.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433090/ft1_filtered_4FGL_J1516.1+4351_daily_bin924.fits scfile=/scratch/kocevski/433090/ft2_4FGL_J1516.1+4351_daily_bin924.fits outfile=/scratch/kocevski/433090/cmap_HighResolution_478828801_479088001_4FGL_J1516.1+4351_daily_bin924.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10846E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.140       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.727       1.0000         .10000E-03   10000.    
     8 'norm      '    4.9622       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.066       1.0000         .10000E-03   10000.    
    11 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.907       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5965       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0379       1.0000         .10000E-03   10000.    
    17 'norm      '    .86376       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7088       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.084       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.750       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7505       1.0000         .10000E-03   10000.    
    24 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.3525       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.6326       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0497       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0061       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=   5782.354     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3280 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6448       -.74702E-07** at limit **
   2  Prefactor     .10000E-03    25.463       -.37883E-06** at limit **
   3  Prefactor     .10000E-03    7.6683       -.10656E-06** at limit **
   4  Prefactor     10.141        11.721        .30077E-07   -.18046E-05
   5  norm          .10000E-03    6.6120        .29638E-07** at limit **
   6  Prefactor     .10000E-03    22.215       -.31731E-06** at limit **
   7  Prefactor     12.731        16.072       -.11093E-06    .11512E-04
   8  norm          4.9621        6.3126        .11264E-07    .26854E-04
   9  Prefactor     .10000E-03    11.266        .41237E-07** at limit **
  10  Prefactor     18.066        12.600       -.77134E-07    .11485E-04
  11  norm          .10000E-03    3.1043       -.11718E-07** at limit **
  12  Prefactor     26.907        14.215        .38255E-06    .61219E-04
  13  Prefactor     .10000E-03    9.1538       -.66674E-08** at limit **
  14  norm          .10000E-03    .51507       -.37635E-07** at limit **
  15  Prefactor     9.5945        7.7970        .14405E-05    .11011E-03
  16  Prefactor     2.0379        5.1120       -.29142E-06    .25853E-04
  17  norm          .86312        1.5982       -.25082E-05    .32061E-04
  18  norm          2.7087        3.5110       -.45689E-07    .21327E-04
  19  Prefactor     11.084        7.4902        .66680E-07    .23175E-04
  20  Prefactor     15.803        82.664        .15859E-04   -.30134E-04
  21  Prefactor     .10000E-03    4.3401       -.64288E-07** at limit **
  22  Prefactor     .10000E-03    5.2571       -.89626E-07** at limit **
  23  Prefactor     4.7531        14.419       -.15875E-06    .12853E-04
  24  norm          .10000E-03    8.4289       -.17571E-06** at limit **
  25  Prefactor     .10000E-03    6.6289        .14261E-07** at limit **
  26  Prefactor     .10000E-03    52.596        .10417E-05** at limit **
  27  Prefactor     1.3583        7.3732        .51699E-05    .22116E-04
  28  Prefactor     4.5777        62.675       -.11582E-04    .72301E-04
  29  Normalizat    1.0495        .18926        .83555E-06    .14930E-03
  30  Prefactor     1.0063        .19950        .35268E-06    .18840E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1414
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7314
  norm       = 4.96206
  Prefactor  = 0.0001
  Prefactor  = 18.0662
  norm       = 0.0001
  Prefactor  = 26.9073
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.59454
  Prefactor  = 2.03788
  norm       = 0.863122
  norm       = 2.70866
  Prefactor  = 11.0842
  Prefactor  = 15.803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.75311
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.35833
  Prefactor  = 4.57766
  Normalizat = 1.04953
  Prefactor  = 1.00629
 **********
 **   18 **HESSE 
 **********

 FCN=   5782.354     FROM HESSE     STATUS=OK           586 CALLS     3866 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6667        .12077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.6719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.141        11.717        .12583E-03   -1.5071    
   5  norm          .10000E-03    6.6131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.731        16.075        .11228E-03   -1.4994    
   8  norm          4.9621        6.3076        .18054E-03   -1.5262    
   9  Prefactor     .10000E-03    11.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.066        12.601        .94229E-04   -1.4858    
  11  norm          .10000E-03    3.1070        .13085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.907        14.218        .77230E-04   -1.4670    
  13  Prefactor     .10000E-03    9.1932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .52263        .53276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.5945        7.7798        .12936E-03   -1.5088    
  16  Prefactor     2.0379        5.0875        .26177E-03   -1.5422    
  17  norm          .86312        1.5997        .11677E-03   -1.5522    
  18  norm          2.7087        3.4956        .14932E-03   -1.5379    
  19  Prefactor     11.084        7.4839        .12034E-03   -1.5042    
  20  Prefactor     15.803        82.576        .10092E-03   -1.4913    
  21  Prefactor     .10000E-03    4.3417        .15472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.2804        .17022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.7531        14.393        .18460E-03   -1.5272    
  24  norm          .10000E-03    8.4498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.6318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    52.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.3583        7.5443        .14895E-02   -1.5475    
  28  Prefactor     4.5777        63.616        .18699E-03   -1.5280    
  29  Normalizat    1.0495        .22313        .23701E-03   -.91389    
  30  Prefactor     1.0063        .23457        .26017E-03   -.92520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06515e-10
Minuit parameter uncertainties:
  1  7.03689e-07
  2  8.60998e-05
  3  1.72546e-05
  4  11.7197
  5  9.02667e-06
  6  0.000102431
  7  16.0804
  8  6.30849
  9  1.47074e-05
  10  12.6026
  11  2.07295e-06
  12  14.2202
  13  1.52467e-05
  14  2.92497e-07
  15  7.7806
  16  5.08855
  17  1.59976
  18  3.49588
  19  7.48452
  20  72.4052
  21  1.08427e-06
  22  6.67371e-07
  23  14.4034
  24  4.32708e-06
  25  9.05481e-06
  26  0.000221098
  27  6.40341
  28  34.1738
  29  0.223334
  30  0.234813
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.108e+01  7.485e+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

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.006e+00  2.348e-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.050e+00  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.69
Ra Dec: 229.049 43.853
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 4.49e-08 +/- 3.03e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 9.18e-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) = 5779.91837947
delta logL = 2.43559375429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5779.51218343
delta logL = 2.8417897955

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.820       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4813       1.0000          .0000       10.000    
     3 'Normalizat'    1.0803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98342       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=   5779.512     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      215 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.852        16.423        .20518E-02   -.97404E-04
   2  Index         1.4823        .34156        .16645       -.20252E-04
   3  Normalizat    1.0805        .18182        .38864E-01    .10891E-04
   4  Prefactor     .98323        .19674        .46059E-01    .17185E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.8522
  Index      = 1.48227
  Normalizat = 1.08049
  Prefactor  = 0.983226
 **********
 **   18 **HESSE 
 **********

 FCN=   5779.512     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.852        16.456        .41037E-03   -1.4731    
   2  Index         1.4823        .37049        .67935E-02   -.78037    
   3  Normalizat    1.0805        .21389        .23394E-03   -.90381    
   4  Prefactor     .98323        .23164        .26275E-03   -.93291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.47991e-11
Minuit parameter uncertainties:
  1  16.4592
  2  0.371164
  3  0.214058
  4  0.231869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433090': 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) = 5779.51217928
delta logL = 2.8417939424

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  2.385e+01  1.646e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.482e+00  3.712e-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.832e-01  2.319e-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.080e+00  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.39
Ra Dec: 229.049 43.853
Photon Index (Free Index): 1.48 +/- 0.37
Photon Flux (Free Index): 2.22e-08 +/- 1.83e-08
Energy Flux (Free Index): 7.46e-05 +/- 7.42e-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/433090/cmap_HighResolution_478828801_479088001_4FGL_J1516.1+4351_daily_bin924.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.49e-08', energy_flux2='7.46e-05', photon_flux_error='3.03e-08', dlogl='2.84e+00', energy_flux='1.36e-05', photon_flux2='2.22e-08', job_status='DONE', time_completed='2021-09-11 22:18:06.828194', photon_index_error2='0.37', photon_index2='1.48', ts='8.69', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='7.42e-05', EG='1.05', time_epoch_completed='1631423886.83', return_code='0', job_id='433090', GAL2='0.98', EG2='1.08', return_code2='0', energy_flux_error='9.18e-06', photon_flux_error2='1.83e-08', ts2='14.39', photon_index='2.46' WHERE bin_id='924' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:18:06 PDT 2021


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

Job <4FGL_J1516.1+4351_daily_bin924> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 22:06:11 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:06: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 22:06:13 2021
Terminated at Sat Sep 11 22:18:07 2021
Results reported at Sat Sep 11 22:18:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin924 229.049 43.8527 478828801 479088001 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 :                                   699.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            716 sec.

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

