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


Performing analysis on: 4FGL_J1559.9+2319_daily_bin1764
RA = 239.978, Dec = 23.3196
tmin = 696556801, tmax = 696816001
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='455476', job_status='RUN', time_executed='2023-01-31 01:21:12.116406', time_epoch_executed='1675156872.12' WHERE source_name='4FGL J1559.9+2319' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455476

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455476/ft1_4FGL_J1559.9+2319_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455476/ft2_4FGL_J1559.9+2319_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455476/ft1_4FGL_J1559.9+2319_daily_bin1764.fits outfile=/scratch/kocevski/455476/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin1764.fits ra=239.978 dec=23.3196 rad=12.0 tmin=696556801.0 tmax=696816001.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.82
user 3.48
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/455476/ft2_4FGL_J1559.9+2319_daily_bin1764.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/455476/ft2_4FGL_J1559.9+2319_daily_bin1764.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/455476/ft1_filteredMKT_4FGL_J1559.9+2319_daily_bin1764.fits evtable="EVENTS" outfile="/scratch/kocevski/455476/ft1_filtered_4FGL_J1559.9+2319_daily_bin1764.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.53
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 689

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455476/ft1_filtered_4FGL_J1559.9+2319_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/455476/ft2_4FGL_J1559.9+2319_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/455476/ltcube_696556801_696816001_4FGL_J1559.9+2319_daily_bin1764.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/455476/ft2_4FGL_J1559.9+2319_daily_bin1764.fits
.....................!
real 15.47
user 15.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455476/ft1_filtered_4FGL_J1559.9+2319_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/455476/ft2_4FGL_J1559.9+2319_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/455476/ltcube_696556801_696816001_4FGL_J1559.9+2319_daily_bin1764.fits outfile=/scratch/kocevski/455476/expmap_696556801_696816001_4FGL_J1559.9+2319_daily_bin1764.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/455476/ltcube_696556801_696816001_4FGL_J1559.9+2319_daily_bin1764.fits
.....................!
real 193.57
user 187.65
sys 5.49

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

Setting source of interest to:
4FGL J1559.9+2319 @ 239.978 23.3196

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/455476/ft1_filtered_4FGL_J1559.9+2319_daily_bin1764.fits scfile=/scratch/kocevski/455476/ft2_4FGL_J1559.9+2319_daily_bin1764.fits outfile=/scratch/kocevski/455476/cmap_696556801_696816001_4FGL_J1559.9+2319_daily_bin1764.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=239.978 yref=23.3196 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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455476/ft1_filtered_4FGL_J1559.9+2319_daily_bin1764.fits scfile=/scratch/kocevski/455476/ft2_4FGL_J1559.9+2319_daily_bin1764.fits outfile=/scratch/kocevski/455476/cmap_HighResolution_696556801_696816001_4FGL_J1559.9+2319_daily_bin1764.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=239.978 yref=23.3196 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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/455476/ft1_filtered_4FGL_J1559.9+2319_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/455476/ft2_4FGL_J1559.9+2319_daily_bin1764.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/455476/Model_4FGL_J1559.9+2319_daily_bin1764.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/455476/ft1_filtered_4FGL_J1559.9+2319_daily_bin1764.fits.....................!
real 59.84
user 57.80
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/455476/ft1_filtered_4FGL_J1559.9+2319_daily_bin1764.fits', '/scratch/kocevski/455476/ft2_4FGL_J1559.9+2319_daily_bin1764.fits', expMap='/scratch/kocevski/455476/expmap_696556801_696816001_4FGL_J1559.9+2319_daily_bin1764.fits', expCube='/scratch/kocevski/455476/ltcube_696556801_696816001_4FGL_J1559.9+2319_daily_bin1764.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/455476/Model_4FGL_J1559.9+2319_daily_bin1764.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1559.9+2319'

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  2.531e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
264        Index:  2.256e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/455476/ft1_filtered_4FGL_J1559.9+2319_daily_bin1764.fits
Spacecraft file(s): /scratch/kocevski/455476/ft2_4FGL_J1559.9+2319_daily_bin1764.fits
Exposure map: /scratch/kocevski/455476/expmap_696556801_696816001_4FGL_J1559.9+2319_daily_bin1764.fits
Exposure cube: /scratch/kocevski/455476/ltcube_696556801_696816001_4FGL_J1559.9+2319_daily_bin1764.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/455476/Model_4FGL_J1559.9+2319_daily_bin1764.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) = 7573.34916409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    117.20       1.0000          .0000       .10000E+07
     2 'norm      '    .28089E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .17637E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.8750       1.0000          .0000       .10000E+07
     5 'Prefactor '    .80491E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    .27075E-02   1.0000          .0000       .10000E+07
     7 'norm      '    8.1046       1.0000          .0000       .10000E+07
     8 'norm      '    72.881       1.0000          .0000       .10000E+07
     9 'Prefactor '    31.862       1.0000          .0000       .10000E+07
    10 'Prefactor '    .27355E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    8.9342       1.0000          .0000       .10000E+07
    12 'Prefactor '    .26526E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .11384E-01   1.0000          .0000       .10000E+07
    14 'Normalizat'    .72434       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.1046       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7573.347     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1088 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     117.51        62.922        .10567E-04   -.29826E-01
   2  norm           .0000        1.8800        .82832E-06** at limit **
   3  Prefactor     .38858E-09    2.3528        .11652E-05** at limit **
   4  Prefactor     7.8521        1.6472        .51408E-06    .29712E-03
   5  Prefactor     .11102E-09    .77226       -.10913E-05** at limit **
   6  Prefactor     .32205E-05    9.2018       -.10084E-05** at limit **
   7  norm          8.1043        3.3165       -.40418E-06   -.13067E-01
   8  norm          72.870        9.2682       -.13470E-05   -.16988    
   9  Prefactor     31.834        12.258       -.17263E-05   -.16356E-01
  10  Prefactor      .0000        1.8918        .15702E-06** at limit **
  11  Prefactor     8.9881        12.801        .33580E-05    .10816E-01
  12  Prefactor     .33436E-05    9.6812       -.15936E-05** at limit **
  13  Prefactor     .18874E-08    16.485        .16831E-05** at limit **
  14  Normalizat    .72425        .23084        .15456E-04    .43114E-03
  15  Prefactor     1.1046        .13972       -.10622E-04    .42749E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 117.515
  norm       = 0
  Prefactor  = 3.88578e-10
  Prefactor  = 7.85208
  Prefactor  = 1.11022e-10
  Prefactor  = 3.22048e-06
  norm       = 8.10429
  norm       = 72.87
  Prefactor  = 31.8341
  Prefactor  = 0
  Prefactor  = 8.98813
  Prefactor  = 3.3436e-06
  Prefactor  = 1.88738e-09
  Normalizat = 0.724252
  Prefactor  = 1.10463
 **********
 **   18 **HESSE 
 **********

 FCN=   7573.347     FROM HESSE     STATUS=OK           214 CALLS     1302 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     117.51        65.064        .92378E-04   -1.5491    
   2  norm           .0000        1.8052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .38858E-09    2.3508        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.8521        18.633        .35707E-03   -1.5652    
   5  Prefactor     .11102E-09    .77409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .32205E-05    15.573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.1043        3.3529        .35194E-03   -1.5651    
   8  norm          72.870        15.659        .11714E-03   -1.5537    
   9  Prefactor     31.834        16.244        .17718E-03   -1.5595    
  10  Prefactor      .0000        1.8887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.9881        13.155        .33509E-03   -1.5648    
  12  Prefactor     .33436E-05    16.368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .18874E-08    16.039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    .72425        .20364        .83516E-01   -1.0294    
  15  Prefactor     1.1046        .12187        .37413E-01   -.89319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50898e-07
Minuit parameter uncertainties:
  1  65.0646
  2  1.0242e-05
  3  5.83695e-05
  4  18.6336
  5  1.80163e-05
  6  0.0141635
  7  3.35294
  8  15.6586
  9  16.2438
  10  3.26532e-07
  11  13.1549
  12  0.0147956
  13  0.000349513
  14  0.203851
  15  0.1219
Done.

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

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  3.183e+01  1.624e+01  0.000e+00  1.000e+06 ( 1.000e-13)
264        Index:  2.256e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
265        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  1.105e+00  1.219e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  7.243e-01  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.58
Ra Dec: 239.978 23.320
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 5.70e-08
Energy Flux (Fixed Index): 4.55e-05 +/- 2.32e-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) = 7573.07802699
delta logL = 0.269287007568

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7573.00711661
delta logL = 0.340197384568

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.041       1.0000          .0000       .10000E+07
     2 'Index     '    2.7190       1.0000          .0000       10.000    
     3 'Normalizat'    .68170       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1227       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+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=   7573.007     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      278 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.039        29.057        .99922E-05   -.49447E-02
   2  Index         2.7191        .90399        .37389E-02   -.14477E-03
   3  Normalizat    .68165        .24157        .38005E-03   -.11454E-03
   4  Prefactor     1.1227        .14408        .18140E-03   -.43863E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0394
  Index      = 2.71914
  Normalizat = 0.681651
  Prefactor  = 1.12269
 **********
 **   18 **HESSE 
 **********

 FCN=   7573.007     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.039        19.772        .39969E-06   -1.5628    
   2  Index         2.7191        .61674        .14955E-03   -.47369    
   3  Normalizat    .68165        .23662        .15202E-04   -1.0462    
   4  Prefactor     1.1227        .14105        .36279E-04   -.88745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00828e-10
Minuit parameter uncertainties:
  1  19.7724
  2  0.618729
  3  0.236976
  4  0.141097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455476': 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) = 7573.00711646
delta logL = 0.340197540461

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  1.604e+01  1.977e+01  0.000e+00  1.000e+06 ( 1.000e-13)
264        Index:  2.719e+00  6.187e-01  0.000e+00  1.000e+01 (-1.000e+00)
265        Scale:  1.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  1.123e+00  1.411e-01  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  6.817e-01  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.26
Ra Dec: 239.978 23.320
Photon Index (Free Index): 2.72 +/- 0.62
Photon Flux (Free Index): 1.44e-07 +/- 7.29e-08
Energy Flux (Free Index): 3.41e-05 +/- 1.92e-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/455476/cmap_HighResolution_696556801_696816001_4FGL_J1559.9+2319_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='3.41e-05', photon_flux_error='5.70e-08', dlogl='3.40e-01', energy_flux='4.55e-05', photon_flux2='1.44e-07', job_status='DONE', time_completed='2023-01-31 01:29:40.610723', photon_index_error2='0.62', photon_index2='2.72', ts='5.58', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.92e-05', EG='0.72', time_epoch_completed='1675157380.61', return_code='0', job_id='455476', GAL2='1.12', EG2='0.68', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='7.29e-08', ts2='6.26', photon_index='2.26' WHERE bin_id='1764' AND source_name='4FGL J1559.9+2319' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 01:29:40 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 455476: <4FGL_J1559.9+2319_daily_bin1764> in cluster <slac> Done

Job <4FGL_J1559.9+2319_daily_bin1764> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Jan 31 01:20:20 2023
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 01:20:46 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 01:20:46 2023
Terminated at Tue Jan 31 01:29:41 2023
Results reported at Tue Jan 31 01:29:41 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1559.9+2319_daily_bin1764 239.978 23.3196 696556801 696816001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1559.9+2319 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   510.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   534 sec.
    Turnaround time :                            561 sec.

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

