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


Performing analysis on: 4FGL_J1159.0+0939_daily_bin1750
RA = 179.751, Dec = 9.6603
tmin = 692928001, tmax = 693187201
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='8744', job_status='RUN', time_executed='2022-12-20 00:42:01.895564', time_epoch_executed='1671525721.9' WHERE source_name='4FGL J1159.0+0939' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8744

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8744/ft1_4FGL_J1159.0+0939_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8744/ft2_4FGL_J1159.0+0939_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8744/ft1_4FGL_J1159.0+0939_daily_bin1750.fits outfile=/scratch/kocevski/8744/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin1750.fits ra=179.751 dec=9.6603 rad=12.0 tmin=692928001.0 tmax=693187201.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.54
user 3.30
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/8744/ft2_4FGL_J1159.0+0939_daily_bin1750.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8744/ft2_4FGL_J1159.0+0939_daily_bin1750.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/8744/ft1_filteredMKT_4FGL_J1159.0+0939_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/8744/ft1_filtered_4FGL_J1159.0+0939_daily_bin1750.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.50
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 574

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8744/ft1_filtered_4FGL_J1159.0+0939_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/8744/ft2_4FGL_J1159.0+0939_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/8744/ltcube_692928001_693187201_4FGL_J1159.0+0939_daily_bin1750.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/8744/ft2_4FGL_J1159.0+0939_daily_bin1750.fits
.....................!
real 11.92
user 11.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8744/ft1_filtered_4FGL_J1159.0+0939_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/8744/ft2_4FGL_J1159.0+0939_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/8744/ltcube_692928001_693187201_4FGL_J1159.0+0939_daily_bin1750.fits outfile=/scratch/kocevski/8744/expmap_692928001_693187201_4FGL_J1159.0+0939_daily_bin1750.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/8744/ltcube_692928001_693187201_4FGL_J1159.0+0939_daily_bin1750.fits
.....................!
real 191.74
user 186.12
sys 5.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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1159.0+0939 @ 179.751 9.6603

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/8744/ft1_filtered_4FGL_J1159.0+0939_daily_bin1750.fits scfile=/scratch/kocevski/8744/ft2_4FGL_J1159.0+0939_daily_bin1750.fits outfile=/scratch/kocevski/8744/cmap_692928001_693187201_4FGL_J1159.0+0939_daily_bin1750.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.751 yref=9.6603 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.60
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8744/ft1_filtered_4FGL_J1159.0+0939_daily_bin1750.fits scfile=/scratch/kocevski/8744/ft2_4FGL_J1159.0+0939_daily_bin1750.fits outfile=/scratch/kocevski/8744/cmap_HighResolution_692928001_693187201_4FGL_J1159.0+0939_daily_bin1750.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.751 yref=9.6603 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/8744/ft1_filtered_4FGL_J1159.0+0939_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/8744/ft2_4FGL_J1159.0+0939_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/8744/Model_4FGL_J1159.0+0939_daily_bin1750.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/8744/ft1_filtered_4FGL_J1159.0+0939_daily_bin1750.fits.....................!
real 59.24
user 57.82
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/8744/ft1_filtered_4FGL_J1159.0+0939_daily_bin1750.fits', '/scratch/kocevski/8744/ft2_4FGL_J1159.0+0939_daily_bin1750.fits', expMap='/scratch/kocevski/8744/expmap_692928001_693187201_4FGL_J1159.0+0939_daily_bin1750.fits', expCube='/scratch/kocevski/8744/ltcube_692928001_693187201_4FGL_J1159.0+0939_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/8744/Model_4FGL_J1159.0+0939_daily_bin1750.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.0+0939'

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  2.838e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/8744/ft1_filtered_4FGL_J1159.0+0939_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/8744/ft2_4FGL_J1159.0+0939_daily_bin1750.fits
Exposure map: /scratch/kocevski/8744/expmap_692928001_693187201_4FGL_J1159.0+0939_daily_bin1750.fits
Exposure cube: /scratch/kocevski/8744/ltcube_692928001_693187201_4FGL_J1159.0+0939_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/8744/Model_4FGL_J1159.0+0939_daily_bin1750.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) = 6285.07626643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40548E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .13977E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    8.0089       1.0000          .0000       .10000E+07
     4 'Prefactor '    .77801E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10619E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .79747E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .35564E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .47443E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .61610E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    10.311       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.8133       1.0000          .0000       .10000E+07
    12 'Prefactor '    .35294E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .12034E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .20714E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    20.963       1.0000          .0000       .10000E+07
    16 'norm      '    6.6615       1.0000          .0000       .10000E+07
    17 'Prefactor '    .42823E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .93700E-01   1.0000          .0000       .10000E+07
    19 'norm      '    1.1374       1.0000          .0000       .10000E+07
    20 'Prefactor '    8.8078       1.0000          .0000       .10000E+07
    21 'norm      '    .93665       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.3480       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83945       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6285.061     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     1887 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        32.809        .74413E-06** at limit **
   2  Prefactor      .0000        1.5116        .11299E-06** at limit **
   3  Prefactor     8.1355        8.8719        .24013E-06   -.83585E-03
   4  Prefactor     .11102E-09    126.35        .34252E-05** at limit **
   5  Prefactor      .0000        5.0253        .55244E-06** at limit **
   6  Prefactor     .33307E-09    40.151        .83595E-05** at limit **
   7  Prefactor      .0000        23.070       -.66059E-06** at limit **
   8  Prefactor      .0000        1.1973       -.71084E-07** at limit **
   9  Prefactor     .87153E-08    46.187       -.98727E-06** at limit **
  10  Prefactor     12.160        46.316        .73669E-05    .50812E-03
  11  Prefactor     4.2622        5.4689       -.84217E-06    .45253E-02
  12  Prefactor      .0000        .50739       -.63600E-09** at limit **
  13  Prefactor     .55511E-10    7.6961        .10314E-05** at limit **
  14  Prefactor      .0000        14.245        .46117E-06** at limit **
  15  Prefactor     20.788        1.5275       -.32111E-07    .40752E-02
  16  norm          6.6417        4.2218       -.27385E-06    .10556E-02
  17  Prefactor     .55511E-10    18.191       -.85659E-06** at limit **
  18  norm          .29546E-05    4.6773       -.11043E-05** at limit **
  19  norm          1.1383        .58370        .12475E-07    .85975E-03
  20  Prefactor     8.8698        10.011       -.49233E-06    .49422E-03
  21  norm          .93641        1.2123        .45281E-07    .11641E-04
  22  Normalizat    1.3453        .23272       -.23910E-05    .13461E-04
  23  Prefactor     .84054        .20317       -.66263E-05    .21617E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  Prefactor  = 8.13548
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 8.71525e-09
  Prefactor  = 12.16
  Prefactor  = 4.26223
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 20.7883
  norm       = 6.64165
  Prefactor  = 5.55112e-11
  norm       = 2.95458e-06
  norm       = 1.13829
  Prefactor  = 8.86981
  norm       = 0.936408
  Normalizat = 1.3453
  Prefactor  = 0.840545
 **********
 **   18 **HESSE 
 **********

 FCN=   6285.061     FROM HESSE     STATUS=OK           436 CALLS     2323 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        6.2001        .11108E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.4747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1355        8.8710        .35405E-03   -1.5651    
   4  Prefactor     .11102E-09    125.49        .14569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        5.0206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33307E-09    5.6608        .10354E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        23.036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.1940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .87153E-08    47.083        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.160        47.742        .31180E-03   -1.5638    
  11  Prefactor     4.2622        74.507        .51664E-03   -1.5667    
  12  Prefactor      .0000        .50730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    1.2425        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        14.215        .16990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.788        17.759        .21847E-03   -1.5617    
  16  norm          6.6417        4.4755        .38855E-03   -1.5656    
  17  Prefactor     .55511E-10    18.216        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .29546E-05    27.138        .14102E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.1383        .59908        .91157E-03   -1.5687    
  20  Prefactor     8.8698        10.029        .33750E-03   -1.5648    
  21  norm          .93641        1.2207        .43258E-03   -1.5689    
  22  Normalizat    1.3453        .19815        .54808E-01   -.82224    
  23  Prefactor     .84054        .17143        .44228E-01   -.98251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00656e-08
Minuit parameter uncertainties:
  1  5.23823e-06
  2  9.00119e-07
  3  8.87102
  4  0.000241545
  5  1.50529e-05
  6  8.86935e-05
  7  5.04663e-06
  8  4.05712e-07
  9  0.0012822
  10  47.7435
  11  35.6412
  12  2.86653e-07
  13  1.66163e-05
  14  1.96109e-05
  15  17.7589
  16  4.47551
  17  4.53585e-05
  18  0.0179091
  19  0.599075
  20  10.0288
  21  1.22069
  22  0.198262
  23  0.171543
Done.

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

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  0.000e+00  1.505e-05  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  8.405e-01  1.715e-01  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  1.345e+00  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 179.751 9.660
Photon Flux Upper Limit: 5.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8744/likelihoodResults_692928001_693187201_4FGL_J1159.0+0939_daily_bin1750.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) = 6285.07062602
delta logL = -0.00966807215082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6285.06095795
delta logL = -2.31648300542e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33862E-08   1.0000          .0000       .10000E+07
     2 'Index     '    2.2118       1.0000          .0000       10.000    
     3 'Normalizat'    1.3453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84054       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6285.061     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      227 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.8832        .42118E-03** at limit **
   2  Index         .85019        .68185       -.75522E-04     .0000    
   3  Normalizat    1.3453        1.0706        .44589E-05    .96846E-05
   4  Prefactor     .84055        1.1879       -.28677E-05    .89382E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.850187
  Normalizat = 1.3453
  Prefactor  = 0.840546
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6285.061     FROM HESSE     STATUS=FAILED         9 CALLS      236 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.8832        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .16701E-01    .95941       -.75522E-04   -.97904    
   3  Normalizat    1.3453        1.0706        .44589E-05   -.82224    
   4  Prefactor     .84055        1.1879       -.28677E-05   -.98251    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.47679e-11
Minuit parameter uncertainties:
  1  4.60042e-06
  2  0.688833
  3  1.08918
  4  1.2276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8744': 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): 101
logL (Free Index) = 6285.06095795
delta logL = -1.72803993337e-11

Extracting fit parameters...

4FGL J1159.0+0939
   Spectrum: PowerLaw
301    Prefactor:  0.000e+00  4.600e-06  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  8.502e-01  6.888e-01  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
616    Prefactor:  8.405e-01  1.228e+00  0.000e+00  1.000e+01 ( 1.000e+00)
617        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
618        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
615   Normalization:  1.345e+00  1.089e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 179.751 9.660

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/8744/cmap_HighResolution_692928001_693187201_4FGL_J1159.0+0939_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-03', job_status='DONE', photon_flux_upper_limit='5.60e-08', time_completed='2022-12-20 00:52:30.932882', job_id='8744', GAL2='0.84', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1671526350.93', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-1.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1750' AND source_name='4FGL J1159.0+0939' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 00:52:30 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 8744: <4FGL_J1159.0+0939_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1159.0+0939_daily_bin1750> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec 20 00:40:18 2022
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:40:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:40:20 2022
Terminated at Tue Dec 20 00:52:31 2022
Results reported at Tue Dec 20 00:52:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.0+0939_daily_bin1750 179.751 9.6603 692928001 693187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.0+0939 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   629.58 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

