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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin627
RA = 229.244, Dec = 19.5805
tmin = 401846401, tmax = 402105601
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='453666', job_status='RUN', time_executed='2021-09-11 23:21:21.243674', time_epoch_executed='1631427681.24' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453666

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453666/ft1_4FGL_J1516.9+1934_daily_bin627.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453666/ft2_4FGL_J1516.9+1934_daily_bin627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453666/ft1_4FGL_J1516.9+1934_daily_bin627.fits outfile=/scratch/kocevski/453666/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin627.fits ra=229.244 dec=19.5805 rad=12.0 tmin=401846401.0 tmax=402105601.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.47
user 3.28
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/453666/ft2_4FGL_J1516.9+1934_daily_bin627.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/453666/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin627.fits evtable="EVENTS" outfile="/scratch/kocevski/453666/ft1_filtered_4FGL_J1516.9+1934_daily_bin627.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/453666/ft1_filtered_4FGL_J1516.9+1934_daily_bin627.fits" evtable="EVENTS" scfile=/scratch/kocevski/453666/ft2_4FGL_J1516.9+1934_daily_bin627.fits sctable="SC_DATA" outfile=/scratch/kocevski/453666/ltcube_401846401_402105601_4FGL_J1516.9+1934_daily_bin627.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/453666/ft2_4FGL_J1516.9+1934_daily_bin627.fits
.....................!
real 12.02
user 11.64
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453666/ft1_filtered_4FGL_J1516.9+1934_daily_bin627.fits evtable="EVENTS" scfile=/scratch/kocevski/453666/ft2_4FGL_J1516.9+1934_daily_bin627.fits sctable="SC_DATA" expcube=/scratch/kocevski/453666/ltcube_401846401_402105601_4FGL_J1516.9+1934_daily_bin627.fits outfile=/scratch/kocevski/453666/expmap_401846401_402105601_4FGL_J1516.9+1934_daily_bin627.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/453666/ltcube_401846401_402105601_4FGL_J1516.9+1934_daily_bin627.fits
.....................!
real 190.40
user 185.29
sys 4.75

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/453666/ft1_filtered_4FGL_J1516.9+1934_daily_bin627.fits scfile=/scratch/kocevski/453666/ft2_4FGL_J1516.9+1934_daily_bin627.fits outfile=/scratch/kocevski/453666/cmap_401846401_402105601_4FGL_J1516.9+1934_daily_bin627.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453666/ft1_filtered_4FGL_J1516.9+1934_daily_bin627.fits scfile=/scratch/kocevski/453666/ft2_4FGL_J1516.9+1934_daily_bin627.fits outfile=/scratch/kocevski/453666/cmap_HighResolution_401846401_402105601_4FGL_J1516.9+1934_daily_bin627.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.654       1.0000         .10000E-03   10000.    
     2 'norm      '    .62770E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    7.4378       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7757       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3182       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6198       1.0000         .10000E-03   10000.    
     9 'norm      '    .42906       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    35.496       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.690       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    98.713       1.0000         .10000E-03   10000.    
    19 'norm      '    7.7599       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.312       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83684       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0060       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=   6864.694     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2820 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.656        12.325        .43027E-07   -.99125E-05
   2  norm          .63420E-01    1.3143        .14064E-06   -.38625E-03
   3  norm          7.4381        4.1107        .72034E-06   -.14452E-02
   4  Prefactor     5.7752        19.123       -.53905E-08   -.17083E-04
   5  Prefactor     9.3187        11.198        .30493E-06   -.14010E-03
   6  Prefactor     .10000E-03    6.7006        .34039E-07** at limit **
   7  Prefactor     .10000E-03    22.935        .61013E-06** at limit **
   8  Prefactor     9.6196        7.6460       -.90377E-07   -.62530E-04
   9  norm          .42908        .18831        .58621E-08   -.66949E-04
  10  norm          .10000E-03    2.0944        .79344E-09** at limit **
  11  norm          35.497        34.144        .39736E-06    .36753E-04
  12  Prefactor     .10000E-03    65.533       -.47210E-06** at limit **
  13  Prefactor     .10000E-03    1.7667       -.40170E-08** at limit **
  14  Prefactor     36.682        36.753       -.28548E-05   -.21691E-03
  15  Prefactor     .10000E-03    30.620        .19704E-05** at limit **
  16  Prefactor     .10000E-03    28.001       -.22674E-05** at limit **
  17  Prefactor     .10000E-03    1.1065        .14545E-07** at limit **
  18  Prefactor     98.718        45.462        .13729E-05    .15508E-03
  19  norm          7.7602        3.1343       -.11267E-07    .29747E-05
  20  Prefactor     .10000E-03    17.111        .30849E-07** at limit **
  21  norm          .10000E-03    3.1286        .24096E-07** at limit **
  22  Prefactor     11.313        11.520       -.21661E-07   -.20829E-04
  23  Normalizat    .83674        .21589        .12064E-06   -.52404E-04
  24  Prefactor     1.0060        .13057       -.17230E-06   -.38028E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6555
  norm       = 0.0634204
  norm       = 7.43809
  Prefactor  = 5.77523
  Prefactor  = 9.31874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.61964
  norm       = 0.429077
  norm       = 0.0001
  norm       = 35.4975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.6816
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 98.7181
  norm       = 7.76023
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.3131
  Normalizat = 0.836742
  Prefactor  = 1.00603
 **********
 **   18 **HESSE 
 **********

 FCN=   6864.694     FROM HESSE     STATUS=OK           397 CALLS     3217 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.656        12.335        .10840E-03   -1.4969    
   2  norm          .63420E-01    15.311        .18034E-02   -1.5658    
   3  norm          7.4381        4.9054        .71807E-03   -1.5162    
   4  Prefactor     5.7752        19.081        .16712E-03   -1.5227    
   5  Prefactor     9.3187        11.263        .65644E-03   -1.5097    
   6  Prefactor     .10000E-03    6.7035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.6196        7.6507        .12920E-03   -1.5088    
   9  norm          .42908        .18790        .22838E-04   -1.5577    
  10  norm          .10000E-03    2.0947        .11710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          35.497        34.177        .67264E-04   -1.4516    
  12  Prefactor     .10000E-03    65.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7683        .10755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.682        38.874        .66165E-04   -1.4496    
  15  Prefactor     .10000E-03    32.097        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.1361        .17009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     98.718        46.111        .40461E-04   -1.3718    
  19  norm          7.7602        3.1362        .90003E-04   -1.5151    
  20  Prefactor     .10000E-03    17.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.1389        .14311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.313        11.534        .11911E-03   -1.5035    
  23  Normalizat    .83674        .25397        .33442E-03   -.98720    
  24  Prefactor     1.0060        .15471        .19397E-03   -.92529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59894e-09
Minuit parameter uncertainties:
  1  12.3373
  2  1.96975
  3  4.9057
  4  19.101
  5  11.2659
  6  2.893e-06
  7  9.31173e-05
  8  7.65146
  9  0.187896
  10  4.80346e-08
  11  34.1958
  12  7.9851e-05
  13  4.92732e-07
  14  38.9006
  15  0.000271792
  16  0.000387238
  17  4.45902e-07
  18  46.1275
  19  3.13624
  20  1.66224e-05
  21  1.16474e-06
  22  11.5364
  23  0.254336
  24  0.154782
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  7.985e-05  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:  1.006e+00  1.548e-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:  8.367e-01  2.543e-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: 9.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/453666/likelihoodResults_401846401_402105601_4FGL_J1516.9+1934_daily_bin627.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) = 6864.69362828
delta logL = -7.21976784916e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6864.68691763
delta logL = 0.00663845883264

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48820       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2245       1.0000          .0000       10.000    
     3 'Normalizat'    .82984       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0082       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=   6864.687     FROM MIGRAD    STATUS=FAILED        99 CALLS      393 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48627        1527.8        .23762E-02   -.11547E-02
   2  Index         4.2240        6.1628        .10767E-01   -.28027E-03
   3  Normalizat    .82991        .13038        .33571E-03   -.10779E-02
   4  Prefactor     1.0082        .77991E-01    .19379E-03   -.13115E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6864.687     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      490 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48627        1527.8        .37880E-03   -.11547E-02
   2  Index         4.2240        6.1628        .41808E-02   -.28027E-03
   3  Normalizat    .82991        .13038        .19606E-03   -.10779E-02
   4  Prefactor     1.0082        .77991E-01    .48557E-04   -.13115E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6864.687     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      532 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48385        41.312        .95046E-04   -.13157E-05
   2  Index         4.2273        6.7893        .43069E-03   -.26396E-07
   3  Normalizat    .82991        .24807        .67142E-04    .50797E-05
   4  Prefactor     1.0082        .15430        .38758E-04   -.10736E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.483852
  Index      = 4.2273
  Normalizat = 0.829912
  Prefactor  = 1.00817
 **********
 **   18 **HESSE 
 **********

 FCN=   6864.687     FROM HESSE     STATUS=OK            23 CALLS      555 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48385        36.185        .38018E-05   -1.5569    
   2  Index         4.2273        6.9216        .17228E-04   -.15516    
   3  Normalizat    .82991        .24813        .26857E-05   -.98969    
   4  Prefactor     1.0082        .15434        .77515E-05   -.92458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02389e-12
Minuit parameter uncertainties:
  1  8.37293
  2  8.9419
  3  0.24847
  4  0.154412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453666': 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) = 6864.68691744
delta logL = 0.00663864036051

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  4.839e-01  8.373e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  4.227e+00  8.942e+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:  1.008e+00  1.544e-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:  8.299e-01  2.485e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/453666/cmap_HighResolution_401846401_402105601_4FGL_J1516.9+1934_daily_bin627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.68e-03', job_status='DONE', photon_flux_upper_limit='9.83e-08', time_completed='2021-09-11 23:32:42.666133', job_id='453666', GAL2='1.01', fit_tolerance='1e-08', EG2='0.83', EG='0.84', time_epoch_completed='1631428362.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='6.64e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='627' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:32:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 453666: <4FGL_J1516.9+1934_daily_bin627> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin627 229.244 19.5805 401846401 402105601 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 :                                   678.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            705 sec.

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

