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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin3
RA = 229.222, Dec = 36.8505
tmin = 240105601, tmax = 240364801
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='437349', job_status='RUN', time_executed='2021-09-11 22:23:50.995995', time_epoch_executed='1631424231.0' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/437349

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/437349/ft1_4FGL_J1516.8+3651_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/437349/ft2_4FGL_J1516.8+3651_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/437349/ft1_4FGL_J1516.8+3651_daily_bin3.fits outfile=/scratch/kocevski/437349/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin3.fits ra=229.222 dec=36.8505 rad=12.0 tmin=240105601.0 tmax=240364801.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.44
user 1.27
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/437349/ft2_4FGL_J1516.8+3651_daily_bin3.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/437349/ft2_4FGL_J1516.8+3651_daily_bin3.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/437349/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin3.fits evtable="EVENTS" outfile="/scratch/kocevski/437349/ft1_filtered_4FGL_J1516.8+3651_daily_bin3.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/437349/ft1_filtered_4FGL_J1516.8+3651_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/437349/ft2_4FGL_J1516.8+3651_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/437349/ltcube_240105601_240364801_4FGL_J1516.8+3651_daily_bin3.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/437349/ft2_4FGL_J1516.8+3651_daily_bin3.fits
.....................!
real 13.56
user 13.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/437349/ft1_filtered_4FGL_J1516.8+3651_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/437349/ft2_4FGL_J1516.8+3651_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/437349/ltcube_240105601_240364801_4FGL_J1516.8+3651_daily_bin3.fits outfile=/scratch/kocevski/437349/expmap_240105601_240364801_4FGL_J1516.8+3651_daily_bin3.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/437349/ltcube_240105601_240364801_4FGL_J1516.8+3651_daily_bin3.fits
.....................!
real 191.93
user 185.72
sys 5.76

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

Setting source of interest to:
4FGL J1516.8+3651 @ 229.222 36.8505

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/437349/ft1_filtered_4FGL_J1516.8+3651_daily_bin3.fits scfile=/scratch/kocevski/437349/ft2_4FGL_J1516.8+3651_daily_bin3.fits outfile=/scratch/kocevski/437349/cmap_240105601_240364801_4FGL_J1516.8+3651_daily_bin3.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.222 yref=36.8505 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/437349/ft1_filtered_4FGL_J1516.8+3651_daily_bin3.fits scfile=/scratch/kocevski/437349/ft2_4FGL_J1516.8+3651_daily_bin3.fits outfile=/scratch/kocevski/437349/cmap_HighResolution_240105601_240364801_4FGL_J1516.8+3651_daily_bin3.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.222 yref=36.8505 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/437349/ft1_filtered_4FGL_J1516.8+3651_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/437349/ft2_4FGL_J1516.8+3651_daily_bin3.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/437349/Model_4FGL_J1516.8+3651_daily_bin3.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/437349/ft1_filtered_4FGL_J1516.8+3651_daily_bin3.fits.....................!
real 47.25
user 45.77
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/437349/ft1_filtered_4FGL_J1516.8+3651_daily_bin3.fits', '/scratch/kocevski/437349/ft2_4FGL_J1516.8+3651_daily_bin3.fits', expMap='/scratch/kocevski/437349/expmap_240105601_240364801_4FGL_J1516.8+3651_daily_bin3.fits', expCube='/scratch/kocevski/437349/ltcube_240105601_240364801_4FGL_J1516.8+3651_daily_bin3.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/437349/Model_4FGL_J1516.8+3651_daily_bin3.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.8+3651'

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  6.183e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.190e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/437349/ft1_filtered_4FGL_J1516.8+3651_daily_bin3.fits
Spacecraft file(s): /scratch/kocevski/437349/ft2_4FGL_J1516.8+3651_daily_bin3.fits
Exposure map: /scratch/kocevski/437349/expmap_240105601_240364801_4FGL_J1516.8+3651_daily_bin3.fits
Exposure cube: /scratch/kocevski/437349/ltcube_240105601_240364801_4FGL_J1516.8+3651_daily_bin3.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/437349/Model_4FGL_J1516.8+3651_daily_bin3.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) = 5821.0299942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9590       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1864       1.0000         .10000E-03   10000.    
     6 'norm      '    1.4472       1.0000         .10000E-03   10000.    
     7 'Prefactor '    95.525       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.050       1.0000         .10000E-03   10000.    
     9 'norm      '    10.994       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3483       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4995       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    121.35       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.913       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5420       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.573       1.0000         .10000E-03   10000.    
    20 'norm      '    6.9518       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .71834       1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.781       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11099E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4085       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .42520       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5821.012     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3683 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9593        4.8235        .89606E-07    .60510E-04
   2  Prefactor     .10000E-03    12.868        .21846E-06** at limit **
   3  Prefactor     .10000E-03    15.791        .64921E-06** at limit **
   4  norm          .10000E-03    7.0888        .73168E-07** at limit **
   5  Prefactor     9.1908        27.529        .73350E-06    .38602E-04
   6  norm          1.4474        5.0544        .10974E-05    .24909E-03
   7  Prefactor     95.539        55.754       -.24034E-06    .86217E-04
   8  Prefactor     32.056        37.237        .73546E-06    .55392E-04
   9  norm          10.994        8.2244       -.12590E-06    .18608E-05
  10  Prefactor     4.3496        9.2293        .10782E-05   -.15717E-03
  11  Prefactor     .10000E-03    3.3355        .57948E-07** at limit **
  12  Prefactor     .10000E-03    1.4705       -.56321E-08** at limit **
  13  norm          .10000E-03    .76407        .83678E-07** at limit **
  14  norm          1.4995        2.9121        .18164E-05   -.28764E-03
  15  Prefactor     .10000E-03    11.220        .47834E-06** at limit **
  16  Prefactor     121.36        70.062        .23048E-06    .32506E-04
  17  Prefactor     10.913        9.4259        .62376E-07    .12151E-03
  18  Prefactor     1.5425        39.474        .10425E-04   -.13231E-03
  19  Prefactor     18.575        12.696       -.36926E-06    .52282E-03
  20  norm          6.9540        1.8435        .95172E-07    .11666E-02
  21  Prefactor     .71306        6.7949       -.42543E-06   -.81743E-05
  22  Prefactor     45.782        33.590        .25871E-06    .12776E-03
  23  Prefactor     .10000E-03    8.5604        .11314E-07** at limit **
  24  norm          .10000E-03    6.7002       -.18375E-06** at limit **
  25  Prefactor     .10000E-03    1.3577       -.16641E-06** at limit **
  26  Prefactor     .10000E-03    7.1635       -.56492E-07** at limit **
  27  Prefactor     .10000E-03    1.9480       -.16813E-06** at limit **
  28  Normalizat    1.4083        .18773       -.36255E-05    .97952E-04
  29  Prefactor     .42536        .15919        .46901E-05    .42246E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.95933
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.19077
  norm       = 1.4474
  Prefactor  = 95.5385
  Prefactor  = 32.0555
  norm       = 10.9941
  Prefactor  = 4.34957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.49949
  Prefactor  = 0.000100001
  Prefactor  = 121.355
  Prefactor  = 10.9129
  Prefactor  = 1.54254
  Prefactor  = 18.5754
  norm       = 6.95396
  Prefactor  = 0.713055
  Prefactor  = 45.7821
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.40834
  Prefactor  = 0.42536
 **********
 **   18 **HESSE 
 **********

 FCN=   5821.012     FROM HESSE     STATUS=OK           551 CALLS     4234 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9593        4.8235        .14655E-03   -1.5220    
   2  Prefactor     .10000E-03    12.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.1063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.1908        27.595        .13223E-03   -1.5102    
   6  norm          1.4474        5.0225        .30485E-03   -1.5467    
   7  Prefactor     95.539        55.721        .20562E-03   -1.3750    
   8  Prefactor     32.056        37.470        .70777E-04   -1.4575    
   9  norm          10.994        8.2217        .60414E-03   -1.5045    
  10  Prefactor     4.3496        9.2228        .96583E-03   -1.5291    
  11  Prefactor     .10000E-03    3.3549        .13605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.4714        .90354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .79974        .13003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4995        2.9356        .87240E-03   -1.5463    
  15  Prefactor     .10000E-03    11.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     121.36        70.180        .18267E-03   -1.3500    
  17  Prefactor     10.913        9.4216        .12128E-03   -1.5047    
  18  Prefactor     1.5425        41.107        .17165E-02   -1.5460    
  19  Prefactor     18.575        13.037        .92935E-04   -1.4846    
  20  norm          6.9540        1.8514        .44746E-04   -1.5180    
  21  Prefactor     .71306        31.493        .32051E-02   -1.5539    
  22  Prefactor     45.782        33.423        .59257E-04   -1.4354    
  23  Prefactor     .10000E-03    8.5762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.7200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.7174        .17156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.1683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.9734        .10403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4083        .21457        .20757E-03   -.80388    
  29  Prefactor     .42536        .18491        .32723E-03   -1.1553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16689e-08
Minuit parameter uncertainties:
  1  4.8238
  2  0.000181119
  3  4.87062e-05
  4  4.74222e-06
  5  27.6334
  6  5.02395
  7  55.752
  8  37.4979
  9  8.22256
  10  9.22583
  11  5.01448e-06
  12  8.58934e-07
  13  5.16409e-06
  14  2.93587
  15  0.000165909
  16  70.2279
  17  9.42292
  18  15.9375
  19  13.0388
  20  1.85143
  21  9.48222
  22  33.4372
  23  9.35559e-05
  24  1.70836e-05
  25  1.00432e-05
  26  2.91506e-05
  27  1.71569e-05
  28  0.214708
  29  0.18517
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.214e+02  7.023e+01  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.190e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  4.254e-01  1.852e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.408e+00  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.44
Ra Dec: 229.222 36.850
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 4.91e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.30e-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) = 5819.59750821
delta logL = 1.41402761687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5819.5794259
delta logL = 1.4321099261

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5819.579     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     121.32        117.90       -.14492E-04   -.56414E-04
   2  Index         1.2768        .54478       -.34306E-04    .35243E-04
   3  Normalizat    1.4462        .17516        .73971E-06    .44977E-03
   4  Prefactor     .41049        .16069        .27730E-06    .22648E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 121.315
  Index      = 1.27681
  Normalizat = 1.44624
  Prefactor  = 0.410491
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.579     FROM HESSE     STATUS=OK            29 CALLS      233 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     121.32        114.08        .18267E-03   -1.3501    
   2  Index         1.2768        .52781        .82176E-02   -.83999    
   3  Normalizat    1.4462        .19673        .20534E-03   -.79300    
   4  Prefactor     .41049        .17995        .33322E-03   -1.1628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80477e-10
Minuit parameter uncertainties:
  1  114.293
  2  0.53004
  3  0.196834
  4  0.180202
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/437349': 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) = 5819.57942585
delta logL = 1.4321099847

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.213e+02  1.143e+02  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  1.277e+00  5.300e-01  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.677e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
591    Prefactor:  4.105e-01  1.802e-01  0.000e+00  1.000e+01 ( 1.000e+00)
592        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
593        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
590   Normalization:  1.446e+00  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.27
Ra Dec: 229.222 36.850
Photon Index (Free Index): 1.28 +/- 0.53
Photon Flux (Free Index): 1.37e-08 +/- 1.50e-08
Energy Flux (Free Index): 9.02e-05 +/- 9.71e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/437349/cmap_HighResolution_240105601_240364801_4FGL_J1516.8+3651_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.91e-08', energy_flux2='9.02e-05', photon_flux_error='2.84e-08', dlogl='1.43e+00', energy_flux='2.24e-05', photon_flux2='1.37e-08', job_status='DONE', time_completed='2021-09-11 22:35:24.884076', photon_index_error2='0.53', photon_index2='1.28', ts='7.44', fit_tolerance='1e-08', GAL='0.43', photon_index_error='0.00', energy_flux_error2='9.71e-05', EG='1.41', time_epoch_completed='1631424924.88', return_code='0', job_id='437349', GAL2='0.41', EG2='1.45', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='1.50e-08', ts2='10.27', photon_index='2.19' WHERE bin_id='3' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:35:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 437349: <4FGL_J1516.8+3651_daily_bin3> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin3> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 22:21:20 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:21:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 22:21:21 2021
Terminated at Sat Sep 11 22:35:25 2021
Results reported at Sat Sep 11 22:35:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin3 229.222 36.8505 240105601 240364801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.8+3651 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   693.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            845 sec.

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

