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


Performing analysis on: 4FGL_J1159.5+2914_monthly_bin169
RA = 179.884, Dec = 29.2448
tmin = 675043201, tmax = 677635201
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='166064', job_status='RUN', time_executed='2022-06-23 02:13:38.907144', time_epoch_executed='1655975618.91' WHERE source_name='4FGL J1159.5+2914' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166064

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166064/ft1_4FGL_J1159.5+2914_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166064/ft2_4FGL_J1159.5+2914_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166064/ft1_4FGL_J1159.5+2914_monthly_bin169.fits outfile=/scratch/kocevski/166064/ft1_filteredMKT_4FGL_J1159.5+2914_monthly_bin169.fits ra=179.884 dec=29.2448 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.64
user 26.84
sys 0.72

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/166064/ft2_4FGL_J1159.5+2914_monthly_bin169.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/166064/ft1_filteredMKT_4FGL_J1159.5+2914_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/166064/ft1_filtered_4FGL_J1159.5+2914_monthly_bin169.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.85
user 0.65
sys 0.19

Number of photons that the gtmktime cut: 9150

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166064/ft1_filtered_4FGL_J1159.5+2914_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/166064/ft2_4FGL_J1159.5+2914_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/166064/ltcube_675043201_677635201_4FGL_J1159.5+2914_monthly_bin169.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/166064/ft2_4FGL_J1159.5+2914_monthly_bin169.fits
.....................!
real 148.06
user 146.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166064/ft1_filtered_4FGL_J1159.5+2914_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/166064/ft2_4FGL_J1159.5+2914_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/166064/ltcube_675043201_677635201_4FGL_J1159.5+2914_monthly_bin169.fits outfile=/scratch/kocevski/166064/expmap_675043201_677635201_4FGL_J1159.5+2914_monthly_bin169.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/166064/ltcube_675043201_677635201_4FGL_J1159.5+2914_monthly_bin169.fits
.....................!
real 194.32
user 188.07
sys 5.79

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/166064/ft1_filtered_4FGL_J1159.5+2914_monthly_bin169.fits scfile=/scratch/kocevski/166064/ft2_4FGL_J1159.5+2914_monthly_bin169.fits outfile=/scratch/kocevski/166064/cmap_675043201_677635201_4FGL_J1159.5+2914_monthly_bin169.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.79
user 0.63
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166064/ft1_filtered_4FGL_J1159.5+2914_monthly_bin169.fits scfile=/scratch/kocevski/166064/ft2_4FGL_J1159.5+2914_monthly_bin169.fits outfile=/scratch/kocevski/166064/cmap_HighResolution_675043201_677635201_4FGL_J1159.5+2914_monthly_bin169.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.81
user 0.63
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/166064/ft1_filtered_4FGL_J1159.5+2914_monthly_bin169.fits', '/scratch/kocevski/166064/ft2_4FGL_J1159.5+2914_monthly_bin169.fits', expMap='/scratch/kocevski/166064/expmap_675043201_677635201_4FGL_J1159.5+2914_monthly_bin169.fits', expCube='/scratch/kocevski/166064/ltcube_675043201_677635201_4FGL_J1159.5+2914_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/166064/Model_4FGL_J1159.5+2914_monthly_bin169.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/166064/ft1_filtered_4FGL_J1159.5+2914_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/166064/ft2_4FGL_J1159.5+2914_monthly_bin169.fits
Exposure map: /scratch/kocevski/166064/expmap_675043201_677635201_4FGL_J1159.5+2914_monthly_bin169.fits
Exposure cube: /scratch/kocevski/166064/ltcube_675043201_677635201_4FGL_J1159.5+2914_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/166064/Model_4FGL_J1159.5+2914_monthly_bin169.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) = 95934.1089598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1024       1.0000         .10000E-03   10000.    
     2 'norm      '    .27479       1.0000         .10000E-03   10000.    
     3 'norm      '    3.6450       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4696       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3626       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1240       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2310       1.0000         .10000E-03   10000.    
     8 'norm      '    2.2368       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11994E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12622       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9256       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11368E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0087       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .40798       1.0000         .10000E-03   10000.    
    17 'norm      '    26.585       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16058E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.631       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .35954       1.0000         .10000E-03   10000.    
    21 'norm      '    4.5260       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9006       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.6115       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.7231       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .99046E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    5.5289       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.3548       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .95432       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1248       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   95933.89     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     3760 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1025        .90037         .0000        .37970E-02
   2  norm          .26947        .79904         .0000        .28653E-02
   3  norm          3.6444        2.5280         .0000        .54321E-01
   4  Prefactor     2.4734        2.6726         .0000        .24043E-02
   5  Prefactor     4.3626        .75693         .0000        .25794E-02
   6  Prefactor     5.1239        7.0277         .0000        .53629E-02
   7  Prefactor     2.2314        2.6801         .0000        .37657E-02
   8  norm          2.2369        .60003         .0000        .49465E-02
   9  Prefactor     .10000E-03    .44802         .0000    ** at limit **
  10  Prefactor     .12785        .31898         .0000        .30915E-02
  11  norm          1.9255        .29060         .0000        .18118E-02
  12  Prefactor     .10000E-03    2.6983         .0000    ** at limit **
  13  Prefactor     .10000E-03    .45843         .0000    ** at limit **
  14  Prefactor     1.0087        .34407         .0000        .34128E-02
  15  Prefactor     .10000E-03    5.6861         .0000    ** at limit **
  16  Prefactor     .39318        2.3505         .0000        .30273E-02
  17  norm          26.585        .76741         .0000       -.17319E-02
  18  Prefactor     .18669E-01    .13563         .0000        .41295E-02
  19  Prefactor     11.617        7.6804         .0000       -.83323E-02
  20  Prefactor     .35929        .46397         .0000        .15707E-01
  21  norm          4.5261        .78251         .0000        .53183E-03
  22  Prefactor     1.9011        1.2982         .0000        .45487E-02
  23  Prefactor     1.6116        .49006         .0000        .12952E-02
  24  Prefactor     2.7232        .53706         .0000        .14287E-02
  25  Prefactor     .10000E-03    .21996         .0000    ** at limit **
  26  norm          .99045E-01    .48439E-01     .0000        .39533E-01
  27  norm          5.5288        1.0937         .0000        .90441E-03
  28  Prefactor     2.3550        1.4633         .0000        .67891E-01
  29  Prefactor     .10000E-03    5.8544         .0000    ** at limit **
  30  Normalizat    .95427        .50536E-01     .0000       -.43202E-03
  31  Prefactor     1.1248        .55579E-01     .0000       -.29530E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.10253
  norm       = 0.269469
  norm       = 3.64444
  Prefactor  = 2.4734
  Prefactor  = 4.36265
  Prefactor  = 5.1239
  Prefactor  = 2.23138
  norm       = 2.23688
  Prefactor  = 0.0001
  Prefactor  = 0.127848
  norm       = 1.92551
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.00873
  Prefactor  = 0.000100002
  Prefactor  = 0.393184
  norm       = 26.5849
  Prefactor  = 0.0186687
  Prefactor  = 11.6165
  Prefactor  = 0.359292
  norm       = 4.52607
  Prefactor  = 1.90112
  Prefactor  = 1.6116
  Prefactor  = 2.72317
  Prefactor  = 0.0001
  norm       = 0.0990453
  norm       = 5.52882
  Prefactor  = 2.35504
  Prefactor  = 0.0001
  Normalizat = 0.954271
  Prefactor  = 1.12481
 **********
 **   18 **HESSE 
 **********

 FCN=   95933.89     FROM HESSE     STATUS=OK           670 CALLS     4430 TOTAL
                     EDM=   .89E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1025        .89861        .15282E-03   -1.5356    
   2  norm          .26947        4.8937        .45862E-02   -1.5604    
   3  norm          3.6444        2.5242        .10580E-02   -1.5326    
   4  Prefactor     2.4734        2.6639        .26020E-03   -1.5393    
   5  Prefactor     4.3626        .75439        .99118E-04   -1.5290    
   6  Prefactor     5.1239        7.0106        .88805E-03   -1.5255    
   7  Prefactor     2.2314        2.6165        .27523E-03   -1.5409    
   8  norm          2.2369        .59494        .11601E-03   -1.5409    
   9  Prefactor     .10000E-03    1.6997        .39183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .12785        2.9361        .25659E-02   -1.5636    
  11  norm          1.9255        .29016        .61113E-04   -1.5430    
  12  Prefactor     .10000E-03    2.8130        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.6378        .40154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0087        .34606        .10224E-03   -1.5507    
  15  Prefactor     .10000E-03    5.8364        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .39318        2.4583        .16269       -1.5583    
  17  norm          26.585        .76750        .43763E-04   -1.4676    
  18  Prefactor     .18669E-01    .22803        .39046E-01   -1.5681    
  19  Prefactor     11.617        7.6720        .11746E-03   -1.5026    
  20  Prefactor     .35929        .63965        .22369E-02   -1.5588    
  21  norm          4.5261        .78223        .10552E-03   -1.5282    
  22  Prefactor     1.9011        1.2946        .28112E-03   -1.5432    
  23  Prefactor     1.6116        .48961        .11150E-03   -1.5454    
  24  Prefactor     2.7232        .53530        .95825E-04   -1.5378    
  25  Prefactor     .10000E-03    .82084        .27811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .99045E-01    .42896E-01    .45010E-03   -1.5645    
  27  norm          5.5288        1.0804        .13724E-03   -1.5238    
  28  Prefactor     2.3550        1.4612        .13355E-02   -1.5401    
  29  Prefactor     .10000E-03    5.8748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .95427        .58742E-01    .27600E-03   -.94579    
  31  Prefactor     1.1248        .65485E-01    .29947E-03   -.88678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85841e-07
Minuit parameter uncertainties:
  1  0.898617
  2  2.29648
  3  2.52425
  4  2.66407
  5  0.754388
  6  7.01177
  7  2.61666
  8  0.594943
  9  2.80854e-05
  10  1.22495
  11  0.290161
  12  4.57755e-05
  13  0.000110279
  14  0.346065
  15  0.000202997
  16  1.96615
  17  0.7675
  18  0.130141
  19  7.67267
  20  0.639664
  21  0.782233
  22  1.29463
  23  0.489607
  24  0.535303
  25  9.36184e-06
  26  0.0428956
  27  1.0804
  28  1.4612
  29  2.24352e-05
  30  0.0587457
  31  0.0654902
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.658e+01  7.675e-01  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:  1.125e+00  6.549e-02  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:  9.543e-01  5.875e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5259.81
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 7.22e-07 +/- 2.08e-08
Energy Flux (Fixed Index): 3.23e-04 +/- 9.33e-06

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) = 95910.2627282
delta logL = 23.6318809899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 95910.2627259
delta logL = 23.6318832872

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.258       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9144       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0700       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=   95910.26     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      219 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.259        .80536        .19183E-02   -.48915E-03
   2  alpha         1.9144        .26885E-01    .73768E-01   -.10969E-03
   3  Normalizat    1.0265        .48273E-01    .42527E-01    .17267E-03
   4  Prefactor     1.0700        .55568E-01    .69226E-01    .16506E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 27.2588
  alpha      = 1.91444
  Normalizat = 1.02652
  Prefactor  = 1.06999
 **********
 **   18 **HESSE 
 **********

 FCN=   95910.26     FROM HESSE     STATUS=OK            31 CALLS      250 TOTAL
                     EDM=   .12E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.259        .79849        .45338E-04   -1.4663    
   2  alpha         1.9144        .26862E-01    .32477E-03   -.23642    
   3  Normalizat    1.0265        .57020E-01    .26824E-03   -.92147    
   4  Prefactor     1.0700        .65407E-01    .30626E-03   -.90432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18269e-15
Minuit parameter uncertainties:
  1  0.798489
  2  0.0268625
  3  0.0570237
  4  0.0654122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166064': 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) = 95910.2627257
delta logL = 23.6318834899

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.726e+01  7.985e-01  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  1.914e+00  2.686e-02  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:  1.070e+00  6.541e-02  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.027e+00  5.702e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5271.22
Ra Dec: 179.884 29.245
Photon Index (Free Index): 1.91 +/- 0.03
Photon Flux (Free Index): 6.51e-07 +/- 2.18e-08
Energy Flux (Free Index): 4.05e-04 +/- 1.89e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/166064/cmap_HighResolution_675043201_677635201_4FGL_J1159.5+2914_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.22e-07', energy_flux2='4.05e-04', photon_flux_error='2.08e-08', dlogl='2.36e+01', energy_flux='3.23e-04', photon_flux2='6.51e-07', job_status='DONE', time_completed='2022-06-23 04:32:48.486717', photon_index_error2='0.03', photon_index2='1.91', ts='5259.81', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.89e-05', EG='0.95', time_epoch_completed='1655983968.49', return_code='0', job_id='166064', GAL2='1.07', EG2='1.03', return_code2='0', energy_flux_error='9.33e-06', photon_flux_error2='2.18e-08', ts2='5271.22', photon_index='2.10' WHERE bin_id='169' AND source_name='4FGL J1159.5+2914' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 04:32:48 PDT 2022


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

Job <4FGL_J1159.5+2914_monthly_bin169> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun 23 01:35:33 2022
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:12:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:12:02 2022
Terminated at Thu Jun 23 04:32:49 2022
Results reported at Thu Jun 23 04:32:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_monthly_bin169 179.884 29.2448 675043201 677635201 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 :                                   8307.00 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             440.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   8447 sec.
    Turnaround time :                            10636 sec.

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

