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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1692
RA = 179.843, Dec = -21.7038
tmin = 677894401, tmax = 678153601
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='405250', job_status='RUN', time_executed='2022-06-29 04:26:54.943673', time_epoch_executed='1656502014.94' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405250

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405250/ft1_4FGL_J1159.3-2142_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405250/ft2_4FGL_J1159.3-2142_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405250/ft1_4FGL_J1159.3-2142_daily_bin1692.fits outfile=/scratch/kocevski/405250/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1692.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=677894401.0 tmax=678153601.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 4.57
user 4.22
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/405250/ft2_4FGL_J1159.3-2142_daily_bin1692.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/405250/ft2_4FGL_J1159.3-2142_daily_bin1692.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/405250/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1692.fits evtable="EVENTS" outfile="/scratch/kocevski/405250/ft1_filtered_4FGL_J1159.3-2142_daily_bin1692.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 1283

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405250/ft1_filtered_4FGL_J1159.3-2142_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/405250/ft2_4FGL_J1159.3-2142_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/405250/ltcube_677894401_678153601_4FGL_J1159.3-2142_daily_bin1692.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/405250/ft2_4FGL_J1159.3-2142_daily_bin1692.fits
.....................!
real 13.65
user 13.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405250/ft1_filtered_4FGL_J1159.3-2142_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405250/ft2_4FGL_J1159.3-2142_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/405250/ltcube_677894401_678153601_4FGL_J1159.3-2142_daily_bin1692.fits outfile=/scratch/kocevski/405250/expmap_677894401_678153601_4FGL_J1159.3-2142_daily_bin1692.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/405250/ltcube_677894401_678153601_4FGL_J1159.3-2142_daily_bin1692.fits
.....................!
real 191.93
user 186.04
sys 4.95

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

Setting source of interest to:
4FGL J1159.3-2142 @ 179.843 -21.7038

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/405250/ft1_filtered_4FGL_J1159.3-2142_daily_bin1692.fits scfile=/scratch/kocevski/405250/ft2_4FGL_J1159.3-2142_daily_bin1692.fits outfile=/scratch/kocevski/405250/cmap_677894401_678153601_4FGL_J1159.3-2142_daily_bin1692.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.843 yref=-21.7038 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405250/ft1_filtered_4FGL_J1159.3-2142_daily_bin1692.fits scfile=/scratch/kocevski/405250/ft2_4FGL_J1159.3-2142_daily_bin1692.fits outfile=/scratch/kocevski/405250/cmap_HighResolution_677894401_678153601_4FGL_J1159.3-2142_daily_bin1692.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.843 yref=-21.7038 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405250/ft1_filtered_4FGL_J1159.3-2142_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405250/ft2_4FGL_J1159.3-2142_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405250/Model_4FGL_J1159.3-2142_daily_bin1692.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/405250/ft1_filtered_4FGL_J1159.3-2142_daily_bin1692.fits.....................!
real 107.85
user 105.54
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/405250/ft1_filtered_4FGL_J1159.3-2142_daily_bin1692.fits', '/scratch/kocevski/405250/ft2_4FGL_J1159.3-2142_daily_bin1692.fits', expMap='/scratch/kocevski/405250/expmap_677894401_678153601_4FGL_J1159.3-2142_daily_bin1692.fits', expCube='/scratch/kocevski/405250/ltcube_677894401_678153601_4FGL_J1159.3-2142_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/405250/Model_4FGL_J1159.3-2142_daily_bin1692.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.3-2142'

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.158e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.383e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/405250/ft1_filtered_4FGL_J1159.3-2142_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/405250/ft2_4FGL_J1159.3-2142_daily_bin1692.fits
Exposure map: /scratch/kocevski/405250/expmap_677894401_678153601_4FGL_J1159.3-2142_daily_bin1692.fits
Exposure cube: /scratch/kocevski/405250/ltcube_677894401_678153601_4FGL_J1159.3-2142_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/405250/Model_4FGL_J1159.3-2142_daily_bin1692.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) = 13202.4066357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    29.691       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10672E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4610       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.318       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1555       1.0000         .10000E-03   10000.    
     7 'Prefactor '    148.00       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.320       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.9690       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.543       1.0000         .10000E-03   10000.    
    12 'norm      '    12.106       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .63513       1.0000         .10000E-03   10000.    
    14 'norm      '    .21478       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1869       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22608E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .90004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.877       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2451       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .90528       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0446       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13202.38     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3118 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.864        .61607E-05** at limit **
   2  Prefactor     29.687        54.678       -.51606E-05   -.45938E-04
   3  Prefactor     .10000E-03    30.486       -.12717E-05** at limit **
   4  Prefactor     3.4594        5.6682        .43396E-05    .87315E-04
   5  Prefactor     30.319        31.387        .12676E-06   -.45243E-05
   6  norm          1.1555        .83144       -.12595E-10   -.22715E-03
   7  Prefactor     148.00        14.303       -.25555E-06   -.43942E-04
   8  Prefactor     13.333        16.421        .13625E-05    .13910E-04
   9  Prefactor     .10000E-03    1.1953       -.48144E-07** at limit **
  10  Prefactor     7.9672        11.602       -.25054E-08   -.12297E-04
  11  Prefactor     10.549        12.617        .12192E-06    .19837E-04
  12  norm          12.107        13.673       -.10967E-06   -.74887E-05
  13  Prefactor     .54110        5.4052       -.14160E-05    .36870E-03
  14  norm          .26190        1.6247        .51640E-06   -.46010E-03
  15  Prefactor     3.1889        1.2364        .15035E-06   -.39099E-02
  16  Prefactor     .10000E-03    17.781       -.18339E-05** at limit **
  17  Prefactor     .10000E-03    37.600        .60478E-05** at limit **
  18  Prefactor     .10000E-03    50.639        .70900E-06** at limit **
  19  Prefactor     14.877        35.514        .44604E-05    .26389E-04
  20  Prefactor     .10000E-03    11.936       -.46138E-06** at limit **
  21  Prefactor     .10000E-03    1.2886        .15256E-06** at limit **
  22  Prefactor     5.2451        1.5599       -.78531E-08    .80414E-03
  23  Prefactor     .10000E-03    5.4703        .55953E-06** at limit **
  24  norm          .10000E-03    .20272        .56585E-07** at limit **
  25  Normalizat    .90560        .17138        .41174E-06    .56803E-05
  26  Prefactor     1.0444        .90055E-01   -.45064E-06    .12640E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 29.6866
  Prefactor  = 0.0001
  Prefactor  = 3.45943
  Prefactor  = 30.3191
  norm       = 1.15551
  Prefactor  = 147.998
  Prefactor  = 13.3334
  Prefactor  = 0.0001
  Prefactor  = 7.96719
  Prefactor  = 10.5495
  norm       = 12.1067
  Prefactor  = 0.5411
  norm       = 0.261903
  Prefactor  = 3.18887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 14.8768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.24506
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.905601
  Prefactor  = 1.04439
 **********
 **   18 **HESSE 
 **********

 FCN=   13202.38     FROM HESSE     STATUS=OK           462 CALLS     3580 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.687        54.846        .73529E-04   -1.4618    
   3  Prefactor     .10000E-03    30.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4594        5.6601        .21738E-03   -1.5336    
   5  Prefactor     30.319        31.324        .72765E-04   -1.4606    
   6  norm          1.1555        .80982        .83771E-04   -1.5493    
   7  Prefactor     148.00        14.326        .33126E-04   -1.3269    
   8  Prefactor     13.333        16.414        .10975E-03   -1.4978    
   9  Prefactor     .10000E-03    2.3689        .24219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.9672        11.617        .14203E-03   -1.5143    
  11  Prefactor     10.549        12.586        .12340E-03   -1.5058    
  12  norm          12.107        13.679        .11513E-03   -1.5012    
  13  Prefactor     .54110        152.93        .40968E-02   -1.5561    
  14  norm          .26190        27.977        .23008E-02   -1.5606    
  15  Prefactor     3.1889        3.2255        .98643E-03   -1.5351    
  16  Prefactor     .10000E-03    17.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    51.529        .41660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.877        35.268        .10384E-03   -1.4936    
  20  Prefactor     .10000E-03    12.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.2956        .12735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.2451        1.5637        .38222E-03   -1.5250    
  23  Prefactor     .10000E-03    5.5119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .20279        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .90560        .20181        .35872E-03   -.96264    
  26  Prefactor     1.0444        .10678        .18495E-03   -.91264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5321e-08
Minuit parameter uncertainties:
  1  0.000280109
  2  54.9389
  3  0.000123591
  4  5.66098
  5  31.3408
  6  0.809832
  7  14.3259
  8  16.4199
  9  8.03689e-06
  10  11.6202
  11  12.589
  12  13.6824
  13  18.2388
  14  5.41535
  15  3.22569
  16  3.7375e-05
  17  1.64195e-05
  18  0.000719953
  19  35.3178
  20  2.61742e-06
  21  5.48344e-07
  22  1.56373
  23  2.32463e-06
  24  6.53771e-08
  25  0.201983
  26  0.106797
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  2.619e-01  5.415e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.383e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.044e+00  1.068e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  9.056e-01  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 179.843 -21.704
Photon Flux Upper Limit: 6.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405250/likelihoodResults_677894401_678153601_4FGL_J1159.3-2142_daily_bin1692.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13201.1338187
delta logL = 1.24808387362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13201.0555679
delta logL = 1.3263346945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15777       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.7579       1.0000          .0000       5.0000    
     3 'Normalizat'    .79404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0806       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+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.

 FCN=   13201.06     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      277 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15707        3.0684        .28861E-03   -.16233E-02
   2  alpha         4.7608        3.3998        .50735E-01   -.22847E-04
   3  Normalizat    .79409        .14349        .38100E-03    .21305E-04
   4  Prefactor     1.0805        .77880E-01    .18215E-03    .93620E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.157073
  alpha      = 4.76085
  Normalizat = 0.794092
  Prefactor  = 1.08045
 **********
 **   18 **HESSE 
 **********

 FCN=   13201.06     FROM HESSE     STATUS=OK            27 CALLS      304 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15707        .55424        .11544E-04   -1.5629    
   2  alpha         4.7608        4.3880        .20294E-02    1.1298    
   3  Normalizat    .79409        .20282        .15240E-04   -1.0029    
   4  Prefactor     1.0805        .10836        .72861E-05   -.90094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5566e-10
Minuit parameter uncertainties:
  1  0.554258
  2  1.90028
  3  0.203011
  4  0.108379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405250': 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) = 13201.0555637
delta logL = 1.32633884999

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.571e-01  5.543e-01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  4.761e+00  1.900e+00  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.080e+00  1.084e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  7.941e-01  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.96
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 4.76 +/- 1.90
Photon Flux (Free Index): 7.73e-08 +/- 5.28e-08
Energy Flux (Free Index): 1.10e-05 +/- 7.61e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/405250/cmap_HighResolution_677894401_678153601_4FGL_J1159.3-2142_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-05', comment='SUCCESS', energy_flux2='1.10e-05', dlogl='1.33e+00', photon_flux2='7.73e-08', job_status='DONE', time_completed='2022-06-29 04:49:16.013180', photon_index_error2='1.90', photon_index2='4.76', ts='0.01', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='6.24e-08', energy_flux_error2='7.61e-06', EG='0.91', time_epoch_completed='1656503356.01', return_code='0', job_id='405250', GAL2='1.08', EG2='0.79', return_code2='0', photon_flux_error2='5.28e-08', ts2='2.96', photon_index='2.38' WHERE bin_id='1692' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 04:49:16 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 405233: <4FGL_J1159.3-2142_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:38 2022
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:25:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:25:41 2022
Terminated at Wed Jun 29 04:48:42 2022
Results reported at Wed Jun 29 04:48:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1692 179.843 -21.7038 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.3-2142 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1328.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1380 sec.
    Turnaround time :                            16924 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 405250: <4FGL_J1159.3-2142_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:39 2022
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:26:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:26:03 2022
Terminated at Wed Jun 29 04:49:16 2022
Results reported at Wed Jun 29 04:49:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1692 179.843 -21.7038 677894401 678153601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.3-2142 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1333.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1393 sec.
    Turnaround time :                            16957 sec.

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

