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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin1401
RA = 229.244, Dec = 19.5805
tmin = 602467201, tmax = 602726401
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='457031', job_status='RUN', time_executed='2021-09-11 23:31:09.904800', time_epoch_executed='1631428269.9' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/457031

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/457031/ft1_4FGL_J1516.9+1934_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/457031/ft2_4FGL_J1516.9+1934_daily_bin1401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/457031/ft1_4FGL_J1516.9+1934_daily_bin1401.fits outfile=/scratch/kocevski/457031/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1401.fits ra=229.244 dec=19.5805 rad=12.0 tmin=602467201.0 tmax=602726401.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.15
user 2.94
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/457031/ft1_filtered_4FGL_J1516.9+1934_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/457031/ft2_4FGL_J1516.9+1934_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/457031/ltcube_602467201_602726401_4FGL_J1516.9+1934_daily_bin1401.fits outfile=/scratch/kocevski/457031/expmap_602467201_602726401_4FGL_J1516.9+1934_daily_bin1401.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/457031/ltcube_602467201_602726401_4FGL_J1516.9+1934_daily_bin1401.fits
.....................!
real 191.17
user 185.67
sys 5.13

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/457031/ft1_filtered_4FGL_J1516.9+1934_daily_bin1401.fits scfile=/scratch/kocevski/457031/ft2_4FGL_J1516.9+1934_daily_bin1401.fits outfile=/scratch/kocevski/457031/cmap_602467201_602726401_4FGL_J1516.9+1934_daily_bin1401.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/457031/ft1_filtered_4FGL_J1516.9+1934_daily_bin1401.fits scfile=/scratch/kocevski/457031/ft2_4FGL_J1516.9+1934_daily_bin1401.fits outfile=/scratch/kocevski/457031/cmap_HighResolution_602467201_602726401_4FGL_J1516.9+1934_daily_bin1401.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.5666       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6085       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9225       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.189       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.017       1.0000         .10000E-03   10000.    
     9 'norm      '    .31504       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2976       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.556       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4858       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.486       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .93566       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.1970       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4728       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1421       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88572       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=   9205.861     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2715 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8610        .32256E-07** at limit **
   2  norm          3.5664        2.4142       -.72268E-07   -.10043E-04
   3  norm          2.6085        3.7374       -.31924E-06   -.25248E-04
   4  Prefactor     .10000E-03    16.775        .42312E-05** at limit **
   5  Prefactor     7.9127        15.492       -.48975E-05   -.72807E-05
   6  Prefactor     .10000E-03    7.9461       -.63247E-06** at limit **
   7  Prefactor     17.189        20.734        .10857E-05    .10937E-04
   8  Prefactor     13.016        7.4444       -.11962E-06    .24139E-04
   9  norm          .31501        .14135        .10540E-08    .66254E-03
  10  norm          2.2977        3.6706       -.32664E-06   -.14083E-04
  11  norm          .10000E-03    12.897       -.59514E-05** at limit **
  12  Prefactor     24.553        34.690       -.41905E-05    .13711E-04
  13  Prefactor     1.4855        8.3185       -.92314E-06   -.39144E-04
  14  Prefactor     11.480        25.281       -.98905E-05    .86128E-05
  15  Prefactor     .10000E-03    2.0098       -.23136E-07** at limit **
  16  Prefactor     .10000E-03    11.080        .59290E-07** at limit **
  17  Prefactor     .93615        1.5681       -.17554E-06   -.14385E-03
  18  Prefactor     .10000E-03    26.560       -.61752E-06** at limit **
  19  norm          2.1970        1.4970       -.46516E-07    .68859E-05
  20  Prefactor     .10000E-03    10.413        .34320E-05** at limit **
  21  norm          1.4743        1.3611        .16265E-06   -.66698E-03
  22  Prefactor     .10000E-03    3.4628       -.91991E-07** at limit **
  23  Normalizat    1.1424        .18078        .24952E-05   -.73900E-04
  24  Prefactor     .88554        .10764       -.72321E-07    .16478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.56639
  norm       = 2.60846
  Prefactor  = 0.0001
  Prefactor  = 7.91271
  Prefactor  = 0.0001
  Prefactor  = 17.1886
  Prefactor  = 13.0164
  norm       = 0.315012
  norm       = 2.2977
  norm       = 0.0001
  Prefactor  = 24.5535
  Prefactor  = 1.48547
  Prefactor  = 11.4796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.936149
  Prefactor  = 0.0001
  norm       = 2.197
  Prefactor  = 0.0001
  norm       = 1.47434
  Prefactor  = 0.0001
  Normalizat = 1.14236
  Prefactor  = 0.885545
 **********
 **   18 **HESSE 
 **********

 FCN=   9205.861     FROM HESSE     STATUS=OK           403 CALLS     3118 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.5664        2.4139        .11886E-03   -1.5330    
   3  norm          2.6085        3.7287        .21429E-03   -1.5385    
   4  Prefactor     .10000E-03    16.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9127        15.542        .14245E-03   -1.5145    
   6  Prefactor     .10000E-03    7.9485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.189        20.731        .96605E-04   -1.4879    
   8  Prefactor     13.016        7.4495        .11102E-03   -1.4986    
   9  norm          .31501        .14038        .23245E-04   -1.5596    
  10  norm          2.2977        3.6523        .22667E-03   -1.5405    
  11  norm          .10000E-03    12.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.553        34.704        .80836E-04   -1.4717    
  13  Prefactor     1.4855        8.4208        .35190E-03   -1.5464    
  14  Prefactor     11.480        25.284        .11821E-03   -1.5030    
  15  Prefactor     .10000E-03    2.0114        .13284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .93615        1.5258        .14921E-03   -1.5514    
  18  Prefactor     .10000E-03    27.399        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.1970        1.5112        .94130E-04   -1.5412    
  20  Prefactor     .10000E-03    10.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4743        7.4561        .17700E-02   -1.5465    
  22  Prefactor     .10000E-03    3.4882        .17435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1424        .21776        .28185E-03   -.88403    
  24  Prefactor     .88554        .13144        .19861E-03   -.96648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40747e-09
Minuit parameter uncertainties:
  1  2.32555e-06
  2  2.41395
  3  3.72902
  4  1.95311e-05
  5  15.55
  6  1.70251e-05
  7  20.7394
  8  7.44999
  9  0.140378
  10  3.65263
  11  2.5544e-06
  12  34.7329
  13  7.07486
  14  25.3076
  15  1.39153e-06
  16  6.47571e-06
  17  1.52583
  18  8.01609e-06
  19  1.5112
  20  1.29717e-05
  21  6.63215
  22  7.6938e-06
  23  0.217932
  24  0.131486
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  2.455e+01  3.473e+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.855e-01  1.315e-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.142e+00  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/457031/likelihoodResults_602467201_602726401_4FGL_J1516.9+1934_daily_bin1401.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) = 9205.18701343
delta logL = 0.674466503091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9205.11469231
delta logL = 0.746787619826

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.907       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7167       1.0000          .0000       10.000    
     3 'Normalizat'    1.1597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87578       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=   9205.115     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      233 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.068        41.650        .15481E-02    .24484E-04
   2  Index         1.7181        .42818        .20786       -.76699E-04
   3  Normalizat    1.1598        .16961        .63269E-01    .30558E-04
   4  Prefactor     .87569        .10735        .44696E-01    .27686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.0676
  Index      = 1.71807
  Normalizat = 1.15983
  Prefactor  = 0.87569
 **********
 **   18 **HESSE 
 **********

 FCN=   9205.115     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.068        47.050        .61924E-04   -1.4410    
   2  Index         1.7181        .56812        .10229E-01   -.71602    
   3  Normalizat    1.1598        .20570        .27986E-03   -.87853    
   4  Prefactor     .87569        .13041        .19950E-03   -.96996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09307e-09
Minuit parameter uncertainties:
  1  47.0912
  2  0.570295
  3  0.205839
  4  0.130452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/457031': 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) = 9205.11468652
delta logL = 0.746793412131

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  4.207e+01  4.709e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  1.718e+00  5.703e-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:  8.757e-01  1.305e-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.160e+00  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 229.244 19.581
Photon Index (Free Index): 1.72 +/- 0.57
Photon Flux (Free Index): 1.70e-08 +/- 2.28e-08
Energy Flux (Free Index): 2.63e-05 +/- 3.38e-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/457031/cmap_HighResolution_602467201_602726401_4FGL_J1516.9+1934_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.73e-03', comment='SUCCESS', energy_flux2='2.63e-05', dlogl='7.47e-01', photon_flux2='1.70e-08', job_status='DONE', time_completed='2021-09-11 23:44:10.202671', photon_index_error2='0.57', photon_index2='1.72', ts='0.61', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='9.89e-08', energy_flux_error2='3.38e-05', EG='1.14', time_epoch_completed='1631429050.2', return_code='0', job_id='457031', GAL2='0.88', EG2='1.16', return_code2='0', photon_flux_error2='2.28e-08', ts2='2.10', photon_index='2.58' WHERE bin_id='1401' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:44:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 457031: <4FGL_J1516.9+1934_daily_bin1401> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin1401> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:30:59 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:31:01 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:31:01 2021
Terminated at Sat Sep 11 23:44:10 2021
Results reported at Sat Sep 11 23:44:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin1401 229.244 19.5805 602467201 602726401 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 :                                   777.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

