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 37 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.3-2142_daily_bin1769
RA = 179.843, Dec = -21.7038
tmin = 697852801, tmax = 698112001
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='433387', job_status='RUN', time_executed='2023-02-15 00:41:20.536880', time_epoch_executed='1676450480.54' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433387

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433387/ft1_4FGL_J1159.3-2142_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433387/ft2_4FGL_J1159.3-2142_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433387/ft1_4FGL_J1159.3-2142_daily_bin1769.fits outfile=/scratch/kocevski/433387/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1769.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=697852801.0 tmax=698112001.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.35
user 4.12
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433387/ft2_4FGL_J1159.3-2142_daily_bin1769.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/433387/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1769.fits evtable="EVENTS" outfile="/scratch/kocevski/433387/ft1_filtered_4FGL_J1159.3-2142_daily_bin1769.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.48
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 620

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433387/ft1_filtered_4FGL_J1159.3-2142_daily_bin1769.fits" evtable="EVENTS" scfile=/scratch/kocevski/433387/ft2_4FGL_J1159.3-2142_daily_bin1769.fits sctable="SC_DATA" outfile=/scratch/kocevski/433387/ltcube_697852801_698112001_4FGL_J1159.3-2142_daily_bin1769.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/433387/ft2_4FGL_J1159.3-2142_daily_bin1769.fits
.....................!
real 11.99
user 11.67
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433387/ft1_filtered_4FGL_J1159.3-2142_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/433387/ft2_4FGL_J1159.3-2142_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/433387/ltcube_697852801_698112001_4FGL_J1159.3-2142_daily_bin1769.fits outfile=/scratch/kocevski/433387/expmap_697852801_698112001_4FGL_J1159.3-2142_daily_bin1769.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/433387/ltcube_697852801_698112001_4FGL_J1159.3-2142_daily_bin1769.fits
.....................!
real 190.67
user 186.24
sys 4.09

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/433387/ft1_filtered_4FGL_J1159.3-2142_daily_bin1769.fits scfile=/scratch/kocevski/433387/ft2_4FGL_J1159.3-2142_daily_bin1769.fits outfile=/scratch/kocevski/433387/cmap_697852801_698112001_4FGL_J1159.3-2142_daily_bin1769.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433387/ft1_filtered_4FGL_J1159.3-2142_daily_bin1769.fits scfile=/scratch/kocevski/433387/ft2_4FGL_J1159.3-2142_daily_bin1769.fits outfile=/scratch/kocevski/433387/cmap_HighResolution_697852801_698112001_4FGL_J1159.3-2142_daily_bin1769.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/433387/ft1_filtered_4FGL_J1159.3-2142_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/433387/ft2_4FGL_J1159.3-2142_daily_bin1769.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433387/Model_4FGL_J1159.3-2142_daily_bin1769.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/433387/ft1_filtered_4FGL_J1159.3-2142_daily_bin1769.fits....................!
real 60.90
user 59.67
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/433387/ft1_filtered_4FGL_J1159.3-2142_daily_bin1769.fits', '/scratch/kocevski/433387/ft2_4FGL_J1159.3-2142_daily_bin1769.fits', expMap='/scratch/kocevski/433387/expmap_697852801_698112001_4FGL_J1159.3-2142_daily_bin1769.fits', expCube='/scratch/kocevski/433387/ltcube_697852801_698112001_4FGL_J1159.3-2142_daily_bin1769.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/433387/Model_4FGL_J1159.3-2142_daily_bin1769.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  0.000e+00  1.000e+06 ( 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 -5.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/433387/ft1_filtered_4FGL_J1159.3-2142_daily_bin1769.fits
Spacecraft file(s): /scratch/kocevski/433387/ft2_4FGL_J1159.3-2142_daily_bin1769.fits
Exposure map: /scratch/kocevski/433387/expmap_697852801_698112001_4FGL_J1159.3-2142_daily_bin1769.fits
Exposure cube: /scratch/kocevski/433387/ltcube_697852801_698112001_4FGL_J1159.3-2142_daily_bin1769.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/433387/Model_4FGL_J1159.3-2142_daily_bin1769.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) = 6903.38373888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.466       1.0000          .0000       .10000E+07
     2 'Prefactor '    146.52       1.0000          .0000       .10000E+07
     3 'Prefactor '    18.566       1.0000          .0000       .10000E+07
     4 'norm      '    .19651E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    45.293       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49241E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .70610       1.0000          .0000       .10000E+07
     8 'Prefactor '    .50556E-02   1.0000          .0000       .10000E+07
     9 'norm      '    25.719       1.0000          .0000       .10000E+07
    10 'Prefactor '    .19520       1.0000          .0000       .10000E+07
    11 'norm      '    .25949E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .33583E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    62.684       1.0000          .0000       .10000E+07
    14 'Prefactor '    .37665E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .10228E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .20858E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .24551E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    7.7339       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.987       1.0000          .0000       .10000E+07
    20 'norm      '    2.8261       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.3837       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85120       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6903.331     FROM MIGRAD    STATUS=CONVERGED    193 CALLS     1885 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.805        49.104       -.13177E-05    .66864E-02
   2  Prefactor     147.50        141.57        .36242E-05   -.39732E-01
   3  Prefactor     18.583        13.439       -.21360E-06    .44569E-01
   4  norm           .0000        .38798        .97593E-07** at limit **
   5  Prefactor     45.347        11.876       -.31044E-06    .98234E-01
   6  Prefactor     .66613E-09    19.592       -.13694E-05** at limit **
   7  Prefactor     .71935        11.522       -.53631E-05   -.18112E-02
   8  Prefactor     .55511E-10    10.096       -.58364E-06** at limit **
   9  norm          25.517        26.320        .17488E-06   -.48466E-02
  10  Prefactor     .90730E-02    336.41       -.11315E-05** at limit **
  11  norm          .71843E-01    36.135       -.86536E-05** at limit **
  12  Prefactor     .16653E-09    5.3214       -.50569E-06** at limit **
  13  Prefactor     64.766        37.794        .14652E-05    .66580E-02
  14  Prefactor     .33307E-09    5.6855        .11261E-05** at limit **
  15  Prefactor     .72164E-09    14.500        .50612E-06** at limit **
  16  Prefactor     .55511E-10    28.136        .15645E-05** at limit **
  17  Prefactor     .33307E-09    6.9967       -.52101E-06** at limit **
  18  Prefactor     7.7356        2.7860       -.66438E-06   -.53486E-04
  19  Prefactor     12.904        12.250       -.15728E-05   -.57564E-01
  20  norm          2.8261        1.4768        .30530E-07    .61522E-03
  21  Normalizat    1.3824        .30287        .87477E-07    .18384E-03
  22  Prefactor     .85142        .15251       -.98913E-06    .25995E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.805
  Prefactor  = 147.5
  Prefactor  = 18.5832
  norm       = 0
  Prefactor  = 45.3466
  Prefactor  = 6.66134e-10
  Prefactor  = 0.719346
  Prefactor  = 5.55112e-11
  norm       = 25.5167
  Prefactor  = 0.00907304
  norm       = 0.0718431
  Prefactor  = 1.66533e-10
  Prefactor  = 64.7656
  Prefactor  = 3.33067e-10
  Prefactor  = 7.21645e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 3.33067e-10
  Prefactor  = 7.73556
  Prefactor  = 12.9037
  norm       = 2.82612
  Normalizat = 1.38237
  Prefactor  = 0.851416
 **********
 **   18 **HESSE 
 **********

 FCN=   6903.331     FROM HESSE     STATUS=OK           396 CALLS     2281 TOTAL
                     EDM=   .76E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.805        50.488        .14516E-03   -1.5577    
   2  Prefactor     147.50        156.36        .82620E-04   -1.5465    
   3  Prefactor     18.583        14.986        .23217E-03   -1.5622    
   4  norm           .0000        .38582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     45.347        14.912        .14860E-03   -1.5573    
   6  Prefactor     .66613E-09    19.594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .71935        11.657        .60214E-03   -1.5691    
   8  Prefactor     .55511E-10    10.110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          25.517        26.382        .19723E-03   -1.5607    
  10  Prefactor     .90730E-02    9.4714        .11862E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .71843E-01    3.9752        .51313E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16653E-09    5.3235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     64.766        37.832        .12631E-03   -1.5547    
  14  Prefactor     .33307E-09    5.6965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .72164E-09    14.513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    27.567        .16981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .33307E-09    6.9407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.7356        2.7882        .36048E-02   -1.5152    
  19  Prefactor     12.904        15.374        .27770E-03   -1.5636    
  20  norm          2.8261        1.4807        .60471E-03   -1.5674    
  21  Normalizat    1.3824        .25471        .74140E-01   -.81140    
  22  Prefactor     .85142        .12683        .44380E-01   -.97860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.58541e-07
Minuit parameter uncertainties:
  1  50.4888
  2  156.363
  3  14.9865
  4  7.95548e-08
  5  14.9121
  6  0.000227677
  7  5.79144
  8  4.87352e-05
  9  26.3823
  10  0.586293
  11  1.06882
  12  6.13768e-05
  13  37.8317
  14  8.4611e-05
  15  0.000208226
  16  8.41335e-05
  17  9.39414e-05
  18  2.7882
  19  15.374
  20  1.48066
  21  0.254942
  22  0.126877
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  7.184e-02  1.069e+00  0.000e+00  1.000e+06 ( 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 -5.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:  8.514e-01  1.269e-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:  1.382e+00  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/433387/likelihoodResults_697852801_698112001_4FGL_J1159.3-2142_daily_bin1769.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): 102
logL (Free Index) = 6903.32813279
delta logL = 0.0027628357002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6903.31457693
delta logL = 0.0163186893478

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36747       1.0000          .0000       .10000E+07
     2 'alpha     '    2.9788       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85234       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6903.315     FROM MIGRAD    STATUS=FAILED        90 CALLS      277 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36767        610.74        .19970E-03    .48409E-01
   2  alpha         2.9790        3.8264        .62177E-01    .16955E-03
   3  Normalizat    1.3756        .24932        .32879E-03    .67530E-04
   4  Prefactor     .85233        .12848        .20814E-03    .11011E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6903.315     FROM SIMPLEX   STATUS=UNCHANGED     95 CALLS      372 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36767        610.74        .20934E-04    .48409E-01
   2  alpha         2.9790        3.8264        .54789E-02    .16955E-03
   3  Normalizat    1.3756        .24932        .26042E-03    .67530E-04
   4  Prefactor     .85233        .12848        .11122E-03    .11011E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6903.315     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      404 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36766        4.5522        .39940E-04   -.33506E-02
   2  alpha         2.9790        3.7939        .12435E-01   -.11943E-04
   3  Normalizat    1.3756        .29513        .13151E-04    .67081E-04
   4  Prefactor     .85233        .15095        .83258E-05    .10924E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.367663
  alpha      = 2.97901
  Normalizat = 1.3756
  Prefactor  = 0.852334
 **********
 **   18 **HESSE 
 **********

 FCN=   6903.315     FROM HESSE     STATUS=OK            23 CALLS      427 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36766        3.9215        .15976E-05   -1.5696    
   2  alpha         2.9790        3.7327        .49742E-03    .19280    
   3  Normalizat    1.3756        .29477        .26303E-05   -.81337    
   4  Prefactor     .85233        .15073        .16652E-05   -.97827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09254e-10
Minuit parameter uncertainties:
  1  2.40148
  2  2.72621
  3  0.295132
  4  0.150802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433387': 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) = 6903.31457691
delta logL = 0.0163187099333

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.677e-01  2.401e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  2.979e+00  2.726e+00  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.306e-01  0.000e+00 -5.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:  8.523e-01  1.508e-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:  1.376e+00  2.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 179.843 -21.704

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/433387/cmap_HighResolution_697852801_698112001_4FGL_J1159.3-2142_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-05', job_status='DONE', photon_flux_upper_limit='9.07e-08', time_completed='2023-02-15 00:52:00.072859', job_id='433387', GAL2='0.85', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1676451120.07', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.63e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1769' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 00:52:00 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 433387: <4FGL_J1159.3-2142_daily_bin1769> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1769> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Feb 15 00:40:18 2023
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 00:40:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 00:40:18 2023
Terminated at Wed Feb 15 00:52:00 2023
Results reported at Wed Feb 15 00:52:00 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1769 179.843 -21.7038 697852801 698112001 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 :                                   641.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            702 sec.

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

