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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1749
RA = 179.843, Dec = -21.7038
tmin = 692668801, tmax = 692928001
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='950492', job_status='RUN', time_executed='2022-12-17 00:42:53.705845', time_epoch_executed='1671266573.71' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950492

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950492/ft1_4FGL_J1159.3-2142_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950492/ft2_4FGL_J1159.3-2142_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950492/ft1_4FGL_J1159.3-2142_daily_bin1749.fits outfile=/scratch/kocevski/950492/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1749.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=692668801.0 tmax=692928001.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.65
user 3.42
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950492/ft2_4FGL_J1159.3-2142_daily_bin1749.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/950492/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/950492/ft1_filtered_4FGL_J1159.3-2142_daily_bin1749.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 953

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950492/ft1_filtered_4FGL_J1159.3-2142_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/950492/ft2_4FGL_J1159.3-2142_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/950492/ltcube_692668801_692928001_4FGL_J1159.3-2142_daily_bin1749.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/950492/ft2_4FGL_J1159.3-2142_daily_bin1749.fits
.....................!
real 12.16
user 11.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950492/ft1_filtered_4FGL_J1159.3-2142_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/950492/ft2_4FGL_J1159.3-2142_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/950492/ltcube_692668801_692928001_4FGL_J1159.3-2142_daily_bin1749.fits outfile=/scratch/kocevski/950492/expmap_692668801_692928001_4FGL_J1159.3-2142_daily_bin1749.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/950492/ltcube_692668801_692928001_4FGL_J1159.3-2142_daily_bin1749.fits
.....................!
real 189.78
user 184.92
sys 4.50

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/950492/ft1_filtered_4FGL_J1159.3-2142_daily_bin1749.fits scfile=/scratch/kocevski/950492/ft2_4FGL_J1159.3-2142_daily_bin1749.fits outfile=/scratch/kocevski/950492/cmap_692668801_692928001_4FGL_J1159.3-2142_daily_bin1749.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.53
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950492/ft1_filtered_4FGL_J1159.3-2142_daily_bin1749.fits scfile=/scratch/kocevski/950492/ft2_4FGL_J1159.3-2142_daily_bin1749.fits outfile=/scratch/kocevski/950492/cmap_HighResolution_692668801_692928001_4FGL_J1159.3-2142_daily_bin1749.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950492/ft1_filtered_4FGL_J1159.3-2142_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/950492/ft2_4FGL_J1159.3-2142_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950492/Model_4FGL_J1159.3-2142_daily_bin1749.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/950492/ft1_filtered_4FGL_J1159.3-2142_daily_bin1749.fits.....................!
real 84.01
user 82.60
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950492/ft1_filtered_4FGL_J1159.3-2142_daily_bin1749.fits', '/scratch/kocevski/950492/ft2_4FGL_J1159.3-2142_daily_bin1749.fits', expMap='/scratch/kocevski/950492/expmap_692668801_692928001_4FGL_J1159.3-2142_daily_bin1749.fits', expCube='/scratch/kocevski/950492/ltcube_692668801_692928001_4FGL_J1159.3-2142_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950492/Model_4FGL_J1159.3-2142_daily_bin1749.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/950492/ft1_filtered_4FGL_J1159.3-2142_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/950492/ft2_4FGL_J1159.3-2142_daily_bin1749.fits
Exposure map: /scratch/kocevski/950492/expmap_692668801_692928001_4FGL_J1159.3-2142_daily_bin1749.fits
Exposure cube: /scratch/kocevski/950492/ltcube_692668801_692928001_4FGL_J1159.3-2142_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950492/Model_4FGL_J1159.3-2142_daily_bin1749.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) = 10005.4809826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50529E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    24.806       1.0000          .0000       .10000E+07
     3 'Prefactor '    .48648E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .95146E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    103.63       1.0000          .0000       .10000E+07
     6 'Prefactor '    .86590E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .80492       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.043       1.0000          .0000       .10000E+07
     9 'norm      '    10.387       1.0000          .0000       .10000E+07
    10 'Prefactor '    .80658E-02   1.0000          .0000       .10000E+07
    11 'norm      '    4.9389       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.9229       1.0000          .0000       .10000E+07
    13 'Prefactor '    20.257       1.0000          .0000       .10000E+07
    14 'Prefactor '    20.392       1.0000          .0000       .10000E+07
    15 'Prefactor '    .39653E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .52533E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .54505E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    4.1831       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.044       1.0000          .0000       .10000E+07
    20 'norm      '    .86098E-07   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.3293       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93904       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=   10005.44     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1393 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-08    8.8395       -.12585E-06** at limit **
   2  Prefactor     23.323        40.231       -.71503E-07    .38941E-01
   3  Prefactor     .61062E-09    5.5523       -.26212E-06** at limit **
   4  norm           .0000        .29280        .67590E-08** at limit **
   5  Prefactor     103.64        6.6410       -.39133E-08    .25084    
   6  Prefactor     .13036E-04    29.152       -.36562E-06** at limit **
   7  Prefactor     .81544        7.1310       -.42689E-07   -.71817E-02
   8  Prefactor     10.023        5.9365       -.51576E-08   -.84076E-01
   9  norm          10.385        2.1309       -.75107E-09   -.40583E-01
  10  Prefactor     .81601E-08    27.510       -.62856E-06** at limit **
  11  norm          4.9398        3.8035       -.54603E-07   -.21884E-02
  12  Prefactor     4.9246        3.9110       -.32824E-07   -.33467E-03
  13  Prefactor     20.207        1.7554       -.97561E-08    .16017E-01
  14  Prefactor     20.377        11.064        .15239E-07   -.49265E-01
  15  Prefactor     .14433E-08    14.078        .40698E-07** at limit **
  16  Prefactor     .55597E-05    37.781       -.36885E-06** at limit **
  17  Prefactor     .66613E-09    5.7764       -.15928E-06** at limit **
  18  Prefactor     4.1838        1.8886        .59068E-06    .74945E-03
  19  Prefactor     12.111        4.1358        .38239E-08   -.10315    
  20  norm           .0000        .30446        .44673E-07** at limit **
  21  Normalizat    1.3297        .23590        .50471E-05    .33683E-03
  22  Prefactor     .93897        .12397       -.92472E-06    .42101E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-09
  Prefactor  = 23.3232
  Prefactor  = 6.10623e-10
  norm       = 0
  Prefactor  = 103.635
  Prefactor  = 1.30365e-05
  Prefactor  = 0.81544
  Prefactor  = 10.0228
  norm       = 10.3853
  Prefactor  = 8.16014e-09
  norm       = 4.93981
  Prefactor  = 4.92458
  Prefactor  = 20.2073
  Prefactor  = 20.3767
  Prefactor  = 1.44329e-09
  Prefactor  = 5.55966e-06
  Prefactor  = 6.66134e-10
  Prefactor  = 4.18384
  Prefactor  = 12.1111
  norm       = 0
  Normalizat = 1.32966
  Prefactor  = 0.938971
 **********
 **   18 **HESSE 
 **********

 FCN=   10005.44     FROM HESSE     STATUS=OK           386 CALLS     1779 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-08    8.8405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.323        43.954        .20082E-03   -1.5611    
   3  Prefactor     .61062E-09    5.5633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .29146        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     103.64        15.442        .98240E-04   -1.5504    
   6  Prefactor     .13036E-04    63.232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .81544        7.2820        .52569E-03   -1.5690    
   8  Prefactor     10.023        13.521        .31595E-03   -1.5645    
   9  norm          10.385        12.942        .31065E-03   -1.5644    
  10  Prefactor     .81601E-08    27.223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.9398        3.7988        .45232E-03   -1.5664    
  12  Prefactor     4.9246        4.1859        .45307E-03   -1.5664    
  13  Prefactor     20.207        28.936        .22226E-03   -1.5618    
  14  Prefactor     20.377        14.950        .22152E-03   -1.5618    
  15  Prefactor     .14433E-08    14.094        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55597E-05    56.109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .66613E-09    5.7236        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.1838        1.8892        .49263E-02   -1.5299    
  19  Prefactor     12.111        12.349        .28840E-03   -1.5638    
  20  norm           .0000        .30180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3297        .20411        .74252E-01   -.82685    
  22  Prefactor     .93897        .10508        .45501E-01   -.94792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18719e-06
Minuit parameter uncertainties:
  1  0.000279665
  2  43.9547
  3  0.00011868
  4  1.45761e-07
  5  15.4423
  6  0.0574227
  7  4.87364
  8  13.5206
  9  12.9416
  10  0.000942367
  11  3.79879
  12  4.18595
  13  28.9362
  14  14.9497
  15  0.0002845
  16  0.0353244
  17  0.000124771
  18  1.88924
  19  12.3488
  20  2.59089e-06
  21  0.204234
  22  0.105104
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  4.940e+00  3.799e+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:  9.390e-01  1.051e-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.330e+00  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.56
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 4.48e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 1.19e-05

TS (Fixed Index): 2.56
Ra Dec: 179.843 -21.704
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950492/likelihoodResults_692668801_692928001_4FGL_J1159.3-2142_daily_bin1749.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) = 10004.8141607
delta logL = 0.626150399414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10004.7869788
delta logL = 0.653332293219

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9439       1.0000          .0000       .10000E+07
     2 'alpha     '    3.1462       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2804       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95400       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=   10004.79     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      280 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9437        3.6699        .99462E-05   -.13762E-02
   2  alpha         3.1463        .80991        .13068E-01    .32664E-03
   3  Normalizat    1.2802        .23903        .33383E-03   -.19235E-03
   4  Prefactor     .95417        .12536        .20216E-03   -.37888E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.9437
  alpha      = 3.1463
  Normalizat = 1.28018
  Prefactor  = 0.954171
 **********
 **   18 **HESSE 
 **********

 FCN=   10004.79     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9437        3.1787        .39785E-06   -1.5674    
   2  alpha         3.1463        .70421        .26136E-02    .26149    
   3  Normalizat    1.2802        .23876        .13353E-04   -.84160    
   4  Prefactor     .95417        .12524        .40431E-04   -.94273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62064e-11
Minuit parameter uncertainties:
  1  3.17869
  2  0.714589
  3  0.238967
  4  0.125276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950492': 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) = 10004.7869779
delta logL = 0.653333236896

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  2.944e+00  3.179e+00  0.000e+00  1.000e+06 ( 1.000e-12)
309        alpha:  3.146e+00  7.146e-01  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:  9.542e-01  1.253e-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.280e+00  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.92
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 3.15 +/- 0.71
Photon Flux (Free Index): 8.36e-08 +/- 5.61e-08
Energy Flux (Free Index): 1.72e-05 +/- 1.06e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-05', comment='SUCCESS', photon_flux='4.48e-08', energy_flux2='1.72e-05', photon_flux_error='3.44e-08', dlogl='6.53e-01', energy_flux='1.55e-05', photon_flux2='8.36e-08', job_status='DONE', time_completed='2022-12-17 00:55:07.830918', photon_index_error2='0.71', photon_index2='3.15', ts='2.56', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.06e-05', EG='1.33', time_epoch_completed='1671267307.83', return_code='0', job_id='950492', GAL2='0.95', EG2='1.28', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='5.61e-08', ts2='3.92', photon_index='2.38' WHERE bin_id='1749' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:55:07 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 950492: <4FGL_J1159.3-2142_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1749> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Dec 17 00:40:14 2022
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:40:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:40:16 2022
Terminated at Sat Dec 17 00:55:08 2022
Results reported at Sat Dec 17 00:55:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1749 179.843 -21.7038 692668801 692928001 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 :                                   736.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            894 sec.

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

