aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 220 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 = 7532
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J1510.8+7959_daily_bin1704
RA = 227.705, Dec = 79.991
tmin = 681004801, tmax = 681264001
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='365491', job_status='RUN', time_executed='2022-08-04 02:28:32.454915', time_epoch_executed='1659605312.45' WHERE source_name='4FGL J1510.8+7959' and cadence='daily' and bin_id='1704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365491

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365491/ft1_4FGL_J1510.8+7959_daily_bin1704.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365491/ft2_4FGL_J1510.8+7959_daily_bin1704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365491/ft1_4FGL_J1510.8+7959_daily_bin1704.fits outfile=/scratch/kocevski/365491/ft1_filteredMKT_4FGL_J1510.8+7959_daily_bin1704.fits ra=227.705 dec=79.991 rad=12.0 tmin=681004801.0 tmax=681264001.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 2.97
user 2.74
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/365491/ft2_4FGL_J1510.8+7959_daily_bin1704.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/365491/ft2_4FGL_J1510.8+7959_daily_bin1704.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/365491/ft1_filteredMKT_4FGL_J1510.8+7959_daily_bin1704.fits evtable="EVENTS" outfile="/scratch/kocevski/365491/ft1_filtered_4FGL_J1510.8+7959_daily_bin1704.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 1665

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365491/ft1_filtered_4FGL_J1510.8+7959_daily_bin1704.fits" evtable="EVENTS" scfile=/scratch/kocevski/365491/ft2_4FGL_J1510.8+7959_daily_bin1704.fits sctable="SC_DATA" outfile=/scratch/kocevski/365491/ltcube_681004801_681264001_4FGL_J1510.8+7959_daily_bin1704.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/365491/ft2_4FGL_J1510.8+7959_daily_bin1704.fits
.....................!
real 14.58
user 14.21
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365491/ft1_filtered_4FGL_J1510.8+7959_daily_bin1704.fits evtable="EVENTS" scfile=/scratch/kocevski/365491/ft2_4FGL_J1510.8+7959_daily_bin1704.fits sctable="SC_DATA" expcube=/scratch/kocevski/365491/ltcube_681004801_681264001_4FGL_J1510.8+7959_daily_bin1704.fits outfile=/scratch/kocevski/365491/expmap_681004801_681264001_4FGL_J1510.8+7959_daily_bin1704.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/365491/ltcube_681004801_681264001_4FGL_J1510.8+7959_daily_bin1704.fits
.....................!
real 191.96
user 185.79
sys 5.15

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 197 point sources and 0 extended sources

Setting source of interest to:
4FGL J1510.8+7959 @ 227.705 79.991

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/365491/ft1_filtered_4FGL_J1510.8+7959_daily_bin1704.fits scfile=/scratch/kocevski/365491/ft2_4FGL_J1510.8+7959_daily_bin1704.fits outfile=/scratch/kocevski/365491/cmap_681004801_681264001_4FGL_J1510.8+7959_daily_bin1704.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=227.705 yref=79.991 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/365491/ft1_filtered_4FGL_J1510.8+7959_daily_bin1704.fits scfile=/scratch/kocevski/365491/ft2_4FGL_J1510.8+7959_daily_bin1704.fits outfile=/scratch/kocevski/365491/cmap_HighResolution_681004801_681264001_4FGL_J1510.8+7959_daily_bin1704.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=227.705 yref=79.991 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/365491/ft1_filtered_4FGL_J1510.8+7959_daily_bin1704.fits evtable="EVENTS" scfile=/scratch/kocevski/365491/ft2_4FGL_J1510.8+7959_daily_bin1704.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/365491/Model_4FGL_J1510.8+7959_daily_bin1704.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/365491/ft1_filtered_4FGL_J1510.8+7959_daily_bin1704.fits.....................!
real 190.71
user 189.16
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/365491/ft1_filtered_4FGL_J1510.8+7959_daily_bin1704.fits', '/scratch/kocevski/365491/ft2_4FGL_J1510.8+7959_daily_bin1704.fits', expMap='/scratch/kocevski/365491/expmap_681004801_681264001_4FGL_J1510.8+7959_daily_bin1704.fits', expCube='/scratch/kocevski/365491/ltcube_681004801_681264001_4FGL_J1510.8+7959_daily_bin1704.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/365491/Model_4FGL_J1510.8+7959_daily_bin1704.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1510.8+7959'

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  6.990e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
343        Index:  2.218e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
344        Scale:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/365491/ft1_filtered_4FGL_J1510.8+7959_daily_bin1704.fits
Spacecraft file(s): /scratch/kocevski/365491/ft2_4FGL_J1510.8+7959_daily_bin1704.fits
Exposure map: /scratch/kocevski/365491/expmap_681004801_681264001_4FGL_J1510.8+7959_daily_bin1704.fits
Exposure cube: /scratch/kocevski/365491/ltcube_681004801_681264001_4FGL_J1510.8+7959_daily_bin1704.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/365491/Model_4FGL_J1510.8+7959_daily_bin1704.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) = 17583.9198855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8886       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.222       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8609       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11802       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.578       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.9721       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5215       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1615       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.689       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.262       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.845       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.437       1.0000         .10000E-03   10000.    
    18 'norm      '    5.9677       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3184       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5078       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.0617       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92543       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99541       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17583.82     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2964 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8888        3.2489       -.18698E-06   -.81221E-04
   2  Prefactor     20.164        10.390        .12796E-05   -.35881E-03
   3  norm          1.7982        .86087        .10480E-06   -.51103E-02
   4  Prefactor     .40300        4.1112        .67611E-06   -.51196E-03
   5  Prefactor     13.519        9.2874       -.19535E-05   -.58103E-03
   6  Prefactor     .10000E-03    11.829       -.14617E-05** at limit **
   7  norm          4.9746        2.5816        .21097E-06   -.45240E-03
   8  Prefactor     .10000E-03    14.296        .25947E-05** at limit **
   9  Prefactor     1.5239        12.792        .84678E-05   -.67768E-04
  10  Prefactor     .10000E-03    9.3287        .43139E-06** at limit **
  11  Prefactor     9.1602        17.108       -.12029E-04   -.35337E-04
  12  Prefactor     .10000E-03    1.6963       -.25499E-06** at limit **
  13  Prefactor     21.697        12.705        .60198E-05   -.93510E-05
  14  Prefactor     25.265        25.853       -.70677E-06   -.72808E-05
  15  Prefactor     14.855        17.636        .69954E-05    .10932E-04
  16  Prefactor     .10000E-03    17.869        .58566E-05** at limit **
  17  Prefactor     30.448        32.226       -.18553E-05   -.34180E-04
  18  norm          5.9688        6.0350        .32735E-06    .52657E-05
  19  Prefactor     .10000E-03    266.60       -.32487E-04** at limit **
  20  Prefactor     1.3178        1.7361        .16696E-06   -.20408E-03
  21  Prefactor     6.5118        9.8220        .18171E-06   -.13844E-04
  22  Prefactor     .10000E-03    16.802       -.81717E-05** at limit **
  23  norm          3.0619        .57681        .58182E-08   -.19014E-03
  24  Normalizat    .92513        .11357       -.56913E-06   -.28694E-03
  25  Prefactor     .99555        .70364E-01   -.32210E-06   -.32503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.88876
  Prefactor  = 20.1637
  norm       = 1.79819
  Prefactor  = 0.402997
  Prefactor  = 13.5185
  Prefactor  = 0.0001
  norm       = 4.97462
  Prefactor  = 0.0001
  Prefactor  = 1.52391
  Prefactor  = 0.0001
  Prefactor  = 9.16017
  Prefactor  = 0.0001
  Prefactor  = 21.6971
  Prefactor  = 25.2646
  Prefactor  = 14.8548
  Prefactor  = 0.0001
  Prefactor  = 30.4485
  norm       = 5.96881
  Prefactor  = 0.000100001
  Prefactor  = 1.31783
  Prefactor  = 6.51182
  Prefactor  = 0.0001
  norm       = 3.06193
  Normalizat = 0.925131
  Prefactor  = 0.995552
 **********
 **   18 **HESSE 
 **********

 FCN=   17583.82     FROM HESSE     STATUS=OK           433 CALLS     3397 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8888        3.2466        .23912E-03   -1.5368    
   2  Prefactor     20.164        10.782        .89068E-04   -1.4810    
   3  norm          1.7982        5.1586        .12976E-02   -1.5440    
   4  Prefactor     .40300        140.96        .43207E-02   -1.5581    
   5  Prefactor     13.519        9.7459        .10870E-03   -1.4972    
   6  Prefactor     .10000E-03    11.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.9746        2.5755        .13871E-03   -1.5262    
   8  Prefactor     .10000E-03    14.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5239        12.835        .34635E-03   -1.5461    
  10  Prefactor     .10000E-03    9.3385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.1602        17.197        .13241E-03   -1.5103    
  12  Prefactor     .10000E-03    1.7037        .16858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.697        12.739        .86006E-04   -1.4776    
  14  Prefactor     25.265        25.855        .79701E-04   -1.4702    
  15  Prefactor     14.855        17.715        .10395E-03   -1.4937    
  16  Prefactor     .10000E-03    17.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.448        32.287        .72623E-04   -1.4604    
  18  norm          5.9688        6.0333        .16437E-03   -1.5219    
  19  Prefactor     .10000E-03    271.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3178        1.7034        .18294E-03   -1.5478    
  21  Prefactor     6.5118        9.7421        .15732E-03   -1.5198    
  22  Prefactor     .10000E-03    16.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.0619        .57617        .41553E-04   -1.5358    
  24  Normalizat    .92513        .12890        .29611E-03   -.95583    
  25  Prefactor     .99555        .79836E-01    .19041E-03   -.92878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59241e-08
Minuit parameter uncertainties:
  1  3.24681
  2  10.7832
  3  5.15987
  4  15.1079
  5  9.74701
  6  1.72753e-06
  7  2.57556
  8  4.35558e-05
  9  8.84751
  10  7.49041e-05
  11  17.2061
  12  3.87707e-06
  13  12.7402
  14  25.8661
  15  17.721
  16  3.08428e-05
  17  32.3054
  18  6.03392
  19  0.00115512
  20  1.70346
  21  9.74447
  22  3.83825e-06
  23  0.576166
  24  0.128939
  25  0.0798451DDone.

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

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  3.045e+01  3.231e+01  1.000e-04  1.000e+04 ( 1.000e-14)
343        Index:  2.218e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
344        Scale:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  9.956e-01  7.985e-02  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  9.251e-01  1.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.74
Ra Dec: 227.705 79.991
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.34e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 5.81e-06 +/- 6.16e-06

TS (Fixed Index): 1.74
Ra Dec: 227.705 79.991
Photon Flux Upper Limit: 4.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/365491/likelihoodResults_681004801_681264001_4FGL_J1510.8+7959_daily_bin1704.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) = 17583.3979883
delta logL = 0.423600716782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 17583.3799209
delta logL = 0.441668127882

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5853       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2349       1.0000          .0000       10.000    
     3 'Normalizat'    .89351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0072       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   17583.38     FROM MIGRAD    STATUS=FAILED       107 CALLS      356 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7116        207.83        .68404E-03    .21426E-03
   2  Index         3.2283        3.8766        .53247E-02    .12549E-02
   3  Normalizat    .89361        .11987        .30077E-03    .30239E-06
   4  Prefactor     1.0071        .73091E-01    .18945E-03    .48007E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   17583.38     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      445 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7116        207.83        .45139E-03    .21426E-03
   2  Index         3.2283        3.8766        .14311E-02    .12549E-02
   3  Normalizat    .89361        .11987        .99101E-04    .30239E-06
   4  Prefactor     1.0071        .73091E-01    .48440E-04    .48007E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17583.38     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      477 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7116        50.929        .13681E-03   -.11634E-04
   2  Index         3.2283        2.1751        .10649E-02    .48509E-04
   3  Normalizat    .89361        .12675        .12031E-04    .30239E-06
   4  Prefactor     1.0071        .81493E-01    .75781E-05    .48007E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.71163
  Index      = 3.22832
  Normalizat = 0.893609
  Prefactor  = 1.00713
 **********
 **   18 **HESSE 
 **********

 FCN=   17583.38     FROM HESSE     STATUS=OK            25 CALLS      502 TOTAL
                     EDM=   .49E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7116        26.365        .54723E-05   -1.5118    
   2  Index         3.2283        1.3939        .21299E-03   -.36220    
   3  Normalizat    .89361        .12327        .12031E-04   -.96685    
   4  Prefactor     1.0071        .80051E-01    .75781E-05   -.92492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86583e-13
Minuit parameter uncertainties:
  1  26.3997
  2  1.41541
  3  0.123308
  4  0.0800608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365491': 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) = 17583.379908
delta logL = 0.441681010288

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  8.712e+00  2.640e+01  1.000e-04  1.000e+04 ( 1.000e-14)
343        Index:  3.228e+00  1.415e+00  0.000e+00  1.000e+01 (-1.000e+00)
344        Scale:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
626    Prefactor:  1.007e+00  8.006e-02  0.000e+00  1.000e+01 ( 1.000e+00)
627        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
628        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
625   Normalization:  8.936e-01  1.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 227.705 79.991
Photon Index (Free Index): 3.23 +/- 1.42
Photon Flux (Free Index): 3.66e-08 +/- 3.02e-08
Energy Flux (Free Index): 6.63e-06 +/- 4.72e-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/365491/cmap_HighResolution_681004801_681264001_4FGL_J1510.8+7959_daily_bin1704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-03', comment='SUCCESS', photon_flux='1.34e-08', energy_flux2='6.63e-06', photon_flux_error='1.42e-08', dlogl='4.42e-01', energy_flux='5.81e-06', photon_flux2='3.66e-08', job_status='DONE', time_completed='2022-08-04 02:57:22.614960', photon_index_error2='1.42', photon_index2='3.23', ts='1.74', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='4.83e-08', energy_flux_error2='4.72e-06', EG='0.93', time_epoch_completed='1659607042.62', return_code='0', job_id='365491', GAL2='1.01', EG2='0.89', return_code2='0', energy_flux_error='6.16e-06', photon_flux_error2='3.02e-08', ts2='2.71', photon_index='2.22' WHERE bin_id='1704' AND source_name='4FGL J1510.8+7959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug  4 02:57:22 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 365498: <4FGL_J1510.8+7959_daily_bin1704> in cluster <slac> Done

Job <4FGL_J1510.8+7959_daily_bin1704> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug  4 00:07:20 2022
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 02:24:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 02:24:53 2022
Terminated at Thu Aug  4 02:54:39 2022
Results reported at Thu Aug  4 02:54:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.8+7959_daily_bin1704 227.705 79.991 681004801 681264001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1510.8+7959 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1726.00 sec.
    Max Memory :                                 619 MB
    Average Memory :                             342.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1785 sec.
    Turnaround time :                            10039 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 365491: <4FGL_J1510.8+7959_daily_bin1704> in cluster <slac> Done

Job <4FGL_J1510.8+7959_daily_bin1704> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug  4 00:07:20 2022
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 02:24:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 02:24:44 2022
Terminated at Thu Aug  4 02:57:23 2022
Results reported at Thu Aug  4 02:57:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.8+7959_daily_bin1704 227.705 79.991 681004801 681264001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1510.8+7959 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1727.54 sec.
    Max Memory :                                 1266 MB
    Average Memory :                             345.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3407 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1958 sec.
    Turnaround time :                            10203 sec.

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

