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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1771
RA = 179.884, Dec = 29.2448
tmin = 698371201, tmax = 698630401
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='546337', job_status='RUN', time_executed='2023-02-21 00:49:10.347515', time_epoch_executed='1676969350.35' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546337

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546337/ft1_4FGL_J1159.5+2914_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546337/ft2_4FGL_J1159.5+2914_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546337/ft1_4FGL_J1159.5+2914_daily_bin1771.fits outfile=/scratch/kocevski/546337/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1771.fits ra=179.884 dec=29.2448 rad=12.0 tmin=698371201.0 tmax=698630401.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.13
user 2.88
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546337/ft2_4FGL_J1159.5+2914_daily_bin1771.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/546337/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1771.fits evtable="EVENTS" outfile="/scratch/kocevski/546337/ft1_filtered_4FGL_J1159.5+2914_daily_bin1771.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.33
sys 0.15

Number of photons that the gtmktime cut: 60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546337/ft1_filtered_4FGL_J1159.5+2914_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/546337/ft2_4FGL_J1159.5+2914_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/546337/ltcube_698371201_698630401_4FGL_J1159.5+2914_daily_bin1771.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/546337/ft2_4FGL_J1159.5+2914_daily_bin1771.fits
.....................!
real 12.21
user 11.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546337/ft1_filtered_4FGL_J1159.5+2914_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/546337/ft2_4FGL_J1159.5+2914_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/546337/ltcube_698371201_698630401_4FGL_J1159.5+2914_daily_bin1771.fits outfile=/scratch/kocevski/546337/expmap_698371201_698630401_4FGL_J1159.5+2914_daily_bin1771.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/546337/ltcube_698371201_698630401_4FGL_J1159.5+2914_daily_bin1771.fits
.....................!
real 189.50
user 185.04
sys 4.10

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1159.5+2914 @ 179.884 29.2448

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/546337/ft1_filtered_4FGL_J1159.5+2914_daily_bin1771.fits scfile=/scratch/kocevski/546337/ft2_4FGL_J1159.5+2914_daily_bin1771.fits outfile=/scratch/kocevski/546337/cmap_698371201_698630401_4FGL_J1159.5+2914_daily_bin1771.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.884 yref=29.2448 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546337/ft1_filtered_4FGL_J1159.5+2914_daily_bin1771.fits scfile=/scratch/kocevski/546337/ft2_4FGL_J1159.5+2914_daily_bin1771.fits outfile=/scratch/kocevski/546337/cmap_HighResolution_698371201_698630401_4FGL_J1159.5+2914_daily_bin1771.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.884 yref=29.2448 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/546337/ft1_filtered_4FGL_J1159.5+2914_daily_bin1771.fits', '/scratch/kocevski/546337/ft2_4FGL_J1159.5+2914_daily_bin1771.fits', expMap='/scratch/kocevski/546337/expmap_698371201_698630401_4FGL_J1159.5+2914_daily_bin1771.fits', expCube='/scratch/kocevski/546337/ltcube_698371201_698630401_4FGL_J1159.5+2914_daily_bin1771.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/546337/Model_4FGL_J1159.5+2914_daily_bin1771.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.5+2914'

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.117e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
303        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  6.240e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/546337/ft1_filtered_4FGL_J1159.5+2914_daily_bin1771.fits
Spacecraft file(s): /scratch/kocevski/546337/ft2_4FGL_J1159.5+2914_daily_bin1771.fits
Exposure map: /scratch/kocevski/546337/expmap_698371201_698630401_4FGL_J1159.5+2914_daily_bin1771.fits
Exposure cube: /scratch/kocevski/546337/ltcube_698371201_698630401_4FGL_J1159.5+2914_daily_bin1771.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/546337/Model_4FGL_J1159.5+2914_daily_bin1771.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 694.76039477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 694.118361546

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5579       1.0000          .0000       .10000E+07
     2 'norm      '    9.2141       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.4048       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.9024       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.1501       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.4988       1.0000          .0000       .10000E+07
     7 'norm      '    .95878       1.0000          .0000       .10000E+07
     8 'Prefactor '    .77446       1.0000          .0000       .10000E+07
     9 'Prefactor '    .50041       1.0000          .0000       .10000E+07
    10 'norm      '    .29274E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    5.5132       1.0000          .0000       .10000E+07
    12 'Prefactor '    .35282E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .28438E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    7.6491       1.0000          .0000       .10000E+07
    15 'norm      '    57.374       1.0000          .0000       .10000E+07
    16 'Prefactor '    .79148E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .77199E-06   1.0000          .0000       .10000E+07
    18 'norm      '    15.002       1.0000          .0000       .10000E+07
    19 'Prefactor '    21.122       1.0000          .0000       .10000E+07
    20 'Prefactor '    .24332E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .27276E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .16459E-04   1.0000          .0000       .10000E+07
    23 'norm      '    .36249E-07   1.0000          .0000       .10000E+07
    24 'norm      '    17.895       1.0000          .0000       .10000E+07
    25 'Prefactor '    .24379E-02   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.7850       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .42005       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   693.9775     FROM MIGRAD    STATUS=CONVERGED    400 CALLS      584 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5579        1.0640         .0000         .0000    
   2  norm          88.335        550.77       -.29267E-05   -.10152    
   3  Prefactor     .24652E-05    319.42       -.38771E-07** at limit **
   4  Prefactor     1249.0        3518.6       -.77033E-05    .22536E-01
   5  Prefactor     .14324        12394.       -.43859E-05** at limit **
   6  Prefactor     .68323E-06    393.68       -.12598E-06** at limit **
   7  norm          .20514E-04    472.09       -.33533E-06** at limit **
   8  Prefactor     .65798E-04    239.01        .94907E-07** at limit **
   9  Prefactor     .55029E-04    225.75       -.23257E-06** at limit **
  10  norm          .21705E-06    28.410        .14902E-06** at limit **
  11  Prefactor     86.757        256.98       -.24407E-06    .35359E-01
  12  Prefactor     .83544E-07    45.461        .72297E-08** at limit **
  13  Prefactor     .28057E-05    53.402        .67005E-06** at limit **
  14  Prefactor     .35303E-02    826.68       -.13131E-05** at limit **
  15  norm          54.723        20.620        .13084E-07    .64187E-01
  16  Prefactor     .62728E-07    8.7038        .72758E-08** at limit **
  17  Prefactor     .27944E-06    4.9596        .96762E-08** at limit **
  18  norm          15.299        15.078        .20068E-07   -.71324E-02
  19  Prefactor     20.055        41.290       -.20311E-07   -.21519E-01
  20  Prefactor     .55511E-09    6.7930        .24515E-08** at limit **
  21  Prefactor     .39968E-07    4.4502        .68856E-09** at limit **
  22  Prefactor     .10936E-06    15.055       -.13762E-07** at limit **
  23  norm          .14988E-08    .42700        .15637E-08** at limit **
  24  norm          19.295        22.426        .80838E-08    .40754E-01
  25  Prefactor     .72053E-07    17.965        .32724E-08** at limit **
  26  Normalizat    1.6245        .98533        .10788E-04    .23629E-02
  27  Prefactor     .51043        .90677       -.17792E-04    .87696E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.5579
  norm       = 88.335
  Prefactor  = 2.46519e-06
  Prefactor  = 1249.04
  Prefactor  = 0.143244
  Prefactor  = 6.83231e-07
  norm       = 2.05137e-05
  Prefactor  = 6.57981e-05
  Prefactor  = 5.50285e-05
  norm       = 2.17049e-07
  Prefactor  = 86.7575
  Prefactor  = 8.35443e-08
  Prefactor  = 2.8057e-06
  Prefactor  = 0.00353031
  norm       = 54.723
  Prefactor  = 6.27276e-08
  Prefactor  = 2.79443e-07
  norm       = 15.2992
  Prefactor  = 20.0545
  Prefactor  = 5.55112e-10
  Prefactor  = 3.9968e-08
  Prefactor  = 1.09357e-07
  norm       = 1.4988e-09
  norm       = 19.2946
  Prefactor  = 7.20535e-08
  Normalizat = 1.62447
  Prefactor  = 0.510433
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   693.9775     FROM HESSE     STATUS=FAILED        11 CALLS      595 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63020.        63018.         .0000       -1.5683    
   2  norm          88.335        3.1007       -.29267E-05   -1.5520    
   3  Prefactor     .24652E-05    .20908       -.38771E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1249.0        26.621       -.77033E-05   -1.5001    
   5  Prefactor     .14324        .14189       -.43859E-05   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .68323E-06    .19119       -.12598E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .20514E-04    .44733E-01   -.33533E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .65798E-04    .75236E-01    .94907E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55029E-04    .15472       -.23257E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .21705E-06    .44347E-01    .14902E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     86.757        3.9833       -.24407E-06   -1.5522    
  12  Prefactor     .83544E-07    .65479        .72297E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .28057E-05    .68344        .67005E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .35303E-02    .32825E-01   -.13131E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          54.723        .97667        .13084E-07   -1.5560    
  16  Prefactor     .62728E-07    .44347E-01    .72758E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .27944E-06    .44347E-01    .96762E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.299        1.0104        .20068E-07   -1.5630    
  19  Prefactor     20.055        .97467       -.20311E-07   -1.5618    
  20  Prefactor     .55511E-09    .44347E-01    .24515E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .39968E-07    .44347E-01    .68856E-09   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10936E-06    .44347E-01   -.13762E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .14988E-08    .44347E-01    .15637E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          19.295        1.0388        .80838E-08   -1.5620    
  25  Prefactor     .72053E-07    .44347E-01    .32724E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.6245        .99097        .10788E-04   -.74338    
  27  Prefactor     .51043        .82737       -.17792E-04   -1.1150    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.21318e-10
Minuit parameter uncertainties:
  1  1.06395
  2  3.10074
  3  0.00143585
  4  26.6206
  5  0.141891
  6  0.000722851
  7  0.00191587
  8  0.00444991
  9  0.00583573
  10  0.000196215
  11  3.98328
  12  0.000467787
  13  0.00276951
  14  0.0215296
  15  0.976667
  16  0.000105497
  17  0.000222644
  18  1.0104
  19  0.974673
  20  9.74182e-06
  21  8.42228e-05
  22  0.000139294
  23  1.62326e-05
  24  1.03877
  25  0.000113045
  26  1.00338
  27  0.848214
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 693.977512221

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  5.472e+01  9.767e-01  0.000e+00  1.000e+06 ( 1.000e-11)
303        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  6.240e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  5.104e-01  8.482e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.624e+00  1.003e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.13
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.49e-06 +/- 2.65e-08
Energy Flux (Fixed Index): 6.65e-04 +/- 1.19e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 693.805171226
delta logL = 0.172340995015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 693.795623288
delta logL = 0.181888933475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    54.989       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3277       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57999       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   693.7956     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      191 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          54.994        19.106        .75201E-06   -.47297E-02
   2  alpha         2.3285        .36570       -.11872E-04   -.28328E-03
   3  Normalizat    1.5188        .74117       -.33262E-05    .55026E-05
   4  Prefactor     .58073        .74444       -.44260E-05   -.19615E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 54.9942
  alpha      = 2.3285
  Normalizat = 1.51875
  Prefactor  = 0.580735
 **********
 **   18 **HESSE 
 **********

 FCN=   693.7956     FROM HESSE     STATUS=OK            25 CALLS      216 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          54.994        19.144        .26973E-04   -1.5560    
   2  alpha         2.3285        .37657        .37468E-03   -.68653E-01
   3  Normalizat    1.5188        .87377        .28737E-03   -.77253    
   4  Prefactor     .58073        .86965        .45333E-03   -1.0840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05701e-09
Minuit parameter uncertainties:
  1  19.144
  2  0.378014
  3  0.882705
  4  0.891054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546337': 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) = 693.795620788
delta logL = 0.181891432732

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  5.499e+01  1.914e+01  0.000e+00  1.000e+06 ( 1.000e-11)
303        alpha:  2.329e+00  3.780e-01  0.000e+00  5.000e+00 ( 1.000e+00)
304         beta:  6.240e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  5.807e-01  8.911e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.519e+00  8.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.05
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.33 +/- 0.38
Photon Flux (Free Index): 1.80e-06 +/- 8.15e-07
Energy Flux (Free Index): 5.97e-04 +/- 2.21e-04

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/546337/cmap_HighResolution_698371201_698630401_4FGL_J1159.5+2914_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.49e-06', energy_flux2='5.97e-04', photon_flux_error='2.65e-08', dlogl='1.82e-01', energy_flux='6.65e-04', photon_flux2='1.80e-06', job_status='DONE', time_completed='2023-02-21 00:54:41.599060', photon_index_error2='0.38', photon_index2='2.33', ts='27.13', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', energy_flux_error2='2.21e-04', EG='1.62', time_epoch_completed='1676969681.6', return_code='101', job_id='546337', GAL2='0.58', EG2='1.52', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='8.15e-07', ts2='28.05', photon_index='2.10' WHERE bin_id='1771' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 00:54:41 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 546337: <4FGL_J1159.5+2914_daily_bin1771> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin1771> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Feb 21 00:45:17 2023
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 00:45:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 00:45:18 2023
Terminated at Tue Feb 21 00:54:42 2023
Results reported at Tue Feb 21 00:54:42 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1771 179.884 29.2448 698371201 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.5+2914 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   332.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            565 sec.

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

