/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 2 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 = 7258
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1516.9+1934_daily_bin170
RA = 229.244, Dec = 19.5805
tmin = 283392001, tmax = 283651201
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='449177', job_status='RUN', time_executed='2021-09-11 23:06:11.216975', time_epoch_executed='1631426771.22' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449177

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449177/ft1_4FGL_J1516.9+1934_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449177/ft2_4FGL_J1516.9+1934_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449177/ft1_4FGL_J1516.9+1934_daily_bin170.fits outfile=/scratch/kocevski/449177/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin170.fits ra=229.244 dec=19.5805 rad=12.0 tmin=283392001.0 tmax=283651201.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.59
user 3.37
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/449177/ft2_4FGL_J1516.9+1934_daily_bin170.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/449177/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/449177/ft1_filtered_4FGL_J1516.9+1934_daily_bin170.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/449177/ft1_filtered_4FGL_J1516.9+1934_daily_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/449177/ft2_4FGL_J1516.9+1934_daily_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/449177/ltcube_283392001_283651201_4FGL_J1516.9+1934_daily_bin170.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/449177/ft2_4FGL_J1516.9+1934_daily_bin170.fits
.....................!
real 11.76
user 11.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449177/ft1_filtered_4FGL_J1516.9+1934_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/449177/ft2_4FGL_J1516.9+1934_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/449177/ltcube_283392001_283651201_4FGL_J1516.9+1934_daily_bin170.fits outfile=/scratch/kocevski/449177/expmap_283392001_283651201_4FGL_J1516.9+1934_daily_bin170.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/449177/ltcube_283392001_283651201_4FGL_J1516.9+1934_daily_bin170.fits
.....................!
real 190.77
user 185.35
sys 5.06

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/449177/ft1_filtered_4FGL_J1516.9+1934_daily_bin170.fits scfile=/scratch/kocevski/449177/ft2_4FGL_J1516.9+1934_daily_bin170.fits outfile=/scratch/kocevski/449177/cmap_283392001_283651201_4FGL_J1516.9+1934_daily_bin170.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.56
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449177/ft1_filtered_4FGL_J1516.9+1934_daily_bin170.fits scfile=/scratch/kocevski/449177/ft2_4FGL_J1516.9+1934_daily_bin170.fits outfile=/scratch/kocevski/449177/cmap_HighResolution_283392001_283651201_4FGL_J1516.9+1934_daily_bin170.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.59
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/449177/ft1_filtered_4FGL_J1516.9+1934_daily_bin170.fits', '/scratch/kocevski/449177/ft2_4FGL_J1516.9+1934_daily_bin170.fits', expMap='/scratch/kocevski/449177/expmap_283392001_283651201_4FGL_J1516.9+1934_daily_bin170.fits', expCube='/scratch/kocevski/449177/ltcube_283392001_283651201_4FGL_J1516.9+1934_daily_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/449177/Model_4FGL_J1516.9+1934_daily_bin170.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/449177/ft1_filtered_4FGL_J1516.9+1934_daily_bin170.fits
Spacecraft file(s): /scratch/kocevski/449177/ft2_4FGL_J1516.9+1934_daily_bin170.fits
Exposure map: /scratch/kocevski/449177/expmap_283392001_283651201_4FGL_J1516.9+1934_daily_bin170.fits
Exposure cube: /scratch/kocevski/449177/ltcube_283392001_283651201_4FGL_J1516.9+1934_daily_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/449177/Model_4FGL_J1516.9+1934_daily_bin170.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) = 7601.20051918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.911       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5312       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1235       1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.454       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9737       1.0000         .10000E-03   10000.    
     9 'norm      '    .45095       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6259       1.0000         .10000E-03   10000.    
    11 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23374E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.602       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2649       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    16.486       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1658       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96624       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.

 FCN=   7601.190     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2730 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.039        .85584E-07** at limit **
   2  norm          .10000E-03    1.2219        .93579E-08** at limit **
   3  norm          .10000E-03    1.3406       -.28627E-07** at limit **
   4  Prefactor     12.913        21.738       -.68026E-06   -.22945E-04
   5  Prefactor     3.5297        13.047        .88071E-05   -.40329E-03
   6  Prefactor     9.1239        24.588        .16973E-05   -.10039E-03
   7  Prefactor     34.449        51.521       -.31417E-05   -.85785E-04
   8  Prefactor     7.9736        7.5695        .55971E-07   -.23606E-04
   9  norm          .45097        .21190       -.17484E-07   -.38444E-03
  10  norm          1.6260        4.9683        .82581E-06   -.21202E-03
  11  norm          .10004E-03    45.855        .85765E-05** at limit **
  12  Prefactor     .10001E-03    26.122        .39162E-05** at limit **
  13  Prefactor     .10000E-03    4.9719        .55910E-07** at limit **
  14  Prefactor     .10002E-03    36.782       -.57168E-05** at limit **
  15  Prefactor     .10042E-03    15.934       -.15471E-05** at limit **
  16  Prefactor     27.578        29.530       -.10438E-05   -.73274E-04
  17  Prefactor     4.2625        3.3654        .24644E-06    .33159E-03
  18  Prefactor     .10000E-03    28.982       -.32057E-05** at limit **
  19  norm          .10000E-03    .69985       -.79093E-08** at limit **
  20  Prefactor     .10000E-03    15.513       -.97039E-08** at limit **
  21  norm          16.487        9.4910        .15041E-07   -.13521E-04
  22  Prefactor     .10000E-03    2.5277        .17670E-08** at limit **
  23  Normalizat    1.1657        .21191       -.25987E-06    .16068E-03
  24  Prefactor     .96631        .12503       -.35433E-06    .17422E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9133
  Prefactor  = 3.52968
  Prefactor  = 9.1239
  Prefactor  = 34.4487
  Prefactor  = 7.97362
  norm       = 0.450966
  norm       = 1.62596
  norm       = 0.000100036
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.000100419
  Prefactor  = 27.5784
  Prefactor  = 4.26253
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 16.4869
  Prefactor  = 0.0001
  Normalizat = 1.16566
  Prefactor  = 0.966312
 **********
 **   18 **HESSE 
 **********

 FCN=   7601.190     FROM HESSE     STATUS=OK           397 CALLS     3127 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.1314        .18709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.3440        .98579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.913        21.709        .11148E-03   -1.4989    
   5  Prefactor     3.5297        13.601        .10756E-02   -1.5332    
   6  Prefactor     9.1239        24.502        .66344E-03   -1.5104    
   7  Prefactor     34.449        51.498        .68271E-04   -1.4533    
   8  Prefactor     7.9736        7.5690        .14199E-03   -1.5143    
   9  norm          .45097        .21019        .25902E-04   -1.5574    
  10  norm          1.6260        4.9485        .33177E-03   -1.5453    
  11  norm          .10004E-03    49.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    26.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.9970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    38.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10042E-03    111.94        .64343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.578        29.225        .76254E-04   -1.4657    
  17  Prefactor     4.2625        3.3353        .13423E-03   -1.5295    
  18  Prefactor     .10000E-03    29.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .70258        .71211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          16.487        9.4904        .98642E-04   -1.4896    
  22  Prefactor     .10000E-03    2.5306        .13537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1657        .24970        .31326E-03   -.87671    
  24  Prefactor     .96631        .14893        .20690E-03   -.93861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12373e-09
Minuit parameter uncertainties:
  1  2.99371e-06
  2  9.47747e-07
  3  2.15846e-06
  4  21.7226
  5  13.6126
  6  24.529
  7  51.5648
  8  7.56993
  9  0.210189
  10  4.94978
  11  0.00266785
  12  0.000889184
  13  3.83463e-06
  14  0.00154307
  15  0.0137184
  16  29.2405
  17  3.33547
  18  0.000767744
  19  3.15304e-07
  20  2.04218e-06
  21  9.4913
  22  4.28465e-07
  23  0.249952
  24  0.148998
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  8.892e-04  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:  9.663e-01  1.490e-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.166e+00  2.500e-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: 8.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449177/likelihoodResults_283392001_283651201_4FGL_J1516.9+1934_daily_bin170.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) = 7601.19065196
delta logL = -0.000177426285518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7601.19047538
delta logL = -8.46680450195e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0785       1.0000          .0000       10.000    
     3 'Normalizat'    1.1657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96631       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=   7601.190     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      276 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10466E-03    18.262        .18142E-01** at limit **
   2  Index         2.9637        5.0431        .50000        .10928E-04
   3  Normalizat    1.1657        .49515E-02    .31325E-03    .45583E-04
   4  Prefactor     .96631        .30270E-02    .20690E-03    .48410E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104662
  Index      = 2.96368
  Normalizat = 1.16566
  Prefactor  = 0.966312
 **********
 **   18 **HESSE 
 **********

 FCN=   7601.190     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10466E-03    112.76        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9637        8.1790        .50000       -.41946    
   3  Normalizat    1.1657        .12314E-01    .12530E-04   -.87671    
   4  Prefactor     .96631        .75278E-02    .82758E-05   -.93861    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.96733e-09
Minuit parameter uncertainties:
  1  0.0459412
  2  452.397
  3  0.0123138
  4  0.00752781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449177': 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) = 7601.1904752
delta logL = -6.59025317873e-07

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.047e-04  4.594e-02  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.964e+00  4.524e+02  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:  9.663e-01  7.528e-03  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.166e+00  1.231e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/449177/cmap_HighResolution_283392001_283651201_4FGL_J1516.9+1934_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-03', job_status='DONE', photon_flux_upper_limit='8.98e-08', time_completed='2021-09-11 23:17:39.586677', job_id='449177', GAL2='0.97', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1631427459.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-6.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='170' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:17:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 449177: <4FGL_J1516.9+1934_daily_bin170> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin170> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 23:05:58 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:06:00 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:06:00 2021
Terminated at Sat Sep 11 23:17:40 2021
Results reported at Sat Sep 11 23:17:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin170 229.244 19.5805 283392001 283651201 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 :                                   686.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            702 sec.

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

