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 53 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 = 74146
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1510.8+7959_monthly_bin168
RA = 227.705, Dec = 79.991
tmin = 672451201, tmax = 675043201
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='636952', job_status='RUN', time_executed='2022-05-24 03:21:28.056768', time_epoch_executed='1653387688.06' WHERE source_name='4FGL J1510.8+7959' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636952

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636952/ft1_4FGL_J1510.8+7959_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636952/ft2_4FGL_J1510.8+7959_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636952/ft1_4FGL_J1510.8+7959_monthly_bin168.fits outfile=/scratch/kocevski/636952/ft1_filteredMKT_4FGL_J1510.8+7959_monthly_bin168.fits ra=227.705 dec=79.991 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.68
user 27.93
sys 0.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/636952/ft2_4FGL_J1510.8+7959_monthly_bin168.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/636952/ft1_filteredMKT_4FGL_J1510.8+7959_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/636952/ft1_filtered_4FGL_J1510.8+7959_monthly_bin168.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.88
user 0.69
sys 0.18

Number of photons that the gtmktime cut: 12905

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636952/ft1_filtered_4FGL_J1510.8+7959_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/636952/ft2_4FGL_J1510.8+7959_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/636952/ltcube_672451201_675043201_4FGL_J1510.8+7959_monthly_bin168.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/636952/ft2_4FGL_J1510.8+7959_monthly_bin168.fits
.....................!
real 128.66
user 127.99
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636952/ft1_filtered_4FGL_J1510.8+7959_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/636952/ft2_4FGL_J1510.8+7959_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/636952/ltcube_672451201_675043201_4FGL_J1510.8+7959_monthly_bin168.fits outfile=/scratch/kocevski/636952/expmap_672451201_675043201_4FGL_J1510.8+7959_monthly_bin168.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/636952/ltcube_672451201_675043201_4FGL_J1510.8+7959_monthly_bin168.fits
.....................!
real 192.86
user 186.38
sys 5.94

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/636952/ft1_filtered_4FGL_J1510.8+7959_monthly_bin168.fits scfile=/scratch/kocevski/636952/ft2_4FGL_J1510.8+7959_monthly_bin168.fits outfile=/scratch/kocevski/636952/cmap_672451201_675043201_4FGL_J1510.8+7959_monthly_bin168.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 1.07
user 0.62
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636952/ft1_filtered_4FGL_J1510.8+7959_monthly_bin168.fits scfile=/scratch/kocevski/636952/ft2_4FGL_J1510.8+7959_monthly_bin168.fits outfile=/scratch/kocevski/636952/cmap_HighResolution_672451201_675043201_4FGL_J1510.8+7959_monthly_bin168.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 1.04
user 0.63
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/636952/ft1_filtered_4FGL_J1510.8+7959_monthly_bin168.fits', '/scratch/kocevski/636952/ft2_4FGL_J1510.8+7959_monthly_bin168.fits', expMap='/scratch/kocevski/636952/expmap_672451201_675043201_4FGL_J1510.8+7959_monthly_bin168.fits', expCube='/scratch/kocevski/636952/ltcube_672451201_675043201_4FGL_J1510.8+7959_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/636952/Model_4FGL_J1510.8+7959_monthly_bin168.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/636952/ft1_filtered_4FGL_J1510.8+7959_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/636952/ft2_4FGL_J1510.8+7959_monthly_bin168.fits
Exposure map: /scratch/kocevski/636952/expmap_672451201_675043201_4FGL_J1510.8+7959_monthly_bin168.fits
Exposure cube: /scratch/kocevski/636952/ltcube_672451201_675043201_4FGL_J1510.8+7959_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/636952/Model_4FGL_J1510.8+7959_monthly_bin168.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) = 136207.410168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.102       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9264       1.0000         .10000E-03   10000.    
     3 'norm      '    8.0330       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0251       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.079       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.305       1.0000         .10000E-03   10000.    
     7 'norm      '    .72263       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9710       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7413       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12464E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4674       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .60254       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1633       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3154       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .57761       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10761E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.943       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.471       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30561       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.2909       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3713       1.0000         .10000E-03   10000.    
    23 'norm      '    4.6568       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85212       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0530       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=   136207.3     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2580 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.103        2.3241       -.77826E-07    .12755E-03
   2  Prefactor     1.9250        1.7933       -.11687E-07   -.30217E-04
   3  norm          8.0336        1.3561        .16438E-06   -.23763E-02
   4  Prefactor     2.0257        2.0237       -.72322E-06   -.10894E-03
   5  Prefactor     11.077        2.5950        .12163E-06   -.59676E-03
   6  Prefactor     12.352        9.2182       -.24230E-05    .23632E-03
   7  norm          .72252        .52908       -.21741E-07   -.61753E-03
   8  Prefactor     .10000E-03    3.2362       -.30113E-07** at limit **
   9  Prefactor     2.9761        1.7076        .10299E-07   -.20536E-02
  10  Prefactor     8.7445        5.0004        .48088E-06   -.10278E-03
  11  Prefactor     .10000E-03    .60809        .77938E-08** at limit **
  12  Prefactor     3.4692        1.9074       -.14541E-06    .47417E-04
  13  Prefactor     .60221        1.7248       -.50425E-06   -.24500E-03
  14  Prefactor     2.1629        7.2002       -.11761E-06    .22935E-05
  15  Prefactor     3.3272        4.4632       -.55854E-07   -.55323E-03
  16  Prefactor     .53483        1.9723       -.18566E-06    .21266E-03
  17  Prefactor     .10000E-03    9.5823        .36365E-06** at limit **
  18  norm          10.945        3.9716        .14392E-06    .54704E-03
  19  Prefactor     12.439        10.696       -.41265E-05    .32977E-03
  20  Prefactor     .30492        .41884       -.53299E-06    .84675E-04
  21  Prefactor     3.3131        5.8394        .44101E-05    .52879E-03
  22  Prefactor     2.3699        4.3093        .17757E-06   -.49527E-03
  23  norm          4.6568        .25430       -.26360E-07    .58399E-02
  24  Normalizat    .85209        .40121E-01    .10205E-06    .13747E-02
  25  Prefactor     1.0530        .26120E-01   -.62343E-09    .16927E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1031
  Prefactor  = 1.92502
  norm       = 8.03357
  Prefactor  = 2.02573
  Prefactor  = 11.0772
  Prefactor  = 12.3525
  norm       = 0.722517
  Prefactor  = 0.0001
  Prefactor  = 2.97614
  Prefactor  = 8.74452
  Prefactor  = 0.0001
  Prefactor  = 3.46925
  Prefactor  = 0.602206
  Prefactor  = 2.16294
  Prefactor  = 3.3272
  Prefactor  = 0.534832
  Prefactor  = 0.0001
  norm       = 10.9448
  Prefactor  = 12.4394
  Prefactor  = 0.304918
  Prefactor  = 3.31312
  Prefactor  = 2.36993
  norm       = 4.65682
  Normalizat = 0.852091
  Prefactor  = 1.05301
 **********
 **   18 **HESSE 
 **********

 FCN=   136207.3     FROM HESSE     STATUS=OK           457 CALLS     3037 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.103        2.3259        .11515E-03   -1.5012    
   2  Prefactor     1.9250        1.7800        .29930E-03   -1.5430    
   3  norm          8.0336        1.3962        .70732E-03   -1.5141    
   4  Prefactor     2.0257        1.9821        .29076E-03   -1.5423    
   5  Prefactor     11.077        2.4968        .60182E-03   -1.5042    
   6  Prefactor     12.352        9.1798        .11419E-03   -1.5005    
   7  norm          .72252        .47037        .20756E-02   -1.5538    
   8  Prefactor     .10000E-03    3.2635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9761        2.4719        .11778E-02   -1.5363    
  10  Prefactor     8.7445        4.9637        .13557E-03   -1.5116    
  11  Prefactor     .10000E-03    4.7186        .54641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4692        1.9050        .21717E-03   -1.5335    
  13  Prefactor     .60221        1.7110        .46730E-03   -1.5553    
  14  Prefactor     2.1629        7.1959        .28004E-03   -1.5414    
  15  Prefactor     3.3272        4.9177        .11116E-02   -1.5343    
  16  Prefactor     .53483        2.0646        .15271       -1.5562    
  17  Prefactor     .10000E-03    9.7185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.945        3.9552        .12111E-03   -1.5046    
  19  Prefactor     12.439        10.549        .11343E-03   -1.5002    
  20  Prefactor     .30492        .58220        .23142E-02   -1.5598    
  21  Prefactor     3.3131        5.7641        .22319E-03   -1.5344    
  22  Prefactor     2.3699        4.6049        .13303E-02   -1.5400    
  23  norm          4.6568        .25365        .40606E-04   -1.5276    
  24  Normalizat    .85209        .45571E-01    .30067E-03   -.98165    
  25  Prefactor     1.0530        .29410E-01    .18829E-03   -.90983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64245e-07
Minuit parameter uncertainties:
  1  2.32592
  2  1.78006
  3  1.3962
  4  1.98217
  5  2.49679
  6  9.18085
  7  0.470374
  8  2.56222e-06
  9  2.47196
  10  4.96392
  11  6.66569e-05
  12  1.90504
  13  1.71117
  14  7.19876
  15  4.91828
  16  2.06492
  17  8.96127e-06
  18  3.95533
  19  10.5501
  20  0.582207
  21  5.7651
  22  4.60555
  23  0.253645
  24  0.0455729
  25  0.0294109
Done.

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

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  1.000e-04  8.961e-06  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:  1.053e+00  2.941e-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.521e-01  4.557e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 227.705 79.991
Photon Flux Upper Limit: 8.95e-09 ph cm-2 s-1
Energy Flux Upper Limit: 6.83e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/636952/likelihoodResults_672451201_675043201_4FGL_J1510.8+7959_monthly_bin168.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): 102
logL (Free Index) = 136207.251998
delta logL = -0.000490538048325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 136207.251507
delta logL = 9.06235072762e-07

Fit tolerance = 1e-08

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

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

 FCN=   136207.3     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      222 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    133.37        .90712E-02** at limit **
   2  Index         2.3834        6.4069        .50000       -.79903E-04
   3  Normalizat    .85209        .27408E-02    .67960E-01    .85656E-03
   4  Prefactor     1.0530        .18982E-02    .39737E-01   -.37174E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100075
  Index      = 2.38338
  Normalizat = 0.852091
  Prefactor  = 1.05301
 **********
 **   18 **HESSE 
 **********

 FCN=   136207.3     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      255 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    374.90        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3834        8.7697        .50000       -.55075    
   3  Normalizat    .85209        .45692E-02    .30067E-03   -.98165    
   4  Prefactor     1.0530        .31691E-02    .18829E-03   -.90983    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.6875e-07
Minuit parameter uncertainties:
  1  0.010692
  2  18.4813
  3  0.00456918
  4  0.00316911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636952': 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): 102
logL (Free Index) = 136207.251505
delta logL = 2.70057353191e-06

Extracting fit parameters...

4FGL J1510.8+7959
   Spectrum: PowerLaw
342    Prefactor:  1.001e-04  1.069e-02  1.000e-04  1.000e+04 ( 1.000e-14)
343        Index:  2.383e+00  1.848e+01  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.053e+00  3.169e-03  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.521e-01  4.569e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 227.705 79.991

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/636952/cmap_HighResolution_672451201_675043201_4FGL_J1510.8+7959_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.83e-04', job_status='DONE', photon_flux_upper_limit='8.95e-09', time_completed='2022-05-24 06:16:48.599272', job_id='636952', GAL2='1.05', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1653398208.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.70e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='168' AND source_name='4FGL J1510.8+7959' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:16:48 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 636952: <4FGL_J1510.8+7959_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1510.8+7959_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 03:15:30 2022
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:20:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:20:25 2022
Terminated at Tue May 24 06:16:49 2022
Results reported at Tue May 24 06:16:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.8+7959_monthly_bin168 227.705 79.991 672451201 675043201 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 :                                   10477.00 sec.
    Max Memory :                                 635 MB
    Average Memory :                             504.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10584 sec.
    Turnaround time :                            10879 sec.

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

