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 102 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1510.1+5702_daily_bin1713
RA = 227.542, Dec = 57.0398
tmin = 683337601, tmax = 683596801
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='158140', job_status='RUN', time_executed='2022-09-16 18:58:17.216916', time_epoch_executed='1663379897.22' WHERE source_name='4FGL J1510.1+5702' and cadence='daily' and bin_id='1713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158140

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158140/ft1_4FGL_J1510.1+5702_daily_bin1713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158140/ft2_4FGL_J1510.1+5702_daily_bin1713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158140/ft1_4FGL_J1510.1+5702_daily_bin1713.fits outfile=/scratch/kocevski/158140/ft1_filteredMKT_4FGL_J1510.1+5702_daily_bin1713.fits ra=227.542 dec=57.0398 rad=12.0 tmin=683337601.0 tmax=683596801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.60
user 3.34
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158140/ft2_4FGL_J1510.1+5702_daily_bin1713.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/158140/ft1_filteredMKT_4FGL_J1510.1+5702_daily_bin1713.fits evtable="EVENTS" outfile="/scratch/kocevski/158140/ft1_filtered_4FGL_J1510.1+5702_daily_bin1713.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 637

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158140/ft1_filtered_4FGL_J1510.1+5702_daily_bin1713.fits" evtable="EVENTS" scfile=/scratch/kocevski/158140/ft2_4FGL_J1510.1+5702_daily_bin1713.fits sctable="SC_DATA" outfile=/scratch/kocevski/158140/ltcube_683337601_683596801_4FGL_J1510.1+5702_daily_bin1713.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/158140/ft2_4FGL_J1510.1+5702_daily_bin1713.fits
.....................!
real 16.21
user 15.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158140/ft1_filtered_4FGL_J1510.1+5702_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/158140/ft2_4FGL_J1510.1+5702_daily_bin1713.fits sctable="SC_DATA" expcube=/scratch/kocevski/158140/ltcube_683337601_683596801_4FGL_J1510.1+5702_daily_bin1713.fits outfile=/scratch/kocevski/158140/expmap_683337601_683596801_4FGL_J1510.1+5702_daily_bin1713.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/158140/ltcube_683337601_683596801_4FGL_J1510.1+5702_daily_bin1713.fits
.....................!
real 193.94
user 187.83
sys 5.41

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/158140/ft1_filtered_4FGL_J1510.1+5702_daily_bin1713.fits scfile=/scratch/kocevski/158140/ft2_4FGL_J1510.1+5702_daily_bin1713.fits outfile=/scratch/kocevski/158140/cmap_683337601_683596801_4FGL_J1510.1+5702_daily_bin1713.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158140/ft1_filtered_4FGL_J1510.1+5702_daily_bin1713.fits scfile=/scratch/kocevski/158140/ft2_4FGL_J1510.1+5702_daily_bin1713.fits outfile=/scratch/kocevski/158140/cmap_HighResolution_683337601_683596801_4FGL_J1510.1+5702_daily_bin1713.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.57
user 0.38
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/158140/ft1_filtered_4FGL_J1510.1+5702_daily_bin1713.fits', '/scratch/kocevski/158140/ft2_4FGL_J1510.1+5702_daily_bin1713.fits', expMap='/scratch/kocevski/158140/expmap_683337601_683596801_4FGL_J1510.1+5702_daily_bin1713.fits', expCube='/scratch/kocevski/158140/ltcube_683337601_683596801_4FGL_J1510.1+5702_daily_bin1713.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/158140/Model_4FGL_J1510.1+5702_daily_bin1713.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  0.000e+00  1.000e+06 ( 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/158140/ft1_filtered_4FGL_J1510.1+5702_daily_bin1713.fits
Spacecraft file(s): /scratch/kocevski/158140/ft2_4FGL_J1510.1+5702_daily_bin1713.fits
Exposure map: /scratch/kocevski/158140/expmap_683337601_683596801_4FGL_J1510.1+5702_daily_bin1713.fits
Exposure cube: /scratch/kocevski/158140/ltcube_683337601_683596801_4FGL_J1510.1+5702_daily_bin1713.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/158140/Model_4FGL_J1510.1+5702_daily_bin1713.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) = 6880.62959316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63621E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    13.833       1.0000          .0000       .10000E+07
     3 'Prefactor '    .64903E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .71573E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .86819E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.5173       1.0000          .0000       .10000E+07
     7 'Prefactor '    9.1787       1.0000          .0000       .10000E+07
     8 'Prefactor '    34.443       1.0000          .0000       .10000E+07
     9 'Prefactor '    .42219E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .25429E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .62229E-03   1.0000          .0000       .10000E+07
    12 'norm      '    2.2988       1.0000          .0000       .10000E+07
    13 'Prefactor '    26.990       1.0000          .0000       .10000E+07
    14 'Prefactor '    .40923E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .49446       1.0000          .0000       .10000E+07
    16 'Prefactor '    .21787E-05   1.0000          .0000       .10000E+07
    17 'norm      '    .52180E-08   1.0000          .0000       .10000E+07
    18 'Prefactor '    .26177E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    8.4757       1.0000          .0000       .10000E+07
    20 'norm      '    5.2912       1.0000          .0000       .10000E+07
    21 'Prefactor '    .45303E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .86201E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    8.4952       1.0000          .0000       .10000E+07
    24 'Prefactor '    7.8804       1.0000          .0000       .10000E+07
    25 'Normalizat'    .77457       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2605       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6880.588     FROM MIGRAD    STATUS=CONVERGED    182 CALLS     2234 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.8348        .36630E-07** at limit **
   2  Prefactor     13.841        1.0751       -.52872E-09   -.95792E-02
   3  Prefactor     .48850E-07    16.495       -.96439E-07** at limit **
   4  Prefactor     .24991E-05    8.6580       -.18524E-07** at limit **
   5  Prefactor     .11546E-07    8.2304       -.82644E-07** at limit **
   6  Prefactor     1.5168        1.7515        .63817E-08    .31558E-03
   7  Prefactor     9.1938        2.8973        .81019E-08    .76222E-01
   8  Prefactor     34.341        4.4336        .52077E-08    .66790E-01
   9  Prefactor     .68279E-08    42.962        .10630E-06** at limit **
  10  Prefactor     .55511E-10    3.7184       -.40840E-07** at limit **
  11  Prefactor     .32430E-05    6.9290       -.95521E-08** at limit **
  12  norm          2.2988        1.2132        .17621E-08    .10656E-02
  13  Prefactor     26.986        7.7632        .64705E-07    .15925E-01
  14  Prefactor      .0000        1.2707       -.22931E-07** at limit **
  15  Prefactor     .51953        6.8124        .21422E-06   -.33381E-02
  16  Prefactor     .93814E-08    7.5285       -.45413E-07** at limit **
  17  norm           .0000        1.3006       -.36455E-07** at limit **
  18  Prefactor     .24875E-05    159.31        .22038E-06** at limit **
  19  Prefactor     8.4422        8.0873        .16019E-08    .37612E-03
  20  norm          5.2611        7.4229       -.34454E-07   -.14083E-03
  21  Prefactor     .49960E-09    19.920       -.27963E-06** at limit **
  22  Prefactor     .36177E-05    204.67       -.10280E-06** at limit **
  23  Prefactor     8.5856        7.1034       -.18253E-06   -.28508E-02
  24  Prefactor     7.8927        8.2165       -.23068E-06   -.21613E-02
  25  Normalizat    .77437        .18715       -.28762E-06    .98669E-04
  26  Prefactor     1.2607        .20920        .16530E-05    .13845E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 13.8411
  Prefactor  = 4.88498e-08
  Prefactor  = 2.49911e-06
  Prefactor  = 1.15463e-08
  Prefactor  = 1.51676
  Prefactor  = 9.1938
  Prefactor  = 34.3405
  Prefactor  = 6.82787e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 3.24296e-06
  norm       = 2.29884
  Prefactor  = 26.9859
  Prefactor  = 0
  Prefactor  = 0.51953
  Prefactor  = 9.38138e-09
  norm       = 0
  Prefactor  = 2.48745e-06
  Prefactor  = 8.4422
  norm       = 5.26107
  Prefactor  = 4.996e-10
  Prefactor  = 3.61772e-06
  Prefactor  = 8.58558
  Prefactor  = 7.8927
  Normalizat = 0.774366
  Prefactor  = 1.26066
 **********
 **   18 **HESSE 
 **********

 FCN=   6880.588     FROM HESSE     STATUS=OK           508 CALLS     2742 TOTAL
                     EDM=   .96E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.8399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.841        21.961        .26905E-03   -1.5634    
   3  Prefactor     .48850E-07    16.869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .24991E-05    14.937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11546E-07    8.1406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5168        1.8796        .86738E-03   -1.5683    
   7  Prefactor     9.1938        22.334        .33057E-03   -1.5647    
   8  Prefactor     34.341        38.742        .17041E-03   -1.5591    
   9  Prefactor     .68279E-08    42.900        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    3.7155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .32430E-05    15.095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2988        1.2110        .67662E-03   -1.5678    
  13  Prefactor     26.986        14.465        .19252E-03   -1.5604    
  14  Prefactor      .0000        1.2736        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .51953        6.7340        .79268E-02   -1.5694    
  16  Prefactor     .93814E-08    7.5418        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        1.2931        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .24875E-05    161.92        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.4422        8.1390        .34409E-03   -1.5650    
  20  norm          5.2611        7.4729        .43671E-03   -1.5662    
  21  Prefactor     .49960E-09    19.991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .36177E-05    208.48        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.5856        7.1134        .34369E-03   -1.5649    
  24  Prefactor     7.8927        8.2300        .35695E-03   -1.5652    
  25  Normalizat    .77437        .15864        .43278E-01   -1.0103    
  26  Prefactor     1.2607        .17470        .52764E-01   -.84484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.60315e-07
Minuit parameter uncertainties:
  1  1.49378e-06
  2  21.9606
  3  0.00181587
  4  0.0122195
  5  0.000612785
  6  1.87959
  7  22.3341
  8  38.7419
  9  0.0010835
  10  3.25918e-05
  11  0.0139934
  12  1.21097
  13  14.4647
  14  3.97207e-06
  15  3.74088
  16  0.000531444
  17  4.58579e-06
  18  0.0401393
  19  8.13903
  20  7.47293
  21  0.000199398
  22  0.0549283
  23  7.11345
  24  8.23
  25  0.158735
  26  0.174776
Done.

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

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  5.195e-01  3.741e+00  0.000e+00  1.000e+06 ( 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.261e+00  1.748e-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:  7.744e-01  1.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/158140/likelihoodResults_683337601_683596801_4FGL_J1510.1+5702_daily_bin1713.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) = 6880.50956624
delta logL = 0.0780015958371

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6880.49781689
delta logL = 0.0897509464858

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94025       1.0000          .0000       .10000E+07
     2 'Index     '    4.0526       1.0000          .0000       10.000    
     3 'Normalizat'    .75369       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2753       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=   6880.498     FROM MIGRAD    STATUS=FAILED        98 CALLS      277 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94023        257.76        .86032E-04   -.11706E-01
   2  Index         4.0524        7.9731        .10227E-01    .92787E-05
   3  Normalizat    .75370        .19416        .25464E-03    .89291E-07
   4  Prefactor     1.2753        .20446        .23209E-03   -.19594E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6880.498     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      369 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94023        257.76        .12216E-04   -.11706E-01
   2  Index         4.0524        7.9731        .16933E-02    .92787E-05
   3  Normalizat    .75370        .19416        .16951E-03    .89291E-07
   4  Prefactor     1.2753        .20446        .16563E-03   -.19594E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6880.498     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      401 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94041        4.1104        .34413E-05   -.56657E-02
   2  Index         4.0522        2.6653        .40909E-03   -.40157E-04
   3  Normalizat    .75370        .18786        .10186E-04    .75898E-05
   4  Prefactor     1.2753        .21198        .92834E-05    .22043E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.940415
  Index      = 4.05225
  Normalizat = 0.753704
  Prefactor  = 1.27532
 **********
 **   18 **HESSE 
 **********

 FCN=   6880.498     FROM HESSE     STATUS=OK            23 CALLS      424 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94041        3.9714        .13765E-06   -1.5689    
   2  Index         4.0522        2.6247        .16363E-04   -.19070    
   3  Normalizat    .75370        .18847        .20371E-05   -1.0181    
   4  Prefactor     1.2753        .21266        .18567E-05   -.84044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98495e-10
Minuit parameter uncertainties:
  1  3.8651
  2  2.76927
  3  0.188633
  4  0.2128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158140': 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) = 6880.49781684
delta logL = 0.0897509990473

Extracting fit parameters...

4FGL J1510.1+5702
   Spectrum: PowerLaw
344    Prefactor:  9.404e-01  3.865e+00  0.000e+00  1.000e+06 ( 1.000e-12)
345        Index:  4.052e+00  2.769e+00  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.275e+00  2.128e-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:  7.537e-01  1.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 227.542 57.040

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/158140/cmap_HighResolution_683337601_683596801_4FGL_J1510.1+5702_daily_bin1713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', job_status='DONE', photon_flux_upper_limit='8.75e-08', time_completed='2022-09-16 19:11:31.458849', job_id='158140', GAL2='1.28', fit_tolerance='1e-08', EG2='0.75', EG='0.77', time_epoch_completed='1663380691.46', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='8.98e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.88' WHERE bin_id='1713' AND source_name='4FGL J1510.1+5702' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:11:31 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 158140: <4FGL_J1510.1+5702_daily_bin1713> in cluster <slac> Done

Job <4FGL_J1510.1+5702_daily_bin1713> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 18:55:25 2022
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 18:56:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 18:56:26 2022
Terminated at Fri Sep 16 19:11:32 2022
Results reported at Fri Sep 16 19:11:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1510.1+5702_daily_bin1713 227.542 57.0398 683337601 683596801 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 :                                   796.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            967 sec.

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

