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


Performing analysis on: 4FGL_J1510.1+5702_weekly_bin730
RA = 227.542, Dec = 57.0398
tmin = 680486401, tmax = 681091201
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='659344', job_status='RUN', time_executed='2022-08-02 02:08:05.104129', time_epoch_executed='1659431285.1' WHERE source_name='4FGL J1510.1+5702' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659344

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659344/ft1_4FGL_J1510.1+5702_weekly_bin730.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659344/ft2_4FGL_J1510.1+5702_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659344/ft1_4FGL_J1510.1+5702_weekly_bin730.fits outfile=/scratch/kocevski/659344/ft1_filteredMKT_4FGL_J1510.1+5702_weekly_bin730.fits ra=227.542 dec=57.0398 rad=12.0 tmin=680486401.0 tmax=681091201.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 6.34
user 5.99
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/659344/ft2_4FGL_J1510.1+5702_weekly_bin730.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659344/ft2_4FGL_J1510.1+5702_weekly_bin730.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/659344/ft1_filteredMKT_4FGL_J1510.1+5702_weekly_bin730.fits evtable="EVENTS" outfile="/scratch/kocevski/659344/ft1_filtered_4FGL_J1510.1+5702_weekly_bin730.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.57
user 0.39
sys 0.17

Number of photons that the gtmktime cut: 2650

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659344/ft1_filtered_4FGL_J1510.1+5702_weekly_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/659344/ft2_4FGL_J1510.1+5702_weekly_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/659344/ltcube_680486401_681091201_4FGL_J1510.1+5702_weekly_bin730.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/659344/ft2_4FGL_J1510.1+5702_weekly_bin730.fits
.....................!
real 36.03
user 35.09
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659344/ft1_filtered_4FGL_J1510.1+5702_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659344/ft2_4FGL_J1510.1+5702_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/659344/ltcube_680486401_681091201_4FGL_J1510.1+5702_weekly_bin730.fits outfile=/scratch/kocevski/659344/expmap_680486401_681091201_4FGL_J1510.1+5702_weekly_bin730.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/659344/ltcube_680486401_681091201_4FGL_J1510.1+5702_weekly_bin730.fits
.....................!
real 196.64
user 188.63
sys 5.58

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

Setting source of interest to:
4FGL J1510.1+5702 @ 227.542 57.0398

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/659344/ft1_filtered_4FGL_J1510.1+5702_weekly_bin730.fits scfile=/scratch/kocevski/659344/ft2_4FGL_J1510.1+5702_weekly_bin730.fits outfile=/scratch/kocevski/659344/cmap_680486401_681091201_4FGL_J1510.1+5702_weekly_bin730.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.542 yref=57.0398 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.66
user 0.44
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659344/ft1_filtered_4FGL_J1510.1+5702_weekly_bin730.fits scfile=/scratch/kocevski/659344/ft2_4FGL_J1510.1+5702_weekly_bin730.fits outfile=/scratch/kocevski/659344/cmap_HighResolution_680486401_681091201_4FGL_J1510.1+5702_weekly_bin730.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.542 yref=57.0398 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.62
user 0.43
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/659344/ft1_filtered_4FGL_J1510.1+5702_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659344/ft2_4FGL_J1510.1+5702_weekly_bin730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/659344/Model_4FGL_J1510.1+5702_weekly_bin730.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/659344/ft1_filtered_4FGL_J1510.1+5702_weekly_bin730.fits.....................!
real 187.86
user 184.15
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/659344/ft1_filtered_4FGL_J1510.1+5702_weekly_bin730.fits', '/scratch/kocevski/659344/ft2_4FGL_J1510.1+5702_weekly_bin730.fits', expMap='/scratch/kocevski/659344/expmap_680486401_681091201_4FGL_J1510.1+5702_weekly_bin730.fits', expCube='/scratch/kocevski/659344/ltcube_680486401_681091201_4FGL_J1510.1+5702_weekly_bin730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/659344/Model_4FGL_J1510.1+5702_weekly_bin730.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1510.1+5702'

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  1.597e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
345        Index:  2.882e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  4.831e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/659344/ft1_filtered_4FGL_J1510.1+5702_weekly_bin730.fits
Spacecraft file(s): /scratch/kocevski/659344/ft2_4FGL_J1510.1+5702_weekly_bin730.fits
Exposure map: /scratch/kocevski/659344/expmap_680486401_681091201_4FGL_J1510.1+5702_weekly_bin730.fits
Exposure cube: /scratch/kocevski/659344/ltcube_680486401_681091201_4FGL_J1510.1+5702_weekly_bin730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/659344/Model_4FGL_J1510.1+5702_weekly_bin730.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) = 28602.6003329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23340E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    11.970       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0353       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1800       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8986       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2893       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .52428       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.647       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2012       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1753       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0296       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .65817E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.4342       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.6604       1.0000         .10000E-03   10000.    
    23 'norm      '    1.5054       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.789       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7127       1.0000         .10000E-03   10000.    
    26 'norm      '    4.2908       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.4771       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.3599       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .44375E-01   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .98591       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0532       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+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=   28602.56     FROM MIGRAD    STATUS=FAILED      1554 CALLS     4513 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    9.9955        .15585    ** at limit **
   2  norm          11.970        14.300        .11578E-03    .39275E-06
   3  norm          1.0352        1.0235        .16571E-03    .43909E-05
   4  Prefactor     .10000E-03    4.4084        .18142E-02** at limit **
   5  Prefactor     .10000E-03    82.535        .18142E-02** at limit **
   6  Prefactor     4.1796        13.266        .19713E-03    .85355E-05
   7  Prefactor     .10000E-03    7.7788        .18142E-02** at limit **
   8  Prefactor     1.8985        1.7057        .20375E-03    .17185E-04
   9  Prefactor     4.2892        1.4977        .10418E-03    .34047E-03
  10  Prefactor     .53709        55.768        .67611E-02    .33541E-02
  11  Prefactor     21.646        14.493        .86090E-04    .78177E-04
  12  Prefactor     .10000E-03    17.696        .18142E-02** at limit **
  13  Prefactor     4.1976        11.132        .19661E-03    .14803E-04
  14  Prefactor     .10000E-03    4.0614        .18142E-02** at limit **
  15  Prefactor     3.1753        3.7963        .11371E-02    .40999E-03
  16  Prefactor     .10000E-03    4.4226        .18142E-02** at limit **
  17  norm          3.0297        .80848        .75678E-04    .23916E-03
  18  Prefactor     .10000E-03    1.9443        .18142E-02** at limit **
  19  Prefactor     .10016E-03    1.4049        .46490E-01** at limit **
  20  Prefactor     5.4351        3.5449        .17238E-03    .13929E-03
  21  Prefactor     .10000E-03    1.7247        .18142E-02** at limit **
  22  Prefactor     4.6604        5.4823        .18642E-03   -.34151E-05
  23  norm          1.5056        .74367        .98896E-04   -.20968E-03
  24  Prefactor     14.783        27.855        .10415E-03    .16155E-04
  25  Prefactor     3.7133        3.1661        .10479E-02    .17163E-02
  26  norm          4.2903        2.6884        .19449E-03    .73885E-04
  27  Prefactor     2.4773        7.7772        .25977E-03    .15580E-04
  28  Prefactor     2.3575        42.618        .13339E-02    .10412E-03
  29  Prefactor     .10000E-03    .61765        .12911E-02** at limit **
  30  Prefactor     .51974E-01    1.3400        .59341E-01    .12730E-02
  31  Normalizat    .98583        .95151E-01    .22614E-03    .73497E-03
  32  Prefactor     1.0532        .10227        .24787E-03    .60726E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   28602.56     FROM SIMPLEX   STATUS=UNCHANGED   1651 CALLS     6164 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    9.9955        .16788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.970        14.300        .11427E-06   -1.5016    
   3  norm          1.0352        1.0235        .27881E-07   -1.5504    
   4  Prefactor     .10000E-03    4.4084        .31305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    82.535        .36897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1796        13.266        .15542E-08   -1.5299    
   7  Prefactor     .10000E-03    7.7788        .43043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8985        1.7057        .56072E-09   -1.5432    
   9  Prefactor     4.2892        1.4977        .14746E-09   -1.5294    
  10  Prefactor     .53709        55.768        .24454E-07   -1.5561    
  11  Prefactor     21.646        14.493        .22609E-08   -1.4777    
  12  Prefactor     .10000E-03    17.696        .45569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.1976        11.132        .13153E-08   -1.5298    
  14  Prefactor     .10000E-03    4.0614        .18778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.1753        3.7963        .10663E-08   -1.5352    
  16  Prefactor     .10000E-03    4.4226        .24797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0297        .80848        .63695E-10   -1.5360    
  18  Prefactor     .10000E-03    1.9443        .83954E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10016E-03    1.4049        .59863E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.4351        3.5449        .23068E-09   -1.5242    
  21  Prefactor     .10000E-03    1.7247        .20388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.6604        5.4823        .20761E-09   -1.5276    
  23  norm          1.5056        .74367        .47262E-10   -1.5463    
  24  Prefactor     14.783        27.855        .88892E-09   -1.4939    
  25  Prefactor     3.7133        3.1661        .74578E-09   -1.5323    
  26  norm          4.2903        2.6884        .26489E-09   -1.5294    
  27  Prefactor     2.4773        7.7772        .67935E-09   -1.5393    
  28  Prefactor     2.3575        42.618        .45907E-08   -1.5401    
  29  Prefactor     .10000E-03    .61765        .91486E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .51974E-01    1.3400        .33353E-09   -1.5662    
  31  Normalizat    .98583        .95151E-01    .15423E-09   -.93507    
  32  Prefactor     1.0532        .10227        .12085E-09   -.90975    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   28602.56     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     6838 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    10.023        .15551    ** at limit **
   2  norm          11.970        14.298        .46314E-05     .0000    
   3  norm          1.0352        1.0234        .66282E-05   -.68607E-05
   4  Prefactor     .10000E-03    4.4085        .36285E-03** at limit **
   5  Prefactor     .10000E-03    82.537        .36285E-03** at limit **
   6  Prefactor     4.1796        13.263        .78851E-05   -.11534E-05
   7  Prefactor     .10000E-03    7.7799        .36285E-03** at limit **
   8  Prefactor     1.8985        1.7056        .81501E-05    .22319E-05
   9  Prefactor     4.2892        1.4939        .41672E-05   -.12658E-03
  10  Prefactor     .53722        54.383        .13522E-02    .16580E-04
  11  Prefactor     21.646        14.419        .34436E-05   -.29052E-04
  12  Prefactor     .10000E-03    17.702        .36285E-03** at limit **
  13  Prefactor     4.1975        10.982        .78646E-05   -.17347E-04
  14  Prefactor     .10000E-03    4.0652        .36285E-03** at limit **
  15  Prefactor     3.1752        3.7958        .45485E-04   -.50989E-04
  16  Prefactor     .10000E-03    4.4251        .36285E-03** at limit **
  17  norm          3.0297        .80845        .30271E-05    .21031E-03
  18  Prefactor     .10000E-03    1.9451        .36285E-03** at limit **
  19  Prefactor     .10014E-03    1.1497        .53361E-01** at limit **
  20  Prefactor     5.4351        3.5443        .68950E-05   -.21105E-04
  21  Prefactor     .10000E-03    1.7252        .36285E-03** at limit **
  22  Prefactor     4.6604        5.4819        .74569E-05    .24393E-06
  23  norm          1.5056        .74363        .39559E-05    .22991E-04
  24  Prefactor     14.783        27.865        .41661E-05   -.21831E-05
  25  Prefactor     3.7132        3.1623        .41916E-04   -.22674E-03
  26  norm          4.2903        2.6859        .77796E-05   -.29227E-04
  27  Prefactor     2.4773        7.7757        .10391E-04   -.52517E-05
  28  Prefactor     2.3572        42.605        .53356E-04   -.12784E-04
  29  Prefactor     .10000E-03    .61778        .25821E-03** at limit **
  30  Prefactor     .51977E-01    1.3071        .60601E-01    .12343E-02
  31  Normalizat    .98583        .95047E-01    .90458E-05    .80435E-05
  32  Prefactor     1.0533        .10233        .99147E-05    .10274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  norm       = 11.9701
  norm       = 1.03518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.1796
  Prefactor  = 0.0001
  Prefactor  = 1.89852
  Prefactor  = 4.28918
  Prefactor  = 0.537218
  Prefactor  = 21.6456
  Prefactor  = 0.0001
  Prefactor  = 4.19752
  Prefactor  = 0.0001
  Prefactor  = 3.17525
  Prefactor  = 0.0001
  norm       = 3.02975
  Prefactor  = 0.0001
  Prefactor  = 0.000100143
  Prefactor  = 5.43509
  Prefactor  = 0.0001
  Prefactor  = 4.66042
  norm       = 1.50563
  Prefactor  = 14.7826
  Prefactor  = 3.71322
  norm       = 4.2903
  Prefactor  = 2.47731
  Prefactor  = 2.35718
  Prefactor  = 0.0001
  Prefactor  = 0.0519766
  Normalizat = 0.985832
  Prefactor  = 1.05325
 **********
 **   18 **HESSE 
 **********

 FCN=   28602.56     FROM HESSE     STATUS=OK           657 CALLS     7495 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    10.016        .15559       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.970        14.298        .46314E-05   -1.5016    
   3  norm          1.0352        1.0231        .13256E-05   -1.5504    
   4  Prefactor     .10000E-03    4.4085        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    82.533        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1796        13.197        .15770E-05   -1.5299    
   7  Prefactor     .10000E-03    7.7799        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8985        1.7054        .16300E-05   -1.5432    
   9  Prefactor     4.2892        1.4910        .83345E-06   -1.5294    
  10  Prefactor     .53722        53.530        .54088E-04   -1.5561    
  11  Prefactor     21.646        14.308        .68872E-06   -1.4777    
  12  Prefactor     .10000E-03    17.702        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.1975        10.913        .15729E-05   -1.5298    
  14  Prefactor     .10000E-03    4.0654        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.1752        3.7957        .18194E-05   -1.5352    
  16  Prefactor     .10000E-03    4.4251        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0297        .80836        .60542E-06   -1.5360    
  18  Prefactor     .10000E-03    1.9451        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10014E-03    1.2168        .51281E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.4351        3.5437        .13790E-05   -1.5242    
  21  Prefactor     .10000E-03    1.7252        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.6604        5.4819        .74569E-05   -1.5276    
  23  norm          1.5056        .74333        .79117E-06   -1.5463    
  24  Prefactor     14.783        27.256        .83322E-06   -1.4939    
  25  Prefactor     3.7132        3.1621        .16766E-05   -1.5323    
  26  norm          4.2903        2.6851        .15559E-05   -1.5294    
  27  Prefactor     2.4773        7.7674        .20782E-05   -1.5393    
  28  Prefactor     2.3572        42.562        .10671E-04   -1.5401    
  29  Prefactor     .10000E-03    .61778        .51643E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .51977E-01    1.3128        .60372E-01   -1.5662    
  31  Normalizat    .98583        .94945E-01    .18092E-05   -.93507    
  32  Prefactor     1.0533        .10232        .19829E-05   -.90975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04681e-09
Minuit parameter uncertainties:
  1  0.000462425
  2  14.3025
  3  1.02315
  4  6.93082e-07
  5  7.00821e-05
  6  13.2063
  7  1.1602e-06
  8  1.70547
  9  1.49103
  10  10.734
  11  14.3105
  12  3.65216e-06
  13  10.9183
  14  9.86761e-07
  15  3.79594
  16  1.76034e-06
  17  0.808362
  18  1.2717e-06
  19  0.000834168
  20  3.54382
  21  2.53291e-07
  22  5.48254
  23  0.74333
  24  27.2789
  25  3.16221
  26  2.68521
  27  7.77053
  28  20.0488
  29  1.711e-07
  30  0.521943
  31  0.0949607
  32  0.102343
Done.

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

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  5.435e+00  3.544e+00  1.000e-04  1.000e+04 ( 1.000e-12)
345        Index:  2.882e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
346        Scale:  4.831e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.053e+00  1.023e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.858e-01  9.496e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.87
Ra Dec: 227.542 57.040
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 2.71e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 5.76e-06 +/- 3.75e-06

TS (Fixed Index): 2.87
Ra Dec: 227.542 57.040
Photon Flux Upper Limit: 5.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659344/likelihoodResults_680486401_681091201_4FGL_J1510.1+5702_weekly_bin730.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) = 28602.0759862
delta logL = 0.479855096353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 28602.0433279
delta logL = 0.512513414666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7502       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7090       1.0000          .0000       10.000    
     3 'Normalizat'    .97042       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0672       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+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=   28602.04     FROM MIGRAD    STATUS=FAILED        93 CALLS      333 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7502        41.059        .73215E-03   -.25800E-02
   2  Index         3.7089        6.8441        .10507E-01    .78726E-04
   3  Normalizat    .97043        .86369E-01    .22772E-03    .59910E-06
   4  Prefactor     1.0672        .98788E-01    .24659E-03   -.36883E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   28602.04     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      421 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7502        41.059        .90418E-04   -.25800E-02
   2  Index         3.7089        6.8441        .10859E-02    .78726E-04
   3  Normalizat    .97043        .86369E-01    .12439E-03    .59910E-06
   4  Prefactor     1.0672        .98788E-01    .12211E-03   -.36883E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   28602.04     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      453 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7503        3.3442        .29286E-04   -.12422E-02
   2  Index         3.7089        .91909        .42029E-03   -.13103E-03
   3  Normalizat    .97043        .92422E-01    .91086E-05    .40938E-04
   4  Prefactor     1.0672        .10242        .98637E-05    .24896E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.75033
  Index      = 3.70889
  Normalizat = 0.970428
  Prefactor  = 1.06719
 **********
 **   18 **HESSE 
 **********

 FCN=   28602.04     FROM HESSE     STATUS=OK            23 CALLS      476 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7503        3.2736        .11714E-05   -1.5376    
   2  Index         3.7089        .89972        .16812E-04   -.26118    
   3  Normalizat    .97043        .92253E-01    .18217E-05   -.94028    
   4  Prefactor     1.0672        .10220        .19727E-05   -.90522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50564e-10
Minuit parameter uncertainties:
  1  3.27377
  2  0.905001
  3  0.0922681
  4  0.10222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659344': 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) = 28602.0433279
delta logL = 0.512513424193

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  2.750e+00  3.274e+00  1.000e-04  1.000e+04 ( 1.000e-12)
345        Index:  3.709e+00  9.050e-01  0.000e+00  1.000e+01 (-1.000e+00)
346        Scale:  4.831e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.067e+00  1.022e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  9.704e-01  9.227e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.01
Ra Dec: 227.542 57.040
Photon Index (Free Index): 3.71 +/- 0.91
Photon Flux (Free Index): 3.51e-08 +/- 1.98e-08
Energy Flux (Free Index): 5.55e-06 +/- 3.24e-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/659344/cmap_HighResolution_680486401_681091201_4FGL_J1510.1+5702_weekly_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-03', comment='SUCCESS', photon_flux='2.71e-08', energy_flux2='5.55e-06', photon_flux_error='1.76e-08', dlogl='5.13e-01', energy_flux='5.76e-06', photon_flux2='3.51e-08', job_status='DONE', time_completed='2022-08-02 03:33:10.405505', photon_index_error2='0.91', photon_index2='3.71', ts='2.87', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='5.85e-08', energy_flux_error2='3.24e-06', EG='0.99', time_epoch_completed='1659436390.41', return_code='0', job_id='659344', GAL2='1.07', EG2='0.97', return_code2='0', energy_flux_error='3.75e-06', photon_flux_error2='1.98e-08', ts2='4.01', photon_index='2.88' WHERE bin_id='730' AND source_name='4FGL J1510.1+5702' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 03:33:10 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 659304: <4FGL_J1510.1+5702_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1510.1+5702_weekly_bin730> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:36 2022
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:06:05 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:06:05 2022
Terminated at Tue Aug  2 03:32:23 2022
Results reported at Tue Aug  2 03:32:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.1+5702_weekly_bin730 227.542 57.0398 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1510.1+5702 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5070.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             352.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5177 sec.
    Turnaround time :                            12347 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 659344: <4FGL_J1510.1+5702_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1510.1+5702_weekly_bin730> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:38 2022
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:07:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:07:00 2022
Terminated at Tue Aug  2 03:33:11 2022
Results reported at Tue Aug  2 03:33:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.1+5702_weekly_bin730 227.542 57.0398 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1510.1+5702 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5049.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             357.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5170 sec.
    Turnaround time :                            12393 sec.

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

