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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin1166
RA = 229.244, Dec = 19.5805
tmin = 541555201, tmax = 541814401
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='455837', job_status='RUN', time_executed='2021-09-11 23:26:17.842455', time_epoch_executed='1631427977.84' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='1166'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455837

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455837/ft1_4FGL_J1516.9+1934_daily_bin1166.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455837/ft2_4FGL_J1516.9+1934_daily_bin1166.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455837/ft1_4FGL_J1516.9+1934_daily_bin1166.fits outfile=/scratch/kocevski/455837/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1166.fits ra=229.244 dec=19.5805 rad=12.0 tmin=541555201.0 tmax=541814401.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.70
user 3.44
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455837/ft1_filtered_4FGL_J1516.9+1934_daily_bin1166.fits" evtable="EVENTS" scfile=/scratch/kocevski/455837/ft2_4FGL_J1516.9+1934_daily_bin1166.fits sctable="SC_DATA" outfile=/scratch/kocevski/455837/ltcube_541555201_541814401_4FGL_J1516.9+1934_daily_bin1166.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/455837/ft2_4FGL_J1516.9+1934_daily_bin1166.fits
.....................!
real 11.81
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455837/ft1_filtered_4FGL_J1516.9+1934_daily_bin1166.fits evtable="EVENTS" scfile=/scratch/kocevski/455837/ft2_4FGL_J1516.9+1934_daily_bin1166.fits sctable="SC_DATA" expcube=/scratch/kocevski/455837/ltcube_541555201_541814401_4FGL_J1516.9+1934_daily_bin1166.fits outfile=/scratch/kocevski/455837/expmap_541555201_541814401_4FGL_J1516.9+1934_daily_bin1166.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/455837/ltcube_541555201_541814401_4FGL_J1516.9+1934_daily_bin1166.fits
.....................!
real 189.56
user 184.98
sys 4.26

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/455837/ft1_filtered_4FGL_J1516.9+1934_daily_bin1166.fits scfile=/scratch/kocevski/455837/ft2_4FGL_J1516.9+1934_daily_bin1166.fits outfile=/scratch/kocevski/455837/cmap_541555201_541814401_4FGL_J1516.9+1934_daily_bin1166.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455837/ft1_filtered_4FGL_J1516.9+1934_daily_bin1166.fits scfile=/scratch/kocevski/455837/ft2_4FGL_J1516.9+1934_daily_bin1166.fits outfile=/scratch/kocevski/455837/cmap_HighResolution_541555201_541814401_4FGL_J1516.9+1934_daily_bin1166.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.53
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/455837/ft1_filtered_4FGL_J1516.9+1934_daily_bin1166.fits', '/scratch/kocevski/455837/ft2_4FGL_J1516.9+1934_daily_bin1166.fits', expMap='/scratch/kocevski/455837/expmap_541555201_541814401_4FGL_J1516.9+1934_daily_bin1166.fits', expCube='/scratch/kocevski/455837/ltcube_541555201_541814401_4FGL_J1516.9+1934_daily_bin1166.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/455837/Model_4FGL_J1516.9+1934_daily_bin1166.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/455837/ft1_filtered_4FGL_J1516.9+1934_daily_bin1166.fits
Spacecraft file(s): /scratch/kocevski/455837/ft2_4FGL_J1516.9+1934_daily_bin1166.fits
Exposure map: /scratch/kocevski/455837/expmap_541555201_541814401_4FGL_J1516.9+1934_daily_bin1166.fits
Exposure cube: /scratch/kocevski/455837/ltcube_541555201_541814401_4FGL_J1516.9+1934_daily_bin1166.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/455837/Model_4FGL_J1516.9+1934_daily_bin1166.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) = 8172.28085018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10848E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.2044       1.0000         .10000E-03   10000.    
     3 'norm      '    4.4173       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.058       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.899       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.297       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8314       1.0000         .10000E-03   10000.    
     9 'norm      '    .67374       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17672E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6810       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14148E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9784       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.1131       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    14.537       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8986       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .73949       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1583       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=   8171.477     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2772 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.253        .11262E-05** at limit **
   2  norm          6.2055        3.2778        .50516E-06    .33275E-03
   3  norm          4.4165        3.7640        .13547E-06    .14690E-04
   4  Prefactor     11.094        26.175       -.15096E-05    .53757E-04
   5  Prefactor     17.908        16.769        .11859E-06    .14314E-04
   6  Prefactor     23.274        32.199        .28211E-05   -.87671E-04
   7  Prefactor     .10000E-03    15.980       -.60102E-06** at limit **
   8  Prefactor     2.8311        5.9225       -.26065E-06    .81511E-05
   9  norm          .67371        .20669        .34520E-07    .23943E-04
  10  norm          .10000E-03    2.1627       -.50451E-08** at limit **
  11  norm          .10000E-03    12.321        .50968E-06** at limit **
  12  Prefactor     .10007E-03    143.78        .46346E-06** at limit **
  13  Prefactor     1.6734        13.726        .15841E-04   -.15675E-04
  14  Prefactor     .10000E-03    78.402       -.15077E-05** at limit **
  15  Prefactor     .10000E-03    7.8580        .18428E-07** at limit **
  16  Prefactor     .10000E-03    35.800       -.11465E-06** at limit **
  17  Prefactor     1.9783        1.7806        .10849E-07   -.39096E-04
  18  Prefactor     .10000E-03    24.342        .70621E-06** at limit **
  19  norm          5.1126        2.7132        .26948E-06    .33335E-04
  20  Prefactor     .10000E-03    12.056       -.46419E-06** at limit **
  21  norm          14.536        8.3820        .17131E-06    .15117E-04
  22  Prefactor     2.8952        8.6294        .77086E-06   -.74115E-05
  23  Normalizat    .73965        .20966       -.31415E-05   -.97120E-04
  24  Prefactor     1.1584        .12940       -.28370E-06   -.27581E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 6.20547
  norm       = 4.41648
  Prefactor  = 11.0938
  Prefactor  = 17.9076
  Prefactor  = 23.2743
  Prefactor  = 0.0001
  Prefactor  = 2.83107
  norm       = 0.673705
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010007
  Prefactor  = 1.6734
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.9783
  Prefactor  = 0.0001
  norm       = 5.11263
  Prefactor  = 0.0001
  norm       = 14.5359
  Prefactor  = 2.89519
  Normalizat = 0.739652
  Prefactor  = 1.15838
 **********
 **   18 **HESSE 
 **********

 FCN=   8171.477     FROM HESSE     STATUS=OK           399 CALLS     3171 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.165        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.2055        3.2759        .56994E-03   -1.5210    
   3  norm          4.4165        3.7655        .15666E-03   -1.5288    
   4  Prefactor     11.094        26.153        .12048E-03   -1.5042    
   5  Prefactor     17.908        16.745        .94669E-04   -1.4861    
   6  Prefactor     23.274        32.279        .82989E-04   -1.4743    
   7  Prefactor     .10000E-03    15.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8311        5.9026        .24168E-03   -1.5371    
   9  norm          .67371        .20564        .21754E-04   -1.5544    
  10  norm          .10000E-03    2.1637        .12983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    12.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10007E-03    147.93        .40674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6734        13.800        .16245E-02   -1.5449    
  14  Prefactor     .10000E-03    79.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.8907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9783        1.7801        .11058E-03   -1.5427    
  18  Prefactor     .10000E-03    24.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.1126        2.7143        .52119E-03   -1.5256    
  20  Prefactor     .10000E-03    12.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          14.536        8.3793        .10505E-03   -1.4945    
  22  Prefactor     2.8952        8.6250        .23867E-03   -1.5368    
  23  Normalizat    .73965        .23841        .36584E-03   -1.0235    
  24  Prefactor     1.1584        .14882        .19137E-03   -.87622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6879e-09
Minuit parameter uncertainties:
  1  0.000596373
  2  3.27595
  3  3.76573
  4  26.1804
  5  16.7489
  6  32.3027
  7  0.000117888
  8  5.90385
  9  0.205638
  10  6.78077e-07
  11  8.90272e-05
  12  0.00642935
  13  9.61366
  14  0.000764943
  15  2.32265e-07
  16  4.87209e-05
  17  1.78016
  18  0.000218857
  19  2.71433
  20  7.38354e-05
  21  8.38
  22  8.62871
  23  0.23875
  24  0.148871
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.001e-04  6.429e-03  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:  1.158e+00  1.489e-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:  7.397e-01  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/455837/likelihoodResults_541555201_541814401_4FGL_J1516.9+1934_daily_bin1166.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) = 8171.47681282
delta logL = -3.21095421896e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8171.4767816
delta logL = -8.91681338544e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40962E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8359       1.0000          .0000       10.000    
     3 'Normalizat'    .73965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1584       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.

 FCN=   8171.477     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      247 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .34340        .13656    ** at limit **
   2  Index         2.8354        7.6994        .50000        .90213E-06
   3  Normalizat    .73965        .63157E-03    .82617E-01    .10869E-03
   4  Prefactor     1.1584        .40674E-03    .35698E-01    .10982E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.83543
  Normalizat = 0.739652
  Prefactor  = 1.15838
 **********
 **   18 **HESSE 
 **********

 FCN=   8171.477     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      282 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    258.47        .78862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8354        8.3233        .50000       -.44772    
   3  Normalizat    .73965        .61136E-02    .36584E-03   -1.0235    
   4  Prefactor     1.1584        .39469E-02    .19137E-03   -.87622    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.85683e-09
Minuit parameter uncertainties:
  1  0.000171217
  2  498.582
  3  0.00611356
  4  0.00394688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455837': 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) = 8171.47678067
delta logL = 3.69354893337e-08

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  1.712e-04  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.835e+00  4.986e+02  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:  1.158e+00  3.947e-03  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:  7.397e-01  6.114e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/455837/cmap_HighResolution_541555201_541814401_4FGL_J1516.9+1934_daily_bin1166.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.84e-03', job_status='DONE', photon_flux_upper_limit='8.75e-08', time_completed='2021-09-11 23:38:24.056034', job_id='455837', GAL2='1.16', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1631428704.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='3.69e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1166' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:38:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 455837: <4FGL_J1516.9+1934_daily_bin1166> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin1166> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:26:04 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:26:06 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:26:06 2021
Terminated at Sat Sep 11 23:38:24 2021
Results reported at Sat Sep 11 23:38:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin1166 229.244 19.5805 541555201 541814401 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 :                                   719.13 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             331.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            740 sec.

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

