/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 5 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1516.1+4351_daily_bin106
RA = 229.049, Dec = 43.8527
tmin = 266803201, tmax = 267062401
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='422748', job_status='RUN', time_executed='2021-09-11 21:26:17.314823', time_epoch_executed='1631420777.31' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422748

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422748/ft1_4FGL_J1516.1+4351_daily_bin106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422748/ft2_4FGL_J1516.1+4351_daily_bin106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422748/ft1_4FGL_J1516.1+4351_daily_bin106.fits outfile=/scratch/kocevski/422748/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin106.fits ra=229.049 dec=43.8527 rad=12.0 tmin=266803201.0 tmax=267062401.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 1.96
user 1.76
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422748/ft1_filtered_4FGL_J1516.1+4351_daily_bin106.fits evtable="EVENTS" scfile=/scratch/kocevski/422748/ft2_4FGL_J1516.1+4351_daily_bin106.fits sctable="SC_DATA" expcube=/scratch/kocevski/422748/ltcube_266803201_267062401_4FGL_J1516.1+4351_daily_bin106.fits outfile=/scratch/kocevski/422748/expmap_266803201_267062401_4FGL_J1516.1+4351_daily_bin106.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/422748/ltcube_266803201_267062401_4FGL_J1516.1+4351_daily_bin106.fits
.....................!
real 190.61
user 184.86
sys 5.39

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/422748/ft1_filtered_4FGL_J1516.1+4351_daily_bin106.fits scfile=/scratch/kocevski/422748/ft2_4FGL_J1516.1+4351_daily_bin106.fits outfile=/scratch/kocevski/422748/cmap_266803201_267062401_4FGL_J1516.1+4351_daily_bin106.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/422748/ft1_filtered_4FGL_J1516.1+4351_daily_bin106.fits scfile=/scratch/kocevski/422748/ft2_4FGL_J1516.1+4351_daily_bin106.fits outfile=/scratch/kocevski/422748/cmap_HighResolution_266803201_267062401_4FGL_J1516.1+4351_daily_bin106.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/422748/ft1_filtered_4FGL_J1516.1+4351_daily_bin106.fits evtable="EVENTS" scfile=/scratch/kocevski/422748/ft2_4FGL_J1516.1+4351_daily_bin106.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/422748/Model_4FGL_J1516.1+4351_daily_bin106.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/422748/ft1_filtered_4FGL_J1516.1+4351_daily_bin106.fits.....................!
real 42.57
user 41.20
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8096       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.971       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.113       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.072       1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.663       1.0000         .10000E-03   10000.    
     8 'norm      '    32.312       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.939       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1524       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1702       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2701       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.6138       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.2738       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1098       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .76733       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=   5055.025     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3936 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8092        3.3529        .81809E-06   -.16597E-02
   2  Prefactor     16.974        26.433       -.99952E-06   -.45088E-04
   3  Prefactor     13.121        25.055       -.10979E-05   -.76557E-05
   4  Prefactor     .10000E-03    55.425        .48017E-06** at limit **
   5  norm          .10000E-03    20.707        .20416E-07** at limit **
   6  Prefactor     39.073        58.117        .21973E-07    .46637E-05
   7  Prefactor     33.668        30.821        .15553E-05    .21051E-04
   8  norm          32.314        11.243        .36264E-06    .65332E-05
   9  Prefactor     13.911        76.899       -.28818E-04   -.26682E-04
  10  Prefactor     .10000E-03    6.6307       -.25358E-07** at limit **
  11  norm          .10000E-03    8.0727       -.20144E-07** at limit **
  12  Prefactor     .10000E-03    3.7054        .66391E-08** at limit **
  13  Prefactor     .10000E-03    4.2564       -.10718E-09** at limit **
  14  norm          .10000E-03    .38478        .19875E-08** at limit **
  15  Prefactor     .10000E-03    2.2173        .22287E-07** at limit **
  16  Prefactor     3.1522        5.4216       -.11658E-05   -.87427E-04
  17  norm          .10000E-03    .49258        .46864E-08** at limit **
  18  norm          .10000E-03    2.4408        .56877E-08** at limit **
  19  Prefactor     1.1718        17.302       -.96177E-06   -.14368E-03
  20  Prefactor     .10000E-03    108.31       -.29714E-06** at limit **
  21  Prefactor     .10000E-03    12.808       -.49481E-08** at limit **
  22  Prefactor     4.2681        16.948       -.30878E-06    .21942E-04
  23  Prefactor     .10000E-03    18.455        .14910E-06** at limit **
  24  norm          5.6125        10.911       -.11738E-05   -.24303E-04
  25  Prefactor     .10000E-03    5.8516        .66383E-08** at limit **
  26  Prefactor     .10000E-03    334.27        .19832E-05** at limit **
  27  Prefactor     .10000E-03    3.7365       -.34600E-07** at limit **
  28  Prefactor     4.2724        51.695       -.62948E-06   -.87807E-04
  29  Normalizat    1.1097        .19917        .13101E-05    .14570E-04
  30  Prefactor     .76741        .19257        .13725E-06    .65855E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.80918
  Prefactor  = 16.9738
  Prefactor  = 13.1209
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 39.0733
  Prefactor  = 33.6681
  norm       = 32.3135
  Prefactor  = 13.911
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.15217
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.17178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.26809
  Prefactor  = 0.0001
  norm       = 5.61248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.2724
  Normalizat = 1.10973
  Prefactor  = 0.767413
 **********
 **   18 **HESSE 
 **********

 FCN=   5055.025     FROM HESSE     STATUS=OK           584 CALLS     4520 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8092        7.2061        .12134E-02   -1.5373    
   2  Prefactor     16.974        27.444        .48611E-03   -1.4884    
   3  Prefactor     13.121        24.881        .11061E-03   -1.4983    
   4  Prefactor     .10000E-03    55.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    20.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     39.073        58.195        .64123E-04   -1.4457    
   7  Prefactor     33.668        30.925        .69066E-04   -1.4547    
   8  norm          32.314        11.251        .70491E-04   -1.4570    
   9  Prefactor     13.911        77.350        .10728E-03   -1.4962    
  10  Prefactor     .10000E-03    6.6392        .17876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.3007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7073        .13366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.2606        .14325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .38642        .43063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2199        .10339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1522        5.4155        .20897E-03   -1.5353    
  17  norm          .10000E-03    .49727        .48702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.4591        .10809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1718        14.597        .42430E-03   -1.5491    
  20  Prefactor     .10000E-03    108.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.2681        15.549        .19498E-03   -1.5295    
  23  Prefactor     .10000E-03    18.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.6125        10.896        .16955E-03   -1.5234    
  25  Prefactor     .10000E-03    5.8527        .16798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    335.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.7389        .13402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.2724        53.615        .97445E-03   -1.5295    
  29  Normalizat    1.1097        .23757        .22478E-03   -.89440    
  30  Prefactor     .76741        .22857        .27614E-03   -1.0094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37301e-09
Minuit parameter uncertainties:
  1  7.20837
  2  27.4645
  3  24.9006
  4  0.000496873
  5  6.15842e-05
  6  58.2796
  7  30.9399
  8  11.2522
  9  65.7361
  10  4.03262e-06
  11  2.01597e-06
  12  2.52751e-07
  13  7.97209e-07
  14  2.71296e-07
  15  1.56862e-06
  16  5.4163
  17  5.75065e-08
  18  5.7815e-06
  19  8.27358
  20  8.17058e-05
  21  6.52669e-06
  22  15.5636
  23  3.55569e-05
  24  10.9002
  25  1.21804e-06
  26  0.000411532
  27  2.08782e-06
  28  30.303
  29  0.237797
  30  0.228849
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.172e+00  8.274e+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:  7.674e-01  2.288e-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.110e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/422748/likelihoodResults_266803201_267062401_4FGL_J1516.1+4351_daily_bin106.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) = 5054.91159159
delta logL = 0.11301216318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5054.44288089
delta logL = 0.581722865626

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.5705       1.0000          .0000       10.000    
     3 'Normalizat'    1.0463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81325       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=   5054.443     FROM MIGRAD    STATUS=CONVERGED    136 CALLS      435 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .33294E-02    .35759E-03** at limit **
   2  Index         7.5718        2.4266        .14654        .22354E-03
   3  Normalizat    1.0461        .39940E-01    .40814E-01   -.33714E-03
   4  Prefactor     .81317        .41386E-01    .43889E-01   -.14388E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.57181
  Normalizat = 1.04615
  Prefactor  = 0.813171
 **********
 **   18 **HESSE 
 **********

 FCN=   5054.443     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      474 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .32034E-01    .16311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.5718        7.9770        .51774E-02    .54026    
   3  Normalizat    1.0461        .10057        .23058E-03   -.91500    
   4  Prefactor     .81317        .10433        .26888E-03   -.99245    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.7065e-08
Minuit parameter uncertainties:
  1  1.46154e-06
  2  5.50207
  3  0.100592
  4  0.104357
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422748': 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) = 5054.44286335
delta logL = 0.581740399767

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.462e-06  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  7.572e+00  5.502e+00  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:  8.132e-01  1.044e-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.046e+00  1.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 229.049 43.853
Photon Index (Free Index): 7.57 +/- 5.50
Photon Flux (Free Index): 5.16e-08 +/- 6.80e-07
Energy Flux (Free Index): 6.06e-06 +/- 7.93e-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/422748/cmap_HighResolution_266803201_267062401_4FGL_J1516.1+4351_daily_bin106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', comment='SUCCESS', energy_flux2='6.06e-06', dlogl='5.82e-01', photon_flux2='5.16e-08', job_status='DONE', time_completed='2021-09-11 21:39:39.678267', photon_index_error2='5.50', photon_index2='7.57', ts='0.03', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='8.75e-08', energy_flux_error2='7.93e-05', EG='1.11', time_epoch_completed='1631421579.68', return_code='0', job_id='422748', GAL2='0.81', EG2='1.05', return_code2='102', photon_flux_error2='6.80e-07', ts2='1.32', photon_index='2.46' WHERE bin_id='106' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 21:39:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 422748: <4FGL_J1516.1+4351_daily_bin106> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin106> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Sep 11 21:26:02 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 21:26:03 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:26:03 2021
Terminated at Sat Sep 11 21:39:40 2021
Results reported at Sat Sep 11 21:39:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin106 229.049 43.8527 266803201 267062401 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 :                                   799.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

