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


Performing analysis on: 4FGL_J1159.5+2914_weekly_bin715
RA = 179.884, Dec = 29.2448
tmin = 671414401, tmax = 672019201
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='934668', job_status='RUN', time_executed='2022-04-19 02:29:38.765091', time_epoch_executed='1650360578.77' WHERE source_name='4FGL J1159.5+2914' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934668

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934668/ft1_4FGL_J1159.5+2914_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934668/ft2_4FGL_J1159.5+2914_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934668/ft1_4FGL_J1159.5+2914_weekly_bin715.fits outfile=/scratch/kocevski/934668/ft1_filteredMKT_4FGL_J1159.5+2914_weekly_bin715.fits ra=179.884 dec=29.2448 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.58
user 7.25
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/934668/ft2_4FGL_J1159.5+2914_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934668/ft2_4FGL_J1159.5+2914_weekly_bin715.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/934668/ft1_filteredMKT_4FGL_J1159.5+2914_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/934668/ft1_filtered_4FGL_J1159.5+2914_weekly_bin715.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.54
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 1453

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934668/ft1_filtered_4FGL_J1159.5+2914_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/934668/ft2_4FGL_J1159.5+2914_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/934668/ltcube_671414401_672019201_4FGL_J1159.5+2914_weekly_bin715.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/934668/ft2_4FGL_J1159.5+2914_weekly_bin715.fits
.....................!
real 28.44
user 27.56
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934668/ft1_filtered_4FGL_J1159.5+2914_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934668/ft2_4FGL_J1159.5+2914_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/934668/ltcube_671414401_672019201_4FGL_J1159.5+2914_weekly_bin715.fits outfile=/scratch/kocevski/934668/expmap_671414401_672019201_4FGL_J1159.5+2914_weekly_bin715.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/934668/ltcube_671414401_672019201_4FGL_J1159.5+2914_weekly_bin715.fits
.....................!
real 195.76
user 186.84
sys 5.70

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

Setting source of interest to:
4FGL J1159.5+2914 @ 179.884 29.2448

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/934668/ft1_filtered_4FGL_J1159.5+2914_weekly_bin715.fits scfile=/scratch/kocevski/934668/ft2_4FGL_J1159.5+2914_weekly_bin715.fits outfile=/scratch/kocevski/934668/cmap_671414401_672019201_4FGL_J1159.5+2914_weekly_bin715.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=179.884 yref=29.2448 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.58
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934668/ft1_filtered_4FGL_J1159.5+2914_weekly_bin715.fits scfile=/scratch/kocevski/934668/ft2_4FGL_J1159.5+2914_weekly_bin715.fits outfile=/scratch/kocevski/934668/cmap_HighResolution_671414401_672019201_4FGL_J1159.5+2914_weekly_bin715.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=179.884 yref=29.2448 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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934668/ft1_filtered_4FGL_J1159.5+2914_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934668/ft2_4FGL_J1159.5+2914_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934668/Model_4FGL_J1159.5+2914_weekly_bin715.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/934668/ft1_filtered_4FGL_J1159.5+2914_weekly_bin715.fits.....................!
real 121.99
user 118.89
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934668/ft1_filtered_4FGL_J1159.5+2914_weekly_bin715.fits', '/scratch/kocevski/934668/ft2_4FGL_J1159.5+2914_weekly_bin715.fits', expMap='/scratch/kocevski/934668/expmap_671414401_672019201_4FGL_J1159.5+2914_weekly_bin715.fits', expCube='/scratch/kocevski/934668/ltcube_671414401_672019201_4FGL_J1159.5+2914_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934668/Model_4FGL_J1159.5+2914_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.5+2914'

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.117e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  6.240e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/934668/ft1_filtered_4FGL_J1159.5+2914_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/934668/ft2_4FGL_J1159.5+2914_weekly_bin715.fits
Exposure map: /scratch/kocevski/934668/expmap_671414401_672019201_4FGL_J1159.5+2914_weekly_bin715.fits
Exposure cube: /scratch/kocevski/934668/ltcube_671414401_672019201_4FGL_J1159.5+2914_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934668/Model_4FGL_J1159.5+2914_weekly_bin715.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) = 15343.0672415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2282       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0863       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .54551       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7825       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .71255E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .50597E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3282       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1291       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13170E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0626       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13511E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0161       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .98860       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .21053E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10587       1.0000         .10000E-03   10000.    
    17 'norm      '    10.742       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26729       1.0000         .10000E-03   10000.    
    21 'norm      '    4.5644       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .84874E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .82673       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.7041       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .22348       1.0000         .10000E-03   10000.    
    27 'norm      '    8.5313       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    39.525       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1299       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .98574       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+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=   15342.95     FROM MIGRAD    STATUS=FAILED      1528 CALLS     4392 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0202        .24037E-03** at limit **
   2  norm          3.3024        9.9741        .11273E-02    .15815E-03
   3  norm          1.0854        7.5710        .23016E-02    .12964E-02
   4  Prefactor     .55104        18.153        .44733E-02    .33626E-03
   5  Prefactor     5.7813        1.9475        .92845E-04   -.67616E-03
   6  Prefactor     .10000E-03    19.594        .20970E-02** at limit **
   7  Prefactor     .10000E-03    9.2587        .21152E-02** at limit **
   8  norm          1.3284        1.2884        .13274E-03    .24187E-03
   9  Prefactor     4.1571        7.4792        .19837E-03   -.13216E-03
  10  Prefactor     .10000E-03    8.2155        .29643E-02** at limit **
  11  norm          1.0624        .54962        .64344E-04   -.39118E-03
  12  Prefactor     .10000E-03    5.5295        .18142E-02** at limit **
  13  Prefactor     2.0054        6.2371        .14575E-02    .58732E-03
  14  Prefactor     .98809        .84389        .11584E-02   -.14196E-02
  15  Prefactor     .10000E-03    5.3762        .18142E-02** at limit **
  16  Prefactor     .15937        11.699        .14764        .17526E-03
  17  norm          10.742        1.2731        .45953E-04   -.50370E-03
  18  Prefactor     .10000E-03    2.2664        .25519E-02** at limit **
  19  Prefactor     .10000E-03    10.393        .18142E-02** at limit **
  20  Prefactor     .26210        3.6106        .19617E-02    .48975E-02
  21  norm          4.5635        1.6869        .93601E-04    .48584E-06
  22  Prefactor     .10001E-03    12.780        .36045E-02** at limit **
  23  Prefactor     .82669        .71455        .10373E-02   -.25077E-03
  24  Prefactor     7.7042        1.7681        .75130E-04   -.52357E-04
  25  Prefactor     .10000E-03    1.1858        .13080E-02** at limit **
  26  norm          .22348        .12467        .32806E-03    .60630E-03
  27  norm          8.5362        2.8010        .11493E-03   -.72212E-04
  28  Prefactor     .10000E-03    5.0373        .36285E-03** at limit **
  29  Prefactor     39.453        34.775        .31878E-03    .29104E-03
  30  Normalizat    1.1299        .13602        .24546E-03   -.54058E-03
  31  Prefactor     .98564        .15247        .30274E-03   -.69295E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   15342.95     FROM SIMPLEX   STATUS=UNCHANGED   1768 CALLS     6160 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0202        .13680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3024        9.9741        .14222E-05   -1.5344    
   3  norm          1.0854        7.5710        .14468E-05   -1.5500    
   4  Prefactor     .55104        18.153        .14720E-05   -1.5560    
   5  Prefactor     5.7813        1.9475        .14074E-05   -1.5227    
   6  Prefactor     .10000E-03    19.594        .36305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.2587        .16703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3284        1.2884        .14299E-05   -1.5477    
   9  Prefactor     4.1571        7.4792        .14132E-05   -1.5300    
  10  Prefactor     .10000E-03    8.2155        .21638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0624        .54962        .14324E-05   -1.5502    
  12  Prefactor     .10000E-03    5.5295        .18037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0054        6.2371        .14259E-05   -1.5425    
  14  Prefactor     .98809        .84389        .14337E-05   -1.5509    
  15  Prefactor     .10000E-03    5.3762        .14805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .15937        11.699        .14404E-05   -1.5628    
  17  norm          10.742        1.2731        .13907E-05   -1.5052    
  18  Prefactor     .10000E-03    2.2664        .11562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.393        .30266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .26210        3.6106        .14417E-05   -1.5606    
  21  norm          4.5635        1.6869        .14123E-05   -1.5281    
  22  Prefactor     .10001E-03    12.780        .21448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .82669        .71455        .14348E-05   -1.5526    
  24  Prefactor     7.7042        1.7681        .14003E-05   -1.5153    
  25  Prefactor     .10000E-03    1.1858        .10824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .22348        .12467        .14429E-05   -1.5613    
  27  norm          8.5362        2.8010        .13978E-05   -1.5124    
  28  Prefactor     .10000E-03    5.0373        .24724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     39.453        34.775        .13358E-05   -1.4451    
  30  Normalizat    1.1299        .13602        .82181E-06   -.88797    
  31  Prefactor     .98564        .15247        .86130E-06   -.93210    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15342.95     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     6779 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0202        .48075E-04** at limit **
   2  norm          3.3023        9.9662        .45091E-04    .50425E-06
   3  norm          1.0850        7.5492        .92064E-04   -.12349E-05
   4  Prefactor     .55092        18.304        .17893E-03    .29226E-05
   5  Prefactor     5.7813        1.9460        .37138E-05    .23265E-04
   6  Prefactor     .10000E-03    19.595        .41939E-03** at limit **
   7  Prefactor     .10000E-03    9.2640        .42303E-03** at limit **
   8  norm          1.3284        1.2882        .53095E-05    .25695E-05
   9  Prefactor     4.1571        7.4753        .79349E-05    .12608E-04
  10  Prefactor     .10000E-03    8.4221        .11857E-03** at limit **
  11  norm          1.0624        .54956        .25738E-05   -.91876E-04
  12  Prefactor     .10000E-03    5.5313        .36285E-03** at limit **
  13  Prefactor     2.0052        6.2323        .58301E-04    .85799E-05
  14  Prefactor     .98810        .84346        .46335E-04    .32878E-04
  15  Prefactor     .10000E-03    5.3769        .36285E-03** at limit **
  16  Prefactor     .15938        11.660        .14815        .18270E-03
  17  norm          10.742        1.2729        .18381E-05    .51953E-04
  18  Prefactor     .10000E-03    2.2738        .51039E-03** at limit **
  19  Prefactor     .10000E-03    10.395        .36285E-03** at limit **
  20  Prefactor     .26211        3.6039        .39233E-03    .19878E-04
  21  norm          4.5635        1.6867        .37440E-05    .13361E-04
  22  Prefactor     .10000E-03    13.071        .72089E-03** at limit **
  23  Prefactor     .82669        .71452        .41491E-04    .32880E-05
  24  Prefactor     7.7042        1.7677        .30052E-05    .18158E-04
  25  Prefactor     .10000E-03    1.1861        .26161E-03** at limit **
  26  norm          .22348        .12461        .13123E-04    .34654E-04
  27  norm          8.5361        2.8007        .45971E-05    .49460E-05
  28  Prefactor     .10000E-03    5.0376        .72569E-04** at limit **
  29  Prefactor     39.453        34.771        .63756E-04    .57061E-06
  30  Normalizat    1.1299        .13579        .49092E-04    .10412E-03
  31  Prefactor     .98564        .15258        .60548E-04    .69247E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.3023
  norm       = 1.08503
  Prefactor  = 0.550922
  Prefactor  = 5.78132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32844
  Prefactor  = 4.15707
  Prefactor  = 0.0001
  norm       = 1.06241
  Prefactor  = 0.0001
  Prefactor  = 2.00522
  Prefactor  = 0.988103
  Prefactor  = 0.0001
  Prefactor  = 0.159379
  norm       = 10.7417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.262109
  norm       = 4.56345
  Prefactor  = 0.0001
  Prefactor  = 0.826688
  Prefactor  = 7.70418
  Prefactor  = 0.0001
  norm       = 0.223476
  norm       = 8.53615
  Prefactor  = 0.0001
  Prefactor  = 39.4528
  Normalizat = 1.12992
  Prefactor  = 0.985642
 **********
 **   18 **HESSE 
 **********

 FCN=   15342.95     FROM HESSE     STATUS=OK           600 CALLS     7379 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0202        .96150E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3023        9.9546        .18037E-05   -1.5345    
   3  norm          1.0850        7.5496        .36826E-05   -1.5500    
   4  Prefactor     .55092        18.306        .71574E-05   -1.5560    
   5  Prefactor     5.7813        1.9455        .74276E-06   -1.5227    
   6  Prefactor     .10000E-03    19.595        .83878E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.2642        .84606E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3284        1.2879        .10619E-05   -1.5477    
   9  Prefactor     4.1571        7.4751        .15870E-05   -1.5300    
  10  Prefactor     .10000E-03    8.4225        .23714E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0624        .54954        .51476E-06   -1.5502    
  12  Prefactor     .10000E-03    5.5313        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0052        6.2320        .23321E-05   -1.5425    
  14  Prefactor     .98810        .84341        .18534E-05   -1.5509    
  15  Prefactor     .10000E-03    5.3770        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .15938        11.664        .14811       -1.5628    
  17  norm          10.742        1.2727        .36763E-06   -1.5052    
  18  Prefactor     .10000E-03    2.2741        .10208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.396        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .26211        3.5987        .15693E-04   -1.5606    
  21  norm          4.5635        1.6866        .74881E-06   -1.5281    
  22  Prefactor     .10000E-03    13.082        .14418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .82669        .71451        .16597E-05   -1.5526    
  24  Prefactor     7.7042        1.7676        .60104E-06   -1.5153    
  25  Prefactor     .10000E-03    1.1861        .52321E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .22348        .12460        .52490E-06   -1.5613    
  27  norm          8.5361        2.8002        .91942E-06   -1.5124    
  28  Prefactor     .10000E-03    5.0376        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     39.453        34.771        .12751E-04   -1.4451    
  30  Normalizat    1.1299        .13578        .98183E-05   -.88797    
  31  Prefactor     .98564        .15260        .12110E-04   -.93210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62021e-10
Minuit parameter uncertainties:
  1  2.11162e-09
  2  9.95963
  3  5.72495
  4  6.35297
  5  1.94548
  6  2.14635e-06
  7  2.16948e-06
  8  1.28797
  9  7.47676
  10  1.51877e-05
  11  0.54954
  12  8.25219e-07
  13  6.23398
  14  0.843418
  15  9.14844e-07
  16  2.72654
  17  1.27268
  18  1.02846e-06
  19  2.22651e-06
  20  1.9422
  21  1.68664
  22  1.29377e-05
  23  0.714514
  24  1.76759
  25  1.42294e-07
  26  0.124603
  27  2.80028
  28  3.21122e-07
  29  34.7888
  30  0.135826
  31  0.152667
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.074e+01  1.273e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  6.240e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  9.856e-01  1.527e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.130e+00  1.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 277.41
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 2.92e-07 +/- 3.45e-08
Energy Flux (Fixed Index): 1.31e-04 +/- 1.55e-05

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) = 15341.3597421
delta logL = 1.59050951543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15341.359635
delta logL = 1.59061657694

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.801       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9059       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95880       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15341.36     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      214 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.801        1.3210        .30477E-02    .23367E-03
   2  alpha         1.9059        .10692        .11967       -.42666E-04
   3  Normalizat    1.1682        .11131        .54812E-01   -.16369E-03
   4  Prefactor     .95879        .12834        .69312E-01   -.89857E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.8009
  alpha      = 1.90587
  Normalizat = 1.16819
  Prefactor  = 0.958789
 **********
 **   18 **HESSE 
 **********

 FCN=   15341.36     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.801        1.3210        .47528E-04   -1.5051    
   2  alpha         1.9059        .10872        .52134E-03   -.23995    
   3  Normalizat    1.1682        .13232        .24237E-03   -.87592    
   4  Prefactor     .95879        .15192        .30661E-03   -.94116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61878e-11
Minuit parameter uncertainties:
  1  1.321
  2  0.108758
  3  0.132357
  4  0.151991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934668': 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) = 15341.3596349
delta logL = 1.59061672108

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.080e+01  1.321e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  1.906e+00  1.088e-01  0.000e+00  5.000e+00 ( 1.000e+00)
304         beta:  6.240e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  9.588e-01  1.520e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.168e+00  1.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 279.42
Ra Dec: 179.884 29.245
Photon Index (Free Index): 1.91 +/- 0.11
Photon Flux (Free Index): 2.57e-07 +/- 3.72e-08
Energy Flux (Free Index): 1.62e-04 +/- 2.96e-05

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/934668/cmap_HighResolution_671414401_672019201_4FGL_J1159.5+2914_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.92e-07', energy_flux2='1.62e-04', photon_flux_error='3.45e-08', dlogl='1.59e+00', energy_flux='1.31e-04', photon_flux2='2.57e-07', job_status='DONE', time_completed='2022-04-19 03:07:04.654203', photon_index_error2='0.11', photon_index2='1.91', ts='277.41', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.96e-05', EG='1.13', time_epoch_completed='1650362824.65', return_code='0', job_id='934668', GAL2='0.96', EG2='1.17', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='3.72e-08', ts2='279.42', photon_index='2.10' WHERE bin_id='715' AND source_name='4FGL J1159.5+2914' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:07:04 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 930920: <4FGL_J1159.5+2914_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1159.5+2914_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:06:45 2022
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:14:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:14:47 2022
Terminated at Tue Apr 19 02:55:12 2022
Results reported at Tue Apr 19 02:55:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_weekly_bin715 179.884 29.2448 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.5+2914 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2234.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             312.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2424 sec.
    Turnaround time :                            10107 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0157>
Subject: Job 934668: <4FGL_J1159.5+2914_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1159.5+2914_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:17:55 2022
Job was executed on host(s) <bullet0157>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:28:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:28:08 2022
Terminated at Tue Apr 19 03:07:05 2022
Results reported at Tue Apr 19 03:07:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_weekly_bin715 179.884 29.2448 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.5+2914 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2236.11 sec.
    Max Memory :                                 629 MB
    Average Memory :                             332.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2935 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2336 sec.
    Turnaround time :                            10150 sec.

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

