/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 167 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1516.9+1934_daily_bin49
RA = 229.244, Dec = 19.5805
tmin = 252028801, tmax = 252288001
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='448088', job_status='RUN', time_executed='2021-09-11 23:04:46.524023', time_epoch_executed='1631426686.52' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448088

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448088/ft1_4FGL_J1516.9+1934_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448088/ft2_4FGL_J1516.9+1934_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448088/ft1_4FGL_J1516.9+1934_daily_bin49.fits outfile=/scratch/kocevski/448088/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin49.fits ra=229.244 dec=19.5805 rad=12.0 tmin=252028801.0 tmax=252288001.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 1.43
user 1.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448088/ft2_4FGL_J1516.9+1934_daily_bin49.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/448088/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin49.fits evtable="EVENTS" outfile="/scratch/kocevski/448088/ft1_filtered_4FGL_J1516.9+1934_daily_bin49.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.50
user 0.31
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448088/ft1_filtered_4FGL_J1516.9+1934_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/448088/ft2_4FGL_J1516.9+1934_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/448088/ltcube_252028801_252288001_4FGL_J1516.9+1934_daily_bin49.fits outfile=/scratch/kocevski/448088/expmap_252028801_252288001_4FGL_J1516.9+1934_daily_bin49.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/448088/ltcube_252028801_252288001_4FGL_J1516.9+1934_daily_bin49.fits
.....................!
real 191.77
user 185.90
sys 5.52

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/448088/ft1_filtered_4FGL_J1516.9+1934_daily_bin49.fits scfile=/scratch/kocevski/448088/ft2_4FGL_J1516.9+1934_daily_bin49.fits outfile=/scratch/kocevski/448088/cmap_252028801_252288001_4FGL_J1516.9+1934_daily_bin49.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448088/ft1_filtered_4FGL_J1516.9+1934_daily_bin49.fits scfile=/scratch/kocevski/448088/ft2_4FGL_J1516.9+1934_daily_bin49.fits outfile=/scratch/kocevski/448088/cmap_HighResolution_252028801_252288001_4FGL_J1516.9+1934_daily_bin49.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0730       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9757       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2871       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .52620       1.0000         .10000E-03   10000.    
     9 'norm      '    3.7957       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    68.940       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.881       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.940       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.745       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5348       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10746E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.9753       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.8311       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3083       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91093       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=   11699.84     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2701 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0726        8.2535       -.10734E-06   -.79132E-06
   2  norm          .10000E-03    .57348        .10400E-06** at limit **
   3  norm          .10000E-03    2.0665        .35694E-06** at limit **
   4  Prefactor     4.9733        16.910       -.16097E-06   -.58523E-05
   5  Prefactor     2.2828        13.965        .13997E-05    .54672E-04
   6  Prefactor     .10000E-03    6.5722       -.86219E-07** at limit **
   7  Prefactor     .10000E-03    14.029       -.11009E-06** at limit **
   8  Prefactor     .43117        4.4704       -.10743E-05    .54543E-03
   9  norm          3.7957        .32411       -.12521E-07   -.11430E-02
  10  norm          .10000E-03    1.6274        .24097E-07** at limit **
  11  norm          .10000E-03    11.770       -.36033E-07** at limit **
  12  Prefactor     68.932        44.456       -.71447E-06   -.62299E-04
  13  Prefactor     .10000E-03    3.6163        .29011E-06** at limit **
  14  Prefactor     32.841        35.038       -.66340E-06   -.13441E-03
  15  Prefactor     14.935        12.992       -.38955E-06   -.47803E-04
  16  Prefactor     25.741        26.283       -.25044E-06   -.31162E-04
  17  Prefactor     1.5343        2.2928        .75333E-06    .54926E-03
  18  Prefactor     .10000E-03    18.300       -.11439E-06** at limit **
  19  norm          .10000E-03    .76369        .25707E-07** at limit **
  20  Prefactor     .10000E-03    10.373        .13002E-06** at limit **
  21  norm          5.9740        6.0033        .20087E-06    .24141E-04
  22  Prefactor     2.8299        8.2047        .11620E-05    .87836E-04
  23  Normalizat    1.3082        .22418        .31825E-05   -.18036E-03
  24  Prefactor     .91112        .12877       -.28709E-05   -.10844E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.07258
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.97326
  Prefactor  = 2.28277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.43117
  norm       = 3.79571
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 68.9316
  Prefactor  = 0.0001
  Prefactor  = 32.8411
  Prefactor  = 14.9354
  Prefactor  = 25.741
  Prefactor  = 1.53427
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.97396
  Prefactor  = 2.82993
  Normalizat = 1.30817
  Prefactor  = 0.911125
 **********
 **   18 **HESSE 
 **********

 FCN=   11699.84     FROM HESSE     STATUS=OK           397 CALLS     3098 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0726        8.2642        .14111E-03   -1.5140    
   2  norm          .10000E-03    .57990        .80041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.1113        .15213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.9733        16.896        .18029E-03   -1.5262    
   5  Prefactor     2.2828        14.168        .27145E-03   -1.5406    
   6  Prefactor     .10000E-03    6.5773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .43117        37.194        .38947E-02   -1.5577    
   9  norm          3.7957        .32435        .17203E-04   -1.5318    
  10  norm          .10000E-03    1.6293        .13476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     68.932        44.461        .48343E-04   -1.4046    
  13  Prefactor     .10000E-03    3.7312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.841        35.222        .69880E-04   -1.4561    
  15  Prefactor     14.935        12.984        .10362E-03   -1.4935    
  16  Prefactor     25.741        26.274        .78951E-04   -1.4693    
  17  Prefactor     1.5343        2.3556        .19620E-03   -1.5460    
  18  Prefactor     .10000E-03    18.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .77289        .92277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.9740        6.0047        .16427E-03   -1.5219    
  22  Prefactor     2.8299        8.2419        .24169E-03   -1.5372    
  23  Normalizat    1.3082        .23477        .32557E-03   -.83323    
  24  Prefactor     .91112        .13432        .23310E-03   -.95753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.08775e-09
Minuit parameter uncertainties:
  1  8.26539
  2  2.29851e-06
  3  1.43422e-05
  4  16.9124
  5  11.378
  6  6.54572e-06
  7  2.11816e-05
  8  8.01346
  9  0.324352
  10  1.34683e-06
  11  1.30856e-05
  12  44.4826
  13  1.26651e-05
  14  35.2441
  15  12.9868
  16  26.2855
  17  2.35569
  18  1.91445e-05
  19  1.35794e-06
  20  2.5876e-05
  21  6.00535
  22  8.24522
  23  0.234964
  24  0.134364
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  6.893e+01  4.448e+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:  9.111e-01  1.344e-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.308e+00  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.34
Ra Dec: 229.244 19.581
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 6.96e-08 +/- 4.49e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.20e-05

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) = 11699.2326973
delta logL = 0.605034725564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11699.213049
delta logL = 0.624683018899

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.486       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2952       1.0000          .0000       10.000    
     3 'Normalizat'    1.2504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93286       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=   11699.21     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      284 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.491        49.108        .62997E-04    .21749E-03
   2  Index         3.2951        .85547        .64585E-02    .13861E-03
   3  Normalizat    1.2504        .22613        .33178E-03    .59434E-03
   4  Prefactor     .93287        .13499        .23061E-03    .93202E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.491
  Index      = 3.29512
  Normalizat = 1.25036
  Prefactor  = 0.932868
 **********
 **   18 **HESSE 
 **********

 FCN=   11699.21     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.491        39.409        .12599E-04   -1.4434    
   2  Index         3.2951        .68634        .25834E-03   -.34795    
   3  Normalizat    1.2504        .22529        .66356E-04   -.85061    
   4  Prefactor     .93287        .13454        .46123E-04   -.95002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23204e-10
Minuit parameter uncertainties:
  1  39.4347
  2  0.688801
  3  0.225462
  4  0.134583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448088': 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) = 11699.2130489
delta logL = 0.624683088803

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  4.049e+01  3.943e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  3.295e+00  6.888e-01  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:  9.329e-01  1.346e-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.250e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.66
Ra Dec: 229.244 19.581
Photon Index (Free Index): 3.30 +/- 0.69
Photon Flux (Free Index): 1.15e-07 +/- 6.44e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.04e-05

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/448088/cmap_HighResolution_252028801_252288001_4FGL_J1516.9+1934_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.96e-08', energy_flux2='2.03e-05', photon_flux_error='4.49e-08', dlogl='6.25e-01', energy_flux='1.86e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2021-09-11 23:18:11.131347', photon_index_error2='0.69', photon_index2='3.30', ts='4.34', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='1.31', time_epoch_completed='1631427491.13', return_code='0', job_id='448088', GAL2='0.93', EG2='1.25', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='6.44e-08', ts2='5.66', photon_index='2.58' WHERE bin_id='49' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:18:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 448088: <4FGL_J1516.9+1934_daily_bin49> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin49> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 11 23:01:47 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:01:49 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:01:49 2021
Terminated at Sat Sep 11 23:18:11 2021
Results reported at Sat Sep 11 23:18:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin49 229.244 19.5805 252028801 252288001 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 :                                   804.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             292.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

