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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin1229
RA = 229.244, Dec = 19.5805
tmin = 557884801, tmax = 558144001
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='455902', job_status='RUN', time_executed='2021-09-11 23:26:27.587621', time_epoch_executed='1631427987.59' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455902

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455902/ft1_4FGL_J1516.9+1934_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455902/ft2_4FGL_J1516.9+1934_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455902/ft1_4FGL_J1516.9+1934_daily_bin1229.fits outfile=/scratch/kocevski/455902/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1229.fits ra=229.244 dec=19.5805 rad=12.0 tmin=557884801.0 tmax=558144001.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 4.05
user 3.80
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455902/ft2_4FGL_J1516.9+1934_daily_bin1229.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/455902/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/455902/ft1_filtered_4FGL_J1516.9+1934_daily_bin1229.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/455902/ft1_filtered_4FGL_J1516.9+1934_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/455902/ft2_4FGL_J1516.9+1934_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/455902/ltcube_557884801_558144001_4FGL_J1516.9+1934_daily_bin1229.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/455902/ft2_4FGL_J1516.9+1934_daily_bin1229.fits
.....................!
real 11.66
user 11.27
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455902/ft1_filtered_4FGL_J1516.9+1934_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/455902/ft2_4FGL_J1516.9+1934_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/455902/ltcube_557884801_558144001_4FGL_J1516.9+1934_daily_bin1229.fits outfile=/scratch/kocevski/455902/expmap_557884801_558144001_4FGL_J1516.9+1934_daily_bin1229.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/455902/ltcube_557884801_558144001_4FGL_J1516.9+1934_daily_bin1229.fits
.....................!
real 193.15
user 187.44
sys 5.32

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J1516.9+1934 @ 229.244 19.5805

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/455902/ft1_filtered_4FGL_J1516.9+1934_daily_bin1229.fits scfile=/scratch/kocevski/455902/ft2_4FGL_J1516.9+1934_daily_bin1229.fits outfile=/scratch/kocevski/455902/cmap_557884801_558144001_4FGL_J1516.9+1934_daily_bin1229.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=229.244 yref=19.5805 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455902/ft1_filtered_4FGL_J1516.9+1934_daily_bin1229.fits scfile=/scratch/kocevski/455902/ft2_4FGL_J1516.9+1934_daily_bin1229.fits outfile=/scratch/kocevski/455902/cmap_HighResolution_557884801_558144001_4FGL_J1516.9+1934_daily_bin1229.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=229.244 yref=19.5805 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/455902/ft1_filtered_4FGL_J1516.9+1934_daily_bin1229.fits', '/scratch/kocevski/455902/ft2_4FGL_J1516.9+1934_daily_bin1229.fits', expMap='/scratch/kocevski/455902/expmap_557884801_558144001_4FGL_J1516.9+1934_daily_bin1229.fits', expCube='/scratch/kocevski/455902/ltcube_557884801_558144001_4FGL_J1516.9+1934_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/455902/Model_4FGL_J1516.9+1934_daily_bin1229.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1516.9+1934'

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  7.750e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/455902/ft1_filtered_4FGL_J1516.9+1934_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/455902/ft2_4FGL_J1516.9+1934_daily_bin1229.fits
Exposure map: /scratch/kocevski/455902/expmap_557884801_558144001_4FGL_J1516.9+1934_daily_bin1229.fits
Exposure cube: /scratch/kocevski/455902/ltcube_557884801_558144001_4FGL_J1516.9+1934_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/455902/Model_4FGL_J1516.9+1934_daily_bin1229.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) = 5770.48834127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.7718       1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .72187E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7334       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11526E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1532       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4024       1.0000         .10000E-03   10000.    
    11 'norm      '    .10839E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8999       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .56022E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71674E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10490E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.504       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5659       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4314       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.481       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.9530       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .54102       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5770.482     FROM MIGRAD    STATUS=CONVERGED   1049 CALLS     3650 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2389        .18142E-02** at limit **
   2  norm          8.7696        5.2124        .64501E-03   -.39675E-04
   3  norm          .10000E-03    3.5945        .14055E-02** at limit **
   4  Prefactor     .10000E-03    124.68        .64175E-02** at limit **
   5  Prefactor     1.7304        55.280        .31880E-03    .35660E-06
   6  Prefactor     .10000E-03    54.922        .36285E-03** at limit **
   7  Prefactor     .10000E-03    16.859        .18142E-02** at limit **
   8  Prefactor     .10000E-03    4.0763        .14975E-02** at limit **
   9  norm          1.1530        .24156        .16188E-04   -.14958E-03
  10  norm          2.4007        3.3853        .16252E-03   -.60857E-05
  11  norm          .10000E-03    19.627        .18142E-02** at limit **
  12  Prefactor     1.8200        436.24        .30174E-03    .52747E-06
  13  Prefactor     .12146E-03    21.652        .87025E-01** at limit **
  14  Prefactor     .10679E-03    39.665        .11365    ** at limit **
  15  Prefactor     .10000E-03    38.312        .18142E-02** at limit **
  16  Prefactor     .10000E-03    36.496        .18142E-02** at limit **
  17  Prefactor     .10000E-03    3.2272        .13241E-02** at limit **
  18  Prefactor     13.419        28.851        .10900E-03    .18670E-04
  19  norm          1.5629        2.1600        .12608E-03   -.16871E-03
  20  Prefactor     .10000E-03    26.585        .18142E-02** at limit **
  21  norm          1.4244        10.196        .36104E-03   -.12910E-05
  22  Prefactor     13.481        16.947        .10909E-03   -.81286E-05
  23  Normalizat    1.9536        .34360        .27380E-03   -.13778E-03
  24  Prefactor     .54103        .17836        .26251E-03   -.61844E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.76964
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 1.73043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.15305
  norm       = 2.40069
  norm       = 0.0001
  Prefactor  = 1.82002
  Prefactor  = 0.000121464
  Prefactor  = 0.000106794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.419
  norm       = 1.56292
  Prefactor  = 0.0001
  norm       = 1.42443
  Prefactor  = 13.4805
  Normalizat = 1.95357
  Prefactor  = 0.541027
 **********
 **   18 **HESSE 
 **********

 FCN=   5770.482     FROM HESSE     STATUS=OK           395 CALLS     4045 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2393        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.7696        5.2120        .25800E-04   -1.5116    
   3  norm          .10000E-03    3.5947        .28111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    128.12        .25670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7304        55.229        .12752E-04   -1.5445    
   6  Prefactor     .10000E-03    54.925        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.0764        .29950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1530        .24155        .64754E-06   -1.5493    
  10  norm          2.4007        3.3853        .65010E-05   -1.5398    
  11  norm          .10000E-03    19.627        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8200        435.77        .12070E-04   -1.5438    
  13  Prefactor     .12146E-03    19.654        .92785E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10679E-03    38.459        .11582       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    38.315        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.496        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2280        .26481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.419        28.855        .43599E-05   -1.4975    
  19  norm          1.5629        2.1596        .50433E-05   -1.5458    
  20  Prefactor     .10000E-03    26.587        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4244        10.186        .14442E-04   -1.5469    
  22  Prefactor     13.481        16.946        .43636E-05   -1.4973    
  23  Normalizat    1.9536        .34379        .54760E-04   -.65719    
  24  Prefactor     .54103        .17854        .10500E-04   -1.1013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74578e-10
Minuit parameter uncertainties:
  1  4.54017e-06
  2  5.21224
  3  4.66961e-07
  4  0.00126611
  5  19.5711
  6  2.43451e-05
  7  9.06516e-06
  8  2.58426e-06
  9  0.241552
  10  3.3856
  11  1.24094e-06
  12  56.7459
  13  0.0410922
  14  0.0323487
  15  0.000120796
  16  0.000103212
  17  7.093e-07
  18  28.8853
  19  2.15968
  20  4.65049e-05
  21  7.61959
  22  16.9516
  23  0.34422
  24  0.178721
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.820e+00  5.675e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  5.410e-01  1.787e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.954e+00  3.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 229.244 19.581
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/455902/likelihoodResults_557884801_558144001_4FGL_J1516.9+1934_daily_bin1229.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) = 5770.30782806
delta logL = 0.174478406764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5770.28825817
delta logL = 0.194048296325

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5770.288     FROM MIGRAD    STATUS=FAILED        82 CALLS      268 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4082        329.87        .18845E-03   -.37433E-02
   2  Index         4.5865        5.6487        .90159E-02   -.73176E-03
   3  Normalizat    1.8932        .26655        .27717E-03   -.13954E-02
   4  Prefactor     .56185        .14332        .25796E-03   -.10046E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5770.288     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      357 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4082        329.87        .40295E-03   -.37433E-02
   2  Index         4.5865        5.6487        .23150E-02   -.73176E-03
   3  Normalizat    1.8932        .26655        .16053E-03   -.13954E-02
   4  Prefactor     .56185        .14332        .65113E-04   -.10046E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5770.288     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      389 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4066        18.311        .75380E-05   -.99540E-05
   2  Index         4.5870        2.9515        .36064E-03   -.16708E-05
   3  Normalizat    1.8932        .33586        .55434E-04    .47456E-04
   4  Prefactor     .56185        .17941        .51593E-04    .94091E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.40662
  Index      = 4.58702
  Normalizat = 1.89322
  Prefactor  = 0.561845
 **********
 **   18 **HESSE 
 **********

 FCN=   5770.288     FROM HESSE     STATUS=OK            23 CALLS      412 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4066        16.850        .15076E-05   -1.5398    
   2  Index         4.5870        2.8466        .14425E-04   -.82690E-01
   3  Normalizat    1.8932        .33595        .11087E-04   -.67255    
   4  Prefactor     .56185        .17946        .10319E-04   -1.0922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69737e-11
Minuit parameter uncertainties:
  1  12.7408
  2  3.02993
  3  0.336364
  4  0.179638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455902': 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) = 5770.28825487
delta logL = 0.194051591295

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  2.407e+00  1.274e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  4.587e+00  3.030e+00  0.000e+00  1.000e+01 (-1.000e+00)
227        Scale:  7.139e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  5.618e-01  1.796e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.893e+00  3.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 229.244 19.581

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/455902/cmap_HighResolution_557884801_558144001_4FGL_J1516.9+1934_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.44e-07', time_completed='2021-09-11 23:37:34.502588', job_id='455902', GAL2='0.56', fit_tolerance='1e-08', EG2='1.89', EG='1.95', time_epoch_completed='1631428654.5', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='1.94e-01', ts2='0.42', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1229' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:37:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 455902: <4FGL_J1516.9+1934_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin1229> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:26:09 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:26:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 23:26:11 2021
Terminated at Sat Sep 11 23:37:35 2021
Results reported at Sat Sep 11 23:37:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin1229 229.244 19.5805 557884801 558144001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1516.9+1934 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   661.00 sec.
    Max Memory :                                 1049 MB
    Average Memory :                             322.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            686 sec.

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

