/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 8 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1516.9+1934_daily_bin373
RA = 229.244, Dec = 19.5805
tmin = 336009601, tmax = 336268801
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='449455', job_status='RUN', time_executed='2021-09-11 23:06:36.715933', time_epoch_executed='1631426796.72' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449455

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449455/ft1_4FGL_J1516.9+1934_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449455/ft2_4FGL_J1516.9+1934_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449455/ft1_4FGL_J1516.9+1934_daily_bin373.fits outfile=/scratch/kocevski/449455/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin373.fits ra=229.244 dec=19.5805 rad=12.0 tmin=336009601.0 tmax=336268801.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.29
user 3.05
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/449455/ft2_4FGL_J1516.9+1934_daily_bin373.fits

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449455/ft1_filtered_4FGL_J1516.9+1934_daily_bin373.fits" evtable="EVENTS" scfile=/scratch/kocevski/449455/ft2_4FGL_J1516.9+1934_daily_bin373.fits sctable="SC_DATA" outfile=/scratch/kocevski/449455/ltcube_336009601_336268801_4FGL_J1516.9+1934_daily_bin373.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/449455/ft2_4FGL_J1516.9+1934_daily_bin373.fits
.....................!
real 12.10
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449455/ft1_filtered_4FGL_J1516.9+1934_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/449455/ft2_4FGL_J1516.9+1934_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/449455/ltcube_336009601_336268801_4FGL_J1516.9+1934_daily_bin373.fits outfile=/scratch/kocevski/449455/expmap_336009601_336268801_4FGL_J1516.9+1934_daily_bin373.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/449455/ltcube_336009601_336268801_4FGL_J1516.9+1934_daily_bin373.fits
.....................!
real 191.58
user 185.72
sys 5.46

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 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J1516.9+1934 @ 229.244 19.5805

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/449455/ft1_filtered_4FGL_J1516.9+1934_daily_bin373.fits scfile=/scratch/kocevski/449455/ft2_4FGL_J1516.9+1934_daily_bin373.fits outfile=/scratch/kocevski/449455/cmap_336009601_336268801_4FGL_J1516.9+1934_daily_bin373.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.244 yref=19.5805 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449455/ft1_filtered_4FGL_J1516.9+1934_daily_bin373.fits scfile=/scratch/kocevski/449455/ft2_4FGL_J1516.9+1934_daily_bin373.fits outfile=/scratch/kocevski/449455/cmap_HighResolution_336009601_336268801_4FGL_J1516.9+1934_daily_bin373.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.244 yref=19.5805 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/449455/ft1_filtered_4FGL_J1516.9+1934_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/449455/ft2_4FGL_J1516.9+1934_daily_bin373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/449455/Model_4FGL_J1516.9+1934_daily_bin373.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/449455/ft1_filtered_4FGL_J1516.9+1934_daily_bin373.fits.....................!
real 56.25
user 54.91
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/449455/ft1_filtered_4FGL_J1516.9+1934_daily_bin373.fits', '/scratch/kocevski/449455/ft2_4FGL_J1516.9+1934_daily_bin373.fits', expMap='/scratch/kocevski/449455/expmap_336009601_336268801_4FGL_J1516.9+1934_daily_bin373.fits', expCube='/scratch/kocevski/449455/ltcube_336009601_336268801_4FGL_J1516.9+1934_daily_bin373.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/449455/Model_4FGL_J1516.9+1934_daily_bin373.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.9+1934'

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  7.750e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/449455/ft1_filtered_4FGL_J1516.9+1934_daily_bin373.fits
Spacecraft file(s): /scratch/kocevski/449455/ft2_4FGL_J1516.9+1934_daily_bin373.fits
Exposure map: /scratch/kocevski/449455/expmap_336009601_336268801_4FGL_J1516.9+1934_daily_bin373.fits
Exposure cube: /scratch/kocevski/449455/ltcube_336009601_336268801_4FGL_J1516.9+1934_daily_bin373.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/449455/Model_4FGL_J1516.9+1934_daily_bin373.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) = 7059.40233964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10393E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .23667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10788E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    90.966       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.870       1.0000         .10000E-03   10000.    
     9 'norm      '    .18222       1.0000         .10000E-03   10000.    
    10 'norm      '    .82254       1.0000         .10000E-03   10000.    
    11 'norm      '    .10685E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.556       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27596E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6242       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.337       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .68522       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    23.554       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.774       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4506       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78306       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7059.301     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2464 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4744        .83077E-08** at limit **
   2  norm          .10000E-03    1.3787        .47567E-07** at limit **
   3  norm          .26156        5.5783        .29000E-05    .23905E-03
   4  Prefactor     .10000E-03    12.796       -.65718E-06** at limit **
   5  Prefactor     .10001E-03    35.261       -.72409E-05** at limit **
   6  Prefactor     .10000E-03    33.773       -.63974E-05** at limit **
   7  Prefactor     90.988        55.739        .95480E-06    .42221E-05
   8  Prefactor     14.871        9.6031       -.12610E-06    .58633E-04
   9  norm          .18224        .13191       -.22104E-07    .12136E-02
  10  norm          .82323        .70634        .82723E-07   -.63220E-03
  11  norm          .10000E-03    190.45        .12617E-05** at limit **
  12  Prefactor     11.559        29.747        .32722E-07    .10153E-04
  13  Prefactor     .10002E-03    64.008        .13041E-04** at limit **
  14  Prefactor     8.6270        26.319        .66468E-06    .62668E-06
  15  Prefactor     .10000E-03    4.2428        .83981E-07** at limit **
  16  Prefactor     31.345        30.904       -.49333E-06   -.29211E-04
  17  Prefactor     .68482        1.3686        .13701E-05    .16869E-02
  18  Prefactor     .10000E-03    42.335        .12567E-05** at limit **
  19  norm          .10000E-03    .88234        .24196E-06** at limit **
  20  Prefactor     .10000E-03    14.736        .63414E-06** at limit **
  21  norm          23.555        10.958        .74931E-07    .13914E-04
  22  Prefactor     15.776        11.863       -.15541E-07   -.81157E-07
  23  Normalizat    1.4506        .21224        .22480E-07   -.19137E-04
  24  Prefactor     .78303        .13011       -.66135E-06    .19653E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.261564
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.000100003
  Prefactor  = 90.988
  Prefactor  = 14.8708
  norm       = 0.182244
  norm       = 0.823226
  norm       = 0.0001
  Prefactor  = 11.559
  Prefactor  = 0.000100015
  Prefactor  = 8.62698
  Prefactor  = 0.0001
  Prefactor  = 31.3455
  Prefactor  = 0.684824
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 23.5555
  Prefactor  = 15.7756
  Normalizat = 1.45063
  Prefactor  = 0.783032
 **********
 **   18 **HESSE 
 **********

 FCN=   7059.301     FROM HESSE     STATUS=OK           411 CALLS     2875 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4760        .12907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.1623        .18997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .26156        24.508        .26014E-02   -1.5606    
   4  Prefactor     .10000E-03    12.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    33.796        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     90.988        55.780        .42132E-04   -1.3797    
   8  Prefactor     14.871        9.6022        .10387E-03   -1.4937    
   9  norm          .18224        .13324        .25030E-04   -1.5623    
  10  norm          .82323        13.088        .25047E-02   -1.5527    
  11  norm          .10000E-03    197.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.559        29.751        .11785E-03   -1.5028    
  13  Prefactor     .10002E-03    6.6461        .60996E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.6270        26.349        .13650E-03   -1.5120    
  15  Prefactor     .10000E-03    4.2479        .16899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.345        30.913        .71577E-04   -1.4588    
  17  Prefactor     .68482        1.2759        .15236E-02   -1.5542    
  18  Prefactor     .10000E-03    42.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .88751        .76977E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          23.555        10.957        .82535E-04   -1.4737    
  22  Prefactor     15.776        11.866        .10085E-03   -1.4913    
  23  Normalizat    1.4506        .25125        .26942E-03   -.79175    
  24  Prefactor     .78303        .15417        .22143E-03   -1.0036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18499e-09
Minuit parameter uncertainties:
  1  7.8872e-08
  2  6.35516e-05
  3  5.06492
  4  7.41524e-05
  5  0.00118002
  6  0.000673584
  7  55.8123
  8  9.60324
  9  0.133245
  10  6.56625
  11  0.000450568
  12  29.7894
  13  0.000639232
  14  26.3849
  15  6.81984e-06
  16  30.9293
  17  1.27596
  18  0.000410417
  19  4.64437e-06
  20  6.71335e-05
  21  10.9577
  22  11.8681
  23  0.251462
  24  0.15425
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.156e+01  2.979e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  7.830e-01  1.543e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.451e+00  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 229.244 19.581
Photon Flux Upper Limit: 9.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449455/likelihoodResults_336009601_336268801_4FGL_J1516.9+1934_daily_bin373.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) = 7059.21752524
delta logL = 0.0831839264902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7059.21521425
delta logL = 0.0854949209115

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.526       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1009       1.0000          .0000       10.000    
     3 'Normalizat'    1.4553       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77932       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7059.215     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      291 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.530        40.508        .88406E-04   -.64072E-03
   2  Index         2.1008        1.0041        .15608E-01   -.29914E-03
   3  Normalizat    1.4554        .24375        .26903E-03    .17658E-03
   4  Prefactor     .77930        .15368        .22189E-03    .29502E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.53
  Index      = 2.10079
  Normalizat = 1.45539
  Prefactor  = 0.779295
 **********
 **   18 **HESSE 
 **********

 FCN=   7059.215     FROM HESSE     STATUS=OK            23 CALLS      314 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.530        39.996        .17681E-04   -1.4801    
   2  Index         2.1008        .99240        .62431E-03   -.61853    
   3  Normalizat    1.4554        .24395        .53806E-04   -.79040    
   4  Prefactor     .77930        .15380        .88755E-05   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.64479e-09
Minuit parameter uncertainties:
  1  40.0486
  2  1.00249
  3  0.24415
  4  0.153887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449455': 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) = 7059.21521387
delta logL = 0.0854952984246

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  2.053e+01  4.005e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.101e+00  1.002e+00  0.000e+00  1.000e+01 (-1.000e+00)
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  7.793e-01  1.539e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.455e+00  2.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
Ra Dec: 229.244 19.581

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/449455/cmap_HighResolution_336009601_336268801_4FGL_J1516.9+1934_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-03', job_status='DONE', photon_flux_upper_limit='9.41e-08', time_completed='2021-09-11 23:17:57.753088', job_id='449455', GAL2='0.78', fit_tolerance='1e-08', EG2='1.46', EG='1.45', time_epoch_completed='1631427477.75', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='8.55e-02', ts2='0.36', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='373' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:17:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 449455: <4FGL_J1516.9+1934_daily_bin373> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin373> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 23:06:19 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:06:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 23:06:21 2021
Terminated at Sat Sep 11 23:17:58 2021
Results reported at Sat Sep 11 23:17:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin373 229.244 19.5805 336009601 336268801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.9+1934 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   676.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            699 sec.

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

