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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin457
RA = 229.244, Dec = 19.5805
tmin = 357782401, tmax = 358041601
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='451963', job_status='RUN', time_executed='2021-09-11 23:16:13.730603', time_epoch_executed='1631427373.73' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='457'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/451963

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/451963/ft1_4FGL_J1516.9+1934_daily_bin457.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/451963/ft2_4FGL_J1516.9+1934_daily_bin457.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/451963/ft1_4FGL_J1516.9+1934_daily_bin457.fits outfile=/scratch/kocevski/451963/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin457.fits ra=229.244 dec=19.5805 rad=12.0 tmin=357782401.0 tmax=358041601.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.69
user 3.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/451963/ft1_filtered_4FGL_J1516.9+1934_daily_bin457.fits" evtable="EVENTS" scfile=/scratch/kocevski/451963/ft2_4FGL_J1516.9+1934_daily_bin457.fits sctable="SC_DATA" outfile=/scratch/kocevski/451963/ltcube_357782401_358041601_4FGL_J1516.9+1934_daily_bin457.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/451963/ft2_4FGL_J1516.9+1934_daily_bin457.fits
.....................!
real 12.25
user 11.84
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/451963/ft1_filtered_4FGL_J1516.9+1934_daily_bin457.fits evtable="EVENTS" scfile=/scratch/kocevski/451963/ft2_4FGL_J1516.9+1934_daily_bin457.fits sctable="SC_DATA" expcube=/scratch/kocevski/451963/ltcube_357782401_358041601_4FGL_J1516.9+1934_daily_bin457.fits outfile=/scratch/kocevski/451963/expmap_357782401_358041601_4FGL_J1516.9+1934_daily_bin457.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/451963/ltcube_357782401_358041601_4FGL_J1516.9+1934_daily_bin457.fits
.....................!
real 194.91
user 187.09
sys 6.72

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/451963/ft1_filtered_4FGL_J1516.9+1934_daily_bin457.fits scfile=/scratch/kocevski/451963/ft2_4FGL_J1516.9+1934_daily_bin457.fits outfile=/scratch/kocevski/451963/cmap_357782401_358041601_4FGL_J1516.9+1934_daily_bin457.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/451963/ft1_filtered_4FGL_J1516.9+1934_daily_bin457.fits scfile=/scratch/kocevski/451963/ft2_4FGL_J1516.9+1934_daily_bin457.fits outfile=/scratch/kocevski/451963/cmap_HighResolution_357782401_358041601_4FGL_J1516.9+1934_daily_bin457.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.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6894       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4974       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8125       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10690E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2283       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.176       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    25.628       1.0000         .10000E-03   10000.    
    12 'Prefactor '    59.223       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8817       1.0000         .10000E-03   10000.    
    14 'Prefactor '    55.900       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0038       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10794E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13150E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.4324       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.582       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3232       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83432       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=   7495.088     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2708 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6888        9.0922        .54621E-06   -.90389E-05
   2  norm          3.4972        2.7468        .45801E-06   -.48108E-04
   3  norm          1.8123        2.6357        .93287E-07    .59383E-05
   4  Prefactor     .10000E-03    17.542        .24767E-05** at limit **
   5  Prefactor     4.2313        13.220        .18122E-06   -.30031E-04
   6  Prefactor     26.169        26.703        .29619E-06   -.72966E-04
   7  Prefactor     .10000E-03    14.194       -.12771E-05** at limit **
   8  Prefactor     .10000E-03    2.4952        .22207E-07** at limit **
   9  norm          .10000E-03    .39830E-01    .77176E-08** at limit **
  10  norm          .10000E-03    2.5627        .13392E-07** at limit **
  11  norm          25.629        30.807       -.19167E-07   -.69359E-06
  12  Prefactor     59.214        58.605        .11603E-05   -.28528E-04
  13  Prefactor     9.8817        8.5809        .16445E-06   -.23059E-04
  14  Prefactor     55.863        44.989        .37505E-05   -.55243E-04
  15  Prefactor     5.0046        16.160        .41101E-06   -.10022E-05
  16  Prefactor     .10000E-03    11.026        .17499E-06** at limit **
  17  Prefactor     .10000E-03    1.9304        .18187E-06** at limit **
  18  Prefactor     .10000E-03    61.280       -.33779E-06** at limit **
  19  norm          .10000E-03    .90097        .59845E-07** at limit **
  20  Prefactor     .10000E-03    21.586       -.18505E-05** at limit **
  21  norm          2.4316        8.2062        .71975E-05    .20108E-04
  22  Prefactor     10.582        8.8153        .16133E-06   -.10988E-04
  23  Normalizat    1.3236        .22239        .14170E-05   -.68331E-05
  24  Prefactor     .83410        .12960       -.25979E-05   -.80797E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.68881
  norm       = 3.4972
  norm       = 1.81233
  Prefactor  = 0.0001
  Prefactor  = 4.23132
  Prefactor  = 26.1687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 25.629
  Prefactor  = 59.2137
  Prefactor  = 9.88168
  Prefactor  = 55.8629
  Prefactor  = 5.00459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.43163
  Prefactor  = 10.5825
  Normalizat = 1.32356
  Prefactor  = 0.834104
 **********
 **   18 **HESSE 
 **********

 FCN=   7495.088     FROM HESSE     STATUS=OK           397 CALLS     3105 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6888        9.0823        .32389E-03   -1.5448    
   2  norm          3.4972        2.7464        .61363E-03   -1.5334    
   3  norm          1.8123        2.6156        .16491E-03   -1.5439    
   4  Prefactor     .10000E-03    17.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2313        13.188        .19596E-03   -1.5297    
   6  Prefactor     26.169        26.666        .78300E-04   -1.4684    
   7  Prefactor     .10000E-03    14.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.4981        .13355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .49565E-01    .33642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.5701        .13535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          25.629        30.808        .79130E-04   -1.4695    
  12  Prefactor     59.214        58.682        .52134E-04   -1.4167    
  13  Prefactor     9.8817        8.5829        .12747E-03   -1.5079    
  14  Prefactor     55.863        45.240        .53653E-04   -1.4212    
  15  Prefactor     5.0046        16.215        .17977E-03   -1.5261    
  16  Prefactor     .10000E-03    11.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0163        .23470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    62.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .91073        .80241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.4316        8.2530        .13119E-02   -1.5396    
  22  Prefactor     10.582        8.8160        .12316E-03   -1.5057    
  23  Normalizat    1.3236        .26946        .29267E-03   -.82866    
  24  Prefactor     .83410        .15462        .21569E-03   -.98483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.44782e-11
Minuit parameter uncertainties:
  1  7.83443
  2  2.74649
  3  2.61572
  4  5.96279e-05
  5  13.197
  6  26.6784
  7  1.68297e-06
  8  1.64174e-06
  9  1.39026e-07
  10  2.16311e-06
  11  30.8269
  12  58.739
  13  8.58395
  14  45.2682
  15  16.2295
  16  6.91101e-07
  17  1.22668e-05
  18  0.000262512
  19  1.9609e-08
  20  4.31354e-05
  21  8.25683
  22  8.81711
  23  0.269745
  24  0.154706
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  5.921e+01  5.874e+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:  8.341e-01  1.547e-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.324e+00  2.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 229.244 19.581
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 5.98e-08 +/- 5.92e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.58e-05

TS (Fixed Index): 1.32
Ra Dec: 229.244 19.581
Photon Flux Upper Limit: 1.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.39e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/451963/likelihoodResults_357782401_358041601_4FGL_J1516.9+1934_daily_bin457.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) = 7494.97269666
delta logL = 0.114842937404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7494.96317477
delta logL = 0.124364834181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.200       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1462       1.0000          .0000       10.000    
     3 'Normalizat'    1.2911       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84916       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=   7494.963     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      302 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.267        104.25        .66609E-04   -.19785E-03
   2  Index         3.1466        1.9983        .83510E-02   -.82671E-04
   3  Normalizat    1.2901        .27061        .29581E-03   -.36461E-03
   4  Prefactor     .84964        .16060        .21389E-03    .75880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.2669
  Index      = 3.14657
  Normalizat = 1.29015
  Prefactor  = 0.849638
 **********
 **   18 **HESSE 
 **********

 FCN=   7494.963     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.267        66.146        .13322E-04   -1.4503    
   2  Index         3.1466        1.2864        .33404E-03   -.37975    
   3  Normalizat    1.2901        .26421        .59162E-04   -.83861    
   4  Prefactor     .84964        .15607        .42778E-04   -.97924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5391e-09
Minuit parameter uncertainties:
  1  66.2801
  2  1.30345
  3  0.264486
  4  0.156154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/451963': 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) = 7494.96316608
delta logL = 0.124373518252

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  3.627e+01  6.628e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  3.147e+00  1.303e+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:  8.496e-01  1.562e-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.290e+00  2.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 229.244 19.581
Photon Index (Free Index): 3.15 +/- 1.30
Photon Flux (Free Index): 8.21e-08 +/- 7.85e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.39e-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/451963/cmap_HighResolution_357782401_358041601_4FGL_J1516.9+1934_daily_bin457.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', comment='SUCCESS', photon_flux='5.98e-08', energy_flux2='1.54e-05', photon_flux_error='5.92e-08', dlogl='1.24e-01', energy_flux='1.60e-05', photon_flux2='8.21e-08', job_status='DONE', time_completed='2021-09-11 23:27:51.570974', photon_index_error2='1.30', photon_index2='3.15', ts='1.32', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='1.39e-05', EG='1.32', time_epoch_completed='1631428071.57', return_code='0', job_id='451963', GAL2='0.85', EG2='1.29', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='7.85e-08', ts2='1.60', photon_index='2.58' WHERE bin_id='457' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:27:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 451963: <4FGL_J1516.9+1934_daily_bin457> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin457> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:15:58 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:16:00 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:16:00 2021
Terminated at Sat Sep 11 23:27:52 2021
Results reported at Sat Sep 11 23:27:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin457 229.244 19.5805 357782401 358041601 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 :                                   692.47 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             333.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            714 sec.

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

