/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 0 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7355
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1516.8+3651_daily_bin989
RA = 229.222, Dec = 36.8505
tmin = 495676801, tmax = 495936001
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='443825', job_status='RUN', time_executed='2021-09-11 22:46:33.093850', time_epoch_executed='1631425593.09' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='989'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443825

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443825/ft1_4FGL_J1516.8+3651_daily_bin989.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443825/ft2_4FGL_J1516.8+3651_daily_bin989.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443825/ft1_4FGL_J1516.8+3651_daily_bin989.fits outfile=/scratch/kocevski/443825/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin989.fits ra=229.222 dec=36.8505 rad=12.0 tmin=495676801.0 tmax=495936001.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.55
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443825/ft1_filtered_4FGL_J1516.8+3651_daily_bin989.fits" evtable="EVENTS" scfile=/scratch/kocevski/443825/ft2_4FGL_J1516.8+3651_daily_bin989.fits sctable="SC_DATA" outfile=/scratch/kocevski/443825/ltcube_495676801_495936001_4FGL_J1516.8+3651_daily_bin989.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/443825/ft2_4FGL_J1516.8+3651_daily_bin989.fits
.....................!
real 12.12
user 11.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443825/ft1_filtered_4FGL_J1516.8+3651_daily_bin989.fits evtable="EVENTS" scfile=/scratch/kocevski/443825/ft2_4FGL_J1516.8+3651_daily_bin989.fits sctable="SC_DATA" expcube=/scratch/kocevski/443825/ltcube_495676801_495936001_4FGL_J1516.8+3651_daily_bin989.fits outfile=/scratch/kocevski/443825/expmap_495676801_495936001_4FGL_J1516.8+3651_daily_bin989.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/443825/ltcube_495676801_495936001_4FGL_J1516.8+3651_daily_bin989.fits
.....................!
real 190.54
user 185.04
sys 5.07

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/443825/ft1_filtered_4FGL_J1516.8+3651_daily_bin989.fits scfile=/scratch/kocevski/443825/ft2_4FGL_J1516.8+3651_daily_bin989.fits outfile=/scratch/kocevski/443825/cmap_495676801_495936001_4FGL_J1516.8+3651_daily_bin989.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443825/ft1_filtered_4FGL_J1516.8+3651_daily_bin989.fits scfile=/scratch/kocevski/443825/ft2_4FGL_J1516.8+3651_daily_bin989.fits outfile=/scratch/kocevski/443825/cmap_HighResolution_495676801_495936001_4FGL_J1516.8+3651_daily_bin989.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/443825/ft1_filtered_4FGL_J1516.8+3651_daily_bin989.fits evtable="EVENTS" scfile=/scratch/kocevski/443825/ft2_4FGL_J1516.8+3651_daily_bin989.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/443825/Model_4FGL_J1516.8+3651_daily_bin989.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/443825/ft1_filtered_4FGL_J1516.8+3651_daily_bin989.fits.....................!
real 47.21
user 45.82
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/443825/ft1_filtered_4FGL_J1516.8+3651_daily_bin989.fits', '/scratch/kocevski/443825/ft2_4FGL_J1516.8+3651_daily_bin989.fits', expMap='/scratch/kocevski/443825/expmap_495676801_495936001_4FGL_J1516.8+3651_daily_bin989.fits', expCube='/scratch/kocevski/443825/ltcube_495676801_495936001_4FGL_J1516.8+3651_daily_bin989.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/443825/Model_4FGL_J1516.8+3651_daily_bin989.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/443825/ft1_filtered_4FGL_J1516.8+3651_daily_bin989.fits
Spacecraft file(s): /scratch/kocevski/443825/ft2_4FGL_J1516.8+3651_daily_bin989.fits
Exposure map: /scratch/kocevski/443825/expmap_495676801_495936001_4FGL_J1516.8+3651_daily_bin989.fits
Exposure cube: /scratch/kocevski/443825/ltcube_495676801_495936001_4FGL_J1516.8+3651_daily_bin989.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/443825/Model_4FGL_J1516.8+3651_daily_bin989.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) = 6215.37892209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11602E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9324       1.0000         .10000E-03   10000.    
     4 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6438       1.0000         .10000E-03   10000.    
     6 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.428       1.0000         .10000E-03   10000.    
     9 'norm      '    7.0032       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.651       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4030       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2056       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0721       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.238       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.428       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.2058       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2671       1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.242       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.8059       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.8564       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .89021       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0746       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=   6215.328     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3684 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1682        .62200E-07** at limit **
   2  Prefactor     .10000E-03    6.7533        .29032E-06** at limit **
   3  Prefactor     5.9281        11.270        .27587E-08   -.33081E-04
   4  norm          .10000E-03    4.3966        .47860E-06** at limit **
   5  Prefactor     4.6447        13.117        .47532E-05   -.17164E-03
   6  norm          .10000E-03    8.6038        .26654E-06** at limit **
   7  Prefactor     .10000E-03    19.984        .12911E-05** at limit **
   8  Prefactor     30.425        27.537       -.41252E-06   -.42590E-04
   9  norm          7.0033        6.4043       -.39695E-07    .40976E-05
  10  Prefactor     11.653        11.593        .54076E-07    .67502E-06
  11  Prefactor     .10000E-03    1.8096       -.48765E-07** at limit **
  12  Prefactor     6.4039        5.3023       -.87650E-07   -.28083E-04
  13  norm          1.2063        1.1668        .19654E-06    .68903E-04
  14  norm          1.0680        2.7435        .77026E-06    .39881E-03
  15  Prefactor     .10000E-03    3.9126       -.17506E-06** at limit **
  16  Prefactor     27.163        69.760       -.15087E-04   -.22134E-03
  17  Prefactor     .10000E-03    20.308        .14029E-05** at limit **
  18  Prefactor     19.421        20.550       -.13058E-05   -.45542E-04
  19  Prefactor     .10000E-03    23.216       -.20895E-05** at limit **
  20  norm          4.2059        1.5447       -.38932E-06    .15304E-03
  21  Prefactor     4.2664        7.0993        .51743E-05   -.56959E-03
  22  Prefactor     33.241        30.664       -.87161E-06   -.26418E-04
  23  Prefactor     .10000E-03    12.288       -.59331E-06** at limit **
  24  norm          .10000E-03    4.7629       -.57355E-06** at limit **
  25  Prefactor     .10000E-03    .76888        .40680E-07** at limit **
  26  Prefactor     3.7964        13.000       -.11773E-06   -.35270E-04
  27  Prefactor     7.8563        4.8266       -.38706E-08   -.82012E-05
  28  Normalizat    .88994        .18151        .89023E-06   -.10081E-03
  29  Prefactor     1.0749        .17319       -.87333E-06    .33787E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.92808
  norm       = 0.0001
  Prefactor  = 4.64467
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.4248
  norm       = 7.00332
  Prefactor  = 11.6525
  Prefactor  = 0.0001
  Prefactor  = 6.40385
  norm       = 1.20629
  norm       = 1.068
  Prefactor  = 0.0001
  Prefactor  = 27.1628
  Prefactor  = 0.0001
  Prefactor  = 19.4206
  Prefactor  = 0.0001
  norm       = 4.20591
  Prefactor  = 4.26635
  Prefactor  = 33.2406
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.79641
  Prefactor  = 7.85633
  Normalizat = 0.889936
  Prefactor  = 1.07489
 **********
 **   18 **HESSE 
 **********

 FCN=   6215.328     FROM HESSE     STATUS=OK           557 CALLS     4241 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1800        .11336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.7577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9281        11.254        .16487E-03   -1.5221    
   4  norm          .10000E-03    4.4021        .16153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6447        13.189        .93381E-03   -1.5277    
   6  norm          .10000E-03    8.9361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.425        27.580        .72635E-04   -1.4604    
   9  norm          7.0033        6.4053        .15159E-03   -1.5179    
  10  Prefactor     11.653        11.599        .11736E-03   -1.5025    
  11  Prefactor     .10000E-03    1.8108        .10356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.4039        5.2961        .15862E-03   -1.5202    
  13  norm          1.2063        1.1687        .41274E-04   -1.5488    
  14  norm          1.0680        2.3594        .19899E-02   -1.5501    
  15  Prefactor     .10000E-03    3.9209        .15210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.163        73.752        .76761E-04   -1.4665    
  17  Prefactor     .10000E-03    21.233        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.421        20.403        .90868E-04   -1.4826    
  19  Prefactor     .10000E-03    23.648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.2059        1.5512        .52404E-04   -1.5298    
  21  Prefactor     4.2664        7.2485        .97523E-03   -1.5295    
  22  Prefactor     33.241        30.674        .69501E-04   -1.4554    
  23  Prefactor     .10000E-03    12.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.7727        .16807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .77635        .67490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.7964        12.989        .20690E-03   -1.5318    
  27  Prefactor     7.8563        4.8264        .13122E-03   -1.5147    
  28  Normalizat    .88994        .21048        .25702E-03   -.96815    
  29  Prefactor     1.0749        .20133        .23439E-03   -.90273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.742e-09
Minuit parameter uncertainties:
  1  1.38278e-06
  2  1.84576e-05
  3  11.2575
  4  2.80486e-05
  5  13.1977
  6  2.61859e-05
  7  0.00014995
  8  27.5913
  9  6.40591
  10  11.6017
  11  1.72569e-06
  12  5.29644
  13  1.16868
  14  2.35965
  15  1.13495e-06
  16  74.0008
  17  8.33414e-06
  18  20.4105
  19  6.51814e-05
  20  1.55123
  21  7.24998
  22  30.689
  23  8.42622e-06
  24  2.29282e-05
  25  1.57817e-06
  26  12.9984
  27  4.82661
  28  0.210672
  29  0.201471
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  2.716e+01  7.400e+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:  1.075e+00  2.015e-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:  8.899e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 229.222 36.850
Photon Flux Upper Limit: 8.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443825/likelihoodResults_495676801_495936001_4FGL_J1516.8+3651_daily_bin989.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) = 6215.29708689
delta logL = 0.0310250702332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6215.27984484
delta logL = 0.0482671250065

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6215.280     FROM MIGRAD    STATUS=FAILED        87 CALLS      288 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.614        6165.9        .10854E-03   -.43733E-03
   2  Index         2.7512        6.8438        .99874E-02   -.20689E-03
   3  Normalizat    .87928        .21017        .25839E-03   -.44526E-03
   4  Prefactor     1.0819        .21299        .23370E-03   -.51482E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6215.280     FROM SIMPLEX   STATUS=UNCHANGED     98 CALLS      386 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.614        6165.9        .83212E-03   -.43733E-03
   2  Index         2.7512        6.8438        .19230E-02   -.20689E-03
   3  Normalizat    .87928        .21017        .93204E-04   -.44526E-03
   4  Prefactor     1.0819        .21299        .11814E-03   -.51482E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6215.280     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      416 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.612        76.245        .21707E-04   -.52069E-03
   2  Index         2.7513        2.0595        .39950E-03   -.18677E-03
   3  Normalizat    .87928        .20373        .51677E-04   -.45288E-03
   4  Prefactor     1.0819        .20061        .46740E-04   -.52611E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6124
  Index      = 2.75131
  Normalizat = 0.879275
  Prefactor  = 1.08195
 **********
 **   18 **HESSE 
 **********

 FCN=   6215.280     FROM HESSE     STATUS=OK            23 CALLS      439 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.612        72.689        .43415E-05   -1.4970    
   2  Index         2.7513        2.0141        .15980E-04   -.46647    
   3  Normalizat    .87928        .20372        .10335E-04   -.97192    
   4  Prefactor     1.0819        .20058        .93480E-05   -.90046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69942e-09
Minuit parameter uncertainties:
  1  63.031
  2  2.08947
  3  0.2039
  4  0.200722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443825': 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) = 6215.27980814
delta logL = 0.0483038201437

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.361e+01  6.303e+01  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.751e+00  2.089e+00  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:  1.082e+00  2.007e-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:  8.793e-01  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
Ra Dec: 229.222 36.850

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/443825/cmap_HighResolution_495676801_495936001_4FGL_J1516.8+3651_daily_bin989.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='8.14e-08', time_completed='2021-09-11 23:00:14.983620', job_id='443825', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.89', time_epoch_completed='1631426414.98', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='4.83e-02', ts2='0.26', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='989' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:00:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 443825: <4FGL_J1516.8+3651_daily_bin989> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin989> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 22:46:21 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:46:23 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:46:23 2021
Terminated at Sat Sep 11 23:00:15 2021
Results reported at Sat Sep 11 23:00:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin989 229.222 36.8505 495676801 495936001 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 :                                   815.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

