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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin1026
RA = 229.244, Dec = 19.5805
tmin = 505267201, tmax = 505526401
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='454225', job_status='RUN', time_executed='2021-09-11 23:21:59.533485', time_epoch_executed='1631427719.53' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='1026'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/454225

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/454225/ft1_4FGL_J1516.9+1934_daily_bin1026.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/454225/ft2_4FGL_J1516.9+1934_daily_bin1026.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/454225/ft1_4FGL_J1516.9+1934_daily_bin1026.fits outfile=/scratch/kocevski/454225/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1026.fits ra=229.244 dec=19.5805 rad=12.0 tmin=505267201.0 tmax=505526401.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.55
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/454225/ft1_filtered_4FGL_J1516.9+1934_daily_bin1026.fits" evtable="EVENTS" scfile=/scratch/kocevski/454225/ft2_4FGL_J1516.9+1934_daily_bin1026.fits sctable="SC_DATA" outfile=/scratch/kocevski/454225/ltcube_505267201_505526401_4FGL_J1516.9+1934_daily_bin1026.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/454225/ft2_4FGL_J1516.9+1934_daily_bin1026.fits
.....................!
real 11.75
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/454225/ft1_filtered_4FGL_J1516.9+1934_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/454225/ft2_4FGL_J1516.9+1934_daily_bin1026.fits sctable="SC_DATA" expcube=/scratch/kocevski/454225/ltcube_505267201_505526401_4FGL_J1516.9+1934_daily_bin1026.fits outfile=/scratch/kocevski/454225/expmap_505267201_505526401_4FGL_J1516.9+1934_daily_bin1026.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/454225/ltcube_505267201_505526401_4FGL_J1516.9+1934_daily_bin1026.fits
.....................!
real 190.49
user 185.65
sys 4.52

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/454225/ft1_filtered_4FGL_J1516.9+1934_daily_bin1026.fits scfile=/scratch/kocevski/454225/ft2_4FGL_J1516.9+1934_daily_bin1026.fits outfile=/scratch/kocevski/454225/cmap_505267201_505526401_4FGL_J1516.9+1934_daily_bin1026.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/454225/ft1_filtered_4FGL_J1516.9+1934_daily_bin1026.fits scfile=/scratch/kocevski/454225/ft2_4FGL_J1516.9+1934_daily_bin1026.fits outfile=/scratch/kocevski/454225/cmap_HighResolution_505267201_505526401_4FGL_J1516.9+1934_daily_bin1026.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22704       1.0000         .10000E-03   10000.    
     2 'norm      '    4.8091       1.0000         .10000E-03   10000.    
     3 'norm      '    8.1266       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.890       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.033       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1212       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.406       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1297       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5446       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.573       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.508       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .32600       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.4768       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.507       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2294       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91580       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=   7166.894     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2732 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14645        5.0163       -.35444E-06    .83479E-05
   2  norm          4.8097        3.0784       -.25787E-08   -.23780E-03
   3  norm          8.1258        5.2622        .27014E-07   -.65818E-04
   4  Prefactor     20.883        25.120       -.53546E-06   -.97477E-04
   5  Prefactor     25.033        18.718       -.10658E-06   -.88785E-04
   6  Prefactor     9.1194        27.535        .23726E-06   -.19969E-04
   7  Prefactor     25.405        30.334       -.10260E-07   -.24165E-04
   8  Prefactor     .10000E-03    8.1173        .35422E-06** at limit **
   9  norm          1.1297        .26070       -.51628E-07   -.23924E-02
  10  norm          1.5445        8.0647        .97983E-05   -.81495E-04
  11  norm          .10000E-03    18.972       -.29562E-06** at limit **
  12  Prefactor     26.562        34.954        .32894E-06   -.60548E-04
  13  Prefactor     .10000E-03    2.0582        .96833E-07** at limit **
  14  Prefactor     21.485        31.351        .88055E-06   -.91506E-04
  15  Prefactor     .10000E-03    10.525        .42669E-06** at limit **
  16  Prefactor     .10000E-03    17.534        .44237E-06** at limit **
  17  Prefactor     .32581        1.0964        .29949E-06    .13988E-03
  18  Prefactor     .10000E-03    12.211       -.22873E-06** at limit **
  19  norm          1.4762        2.2873        .35985E-07   -.20764E-03
  20  Prefactor     .10000E-03    8.4588        .19793E-06** at limit **
  21  norm          .10000E-03    4.6184        .96092E-07** at limit **
  22  Prefactor     11.503        12.406        .23999E-07   -.98872E-04
  23  Normalizat    1.2296        .21939        .21412E-05   -.76362E-04
  24  Prefactor     .91579        .13521       -.20821E-05   -.36880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.146452
  norm       = 4.80966
  norm       = 8.12576
  Prefactor  = 20.883
  Prefactor  = 25.0329
  Prefactor  = 9.11938
  Prefactor  = 25.4054
  Prefactor  = 0.0001
  norm       = 1.12969
  norm       = 1.54448
  norm       = 0.0001
  Prefactor  = 26.562
  Prefactor  = 0.0001
  Prefactor  = 21.4851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.325809
  Prefactor  = 0.0001
  norm       = 1.47619
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.5032
  Normalizat = 1.22956
  Prefactor  = 0.915794
 **********
 **   18 **HESSE 
 **********

 FCN=   7166.894     FROM HESSE     STATUS=OK           401 CALLS     3133 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14645        102.48        .36453E-02   -1.5631    
   2  norm          4.8097        3.0749        .11463E-03   -1.5269    
   3  norm          8.1258        5.2690        .14064E-03   -1.5138    
   4  Prefactor     20.883        25.128        .87634E-04   -1.4794    
   5  Prefactor     25.033        18.702        .80064E-04   -1.4707    
   6  Prefactor     9.1194        27.439        .13271E-03   -1.5104    
   7  Prefactor     25.405        30.308        .79475E-04   -1.4699    
   8  Prefactor     .10000E-03    8.2329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1297        .26081        .19936E-04   -1.5495    
  10  norm          1.5445        8.1318        .17146E-02   -1.5459    
  11  norm          .10000E-03    18.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.562        34.996        .77714E-04   -1.4677    
  13  Prefactor     .10000E-03    2.0613        .11862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.485        31.387        .86366E-04   -1.4781    
  15  Prefactor     .10000E-03    10.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .32581        1.2584        .15616E-02   -1.5594    
  18  Prefactor     .10000E-03    12.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4762        2.2614        .15371E-03   -1.5465    
  20  Prefactor     .10000E-03    8.4625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.6486        .17765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.503        12.417        .11810E-03   -1.5030    
  23  Normalizat    1.2296        .26143        .30020E-03   -.85694    
  24  Prefactor     .91579        .16146        .21516E-03   -.95591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22557e-10
Minuit parameter uncertainties:
  1  7.75887
  2  3.07499
  3  5.26925
  4  25.1407
  5  18.7064
  6  27.4767
  7  30.3267
  8  0.000117356
  9  0.260807
  10  7.08912
  11  1.90626e-05
  12  35.0229
  13  1.03565e-05
  14  31.4114
  15  0.000127317
  16  1.91217e-05
  17  1.25846
  18  6.19757e-05
  19  2.26158
  20  8.15849e-06
  21  1.65241e-05
  22  12.4195
  23  0.26171
  24  0.161548
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  2.656e+01  3.502e+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.158e-01  1.615e-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.230e+00  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/454225/likelihoodResults_505267201_505526401_4FGL_J1516.9+1934_daily_bin1026.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) = 7166.84572843
delta logL = 0.0486385588611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7166.83538349
delta logL = 0.058983504211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.877       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9819       1.0000          .0000       10.000    
     3 'Normalizat'    1.2152       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92064       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=   7166.835     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      244 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.865        36.744        .85636E-04    .84963E-05
   2  Index         2.9821        1.2776        .10348E-01   -.21214E-04
   3  Normalizat    1.2151        .25787        .30174E-03   -.13269E-02
   4  Prefactor     .92066        .16033        .21465E-03   -.18523E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.8648
  Index      = 2.98212
  Normalizat = 1.21513
  Prefactor  = 0.920658
 **********
 **   18 **HESSE 
 **********

 FCN=   7166.835     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.865        33.564        .34255E-05   -1.4772    
   2  Index         2.9821        1.1676        .41390E-03   -.41542    
   3  Normalizat    1.2151        .25771        .60348E-04   -.86137    
   4  Prefactor     .92066        .16031        .42929E-04   -.95423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61339e-09
Minuit parameter uncertainties:
  1  33.5933
  2  1.18064
  3  0.257978
  4  0.160392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/454225': 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) = 7166.8353834
delta logL = 0.0589835957453

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  2.186e+01  3.359e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.982e+00  1.181e+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.207e-01  1.604e-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.215e+00  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 229.244 19.581
Photon Index (Free Index): 2.98 +/- 1.18
Photon Flux (Free Index): 3.88e-08 +/- 5.41e-08
Energy Flux (Free Index): 7.81e-06 +/- 9.30e-06

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/454225/cmap_HighResolution_505267201_505526401_4FGL_J1516.9+1934_daily_bin1026.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', comment='SUCCESS', energy_flux2='7.81e-06', dlogl='5.90e-02', photon_flux2='3.88e-08', job_status='DONE', time_completed='2021-09-11 23:33:37.669525', photon_index_error2='1.18', photon_index2='2.98', ts='0.93', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='9.30e-06', EG='1.23', time_epoch_completed='1631428417.67', return_code='0', job_id='454225', GAL2='0.92', EG2='1.22', return_code2='0', photon_flux_error2='5.41e-08', ts2='1.08', photon_index='2.58' WHERE bin_id='1026' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:33:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 454225: <4FGL_J1516.9+1934_daily_bin1026> in cluster <slac> Done

Job <4FGL_J1516.9+1934_daily_bin1026> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 23:21:40 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:21:41 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:21:41 2021
Terminated at Sat Sep 11 23:33:38 2021
Results reported at Sat Sep 11 23:33:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin1026 229.244 19.5805 505267201 505526401 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 :                                   682.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             297.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            718 sec.

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

