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


Performing analysis on: 4FGL_J1516.9+1934_daily_bin1443
RA = 229.244, Dec = 19.5805
tmin = 613353601, tmax = 613612801
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='457082', job_status='RUN', time_executed='2021-09-11 23:35:38.557233', time_epoch_executed='1631428538.56' WHERE source_name='4FGL J1516.9+1934' and cadence='daily' and bin_id='1443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/457082

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/457082/ft1_4FGL_J1516.9+1934_daily_bin1443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/457082/ft2_4FGL_J1516.9+1934_daily_bin1443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/457082/ft1_4FGL_J1516.9+1934_daily_bin1443.fits outfile=/scratch/kocevski/457082/ft1_filteredMKT_4FGL_J1516.9+1934_daily_bin1443.fits ra=229.244 dec=19.5805 rad=12.0 tmin=613353601.0 tmax=613612801.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.11
user 2.47
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/457082/ft1_filtered_4FGL_J1516.9+1934_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/457082/ft2_4FGL_J1516.9+1934_daily_bin1443.fits sctable="SC_DATA" expcube=/scratch/kocevski/457082/ltcube_613353601_613612801_4FGL_J1516.9+1934_daily_bin1443.fits outfile=/scratch/kocevski/457082/expmap_613353601_613612801_4FGL_J1516.9+1934_daily_bin1443.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/457082/ltcube_613353601_613612801_4FGL_J1516.9+1934_daily_bin1443.fits
.....................!
real 190.74
user 185.49
sys 4.91

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/457082/ft1_filtered_4FGL_J1516.9+1934_daily_bin1443.fits scfile=/scratch/kocevski/457082/ft2_4FGL_J1516.9+1934_daily_bin1443.fits outfile=/scratch/kocevski/457082/cmap_613353601_613612801_4FGL_J1516.9+1934_daily_bin1443.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/457082/ft1_filtered_4FGL_J1516.9+1934_daily_bin1443.fits scfile=/scratch/kocevski/457082/ft2_4FGL_J1516.9+1934_daily_bin1443.fits outfile=/scratch/kocevski/457082/cmap_HighResolution_613353601_613612801_4FGL_J1516.9+1934_daily_bin1443.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.325       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.888       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6074       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5072       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0606       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0109       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.677       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.535       1.0000         .10000E-03   10000.    
    21 'norm      '    .87366E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0427       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98714       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7282.066     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2758 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.328        14.441         .0000       -.87148E-03
   2  norm          .10000E-03    .99300         .0000    ** at limit **
   3  norm          .10000E-03    1.3457         .0000    ** at limit **
   4  Prefactor     .10001E-03    19.987         .0000    ** at limit **
   5  Prefactor     .10000E-03    5.0198         .0000    ** at limit **
   6  Prefactor     11.891        23.153         .0000        .11595E-03
   7  Prefactor     2.6071        54.592         .0000        .50828E-04
   8  Prefactor     8.5090        7.5029         .0000        .36776E-02
   9  norm          2.0606        .39094         .0000       -.15364E-03
  10  norm          1.0098        16.722         .0000        .20241E-01
  11  norm          .10000E-03    15.543         .0000    ** at limit **
  12  Prefactor     39.681        50.518         .0000       -.10951E-02
  13  Prefactor     .10000E-03    5.0873         .0000    ** at limit **
  14  Prefactor     .10002E-03    21.567         .0000    ** at limit **
  15  Prefactor     .10000E-03    3.5369         .0000    ** at limit **
  16  Prefactor     .10001E-03    19.772         .0000    ** at limit **
  17  Prefactor     .10000E-03    .96915         .0000    ** at limit **
  18  Prefactor     .10000E-03    53.448         .0000    ** at limit **
  19  norm          .10000E-03    1.6489         .0000    ** at limit **
  20  Prefactor     43.538        53.533         .0000       -.16242E-02
  21  norm          .10001E-03    11.623         .0000    ** at limit **
  22  Prefactor     .10000E-03    4.2624         .0000    ** at limit **
  23  Normalizat    1.0425        .21283         .0000       -.46125E-04
  24  Prefactor     .98726        .13248         .0000       -.99274E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.3285
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 11.8907
  Prefactor  = 2.60711
  Prefactor  = 8.50895
  norm       = 2.06064
  norm       = 1.00976
  norm       = 0.000100001
  Prefactor  = 39.6808
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 43.5385
  norm       = 0.000100006
  Prefactor  = 0.0001
  Normalizat = 1.04246
  Prefactor  = 0.987258
 **********
 **   18 **HESSE 
 **********

 FCN=   7282.066     FROM HESSE     STATUS=OK           393 CALLS     3151 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.328        14.469        .84773E-04   -1.4763    
   2  norm          .10000E-03    1.0054        .83004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.3574        .96655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    20.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.891        23.086        .11618E-03   -1.5018    
   7  Prefactor     2.6071        54.400        .25263E-03   -1.5385    
   8  Prefactor     8.5090        7.5105        .13744E-03   -1.5124    
   9  norm          2.0606        .39102        .22331E-04   -1.5421    
  10  norm          1.0098        17.064        .26284E-02   -1.5507    
  11  norm          .10000E-03    15.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     39.681        50.581        .63634E-04   -1.4447    
  13  Prefactor     .10000E-03    5.1469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    21.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.5447        .15673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    19.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .98692        .81978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    53.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.6573        .10687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.538        53.558        .60760E-04   -1.4387    
  21  norm          .10001E-03    13.014        .84514E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.2760        .17205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0425        .25504        .32400E-03   -.91621    
  24  Prefactor     .98726        .15943        .20754E-03   -.93155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96181e-08
Minuit parameter uncertainties:
  1  14.4713
  2  2.71982e-07
  3  1.30073e-07
  4  0.000887826
  5  5.88992e-06
  6  23.1028
  7  23.8424
  8  7.51129
  9  0.391022
  10  8.30421
  11  0.000202061
  12  50.6359
  13  1.06756e-05
  14  0.00143993
  15  1.55016e-06
  16  0.000657401
  17  3.17891e-07
  18  0.000638031
  19  1.63052e-07
  20  53.6176
  21  0.000577974
  22  2.83718e-07
  23  0.255345
  24  0.159506
Done.

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

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  3.968e+01  5.064e+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.873e-01  1.595e-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.042e+00  2.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/457082/likelihoodResults_613353601_613612801_4FGL_J1516.9+1934_daily_bin1443.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) = 7282.02069441
delta logL = 0.0453624056845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7282.01858488
delta logL = 0.047471938773

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.394       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2926       1.0000          .0000       10.000    
     3 'Normalizat'    1.0526       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98210       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=   7282.019     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      261 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.394        5858.8        .14411E-02   -.14745E-04
   2  Index         2.2926        5.5811        .24339        .25309E-04
   3  Normalizat    1.0527        .89766E-01    .72898E-01    .68032E-04
   4  Prefactor     .98204        .56143E-01    .46043E-01    .24679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.3945
  Index      = 2.29256
  Normalizat = 1.05272
  Prefactor  = 0.982036
 **********
 **   18 **HESSE 
 **********

 FCN=   7282.019     FROM HESSE     STATUS=OK            31 CALLS      292 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.394        62.220        .57642E-04   -1.4316    
   2  Index         2.2926        .88465        .11733E-01   -.57220    
   3  Normalizat    1.0527        .25138        .32259E-03   -.91284    
   4  Prefactor     .98204        .15779        .20802E-03   -.93331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37471e-11
Minuit parameter uncertainties:
  1  62.3038
  2  0.891316
  3  0.251669
  4  0.157867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/457082': 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) = 7282.01858479
delta logL = 0.0474720226593

Extracting fit parameters...

4FGL J1516.9+1934
   Spectrum: PowerLaw
225    Prefactor:  4.839e+01  6.230e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        Index:  2.293e+00  8.913e-01  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.820e-01  1.579e-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.053e+00  2.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.82
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/457082/cmap_HighResolution_613353601_613612801_4FGL_J1516.9+1934_daily_bin1443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-11 23:46:38.368277', job_id='457082', GAL2='0.98', fit_tolerance='1e-08', EG2='1.05', EG='1.04', time_epoch_completed='1631429198.37', return_code2='0', ts='0.82', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.75e-02', ts2='0.91', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1443' AND source_name='4FGL J1516.9+1934' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:46:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 457082: <4FGL_J1516.9+1934_daily_bin1443> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1516.9+1934_daily_bin1443 229.244 19.5805 613353601 613612801 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 :                                   657.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

