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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin318
RA = 229.244, Dec = 19.5805
tmin = 321753601, tmax = 322012801
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='449378', job_status='RUN', time_executed='2021-09-11 23:06:28.360876', time_epoch_executed='1631426788.36' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449378

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449378/ft1_4FGL_J1516.9+1934_daily_bin318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449378/ft2_4FGL_J1516.9+1934_daily_bin318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449378/ft1_4FGL_J1516.9+1934_daily_bin318.fits outfile=/scratch/kocevski/449378/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin318.fits ra=229.244 dec=19.5805 rad=12.0 tmin=321753601.0 tmax=322012801.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.38
user 3.15
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/449378/ft2_4FGL_J1516.9+1934_daily_bin318.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/449378/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin318.fits evtable="EVENTS" outfile="/scratch/kocevski/449378/ft1_filtered_4FGL_J1516.9+1934_daily_bin318.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/449378/ft1_filtered_4FGL_J1516.9+1934_daily_bin318.fits" evtable="EVENTS" scfile=/scratch/kocevski/449378/ft2_4FGL_J1516.9+1934_daily_bin318.fits sctable="SC_DATA" outfile=/scratch/kocevski/449378/ltcube_321753601_322012801_4FGL_J1516.9+1934_daily_bin318.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/449378/ft2_4FGL_J1516.9+1934_daily_bin318.fits
.....................!
real 12.58
user 12.23
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449378/ft1_filtered_4FGL_J1516.9+1934_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/449378/ft2_4FGL_J1516.9+1934_daily_bin318.fits sctable="SC_DATA" expcube=/scratch/kocevski/449378/ltcube_321753601_322012801_4FGL_J1516.9+1934_daily_bin318.fits outfile=/scratch/kocevski/449378/expmap_321753601_322012801_4FGL_J1516.9+1934_daily_bin318.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/449378/ltcube_321753601_322012801_4FGL_J1516.9+1934_daily_bin318.fits
.....................!
real 189.97
user 185.54
sys 4.07

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/449378/ft1_filtered_4FGL_J1516.9+1934_daily_bin318.fits scfile=/scratch/kocevski/449378/ft2_4FGL_J1516.9+1934_daily_bin318.fits outfile=/scratch/kocevski/449378/cmap_321753601_322012801_4FGL_J1516.9+1934_daily_bin318.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449378/ft1_filtered_4FGL_J1516.9+1934_daily_bin318.fits scfile=/scratch/kocevski/449378/ft2_4FGL_J1516.9+1934_daily_bin318.fits outfile=/scratch/kocevski/449378/cmap_HighResolution_321753601_322012801_4FGL_J1516.9+1934_daily_bin318.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9698       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1926       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.552       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.906       1.0000         .10000E-03   10000.    
     9 'norm      '    .52622       1.0000         .10000E-03   10000.    
    10 'norm      '    4.8374       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.391       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.524       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.002       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.7375       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .30063       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1075       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99386       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=   7328.762     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2716 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9724        9.5991       -.13429E-05   -.23394E-03
   2  norm          .10000E-03    1.2157        .44445E-08** at limit **
   3  norm          2.1928        2.2455       -.39517E-07    .18880E-03
   4  Prefactor     .10000E-03    17.230        .92830E-05** at limit **
   5  Prefactor     11.554        13.865       -.75777E-06   -.43194E-04
   6  Prefactor     .10000E-03    12.298       -.67637E-06** at limit **
   7  Prefactor     .10000E-03    67.763       -.53479E-06** at limit **
   8  Prefactor     10.907        8.1329       -.37868E-07   -.15997E-04
   9  norm          .52629        .22143       -.57716E-08   -.66110E-03
  10  norm          4.8372        4.9772       -.43486E-05    .26069E-03
  11  norm          .10000E-03    16.429       -.36125E-05** at limit **
  12  Prefactor     26.389        39.344       -.34613E-05   -.56365E-06
  13  Prefactor     .10000E-03    3.3332        .35328E-07** at limit **
  14  Prefactor     11.523        24.233       -.84053E-06   -.11109E-04
  15  Prefactor     19.009        16.889       -.12513E-05   -.16994E-04
  16  Prefactor     .10000E-03    12.268       -.85692E-07** at limit **
  17  Prefactor     .10000E-03    .89210        .24456E-07** at limit **
  18  Prefactor     .10000E-03    11.192        .12101E-05** at limit **
  19  norm          .10000E-03    .94765        .38794E-07** at limit **
  20  Prefactor     .10000E-03    16.303       -.36944E-05** at limit **
  21  norm          9.7368        7.2440       -.10357E-05   -.16985E-02
  22  Prefactor     .29867        5.0783       -.69604E-06   -.28719E-03
  23  Normalizat    1.1070        .20804        .10991E-05   -.24505E-04
  24  Prefactor     .99419        .12750        .24692E-06    .55933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.97237
  norm       = 0.0001
  norm       = 2.1928
  Prefactor  = 0.0001
  Prefactor  = 11.5541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9067
  norm       = 0.526287
  norm       = 4.83722
  norm       = 0.0001
  Prefactor  = 26.3885
  Prefactor  = 0.0001
  Prefactor  = 11.523
  Prefactor  = 19.0087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.73675
  Prefactor  = 0.298669
  Normalizat = 1.10697
  Prefactor  = 0.994192
 **********
 **   18 **HESSE 
 **********

 FCN=   7328.762     FROM HESSE     STATUS=OK           403 CALLS     3119 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9724        9.6636        .23561E-03   -1.5363    
   2  norm          .10000E-03    1.2536        .18426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1928        2.2530        .12652E-03   -1.5412    
   4  Prefactor     .10000E-03    17.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.554        13.874        .11787E-03   -1.5028    
   6  Prefactor     .10000E-03    12.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    68.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.907        8.1374        .12132E-03   -1.5047    
   9  norm          .52629        .21972        .24889E-04   -1.5563    
  10  norm          4.8372        4.8311        .18290E-03   -1.5268    
  11  norm          .10000E-03    16.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.389        39.409        .77980E-04   -1.4680    
  13  Prefactor     .10000E-03    3.3450        .15261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.523        24.253        .11801E-03   -1.5029    
  15  Prefactor     19.009        17.012        .91881E-04   -1.4836    
  16  Prefactor     .10000E-03    12.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .90508        .78910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.7088        .16211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.7368        7.5387        .64209E-03   -1.5084    
  22  Prefactor     .29867        29.696        .37460E-02   -1.5599    
  23  Normalizat    1.1070        .25180        .30212E-03   -.89528    
  24  Prefactor     .99419        .15498        .20142E-03   -.92923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51118e-09
Minuit parameter uncertainties:
  1  9.66863
  2  1.01275e-06
  3  2.25313
  4  1.61117e-05
  5  13.8778
  6  2.02206e-06
  7  9.14272e-06
  8  8.13824
  9  0.219722
  10  4.83145
  11  8.81747e-08
  12  39.4475
  13  1.2976e-06
  14  24.2733
  15  17.0168
  16  7.30888e-06
  17  1.07791e-07
  18  3.81756e-06
  19  8.88448e-07
  20  4.51601e-06
  21  7.53944
  22  5.95835
  23  0.252076
  24  0.155047
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  2.639e+01  3.945e+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:  9.942e-01  1.550e-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.107e+00  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.59
Ra Dec: 229.244 19.581
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/449378/likelihoodResults_321753601_322012801_4FGL_J1516.9+1934_daily_bin318.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) = 7328.75542822
delta logL = 0.00675453405074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7328.75314406
delta logL = 0.00903869149533

Fit tolerance = 1e-08

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

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

 FCN=   7328.753     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      231 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.702        1192.9        .20569E-02    .15829E-03
   2  Index         2.7310        6.1848        .22799        .66089E-04
   3  Normalizat    1.1031        .66114E-01    .68394E-01    .45355E-04
   4  Prefactor     .99579        .38538E-01    .46215E-01    .14055E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.7023
  Index      = 2.73104
  Normalizat = 1.10307
  Prefactor  = 0.99579
 **********
 **   18 **HESSE 
 **********

 FCN=   7328.753     FROM HESSE     STATUS=OK            31 CALLS      262 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.702        45.390        .82277E-04   -1.4734    
   2  Index         2.7310        1.2328        .12083E-01   -.47102    
   3  Normalizat    1.1031        .24053        .30260E-03   -.89653    
   4  Prefactor     .99579        .15226        .20128E-03   -.92870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31014e-09
Minuit parameter uncertainties:
  1  45.4565
  2  1.24907
  3  0.240765
  4  0.152323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449378': 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) = 7328.75314398
delta logL = 0.00903877263136

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  2.370e+01  4.546e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.731e+00  1.249e+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:  9.958e-01  1.523e-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.103e+00  2.408e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
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/449378/cmap_HighResolution_321753601_322012801_4FGL_J1516.9+1934_daily_bin318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.33e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-11 23:17:54.127213', job_id='449378', GAL2='1.00', fit_tolerance='1e-08', EG2='1.10', EG='1.11', time_epoch_completed='1631427474.13', return_code2='0', ts='0.59', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='9.04e-03', ts2='0.60', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='318' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:17:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 449378: <4FGL_J1516.9+1934_daily_bin318> in cluster <slac> Done

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

Your job looked like:

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

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

