aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 71 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1516.1+4351_daily_bin1749
RA = 229.049, Dec = 43.8527
tmin = 692668801, tmax = 692928001
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='955597', job_status='RUN', time_executed='2022-12-17 00:56:41.259807', time_epoch_executed='1671267401.26' WHERE source_name='4FGL J1516.1+4351' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955597

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955597/ft1_4FGL_J1516.1+4351_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955597/ft2_4FGL_J1516.1+4351_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955597/ft1_4FGL_J1516.1+4351_daily_bin1749.fits outfile=/scratch/kocevski/955597/ft1_filteredMKT_4FGL_J1516.1+4351_daily_bin1749.fits ra=229.049 dec=43.8527 rad=12.0 tmin=692668801.0 tmax=692928001.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.72
user 3.49
sys 0.21

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

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

Number of photons that the gtmktime cut: 599

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/955597/ft1_filtered_4FGL_J1516.1+4351_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/955597/ft2_4FGL_J1516.1+4351_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/955597/ltcube_692668801_692928001_4FGL_J1516.1+4351_daily_bin1749.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/955597/ft2_4FGL_J1516.1+4351_daily_bin1749.fits
.....................!
real 12.08
user 11.73
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955597/ft1_filtered_4FGL_J1516.1+4351_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/955597/ft2_4FGL_J1516.1+4351_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/955597/ltcube_692668801_692928001_4FGL_J1516.1+4351_daily_bin1749.fits outfile=/scratch/kocevski/955597/expmap_692668801_692928001_4FGL_J1516.1+4351_daily_bin1749.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/955597/ltcube_692668801_692928001_4FGL_J1516.1+4351_daily_bin1749.fits
.....................!
real 190.85
user 185.20
sys 5.32

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/955597/ft1_filtered_4FGL_J1516.1+4351_daily_bin1749.fits scfile=/scratch/kocevski/955597/ft2_4FGL_J1516.1+4351_daily_bin1749.fits outfile=/scratch/kocevski/955597/cmap_692668801_692928001_4FGL_J1516.1+4351_daily_bin1749.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955597/ft1_filtered_4FGL_J1516.1+4351_daily_bin1749.fits scfile=/scratch/kocevski/955597/ft2_4FGL_J1516.1+4351_daily_bin1749.fits outfile=/scratch/kocevski/955597/cmap_HighResolution_692668801_692928001_4FGL_J1516.1+4351_daily_bin1749.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.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/955597/ft1_filtered_4FGL_J1516.1+4351_daily_bin1749.fits', '/scratch/kocevski/955597/ft2_4FGL_J1516.1+4351_daily_bin1749.fits', expMap='/scratch/kocevski/955597/expmap_692668801_692928001_4FGL_J1516.1+4351_daily_bin1749.fits', expCube='/scratch/kocevski/955597/ltcube_692668801_692928001_4FGL_J1516.1+4351_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/955597/Model_4FGL_J1516.1+4351_daily_bin1749.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  0.000e+00  1.000e+06 ( 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/955597/ft1_filtered_4FGL_J1516.1+4351_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/955597/ft2_4FGL_J1516.1+4351_daily_bin1749.fits
Exposure map: /scratch/kocevski/955597/expmap_692668801_692928001_4FGL_J1516.1+4351_daily_bin1749.fits
Exposure cube: /scratch/kocevski/955597/ltcube_692668801_692928001_4FGL_J1516.1+4351_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/955597/Model_4FGL_J1516.1+4351_daily_bin1749.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) = 6466.25659934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     2 'Prefactor '    .61395E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .18327E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .93144E-03   1.0000          .0000       .10000E+07
     5 'norm      '    13.474       1.0000          .0000       .10000E+07
     6 'Prefactor '    37.095       1.0000          .0000       .10000E+07
     7 'norm      '    5.6952       1.0000          .0000       .10000E+07
     8 'Prefactor '    16.939       1.0000          .0000       .10000E+07
     9 'norm      '    .26015E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .23699E-01   1.0000          .0000       .10000E+07
    11 'norm      '    2.2130       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22408E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.0547       1.0000          .0000       .10000E+07
    14 'norm      '    8.8715       1.0000          .0000       .10000E+07
    15 'norm      '    .79931E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .44846E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    22.410       1.0000          .0000       .10000E+07
    18 'Prefactor '    .23876E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    4.9240       1.0000          .0000       .10000E+07
    20 'norm      '    .27017E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .31245E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .21646E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .18423E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    7.3417       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0273       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80620       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6466.250     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     2231 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57454E-07    50.369        .10237E-05** at limit **
   2  Prefactor     .41600E-06    6.2822        .11961E-06** at limit **
   3  Prefactor     .24425E-08    6.3068       -.27026E-07** at limit **
   4  Prefactor     .16809E-06    7.1278        .10494E-06** at limit **
   5  norm          13.492        2.2179        .13946E-07   -.44970E-02
   6  Prefactor     36.888        2.9067       -.53494E-09    .19539E-01
   7  norm          5.6723        7.4790        .11732E-07   -.50579E-03
   8  Prefactor     16.970        1.9338        .67443E-08    .39000E-02
   9  norm          .75384E-07    6.1341       -.42685E-07** at limit **
  10  Prefactor      .0000        15.855       -.10893E-06** at limit **
  11  norm          2.2099        1.3699       -.10948E-07   -.49878E-03
  12  Prefactor     .76661E-07    7.7495       -.33978E-07** at limit **
  13  Prefactor     5.0457        7.5783        .18364E-06    .12128E-02
  14  norm          8.8745        2.1916        .37701E-08   -.52284E-03
  15  norm           .0000        3.1465        .88097E-07** at limit **
  16  Prefactor     .35527E-08    4.8201        .74631E-07** at limit **
  17  Prefactor     21.907        9.9349       -.26895E-07    .65705E-01
  18  Prefactor     .26368E-07    22.449       -.33802E-07** at limit **
  19  Prefactor     4.9018        5.6810       -.91343E-07   -.17612E-01
  20  norm          .16653E-09    3.7022        .21910E-06** at limit **
  21  Prefactor     .12046E-07    5.2165        .20478E-06** at limit **
  22  Prefactor     .72503E-06    79.858        .92531E-06** at limit **
  23  Prefactor     .12212E-08    4.5914       -.16238E-06** at limit **
  24  Prefactor     7.5159        11.618        .19087E-07    .46005E-01
  25  Normalizat    1.0272        .19065       -.13438E-05   -.12871E-03
  26  Prefactor     .80658        .19652       -.43134E-05   -.11388E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.7454e-08
  Prefactor  = 4.16001e-07
  Prefactor  = 2.44249e-09
  Prefactor  = 1.68088e-07
  norm       = 13.4919
  Prefactor  = 36.8877
  norm       = 5.67233
  Prefactor  = 16.9702
  norm       = 7.53841e-08
  Prefactor  = 0
  norm       = 2.20988
  Prefactor  = 7.66609e-08
  Prefactor  = 5.04569
  norm       = 8.87455
  norm       = 0
  Prefactor  = 3.55271e-09
  Prefactor  = 21.9071
  Prefactor  = 2.63678e-08
  Prefactor  = 4.90177
  norm       = 1.66533e-10
  Prefactor  = 1.20459e-08
  Prefactor  = 7.25031e-07
  Prefactor  = 1.22125e-09
  Prefactor  = 7.51587
  Normalizat = 1.02718
  Prefactor  = 0.806582
 **********
 **   18 **HESSE 
 **********

 FCN=   6466.250     FROM HESSE     STATUS=OK           516 CALLS     2747 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57454E-07    4.4753        .56338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .41600E-06    9.3841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .24425E-08    10.980        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .16809E-06    8.5654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.492        12.618        .27262E-03   -1.5635    
   6  Prefactor     36.888        47.870        .16421E-03   -1.5586    
   7  norm          5.6723        7.5831        .42067E-03   -1.5660    
   8  Prefactor     16.970        16.346        .24308E-03   -1.5626    
   9  norm          .75384E-07    6.5083        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        7.3008        .75266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2099        1.3753        .69112E-03   -1.5678    
  12  Prefactor     .76661E-07    11.736        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0457        7.6347        .44700E-03   -1.5663    
  14  norm          8.8745        2.2146        .33628E-03   -1.5648    
  15  norm           .0000        3.1161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .35527E-08    5.2097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.907        48.940        .21130E-03   -1.5614    
  18  Prefactor     .26368E-07    22.816        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9018        11.084        .45302E-03   -1.5664    
  20  norm          .16653E-09    3.7100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .12046E-07    6.1248        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .72503E-06    81.984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .12212E-08    4.6637        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.5159        20.082        .36993E-03   -1.5653    
  25  Normalizat    1.0272        .16744        .42441E-01   -.92125    
  26  Prefactor     .80658        .16952        .43798E-01   -.99486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.64886e-07
Minuit parameter uncertainties:
  1  0.00101426
  2  0.00395168
  3  0.000327972
  4  0.00239992
  5  12.6175
  6  47.8703
  7  7.58311
  8  16.3457
  9  0.00140097
  10  7.59665e-06
  11  1.37534
  12  0.00189688
  13  7.6347
  14  2.21455
  15  2.63749e-07
  16  0.000272815
  17  48.9413
  18  0.00155078
  19  11.0842
  20  4.74753e-05
  21  0.00054277
  22  0.0154197
  23  0.000151361
  24  20.082
  25  0.167527
  26  0.169632
Done.

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

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  3.553e-09  2.728e-04  0.000e+00  1.000e+06 ( 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:  8.066e-01  1.696e-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.027e+00  1.675e-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: 6.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/955597/likelihoodResults_692668801_692928001_4FGL_J1516.1+4351_daily_bin1749.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) = 6466.25025015
delta logL = -0.000459189068351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6465.61158022
delta logL = 0.638210742414

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20777E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.3197       1.0000          .0000       10.000    
     3 'Normalizat'    .96749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84508       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=   6465.612     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      281 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20260E-01    .30955        .24609E-03** at limit **
   2  Index         5.3307        2.4423        .98969E-01    .18651E-03
   3  Normalizat    .96689        .32749E-01    .45758E-01   -.70222E-06
   4  Prefactor     .84564        .35108E-01    .44301E-01    .13951E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0202595
  Index      = 5.33072
  Normalizat = 0.966895
  Prefactor  = 0.845643
 **********
 **   18 **HESSE 
 **********

 FCN=   6465.612     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      316 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20260E-01    .94102        .11085E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.3307        7.3473        .50958E-02    .66192E-01
   3  Normalizat    .96689        .13046        .22989E-03   -.94148    
   4  Prefactor     .84564        .13718        .26054E-03   -.98067    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.16617e-07
Minuit parameter uncertainties:
  1  0.276149
  2  5.62292
  3  0.130501
  4  0.137233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955597': 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) = 6465.61156365
delta logL = 0.638227309172

Extracting fit parameters...

4FGL J1516.1+4351
   Spectrum: PowerLaw
296    Prefactor:  2.026e-02  2.761e-01  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  5.331e+00  5.623e+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.456e-01  1.372e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  9.669e-01  1.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 229.049 43.853
Photon Index (Free Index): 5.33 +/- 5.62
Photon Flux (Free Index): 4.72e-08 +/- 4.58e-08
Energy Flux (Free Index): 6.11e-06 +/- 7.10e-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/955597/cmap_HighResolution_692668801_692928001_4FGL_J1516.1+4351_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-03', comment='SUCCESS', energy_flux2='6.11e-06', dlogl='6.38e-01', photon_flux2='4.72e-08', job_status='DONE', time_completed='2022-12-17 01:08:43.833810', photon_index_error2='5.62', photon_index2='5.33', ts='-0.00', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='6.41e-08', energy_flux_error2='7.10e-06', EG='1.03', time_epoch_completed='1671268123.83', return_code='0', job_id='955597', GAL2='0.85', EG2='0.97', return_code2='102', photon_flux_error2='4.58e-08', ts2='1.42', photon_index='2.46' WHERE bin_id='1749' AND source_name='4FGL J1516.1+4351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:08:43 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 955597: <4FGL_J1516.1+4351_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1516.1+4351_daily_bin1749> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Dec 17 00:55:20 2022
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:55:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:55:20 2022
Terminated at Sat Dec 17 01:08:44 2022
Results reported at Sat Dec 17 01:08:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.1+4351_daily_bin1749 229.049 43.8527 692668801 692928001 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 :                                   725.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            804 sec.

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

