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


Performing analysis on: 4FGL_J1516.8+3651_daily_bin75
RA = 229.222, Dec = 36.8505
tmin = 258768001, tmax = 259027201
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='438537', job_status='RUN', time_executed='2021-09-11 22:29:25.169417', time_epoch_executed='1631424565.17' WHERE source_name='4FGL J1516.8+3651' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438537

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438537/ft1_4FGL_J1516.8+3651_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438537/ft2_4FGL_J1516.8+3651_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438537/ft1_4FGL_J1516.8+3651_daily_bin75.fits outfile=/scratch/kocevski/438537/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin75.fits ra=229.222 dec=36.8505 rad=12.0 tmin=258768001.0 tmax=259027201.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.10
user 0.93
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438537/ft2_4FGL_J1516.8+3651_daily_bin75.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/438537/ft1_filteredMKT_4FGL_J1516.8+3651_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/438537/ft1_filtered_4FGL_J1516.8+3651_daily_bin75.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.48
user 0.32
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438537/ft1_filtered_4FGL_J1516.8+3651_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/438537/ft2_4FGL_J1516.8+3651_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/438537/ltcube_258768001_259027201_4FGL_J1516.8+3651_daily_bin75.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/438537/ft2_4FGL_J1516.8+3651_daily_bin75.fits
.....................!
real 8.97
user 8.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438537/ft1_filtered_4FGL_J1516.8+3651_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/438537/ft2_4FGL_J1516.8+3651_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/438537/ltcube_258768001_259027201_4FGL_J1516.8+3651_daily_bin75.fits outfile=/scratch/kocevski/438537/expmap_258768001_259027201_4FGL_J1516.8+3651_daily_bin75.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/438537/ltcube_258768001_259027201_4FGL_J1516.8+3651_daily_bin75.fits
.....................!
real 191.15
user 185.48
sys 5.30

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/438537/ft1_filtered_4FGL_J1516.8+3651_daily_bin75.fits scfile=/scratch/kocevski/438537/ft2_4FGL_J1516.8+3651_daily_bin75.fits outfile=/scratch/kocevski/438537/cmap_258768001_259027201_4FGL_J1516.8+3651_daily_bin75.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.51
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438537/ft1_filtered_4FGL_J1516.8+3651_daily_bin75.fits scfile=/scratch/kocevski/438537/ft2_4FGL_J1516.8+3651_daily_bin75.fits outfile=/scratch/kocevski/438537/cmap_HighResolution_258768001_259027201_4FGL_J1516.8+3651_daily_bin75.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    41.376       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.345       1.0000         .10000E-03   10000.    
     6 'norm      '    16.647       1.0000         .10000E-03   10000.    
     7 'Prefactor '    66.721       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.554       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16178E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3573       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   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 '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.778       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    19.652       1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.453       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15599E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .40251       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2574       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=   4462.579     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3691 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3259        .77450E-09** at limit **
   2  Prefactor     .10000E-03    21.919        .14637E-05** at limit **
   3  Prefactor     .10000E-03    22.709       -.30624E-05** at limit **
   4  norm          41.381        26.172        .28493E-07   -.10813E-04
   5  Prefactor     13.337        28.885       -.20820E-06    .10735E-05
   6  norm          16.652        9.4325       -.10017E-06   -.26632E-03
   7  Prefactor     66.720        60.673       -.17503E-06   -.80802E-05
   8  Prefactor     34.570        36.000        .49705E-05   -.19511E-03
   9  norm          .10000E-03    21.292        .11102E-05** at limit **
  10  Prefactor     .10101E-03    17.997        .33685E-05** at limit **
  11  Prefactor     .10000E-03    4.4776       -.12847E-06** at limit **
  12  Prefactor     1.3553        5.6513       -.11172E-04   -.38038E-03
  13  norm          .10000E-03    .65311       -.88093E-08** at limit **
  14  norm          .10000E-03    1.4371        .31393E-07** at limit **
  15  Prefactor     .10000E-03    3.2864        .23875E-07** at limit **
  16  Prefactor     .10001E-03    81.457       -.19962E-04** at limit **
  17  Prefactor     .10000E-03    4.6431        .83238E-07** at limit **
  18  Prefactor     19.773        19.467        .38755E-06    .39310E-04
  19  Prefactor     .10000E-03    9.1272       -.16337E-05** at limit **
  20  norm          19.653        3.9489       -.21916E-06    .15580E-04
  21  Prefactor     28.438        24.807        .12934E-05   -.23964E-05
  22  Prefactor     .10000E-03    153.40       -.12310E-04** at limit **
  23  Prefactor     .10000E-03    8.2046        .24678E-06** at limit **
  24  norm          .10000E-03    9.1023        .95153E-06** at limit **
  25  Prefactor     .10000E-03    1.9796       -.36478E-07** at limit **
  26  Prefactor     .10000E-03    9.1633        .55151E-06** at limit **
  27  Prefactor     .10000E-03    1.5814       -.84247E-08** at limit **
  28  Normalizat    .40270        .21783       -.13564E-05   -.79080E-04
  29  Prefactor     1.2574        .20587        .10533E-05   -.13940E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 41.3813
  Prefactor  = 13.3368
  norm       = 16.6517
  Prefactor  = 66.7203
  Prefactor  = 34.5703
  norm       = 0.0001
  Prefactor  = 0.000101014
  Prefactor  = 0.0001
  Prefactor  = 1.35526
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 19.7729
  Prefactor  = 0.0001
  norm       = 19.653
  Prefactor  = 28.4376
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.402699
  Prefactor  = 1.25744
 **********
 **   18 **HESSE 
 **********

 FCN=   4462.579     FROM HESSE     STATUS=OK           541 CALLS     4232 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3331        .11894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          41.381        26.123        .62319E-04   -1.4421    
   5  Prefactor     13.337        28.845        .10965E-03   -1.4977    
   6  norm          16.652        9.3883        .98163E-04   -1.4892    
   7  Prefactor     66.720        60.635        .49135E-04   -1.4072    
   8  Prefactor     34.570        35.719        .68173E-04   -1.4531    
   9  norm          .10000E-03    21.788        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10101E-03    86.131        .52845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.5159        .13800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3553        6.5263        .32990E-03   -1.5475    
  13  norm          .10000E-03    .66580        .52669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4454        .78187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2936        .11821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    80.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.6547        .14057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.773        19.422        .90061E-04   -1.4818    
  19  Prefactor     .10000E-03    9.1795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          19.653        3.9905        .42500E-04   -1.4821    
  21  Prefactor     28.438        24.984        .75107E-04   -1.4641    
  22  Prefactor     .10000E-03    155.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.2090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    9.1623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.0309        .18338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.1663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.5856        .82036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .40270        .23933        .36081E-03   -1.1716    
  29  Prefactor     1.2574        .23128        .21373E-03   -.84582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1984e-08
Minuit parameter uncertainties:
  1  1.56123e-06
  2  4.99694e-05
  3  0.000123101
  4  26.1301
  5  28.8749
  6  9.38914
  7  60.6911
  8  35.7407
  9  0.000181745
  10  0.0187221
  11  7.34082e-06
  12  5.94889
  13  1.35406e-06
  14  6.1426e-06
  15  6.95052e-06
  16  0.00142083
  17  4.95977e-06
  18  19.4278
  19  6.16331e-05
  20  3.99059
  21  24.9935
  22  0.000952799
  23  6.69056e-06
  24  2.68522e-05
  25  3.75517e-06
  26  1.25336e-05
  27  1.46427e-07
  28  0.239938
  29  0.231464
Done.

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

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  1.421e-03  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.257e+00  2.315e-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:  4.027e-01  2.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/438537/likelihoodResults_258768001_259027201_4FGL_J1516.8+3651_daily_bin75.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): 102
logL (Free Index) = 4462.57884861
delta logL = -5.91514881307e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4462.57879064
delta logL = -1.1783267837e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19756E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4817       1.0000          .0000       10.000    
     3 'Normalizat'    .40270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2574       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=   4462.579     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      288 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10425E-03    10.243        .18142E-01** at limit **
   2  Index         2.3839        7.3631        .50000        .49803E-05
   3  Normalizat    .40270        .19332E-02    .36082E-03    .45687E-05
   4  Prefactor     1.2574        .19609E-02    .21373E-03    .88300E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104247
  Index      = 2.38391
  Normalizat = 0.402699
  Prefactor  = 1.25744
 **********
 **   18 **HESSE 
 **********

 FCN=   4462.579     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      317 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10425E-03    189.34        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3839        6.0893        .50000       -.55062    
   3  Normalizat    .40270        .83114E-02    .14433E-04   -1.1716    
   4  Prefactor     1.2574        .84303E-02    .85490E-05   -.84582    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.92157e-10
Minuit parameter uncertainties:
  1  0.056896
  2  399.616
  3  0.00831143
  4  0.00843034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438537': 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): 102
logL (Free Index) = 4462.57878966
delta logL = -2.00094291358e-07

Extracting fit parameters...

4FGL J1516.8+3651
   Spectrum: PowerLaw
279    Prefactor:  1.042e-04  5.690e-02  1.000e-04  1.000e+04 ( 1.000e-14)
280        Index:  2.384e+00  3.996e+02  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.257e+00  8.430e-03  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:  4.027e-01  8.311e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/438537/cmap_HighResolution_258768001_259027201_4FGL_J1516.8+3651_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.60e-03', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2021-09-11 22:40:36.751104', job_id='438537', GAL2='1.26', fit_tolerance='1e-08', EG2='0.40', EG='0.40', time_epoch_completed='1631425236.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='-2.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='75' AND source_name='4FGL J1516.8+3651' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 22:40:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 438537: <4FGL_J1516.8+3651_daily_bin75> in cluster <slac> Done

Job <4FGL_J1516.8+3651_daily_bin75> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 22:26:07 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 22:26:08 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:26:08 2021
Terminated at Sat Sep 11 22:40:37 2021
Results reported at Sat Sep 11 22:40:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.8+3651_daily_bin75 229.222 36.8505 258768001 259027201 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 :                                   672.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            870 sec.

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

