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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1754
RA = 179.884, Dec = 29.2448
tmin = 693964801, tmax = 694224001
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='641955', job_status='RUN', time_executed='2023-01-01 01:07:13.004487', time_epoch_executed='1672564033.0' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641955

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641955/ft1_4FGL_J1159.5+2914_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641955/ft2_4FGL_J1159.5+2914_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641955/ft1_4FGL_J1159.5+2914_daily_bin1754.fits outfile=/scratch/kocevski/641955/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1754.fits ra=179.884 dec=29.2448 rad=12.0 tmin=693964801.0 tmax=694224001.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.94
user 3.68
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641955/ft2_4FGL_J1159.5+2914_daily_bin1754.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/641955/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/641955/ft1_filtered_4FGL_J1159.5+2914_daily_bin1754.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.52
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 531

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641955/ft1_filtered_4FGL_J1159.5+2914_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/641955/ft2_4FGL_J1159.5+2914_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/641955/ltcube_693964801_694224001_4FGL_J1159.5+2914_daily_bin1754.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/641955/ft2_4FGL_J1159.5+2914_daily_bin1754.fits
.....................!
real 14.67
user 14.17
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641955/ft1_filtered_4FGL_J1159.5+2914_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/641955/ft2_4FGL_J1159.5+2914_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/641955/ltcube_693964801_694224001_4FGL_J1159.5+2914_daily_bin1754.fits outfile=/scratch/kocevski/641955/expmap_693964801_694224001_4FGL_J1159.5+2914_daily_bin1754.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/641955/ltcube_693964801_694224001_4FGL_J1159.5+2914_daily_bin1754.fits
.....................!
real 195.80
user 188.91
sys 5.72

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/641955/ft1_filtered_4FGL_J1159.5+2914_daily_bin1754.fits scfile=/scratch/kocevski/641955/ft2_4FGL_J1159.5+2914_daily_bin1754.fits outfile=/scratch/kocevski/641955/cmap_693964801_694224001_4FGL_J1159.5+2914_daily_bin1754.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641955/ft1_filtered_4FGL_J1159.5+2914_daily_bin1754.fits scfile=/scratch/kocevski/641955/ft2_4FGL_J1159.5+2914_daily_bin1754.fits outfile=/scratch/kocevski/641955/cmap_HighResolution_693964801_694224001_4FGL_J1159.5+2914_daily_bin1754.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.56
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/641955/ft1_filtered_4FGL_J1159.5+2914_daily_bin1754.fits', '/scratch/kocevski/641955/ft2_4FGL_J1159.5+2914_daily_bin1754.fits', expMap='/scratch/kocevski/641955/expmap_693964801_694224001_4FGL_J1159.5+2914_daily_bin1754.fits', expCube='/scratch/kocevski/641955/ltcube_693964801_694224001_4FGL_J1159.5+2914_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/641955/Model_4FGL_J1159.5+2914_daily_bin1754.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  0.000e+00  1.000e+06 ( 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 -5.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/641955/ft1_filtered_4FGL_J1159.5+2914_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/641955/ft2_4FGL_J1159.5+2914_daily_bin1754.fits
Exposure map: /scratch/kocevski/641955/expmap_693964801_694224001_4FGL_J1159.5+2914_daily_bin1754.fits
Exposure cube: /scratch/kocevski/641955/ltcube_693964801_694224001_4FGL_J1159.5+2914_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/641955/Model_4FGL_J1159.5+2914_daily_bin1754.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5558.32835529

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1139       1.0000          .0000       .10000E+07
     2 'norm      '    17.339       1.0000          .0000       .10000E+07
     3 'Prefactor '    .95050E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .76487E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    16.310       1.0000          .0000       .10000E+07
     6 'Prefactor '    15.849       1.0000          .0000       .10000E+07
     7 'norm      '    .74538       1.0000          .0000       .10000E+07
     8 'Prefactor '    .83715E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    8.4720       1.0000          .0000       .10000E+07
    10 'norm      '    1.3157       1.0000          .0000       .10000E+07
    11 'Prefactor '    24.657       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.7681       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.6796       1.0000          .0000       .10000E+07
    14 'Prefactor '    15.158       1.0000          .0000       .10000E+07
    15 'norm      '    27.334       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.5544       1.0000          .0000       .10000E+07
    17 'Prefactor '    .13482E-05   1.0000          .0000       .10000E+07
    18 'norm      '    1.1419       1.0000          .0000       .10000E+07
    19 'Prefactor '    .82734E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .12157E-07   1.0000          .0000       .10000E+07
    21 'Prefactor '    1.5201       1.0000          .0000       .10000E+07
    22 'Prefactor '    2.8212       1.0000          .0000       .10000E+07
    23 'norm      '    .70080E-01   1.0000          .0000       .10000E+07
    24 'norm      '    2.6482       1.0000          .0000       .10000E+07
    25 'Prefactor '    .42062E-05   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1176       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .75429       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5555.702     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     1469 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0974        4.8935        .23846E-08   -.59639E-03
   2  norm          16.273        20.977        .12765E-07   -.40177E-02
   3  Prefactor     .12679E-06    49.863       -.20220E-06** at limit **
   4  Prefactor      .0000        3.0602       -.56351E-07** at limit **
   5  Prefactor     17.684        36.205        .14412E-06   -.10463E-01
   6  Prefactor     15.719        17.457       -.36194E-07    .13455E-01
   7  norm          .72862        2.2227       -.15553E-06    .86270E-04
   8  Prefactor     .55511E-10    9.5936       -.15473E-07** at limit **
   9  Prefactor     8.4757        5.9615       -.31233E-07   -.10707E-02
  10  norm          1.3142        .97630        .14815E-07   -.28442E-03
  11  Prefactor     25.061        8.4255       -.86643E-08   -.44644E-01
  12  Prefactor     9.7874        3.6566       -.37280E-08   -.84986E-01
  13  Prefactor     4.6654        2.6071       -.35234E-07    .11093E-02
  14  Prefactor     15.634        4.1451        .10371E-07   -.20729E-02
  15  norm          27.326        3.2206       -.35590E-07    .15494E-02
  16  Prefactor     3.5371        4.5094       -.93714E-07    .30993E-02
  17  Prefactor      .0000        1.2438       -.16129E-06** at limit **
  18  norm          1.1289        2.7723        .17142E-06   -.71298E-03
  19  Prefactor      .0000        2.2093        .11323E-06** at limit **
  20  Prefactor      .0000        1.1679       -.16690E-06** at limit **
  21  Prefactor     1.5198        1.6956       -.36880E-07   -.45838E-04
  22  Prefactor     2.8220        2.8084        .19234E-07   -.74553E-04
  23  norm          .69851E-01    .22626       -.29967E-07** at limit **
  24  norm          2.6505        2.8412        .18037E-06   -.10144E-02
  25  Prefactor      .0000        3.6589        .94695E-07** at limit **
  26  Normalizat    1.1177        .23578       -.28087E-05   -.71804E-05
  27  Prefactor     .75467        .25535        .67532E-05   -.16648E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.09741
  norm       = 16.2732
  Prefactor  = 1.26787e-07
  Prefactor  = 0
  Prefactor  = 17.6839
  Prefactor  = 15.7185
  norm       = 0.728616
  Prefactor  = 5.55112e-11
  Prefactor  = 8.47566
  norm       = 1.31416
  Prefactor  = 25.0608
  Prefactor  = 9.78743
  Prefactor  = 4.66543
  Prefactor  = 15.6343
  norm       = 27.3261
  Prefactor  = 3.53708
  Prefactor  = 0
  norm       = 1.12886
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.51981
  Prefactor  = 2.82198
  norm       = 0.0698515
  norm       = 2.65048
  Prefactor  = 0
  Normalizat = 1.11774
  Prefactor  = 0.754667
 **********
 **   18 **HESSE 
 **********

 FCN=   5555.702     FROM HESSE     STATUS=OK           554 CALLS     2023 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0974        4.9111        .49677E-03   -1.5667    
   2  norm          16.273        21.895        .24025E-03   -1.5627    
   3  Prefactor     .12679E-06    50.985        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        3.0053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.684        37.458        .24773E-03   -1.5624    
   6  Prefactor     15.719        17.808        .25132E-03   -1.5629    
   7  norm          .72862        2.2517        .57098E-03   -1.5691    
   8  Prefactor     .55511E-10    9.6198        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.4757        5.9682        .34417E-03   -1.5650    
  10  norm          1.3142        .98852        .95987E-03   -1.5685    
  11  Prefactor     25.061        24.864        .20143E-03   -1.5608    
  12  Prefactor     9.7874        12.053        .32038E-03   -1.5645    
  13  Prefactor     4.6654        2.6937        .46496E-03   -1.5665    
  14  Prefactor     15.634        32.231        .25699E-03   -1.5629    
  15  norm          27.326        3.2357        .19130E-03   -1.5603    
  16  Prefactor     3.5371        4.5813        .53586E-03   -1.5670    
  17  Prefactor      .0000        1.2432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1289        2.8282        .10868E-02   -1.5687    
  19  Prefactor      .0000        2.2100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        1.1678        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.5198        1.7238        .86632E-03   -1.5683    
  22  Prefactor     2.8220        2.8036        .60528E-03   -1.5674    
  23  norm          .69851E-01    .18510        .13471E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.6505        2.8423        .62621E-03   -1.5675    
  25  Prefactor      .0000        3.6568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1177        .19977        .56775E-01   -.89184    
  27  Prefactor     .75467        .21754        .75828E-01   -1.0142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78197e-07
Minuit parameter uncertainties:
  1  4.91107
  2  21.8955
  3  0.00508505
  4  7.65403e-06
  5  37.458
  6  17.8084
  7  2.25166
  8  3.61481e-05
  9  5.96824
  10  0.988524
  11  24.8645
  12  12.0526
  13  2.69366
  14  32.2314
  15  3.23574
  16  4.58134
  17  1.92994e-06
  18  2.82819
  19  5.43838e-07
  20  1.80288e-06
  21  1.72376
  22  2.8036
  23  0.185103
  24  2.84232
  25  4.65374e-06
  26  0.199906
  27  0.217791
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.733e+01  3.236e+00  0.000e+00  1.000e+06 ( 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 -5.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:  7.547e-01  2.178e-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.118e+00  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 304.91
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 7.42e-07 +/- 8.78e-08
Energy Flux (Fixed Index): 3.32e-04 +/- 3.93e-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) = 5555.53273159
delta logL = 0.169115939155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5555.51692744
delta logL = 0.184920085597

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.849       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1759       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77601       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=   5555.517     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.849        3.4687        .19303E-03   -.87860E-02
   2  alpha         2.1759        .12722        .73882E-01    .14221E-04
   3  Normalizat    1.0896        .19400        .57314E-01    .74875E-05
   4  Prefactor     .77601        .21510        .74865E-01    .18173E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 26.8488
  alpha      = 2.17586
  Normalizat = 1.08964
  Prefactor  = 0.776009
 **********
 **   18 **HESSE 
 **********

 FCN=   5555.517     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.849        3.2536        .42648E-05   -1.5604    
   2  alpha         2.1759        .12035        .32546E-03   -.13002    
   3  Normalizat    1.0896        .23258        .25344E-03   -.90085    
   4  Prefactor     .77601        .25659        .33136E-03   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87994e-11
Minuit parameter uncertainties:
  1  3.25358
  2  0.120394
  3  0.232794
  4  0.256989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641955': 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) = 5555.51692744
delta logL = 0.184920086035

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.685e+01  3.254e+00  0.000e+00  1.000e+06 ( 1.000e-11)
303        alpha:  2.176e+00  1.204e-01  0.000e+00  5.000e+00 ( 1.000e+00)
304         beta:  6.240e-02  0.000e+00 -5.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:  7.760e-01  2.570e-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.090e+00  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 302.47
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.18 +/- 0.12
Photon Flux (Free Index): 7.71e-07 +/- 1.01e-07
Energy Flux (Free Index): 3.10e-04 +/- 4.89e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/641955/cmap_HighResolution_693964801_694224001_4FGL_J1159.5+2914_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.42e-07', energy_flux2='3.10e-04', photon_flux_error='8.78e-08', dlogl='1.85e-01', energy_flux='3.32e-04', photon_flux2='7.71e-07', job_status='DONE', time_completed='2023-01-01 01:16:32.188768', photon_index_error2='0.12', photon_index2='2.18', ts='304.91', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='4.89e-05', EG='1.12', time_epoch_completed='1672564592.19', return_code='0', job_id='641955', GAL2='0.78', EG2='1.09', return_code2='0', energy_flux_error='3.93e-05', photon_flux_error2='1.01e-07', ts2='302.47', photon_index='2.10' WHERE bin_id='1754' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:16:32 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 641955: <4FGL_J1159.5+2914_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin1754> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jan  1 01:05:15 2023
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:05:47 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:05:47 2023
Terminated at Sun Jan  1 01:16:32 2023
Results reported at Sun Jan  1 01:16:32 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1754 179.884 29.2448 693964801 694224001 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 :                                   560.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            677 sec.

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

