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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin694
RA = 229.049, Dec = 43.8527
tmin = 419212801, tmax = 419472001
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='430511', job_status='RUN', time_executed='2021-09-11 21:56:25.776259', time_epoch_executed='1631422585.78' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430511

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430511/ft1_4FGL_J1516.1+4351_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430511/ft2_4FGL_J1516.1+4351_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430511/ft1_4FGL_J1516.1+4351_daily_bin694.fits outfile=/scratch/kocevski/430511/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin694.fits ra=229.049 dec=43.8527 rad=12.0 tmin=419212801.0 tmax=419472001.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.42
user 5.15
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430511/ft1_filtered_4FGL_J1516.1+4351_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/430511/ft2_4FGL_J1516.1+4351_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/430511/ltcube_419212801_419472001_4FGL_J1516.1+4351_daily_bin694.fits outfile=/scratch/kocevski/430511/expmap_419212801_419472001_4FGL_J1516.1+4351_daily_bin694.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/430511/ltcube_419212801_419472001_4FGL_J1516.1+4351_daily_bin694.fits
.....................!
real 190.20
user 184.98
sys 4.90

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/430511/ft1_filtered_4FGL_J1516.1+4351_daily_bin694.fits scfile=/scratch/kocevski/430511/ft2_4FGL_J1516.1+4351_daily_bin694.fits outfile=/scratch/kocevski/430511/cmap_419212801_419472001_4FGL_J1516.1+4351_daily_bin694.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430511/ft1_filtered_4FGL_J1516.1+4351_daily_bin694.fits scfile=/scratch/kocevski/430511/ft2_4FGL_J1516.1+4351_daily_bin694.fits outfile=/scratch/kocevski/430511/cmap_HighResolution_419212801_419472001_4FGL_J1516.1+4351_daily_bin694.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/430511/ft1_filtered_4FGL_J1516.1+4351_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/430511/ft2_4FGL_J1516.1+4351_daily_bin694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430511/Model_4FGL_J1516.1+4351_daily_bin694.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/430511/ft1_filtered_4FGL_J1516.1+4351_daily_bin694.fits......................!
real 33.27
user 32.04
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.184       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    60.441       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14579E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    68.333       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11795E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7999       1.0000         .10000E-03   10000.    
     8 'norm      '    11.234       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.977       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5943       1.0000         .10000E-03   10000.    
    11 'norm      '    7.5266       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.051       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10720E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.6151       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2191       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2649       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2019       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .52450E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.147       1.0000         .10000E-03   10000.    
    24 'norm      '    .10596E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.072       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.4072       1.0000         .10000E-03   10000.    
    28 'Prefactor '    41.737       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .31150       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4519       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=   3428.260     FROM MIGRAD    STATUS=CONVERGED    790 CALLS     4002 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.188        10.439        .44780E-06    .59760E-04
   2  Prefactor     .10000E-03    23.716        .20790E-06** at limit **
   3  Prefactor     60.482        39.071       -.30157E-05   -.15246E-03
   4  Prefactor     .10000E-03    77.078       -.67274E-05** at limit **
   5  norm          68.330        38.503        .13911E-05    .58017E-04
   6  Prefactor     .10001E-03    147.64       -.19342E-05** at limit **
   7  Prefactor     7.7947        32.348        .54867E-06   -.10286E-05
   8  norm          11.234        10.323       -.23520E-06   -.66230E-04
   9  Prefactor     29.975        61.060        .31958E-06   -.14785E-04
  10  Prefactor     3.5529        114.30        .36907E-05    .52161E-04
  11  norm          7.5267        10.659        .56076E-07   -.37305E-04
  12  Prefactor     13.054        14.496       -.39859E-06   -.43585E-04
  13  Prefactor     .10000E-03    44.192        .36193E-05** at limit **
  14  norm          4.6155        3.8791        .10891E-06   -.22978E-03
  15  Prefactor     .10000E-03    5.5269       -.19346E-06** at limit **
  16  Prefactor     5.2224        11.683       -.21647E-05   -.19513E-03
  17  norm          2.2657        2.4472       -.34651E-06   -.31017E-03
  18  norm          2.2017        4.5869        .53285E-05   -.83791E-04
  19  Prefactor     .10000E-03    14.225       -.23780E-05** at limit **
  20  Prefactor     .10000E-03    91.135        .46508E-05** at limit **
  21  Prefactor     .10000E-03    90.799       -.52966E-05** at limit **
  22  Prefactor     .10000E-03    9.4902       -.90687E-06** at limit **
  23  Prefactor     23.169        25.668       -.54923E-06   -.70714E-04
  24  norm          .10000E-03    34.574        .10955E-05** at limit **
  25  Prefactor     16.049        39.773        .22060E-05    .30471E-04
  26  Prefactor     .10000E-03    73.293       -.34748E-05** at limit **
  27  Prefactor     7.2441        31.177        .11112E-06   -.44357E-04
  28  Prefactor     42.296        115.15       -.22635E-07    .32313E-04
  29  Normalizat    .31096        .32087        .15823E-04   -.10546E-04
  30  Prefactor     1.4523        .31566       -.79873E-05    .10775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1876
  Prefactor  = 0.0001
  Prefactor  = 60.4817
  Prefactor  = 0.000100002
  norm       = 68.3302
  Prefactor  = 0.000100007
  Prefactor  = 7.79468
  norm       = 11.2342
  Prefactor  = 29.9751
  Prefactor  = 3.55285
  norm       = 7.52669
  Prefactor  = 13.0543
  Prefactor  = 0.0001
  norm       = 4.61552
  Prefactor  = 0.0001
  Prefactor  = 5.22242
  norm       = 2.26572
  norm       = 2.20169
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 23.1694
  norm       = 0.0001
  Prefactor  = 16.0488
  Prefactor  = 0.000100001
  Prefactor  = 7.24409
  Prefactor  = 42.2962
  Normalizat = 0.310958
  Prefactor  = 1.45232
 **********
 **   18 **HESSE 
 **********

 FCN=   3428.260     FROM HESSE     STATUS=OK           590 CALLS     4592 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.188        10.401        .11476E-03   -1.5010    
   2  Prefactor     .10000E-03    23.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     60.482        38.914        .25805E-03   -1.4151    
   4  Prefactor     .10000E-03    77.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          68.330        38.559        .48556E-04   -1.4053    
   6  Prefactor     .10001E-03    148.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.7947        32.163        .14358E-03   -1.5150    
   8  norm          11.234        10.292        .11953E-03   -1.5037    
   9  Prefactor     29.975        61.106        .73178E-04   -1.4612    
  10  Prefactor     3.5529        111.27        .21314E-03   -1.5331    
  11  norm          7.5267        10.655        .14618E-03   -1.5159    
  12  Prefactor     13.054        14.457        .11088E-03   -1.4985    
  13  Prefactor     .10000E-03    44.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.6155        3.8477        .94554E-04   -1.5278    
  15  Prefactor     .10000E-03    5.5362        .13429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.2224        11.707        .17595E-03   -1.5251    
  17  norm          2.2657        2.4097        .86902E-04   -1.5407    
  18  norm          2.2017        4.5818        .87366E-03   -1.5411    
  19  Prefactor     .10000E-03    14.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    91.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    94.790        .42267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.5864        .17640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     23.169        25.479        .83256E-04   -1.4745    
  24  norm          .10000E-03    34.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     16.049        39.784        .99904E-04   -1.4907    
  26  Prefactor     .10000E-03    73.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.2441        30.031        .14736E-03   -1.5170    
  28  Prefactor     42.296        112.74        .62050E-04   -1.4406    
  29  Normalizat    .31096        .31382        .43117E-03   -1.2219    
  30  Prefactor     1.4523        .32302        .22369E-03   -.78884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.62296e-10
Minuit parameter uncertainties:
  1  10.4022
  2  8.82179e-05
  3  38.9299
  4  0.00080443
  5  38.5726
  6  0.00202376
  7  31.696
  8  10.2935
  9  61.2344
  10  39.8462
  11  10.6576
  12  14.4604
  13  0.000201641
  14  3.84787
  15  1.29117e-06
  16  11.7121
  17  2.40984
  18  4.58257
  19  0.000334146
  20  0.000856645
  21  0.000612126
  22  0.000100398
  23  25.4907
  24  2.29858e-05
  25  39.8499
  26  0.000471826
  27  29.5243
  28  113.319
  29  0.315616
  30  0.323479
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  3.341e-04  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.452e+00  3.235e-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:  3.110e-01  3.156e-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: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430511/likelihoodResults_419212801_419472001_4FGL_J1516.1+4351_daily_bin694.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) = 3428.26057083
delta logL = -0.000325585698647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3428.26024568
delta logL = -4.30905856774e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17350E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3729       1.0000          .0000       10.000    
     3 'Normalizat'    .31108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4522       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=   3427.778     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      257 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0389        10.288        .90712E-02   -.29796E-03
   2  Index         1.1317        .57823        .24010       -.62873E-04
   3  Normalizat    .31683        .27846        .96402E-01    .11687E-03
   4  Prefactor     1.4380        .29889        .50755E-01    .16414E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.03891
  Index      = 1.1317
  Normalizat = 0.316832
  Prefactor  = 1.43803
 **********
 **   18 **HESSE 
 **********

 FCN=   3427.778     FROM HESSE     STATUS=OK            31 CALLS      288 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0389        12.151        .21979E-03   -1.6239    
   2  Index         1.1317        .73850        .10404E-01   -.88460    
   3  Normalizat    .31683        .28990        .42695E-03   -1.2185    
   4  Prefactor     1.4380        .31194        .22437E-03   -.79290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48662e-10
Minuit parameter uncertainties:
  1  12.1551
  2  0.745355
  3  0.29128
  4  0.312353
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430511': 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) = 3427.77787627
delta logL = 0.482368970066

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  7.039e+00  1.216e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.132e+00  7.454e-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:  1.438e+00  3.124e-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:  3.168e-01  2.913e-01  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/430511/cmap_HighResolution_419212801_419472001_4FGL_J1516.1+4351_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.47e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-11 22:07:02.127765', job_id='430511', GAL2='1.44', fit_tolerance='1e-08', EG2='0.32', EG='0.31', time_epoch_completed='1631423222.13', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='4.82e-01', ts2='0.97', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='694' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:07:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 430511: <4FGL_J1516.1+4351_daily_bin694> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin694> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 21:56:08 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 21:56:10 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:56:10 2021
Terminated at Sat Sep 11 22:07:02 2021
Results reported at Sat Sep 11 22:07:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin694 229.049 43.8527 419212801 419472001 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 :                                   634.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            654 sec.

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

