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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin1019
RA = 229.222, Dec = 36.8505
tmin = 503452801, tmax = 503712001
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='443868', job_status='RUN', time_executed='2021-09-11 22:50:20.104430', time_epoch_executed='1631425820.1' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443868

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443868/ft1_4FGL_J1516.8+3651_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443868/ft2_4FGL_J1516.8+3651_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443868/ft1_4FGL_J1516.8+3651_daily_bin1019.fits outfile=/scratch/kocevski/443868/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin1019.fits ra=229.222 dec=36.8505 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.70
user 7.43
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443868/ft1_filtered_4FGL_J1516.8+3651_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/443868/ft2_4FGL_J1516.8+3651_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/443868/ltcube_503452801_503712001_4FGL_J1516.8+3651_daily_bin1019.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/443868/ft2_4FGL_J1516.8+3651_daily_bin1019.fits
.....................!
real 12.33
user 11.97
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443868/ft1_filtered_4FGL_J1516.8+3651_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/443868/ft2_4FGL_J1516.8+3651_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/443868/ltcube_503452801_503712001_4FGL_J1516.8+3651_daily_bin1019.fits outfile=/scratch/kocevski/443868/expmap_503452801_503712001_4FGL_J1516.8+3651_daily_bin1019.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/443868/ltcube_503452801_503712001_4FGL_J1516.8+3651_daily_bin1019.fits
.....................!
real 189.88
user 184.85
sys 4.60

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/443868/ft1_filtered_4FGL_J1516.8+3651_daily_bin1019.fits scfile=/scratch/kocevski/443868/ft2_4FGL_J1516.8+3651_daily_bin1019.fits outfile=/scratch/kocevski/443868/cmap_503452801_503712001_4FGL_J1516.8+3651_daily_bin1019.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443868/ft1_filtered_4FGL_J1516.8+3651_daily_bin1019.fits scfile=/scratch/kocevski/443868/ft2_4FGL_J1516.8+3651_daily_bin1019.fits outfile=/scratch/kocevski/443868/cmap_HighResolution_503452801_503712001_4FGL_J1516.8+3651_daily_bin1019.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.523       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .74575       1.0000         .10000E-03   10000.    
     4 'norm      '    .18381E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.474       1.0000         .10000E-03   10000.    
     6 'norm      '    12.649       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .28756E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25625E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .24006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.399       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .80497E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7434       1.0000         .10000E-03   10000.    
    13 'norm      '    .15686       1.0000         .10000E-03   10000.    
    14 'norm      '    .77657       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .85277E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.394       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .66903E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17747E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10975E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5129       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.777       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12451E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .53210E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .40238E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11698E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.6960       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2919       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .62758       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=   4093.973     FROM MIGRAD    STATUS=CONVERGED    796 CALLS     3295 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9077        .25268E-07** at limit **
   2  Prefactor     12.120        20.988       -.46128E-05   -.23502E-03
   3  Prefactor     1.2982        68.129        .15660E-04   -.18735E-04
   4  norm          .10000E-03    9.6527        .19797E-06** at limit **
   5  Prefactor     20.114        35.910       -.32556E-06   -.23160E-04
   6  norm          12.537        8.8952        .32500E-08   -.19382E-03
   7  Prefactor     .10000E-03    23.929        .56908E-06** at limit **
   8  Prefactor     .10000E-03    87.703       -.50318E-06** at limit **
   9  norm          .10000E-03    5.8582       -.51884E-06** at limit **
  10  Prefactor     34.310        25.362        .24688E-06   -.38760E-03
  11  Prefactor     .10000E-03    11.220       -.13373E-05** at limit **
  12  Prefactor     7.7530        7.0390       -.41881E-07   -.24584E-04
  13  norm          .15657        1.5114        .40723E-06   -.10461E-02
  14  norm          .77608        2.8705        .70317E-06   -.13319E-03
  15  Prefactor     .10000E-03    5.3009       -.90478E-07** at limit **
  16  Prefactor     31.396        88.909        .16132E-05   -.29597E-04
  17  Prefactor     .10000E-03    5.3810        .17251E-07** at limit **
  18  Prefactor     .10000E-03    7.1607        .73812E-08** at limit **
  19  Prefactor     .10000E-03    9.7479       -.58191E-07** at limit **
  20  norm          1.5346        2.1477        .88563E-07   -.18896E-03
  21  Prefactor     19.431        17.418       -.10737E-06   -.49883E-04
  22  Prefactor     .10000E-03    37.193        .11144E-07** at limit **
  23  Prefactor     .10000E-03    10.951        .10910E-06** at limit **
  24  norm          .10000E-03    6.3285        .40547E-07** at limit **
  25  Prefactor     .10000E-03    1.6073        .21118E-07** at limit **
  26  Prefactor     .10000E-03    8.4647        .53100E-09** at limit **
  27  Prefactor     5.7171        4.7782       -.24235E-07    .19785E-05
  28  Normalizat    1.2928        .22495        .48938E-06   -.29580E-03
  29  Prefactor     .62727        .19807       -.28645E-06   -.14857E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 12.1201
  Prefactor  = 1.29818
  norm       = 0.0001
  Prefactor  = 20.1144
  norm       = 12.5367
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 34.3099
  Prefactor  = 0.0001
  Prefactor  = 7.753
  norm       = 0.156568
  norm       = 0.776083
  Prefactor  = 0.0001
  Prefactor  = 31.3956
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.53458
  Prefactor  = 19.4314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.71707
  Normalizat = 1.29282
  Prefactor  = 0.627271
 **********
 **   18 **HESSE 
 **********

 FCN=   4093.973     FROM HESSE     STATUS=OK           547 CALLS     3842 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9160        .10655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.120        21.069        .11320E-03   -1.5012    
   3  Prefactor     1.2982        68.923        .48945E-03   -1.5480    
   4  norm          .10000E-03    9.6641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.114        36.337        .88519E-04   -1.4811    
   6  norm          12.537        8.9036        .11263E-03   -1.5000    
   7  Prefactor     .10000E-03    23.901        .19874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    88.502        .21455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.8523        .15107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.310        25.342        .68326E-04   -1.4536    
  11  Prefactor     .10000E-03    11.290        .20768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.7530        7.0439        .14410E-03   -1.5151    
  13  norm          .15657        7.2738        .13734E-02   -1.5629    
  14  norm          .77608        2.7857        .19949E-03   -1.5532    
  15  Prefactor     .10000E-03    5.3264        .14360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.396        89.175        .72675E-04   -1.4587    
  17  Prefactor     .10000E-03    5.3955        .14494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.1653        .16722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.8108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5346        2.0767        .84805E-04   -1.5460    
  21  Prefactor     19.431        17.074        .90063E-04   -1.4826    
  22  Prefactor     .10000E-03    37.237        .20611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.967        .20680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.3358        .15720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.6183        .79177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.4675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.7171        4.7800        .12431E-03   -1.5230    
  28  Normalizat    1.2928        .27441        .21972E-03   -.83781    
  29  Prefactor     .62727        .23897        .28096E-03   -1.0645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64479e-09
Minuit parameter uncertainties:
  1  6.49759e-07
  2  21.0822
  3  18.9404
  4  1.27388e-06
  5  36.3774
  6  8.90455
  7  0.000247885
  8  0.000870027
  9  2.11666e-05
  10  25.3501
  11  2.5847e-05
  12  7.04466
  13  2.13393
  14  2.78614
  15  1.91537e-05
  16  89.5567
  17  2.77968e-06
  18  6.38352e-06
  19  3.55791e-05
  20  2.07682
  21  17.0787
  22  2.2532e-07
  23  6.82424e-06
  24  5.90161e-06
  25  1.26128e-06
  26  7.04861e-06
  27  4.78031
  28  0.274715
  29  0.239357
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  3.140e+01  8.956e+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:  6.273e-01  2.394e-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.293e+00  2.747e-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: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443868/likelihoodResults_503452801_503712001_4FGL_J1516.8+3651_daily_bin1019.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) = 4093.86338783
delta logL = 0.109770699937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4093.84586538
delta logL = 0.127293150266

Fit tolerance = 1e-08

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

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

 FCN=   4093.846     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      305 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.056        76.767        .89379E-04   -.29052E-03
   2  Index         2.8436        1.7022        .75011E-02   -.14348E-03
   3  Normalizat    1.2700        .26137        .22137E-03    .18722E-03
   4  Prefactor     .63849        .23743        .27861E-03    .21836E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0559
  Index      = 2.84359
  Normalizat = 1.27004
  Prefactor  = 0.638492
 **********
 **   18 **HESSE 
 **********

 FCN=   4093.846     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.056        57.674        .17876E-04   -1.4812    
   2  Index         2.8436        1.2878        .30004E-03   -.44591    
   3  Normalizat    1.2700        .26097        .44274E-04   -.84465    
   4  Prefactor     .63849        .23693        .11145E-04   -1.0599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.00415e-10
Minuit parameter uncertainties:
  1  57.8349
  2  1.30594
  3  0.261238
  4  0.237302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443868': 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) = 4093.84586512
delta logL = 0.127293410123

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  2.006e+01  5.783e+01  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.844e+00  1.306e+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:  6.385e-01  2.373e-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.270e+00  2.612e-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/443868/cmap_HighResolution_503452801_503712001_4FGL_J1516.8+3651_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.27e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-11 23:01:06.271439', job_id='443868', GAL2='0.64', fit_tolerance='1e-08', EG2='1.27', EG='1.29', time_epoch_completed='1631426466.27', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.27e-01', ts2='0.42', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1019' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:01:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 443868: <4FGL_J1516.8+3651_daily_bin1019> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin1019 229.222 36.8505 503452801 503712001 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 :                                   641.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

