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


Performing analysis on: 4FGL_J1559.9+2319_weekly_bin751
RA = 239.978, Dec = 23.3196
tmin = 693187201, tmax = 693792001
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='679281', job_status='RUN', time_executed='2022-12-27 01:27:59.069121', time_epoch_executed='1672133279.07' WHERE source_name='4FGL J1559.9+2319' and cadence='weekly' and bin_id='751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/679281

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/679281/ft1_4FGL_J1559.9+2319_weekly_bin751.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/679281/ft2_4FGL_J1559.9+2319_weekly_bin751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/679281/ft1_4FGL_J1559.9+2319_weekly_bin751.fits outfile=/scratch/kocevski/679281/ft1_filteredMKT_4FGL_J1559.9+2319_weekly_bin751.fits ra=239.978 dec=23.3196 rad=12.0 tmin=693187201.0 tmax=693792001.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 7.58
user 7.28
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/679281/ft2_4FGL_J1559.9+2319_weekly_bin751.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/679281/ft1_filteredMKT_4FGL_J1559.9+2319_weekly_bin751.fits evtable="EVENTS" outfile="/scratch/kocevski/679281/ft1_filtered_4FGL_J1559.9+2319_weekly_bin751.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.57
user 0.39
sys 0.17

Number of photons that the gtmktime cut: 1482

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/679281/ft1_filtered_4FGL_J1559.9+2319_weekly_bin751.fits" evtable="EVENTS" scfile=/scratch/kocevski/679281/ft2_4FGL_J1559.9+2319_weekly_bin751.fits sctable="SC_DATA" outfile=/scratch/kocevski/679281/ltcube_693187201_693792001_4FGL_J1559.9+2319_weekly_bin751.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/679281/ft2_4FGL_J1559.9+2319_weekly_bin751.fits
.....................!
real 34.75
user 34.14
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/679281/ft1_filtered_4FGL_J1559.9+2319_weekly_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/679281/ft2_4FGL_J1559.9+2319_weekly_bin751.fits sctable="SC_DATA" expcube=/scratch/kocevski/679281/ltcube_693187201_693792001_4FGL_J1559.9+2319_weekly_bin751.fits outfile=/scratch/kocevski/679281/expmap_693187201_693792001_4FGL_J1559.9+2319_weekly_bin751.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/679281/ltcube_693187201_693792001_4FGL_J1559.9+2319_weekly_bin751.fits
.....................!
real 196.42
user 190.08
sys 5.71

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/679281/ft1_filtered_4FGL_J1559.9+2319_weekly_bin751.fits scfile=/scratch/kocevski/679281/ft2_4FGL_J1559.9+2319_weekly_bin751.fits outfile=/scratch/kocevski/679281/cmap_693187201_693792001_4FGL_J1559.9+2319_weekly_bin751.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.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/679281/ft1_filtered_4FGL_J1559.9+2319_weekly_bin751.fits scfile=/scratch/kocevski/679281/ft2_4FGL_J1559.9+2319_weekly_bin751.fits outfile=/scratch/kocevski/679281/cmap_HighResolution_693187201_693792001_4FGL_J1559.9+2319_weekly_bin751.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.61
user 0.43
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/679281/ft1_filtered_4FGL_J1559.9+2319_weekly_bin751.fits', '/scratch/kocevski/679281/ft2_4FGL_J1559.9+2319_weekly_bin751.fits', expMap='/scratch/kocevski/679281/expmap_693187201_693792001_4FGL_J1559.9+2319_weekly_bin751.fits', expCube='/scratch/kocevski/679281/ltcube_693187201_693792001_4FGL_J1559.9+2319_weekly_bin751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/679281/Model_4FGL_J1559.9+2319_weekly_bin751.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/679281/ft1_filtered_4FGL_J1559.9+2319_weekly_bin751.fits
Spacecraft file(s): /scratch/kocevski/679281/ft2_4FGL_J1559.9+2319_weekly_bin751.fits
Exposure map: /scratch/kocevski/679281/expmap_693187201_693792001_4FGL_J1559.9+2319_weekly_bin751.fits
Exposure cube: /scratch/kocevski/679281/ltcube_693187201_693792001_4FGL_J1559.9+2319_weekly_bin751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/679281/Model_4FGL_J1559.9+2319_weekly_bin751.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) = 15852.9329893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24805       1.0000          .0000       .10000E+07
     2 'norm      '    1.5344       1.0000          .0000       .10000E+07
     3 'Prefactor '    .69261E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .99295E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .28386E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    19.845       1.0000          .0000       .10000E+07
     7 'norm      '    2.6045       1.0000          .0000       .10000E+07
     8 'norm      '    .59269E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .34128E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .43965E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .21067E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    7.9765       1.0000          .0000       .10000E+07
    13 'Prefactor '    .66352       1.0000          .0000       .10000E+07
    14 'Normalizat'    .92920       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .99109       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=   15852.25     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      810 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97700E-08    41.089       -.54630E-05** at limit **
   2  norm          1.5345        .84298        .12896E-07   -.92799E-03
   3  Prefactor     .55511E-10    2.1432       -.25957E-06** at limit **
   4  Prefactor     .82767E-07    4.1491       -.40005E-05** at limit **
   5  Prefactor     .33584E-07    2.5267        .21445E-05** at limit **
   6  Prefactor     19.971        1.1299        .10476E-06   -.24510E-01
   7  norm          2.6031        1.5850       -.78849E-07    .78274E-03
   8  norm          .11102E-09    1.4362       -.42246E-06** at limit **
   9  Prefactor     .57082E-01    2.3534        .17724E-05** at limit **
  10  Prefactor     .51126E-07    2.1213       -.13388E-05** at limit **
  11  Prefactor     .11657E-08    4.8942       -.84134E-06** at limit **
  12  Prefactor     7.9584        1.2961       -.13494E-06    .26882E-01
  13  Prefactor     .65594        2.0455        .24834E-05    .43898E-01
  14  Normalizat    .92924        .14524       -.24333E-05    .11125E-03
  15  Prefactor     .99111        .87341E-01   -.97037E-06    .42511E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.76996e-09
  norm       = 1.5345
  Prefactor  = 5.55112e-11
  Prefactor  = 8.27671e-08
  Prefactor  = 3.35842e-08
  Prefactor  = 19.9712
  norm       = 2.60314
  norm       = 1.11022e-10
  Prefactor  = 0.0570821
  Prefactor  = 5.11258e-08
  Prefactor  = 1.16573e-09
  Prefactor  = 7.9584
  Prefactor  = 0.655937
  Normalizat = 0.929244
  Prefactor  = 0.991109
 **********
 **   18 **HESSE 
 **********

 FCN=   15852.25     FROM HESSE     STATUS=OK           228 CALLS     1038 TOTAL
                     EDM=   .70E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97700E-08    41.172        .10976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5345        .84491        .86095E-03   -1.5683    
   3  Prefactor     .55511E-10    2.1539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .82767E-07    24.041        .13948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .33584E-07    .56134        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.971        15.186        .22455E-03   -1.5619    
   7  norm          2.6031        1.5902        .63186E-03   -1.5676    
   8  norm          .11102E-09    1.4331        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .57082E-01    1.7653        .10686E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .51126E-07    .66120        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11657E-08    4.8765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.9584        9.1641        .35478E-03   -1.5652    
  13  Prefactor     .65594        4.3614        .63720E-03   -1.5692    
  14  Normalizat    .92924        .12383        .67321E-01   -.95440    
  15  Prefactor     .99111        .72821E-01    .46156E-01   -.93026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03478e-08
Minuit parameter uncertainties:
  1  0.00126804
  2  0.844909
  3  1.61309e-05
  4  0.0028212
  5  0.000274676
  6  15.1856
  7  1.59016
  8  2.37659e-05
  9  0.634871
  10  0.000367819
  11  0.000152198
  12  9.16409
  13  3.38279
  14  0.123871
  15  0.0728286
Done.

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

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  5.708e-02  6.349e-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:  9.911e-01  7.283e-02  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:  9.292e-01  1.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 239.978 23.320
Photon Flux Upper Limit: 4.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/679281/likelihoodResults_693187201_693792001_4FGL_J1559.9+2319_weekly_bin751.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15852.2479949
delta logL = 2.36284904531e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15852.2479947
delta logL = 4.71682142233e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57082E-01   1.0000          .0000       .10000E+07
     2 'Index     '    2.2559       1.0000          .0000       10.000    
     3 'Normalizat'    .92925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99111       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.

 FCN=   15852.25     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      274 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17252        2.2667        .10800E-01** at limit **
   2  Index         2.0647        1.1464        .50000       -.27258E-05
   3  Normalizat    .92931        .30928E-02    .67319E-01   -.79712E-06
   4  Prefactor     .99096        .18621E-02    .46156E-01   -.28033E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.172524
  Index      = 2.0647
  Normalizat = 0.929308
  Prefactor  = 0.990961
 **********
 **   18 **HESSE 
 **********

 FCN=   15852.25     FROM HESSE     STATUS=OK            35 CALLS      309 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17252        131.39        .37451E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0647        5.6896        .35716E-01   -.62742    
   3  Normalizat    .92931        .14415        .29780E-03   -.95438    
   4  Prefactor     .99096        .88007E-01    .17328E-03   -.93031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20577e-10
Minuit parameter uncertainties:
  1  9.52254
  2  8.89562
  3  0.144205
  4  0.0880198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/679281': 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) = 15852.2475804
delta logL = 0.000414784035456

Extracting fit parameters...

4FGL J1559.9+2319
   Spectrum: PowerLaw
263    Prefactor:  1.725e-01  9.523e+00  0.000e+00  1.000e+06 ( 1.000e-13)
264        Index:  2.065e+00  8.896e+00  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:  9.910e-01  8.802e-02  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:  9.293e-01  1.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 239.978 23.320

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/679281/cmap_HighResolution_693187201_693792001_4FGL_J1559.9+2319_weekly_bin751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-03', job_status='DONE', photon_flux_upper_limit='4.37e-08', time_completed='2022-12-27 01:40:59.778735', job_id='679281', GAL2='0.99', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1672134059.78', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.15e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='751' AND source_name='4FGL J1559.9+2319' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 27 01:40:59 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 679281: <4FGL_J1559.9+2319_weekly_bin751> in cluster <slac> Done

Job <4FGL_J1559.9+2319_weekly_bin751> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec 27 01:25:30 2022
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 27 01:26:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 27 01:26:35 2022
Terminated at Tue Dec 27 01:41:00 2022
Results reported at Tue Dec 27 01:41:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1559.9+2319_weekly_bin751 239.978 23.3196 693187201 693792001 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 :                                   780.03 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             324.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            930 sec.

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

