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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin962
RA = 229.049, Dec = 43.8527
tmin = 488678401, tmax = 488937601
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='433143', job_status='RUN', time_executed='2021-09-11 22:06:29.873643', time_epoch_executed='1631423189.87' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='962'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433143

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433143/ft1_4FGL_J1516.1+4351_daily_bin962.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433143/ft2_4FGL_J1516.1+4351_daily_bin962.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433143/ft1_4FGL_J1516.1+4351_daily_bin962.fits outfile=/scratch/kocevski/433143/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin962.fits ra=229.049 dec=43.8527 rad=12.0 tmin=488678401.0 tmax=488937601.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 4.23
user 3.99
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433143/ft2_4FGL_J1516.1+4351_daily_bin962.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/433143/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin962.fits evtable="EVENTS" outfile="/scratch/kocevski/433143/ft1_filtered_4FGL_J1516.1+4351_daily_bin962.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/433143/ft1_filtered_4FGL_J1516.1+4351_daily_bin962.fits" evtable="EVENTS" scfile=/scratch/kocevski/433143/ft2_4FGL_J1516.1+4351_daily_bin962.fits sctable="SC_DATA" outfile=/scratch/kocevski/433143/ltcube_488678401_488937601_4FGL_J1516.1+4351_daily_bin962.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/433143/ft2_4FGL_J1516.1+4351_daily_bin962.fits
.....................!
real 11.94
user 11.56
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433143/ft1_filtered_4FGL_J1516.1+4351_daily_bin962.fits evtable="EVENTS" scfile=/scratch/kocevski/433143/ft2_4FGL_J1516.1+4351_daily_bin962.fits sctable="SC_DATA" expcube=/scratch/kocevski/433143/ltcube_488678401_488937601_4FGL_J1516.1+4351_daily_bin962.fits outfile=/scratch/kocevski/433143/expmap_488678401_488937601_4FGL_J1516.1+4351_daily_bin962.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/433143/ltcube_488678401_488937601_4FGL_J1516.1+4351_daily_bin962.fits
.....................!
real 191.71
user 186.19
sys 5.15

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/433143/ft1_filtered_4FGL_J1516.1+4351_daily_bin962.fits scfile=/scratch/kocevski/433143/ft2_4FGL_J1516.1+4351_daily_bin962.fits outfile=/scratch/kocevski/433143/cmap_488678401_488937601_4FGL_J1516.1+4351_daily_bin962.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433143/ft1_filtered_4FGL_J1516.1+4351_daily_bin962.fits scfile=/scratch/kocevski/433143/ft2_4FGL_J1516.1+4351_daily_bin962.fits outfile=/scratch/kocevski/433143/cmap_HighResolution_488678401_488937601_4FGL_J1516.1+4351_daily_bin962.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/433143/ft1_filtered_4FGL_J1516.1+4351_daily_bin962.fits evtable="EVENTS" scfile=/scratch/kocevski/433143/ft2_4FGL_J1516.1+4351_daily_bin962.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433143/Model_4FGL_J1516.1+4351_daily_bin962.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/433143/ft1_filtered_4FGL_J1516.1+4351_daily_bin962.fits.....................!
real 43.14
user 41.75
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8199       1.0000         .10000E-03   10000.    
     2 'Prefactor '    48.496       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10688E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8434       1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10926E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.1698       1.0000         .10000E-03   10000.    
     9 'Prefactor '    72.555       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.441       1.0000         .10000E-03   10000.    
    11 'norm      '    4.0367       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.3133       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6777       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2541       1.0000         .10000E-03   10000.    
    18 'norm      '    .10271E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2316       1.0000         .10000E-03   10000.    
    20 'Prefactor '    63.867       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11184E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.1024       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .83518       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12085E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84355       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .69547       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=   5187.842     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3912 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8203        4.7205        .13821E-06    .15754E-04
   2  Prefactor     48.499        24.015        .92341E-07    .89128E-05
   3  Prefactor     .10000E-03    14.764       -.49064E-06** at limit **
   4  Prefactor     5.8497        14.146        .51706E-06    .36385E-04
   5  norm          .10000E-03    5.2041        .85192E-07** at limit **
   6  Prefactor     .10000E-03    28.063        .77871E-06** at limit **
   7  Prefactor     .10000E-03    38.598       -.24908E-05** at limit **
   8  norm          4.1702        3.9778       -.80938E-07    .11684E-04
   9  Prefactor     72.553        45.885        .35644E-06    .25363E-04
  10  Prefactor     12.438        17.853        .27255E-06   -.90502E-05
  11  norm          4.0366        4.4337       -.14430E-07    .20093E-04
  12  Prefactor     .10002E-03    6.2634       -.12854E-05** at limit **
  13  Prefactor     .10000E-03    12.818        .63402E-06** at limit **
  14  norm          6.3136        2.1406       -.24329E-08   -.99382E-04
  15  Prefactor     .10000E-03    3.7630        .41938E-07** at limit **
  16  Prefactor     4.6791        6.7299        .65232E-07   -.28658E-04
  17  norm          2.2543        1.5570        .12444E-07    .12585E-03
  18  norm          .10000E-03    2.1148        .41262E-06** at limit **
  19  Prefactor     4.2379        5.8423        .10254E-05    .12272E-03
  20  Prefactor     63.867        75.768        .13314E-06    .34060E-05
  21  Prefactor     .10000E-03    7.9563        .48464E-06** at limit **
  22  Prefactor     .10000E-03    14.683        .31996E-06** at limit **
  23  Prefactor     .10000E-03    7.6626       -.47440E-06** at limit **
  24  norm          .10000E-03    4.7601       -.89701E-07** at limit **
  25  Prefactor     6.0441        23.215        .47576E-05    .43588E-04
  26  Prefactor     .10000E-03    16.397       -.39388E-06** at limit **
  27  Prefactor     .82968        6.6627        .24733E-06    .11036E-04
  28  Prefactor     .10000E-03    26.959        .14401E-05** at limit **
  29  Normalizat    .84315        .16358       -.38990E-06    .36373E-04
  30  Prefactor     .69595        .16876       -.44242E-06    .83324E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.82032
  Prefactor  = 48.4989
  Prefactor  = 0.0001
  Prefactor  = 5.84974
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.17023
  Prefactor  = 72.5534
  Prefactor  = 12.4378
  norm       = 4.03663
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  norm       = 6.31365
  Prefactor  = 0.0001
  Prefactor  = 4.67905
  norm       = 2.25427
  norm       = 0.0001
  Prefactor  = 4.23791
  Prefactor  = 63.8673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.04413
  Prefactor  = 0.0001
  Prefactor  = 0.829678
  Prefactor  = 0.0001
  Normalizat = 0.843152
  Prefactor  = 0.695948
 **********
 **   18 **HESSE 
 **********

 FCN=   5187.842     FROM HESSE     STATUS=OK           586 CALLS     4498 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8203        4.7012        .19439E-03   -1.5372    
   2  Prefactor     48.499        24.114        .57582E-04   -1.4314    
   3  Prefactor     .10000E-03    14.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.8497        14.175        .16614E-03   -1.5224    
   5  norm          .10000E-03    5.2047        .16047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    38.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.1702        3.9711        .13591E-03   -1.5300    
   9  Prefactor     72.553        45.918        .47132E-04   -1.4002    
  10  Prefactor     12.438        17.824        .11357E-03   -1.5002    
  11  norm          4.0366        4.4344        .15512E-03   -1.5306    
  12  Prefactor     .10002E-03    19.428        .31124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.3136        2.1395        .58244E-04   -1.5205    
  15  Prefactor     .10000E-03    3.7871        .13632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6791        6.7155        .18607E-03   -1.5275    
  17  norm          2.2543        1.5480        .69319E-04   -1.5408    
  18  norm          .10000E-03    2.1669        .10240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.2379        5.9321        .97943E-03   -1.5296    
  20  Prefactor     63.867        75.722        .50214E-04   -1.4108    
  21  Prefactor     .10000E-03    7.9798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.122        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.6740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.7679        .15347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.0441        23.329        .16252E-03   -1.5216    
  26  Prefactor     .10000E-03    16.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .82968        6.7741        .35092E-03   -1.5526    
  28  Prefactor     .10000E-03    27.927        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .84315        .19444        .21407E-03   -.98487    
  30  Prefactor     .69595        .19924        .24868E-03   -1.0369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.39498e-10
Minuit parameter uncertainties:
  1  4.7018
  2  24.1191
  3  2.52225e-05
  4  14.1829
  5  1.43243e-06
  6  3.50856e-05
  7  9.78915e-05
  8  3.9714
  9  45.9404
  10  17.8321
  11  4.43473
  12  0.00116727
  13  1.98822e-05
  14  2.13955
  15  4.98591e-06
  16  6.71661
  17  1.54806
  18  3.2593e-06
  19  5.93297
  20  75.8363
  21  8.53037e-06
  22  1.83396e-05
  23  1.14671e-05
  24  2.11518e-06
  25  23.3639
  26  1.16276e-05
  27  4.74189
  28  0.00010067
  29  0.194601
  30  0.199442
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  4.238e+00  5.933e+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:  6.959e-01  1.994e-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:  8.432e-01  1.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/433143/likelihoodResults_488678401_488937601_4FGL_J1516.1+4351_daily_bin962.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): 0
logL (Free Index) = 5187.40082912
delta logL = 0.440884543293

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5187.39197767
delta logL = 0.449735998587

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51203       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8979       1.0000          .0000       10.000    
     3 'Normalizat'    .80302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72443       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=   5187.392     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      299 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51151        8.0961        .98159E-02    .13662E-02
   2  Index         3.8985        2.7935        .97616E-01    .18133E-03
   3  Normalizat    .80298        .37326E-01    .43650E-01   -.15047E-04
   4  Prefactor     .72448        .39686E-01    .42725E-01    .13237E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.511507
  Index      = 3.89851
  Normalizat = 0.802985
  Prefactor  = 0.724476
 **********
 **   18 **HESSE 
 **********

 FCN=   5187.392     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      334 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51151        19.519        .45014E-03   -1.5565    
   2  Index         3.8985        6.9128        .48217E-02   -.22212    
   3  Normalizat    .80298        .14492        .21886E-03   -.99958    
   4  Prefactor     .72448        .15133        .24416E-03   -1.0258    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.59758e-10
Minuit parameter uncertainties:
  1  6.32121
  2  5.74349
  3  0.144988
  4  0.151417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433143': 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) = 5187.39197751
delta logL = 0.449736160852

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  5.115e-01  6.321e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  3.899e+00  5.743e+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:  7.245e-01  1.514e-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:  8.030e-01  1.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.82
Ra Dec: 229.049 43.853
Photon Index (Free Index): 3.90 +/- 5.74
Photon Flux (Free Index): 4.33e-08 +/- 4.42e-08
Energy Flux (Free Index): 6.60e-06 +/- 6.38e-06

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/433143/cmap_HighResolution_488678401_488937601_4FGL_J1516.1+4351_daily_bin962.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-03', comment='SUCCESS', energy_flux2='6.60e-06', dlogl='4.50e-01', photon_flux2='4.33e-08', job_status='DONE', time_completed='2021-09-11 22:19:54.446455', photon_index_error2='5.74', photon_index2='3.90', ts='0.79', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='7.82e-08', energy_flux_error2='6.38e-06', EG='0.84', time_epoch_completed='1631423994.45', return_code='0', job_id='433143', GAL2='0.72', EG2='0.80', return_code2='102', photon_flux_error2='4.42e-08', ts2='1.82', photon_index='2.46' WHERE bin_id='962' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:19:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 433143: <4FGL_J1516.1+4351_daily_bin962> in cluster <slac> Done

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

Your job looked like:

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

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

