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


Performing analysis on: 4FGL_J1018.1+1905_daily_bin1753
RA = 154.548, Dec = 19.0963
tmin = 693705601, tmax = 693964801
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='451390', job_status='RUN', time_executed='2022-12-29 00:45:25.311094', time_epoch_executed='1672303525.31' WHERE source_name='4FGL J1018.1+1905' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/451390

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/451390/ft1_4FGL_J1018.1+1905_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/451390/ft2_4FGL_J1018.1+1905_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/451390/ft1_4FGL_J1018.1+1905_daily_bin1753.fits outfile=/scratch/kocevski/451390/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1753.fits ra=154.548 dec=19.0963 rad=12.0 tmin=693705601.0 tmax=693964801.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 4.69
user 4.40
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/451390/ft2_4FGL_J1018.1+1905_daily_bin1753.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/451390/ft2_4FGL_J1018.1+1905_daily_bin1753.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/451390/ft1_filteredMKT_4FGL_J1018.1+1905_daily_bin1753.fits evtable="EVENTS" outfile="/scratch/kocevski/451390/ft1_filtered_4FGL_J1018.1+1905_daily_bin1753.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.54
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 501

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/451390/ft1_filtered_4FGL_J1018.1+1905_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/451390/ft2_4FGL_J1018.1+1905_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/451390/ltcube_693705601_693964801_4FGL_J1018.1+1905_daily_bin1753.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/451390/ft2_4FGL_J1018.1+1905_daily_bin1753.fits
.....................!
real 14.49
user 14.07
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/451390/ft1_filtered_4FGL_J1018.1+1905_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/451390/ft2_4FGL_J1018.1+1905_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/451390/ltcube_693705601_693964801_4FGL_J1018.1+1905_daily_bin1753.fits outfile=/scratch/kocevski/451390/expmap_693705601_693964801_4FGL_J1018.1+1905_daily_bin1753.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/451390/ltcube_693705601_693964801_4FGL_J1018.1+1905_daily_bin1753.fits
.....................!
real 191.87
user 186.47
sys 4.54

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

Setting source of interest to:
4FGL J1018.1+1905 @ 154.548 19.0963

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/451390/ft1_filtered_4FGL_J1018.1+1905_daily_bin1753.fits scfile=/scratch/kocevski/451390/ft2_4FGL_J1018.1+1905_daily_bin1753.fits outfile=/scratch/kocevski/451390/cmap_693705601_693964801_4FGL_J1018.1+1905_daily_bin1753.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=154.548 yref=19.0963 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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/451390/ft1_filtered_4FGL_J1018.1+1905_daily_bin1753.fits scfile=/scratch/kocevski/451390/ft2_4FGL_J1018.1+1905_daily_bin1753.fits outfile=/scratch/kocevski/451390/cmap_HighResolution_693705601_693964801_4FGL_J1018.1+1905_daily_bin1753.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=154.548 yref=19.0963 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/451390/ft1_filtered_4FGL_J1018.1+1905_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/451390/ft2_4FGL_J1018.1+1905_daily_bin1753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/451390/Model_4FGL_J1018.1+1905_daily_bin1753.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/451390/ft1_filtered_4FGL_J1018.1+1905_daily_bin1753.fits.....................!
real 52.10
user 50.73
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/451390/ft1_filtered_4FGL_J1018.1+1905_daily_bin1753.fits', '/scratch/kocevski/451390/ft2_4FGL_J1018.1+1905_daily_bin1753.fits', expMap='/scratch/kocevski/451390/expmap_693705601_693964801_4FGL_J1018.1+1905_daily_bin1753.fits', expCube='/scratch/kocevski/451390/ltcube_693705601_693964801_4FGL_J1018.1+1905_daily_bin1753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/451390/Model_4FGL_J1018.1+1905_daily_bin1753.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.1+1905'

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  4.691e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
211        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/451390/ft1_filtered_4FGL_J1018.1+1905_daily_bin1753.fits
Spacecraft file(s): /scratch/kocevski/451390/ft2_4FGL_J1018.1+1905_daily_bin1753.fits
Exposure map: /scratch/kocevski/451390/expmap_693705601_693964801_4FGL_J1018.1+1905_daily_bin1753.fits
Exposure cube: /scratch/kocevski/451390/ltcube_693705601_693964801_4FGL_J1018.1+1905_daily_bin1753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/451390/Model_4FGL_J1018.1+1905_daily_bin1753.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) = 5455.4486261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.942       1.0000          .0000       .10000E+07
     2 'norm      '    .79029       1.0000          .0000       .10000E+07
     3 'Prefactor '    .16909E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .34252E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.6340       1.0000          .0000       .10000E+07
     6 'norm      '    8.1127       1.0000          .0000       .10000E+07
     7 'Prefactor '    161.86       1.0000          .0000       .10000E+07
     8 'Prefactor '    .54316E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.8064       1.0000          .0000       .10000E+07
    10 'Prefactor '    .13592E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .23870E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    8.2575       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.2444       1.0000          .0000       .10000E+07
    14 'Prefactor '    21.058       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.0837       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .89413       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5455.425     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     1146 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.191        28.799       -.11757E-04    .16378E-01
   2  norm          .79081        1.1217        .14640E-05    .25421E-02
   3  Prefactor     .16653E-09    21.037       -.39507E-05** at limit **
   4  Prefactor     .11102E-09    1.3459        .33689E-05** at limit **
   5  Prefactor     1.6345        1.7199       -.14761E-05   -.91895E-02
   6  norm          8.1512        6.8799        .36537E-05   -.19875E-02
   7  Prefactor     164.82        104.96        .11273E-04   -.65331E-02
   8  Prefactor     .11657E-08    14.866       -.66406E-05** at limit **
   9  Prefactor     2.8099        6.1400        .31082E-05    .59667E-03
  10  Prefactor     .92149E-08    7.6984       -.21913E-05** at limit **
  11  Prefactor     .38858E-09    10.439        .43630E-05** at limit **
  12  Prefactor     8.2095        10.516        .93900E-05   -.36178E-01
  13  Prefactor     3.3733        10.171       -.62201E-06    .34832E-02
  14  Prefactor     21.133        5.1126        .41983E-05    .14690    
  15  Normalizat    1.0826        .21149       -.16030E-04   -.53804E-04
  16  Prefactor     .89433        .19994        .17022E-04    .12353E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.1913
  norm       = 0.790811
  Prefactor  = 1.66533e-10
  Prefactor  = 1.11022e-10
  Prefactor  = 1.63448
  norm       = 8.15118
  Prefactor  = 164.817
  Prefactor  = 1.16573e-09
  Prefactor  = 2.8099
  Prefactor  = 9.21485e-09
  Prefactor  = 3.88578e-10
  Prefactor  = 8.20955
  Prefactor  = 3.37334
  Prefactor  = 21.133
  Normalizat = 1.08264
  Prefactor  = 0.894328
 **********
 **   18 **HESSE 
 **********

 FCN=   5455.425     FROM HESSE     STATUS=OK           241 CALLS     1387 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.191        29.012        .17425E-03   -1.5593    
   2  norm          .79081        1.1349        .53661E-03   -1.5690    
   3  Prefactor     .16653E-09    20.959        .17249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11102E-09    1.3475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6345        1.7417        .82673E-03   -1.5682    
   6  norm          8.1512        6.8819        .35176E-03   -1.5651    
   7  Prefactor     164.82        104.63        .78609E-04   -1.5451    
   8  Prefactor     .11657E-08    14.925        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8099        6.2170        .60697E-03   -1.5674    
  10  Prefactor     .92149E-08    1.1599        .29105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .38858E-09    10.358        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.2095        13.731        .34864E-03   -1.5651    
  13  Prefactor     3.3733        10.329        .56207E-03   -1.5671    
  14  Prefactor     21.133        22.528        .21798E-03   -1.5616    
  15  Normalizat    1.0826        .18191        .38704E-01   -.90311    
  16  Prefactor     .89433        .17219        .44930E-01   -.96340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86705e-07
Minuit parameter uncertainties:
  1  29.0116
  2  1.13489
  3  0.000119089
  4  2.12248e-05
  5  1.74167
  6  6.88188
  7  104.631
  8  0.000262537
  9  6.21706
  10  0.000206987
  11  0.000130199
  12  13.7309
  13  10.3289
  14  22.528
  15  0.18201
  16  0.172292
Done.

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

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  1.166e-09  2.625e-04  0.000e+00  1.000e+06 ( 1.000e-14)
211        Index:  2.062e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  8.943e-01  1.723e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.083e+00  1.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.548 19.096
Photon Flux Upper Limit: 4.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/451390/likelihoodResults_693705601_693964801_4FGL_J1018.1+1905_daily_bin1753.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) = 5455.45755688
delta logL = -0.03209737426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5455.42546111
delta logL = -1.60487888934e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14222E-04   1.0000          .0000       .10000E+07
     2 'Index     '    .67367       1.0000          .0000       10.000    
     3 'Normalizat'    1.0824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89455       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5455.425     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      208 TOTAL
                     EDM=   .33E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        12.104        .42118E-03** at limit **
   2  Index         2.4818        1.7633       -.30422E-04     .0000    
   3  Normalizat    1.0826        1.1691       -.66752E-05    .70113E-04
   4  Prefactor     .89433        1.2396        .52214E-05    .69312E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.48179
  Normalizat = 1.08265
  Prefactor  = 0.894326
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5455.425     FROM HESSE     STATUS=FAILED         9 CALLS      217 TOTAL
                     EDM=   .33E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        12.104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .69354        2.0076       -.30422E-04   -.52781    
   3  Normalizat    1.0826        1.1691       -.66752E-05   -.90311    
   4  Prefactor     .89433        1.2396        .52214E-05   -.96340    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.3356e-12
Minuit parameter uncertainties:
  1  3.4729e-06
  2  1.81636
  3  1.19891
  4  1.28231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/451390': 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) = 5455.4254595
delta logL = 1.04591890704e-10

Extracting fit parameters...

4FGL J1018.1+1905
   Spectrum: PowerLaw
210    Prefactor:  0.000e+00  3.473e-06  0.000e+00  1.000e+06 ( 1.000e-14)
211        Index:  2.482e+00  1.816e+00  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  2.487e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  8.943e-01  1.282e+00  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.083e+00  1.199e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.548 19.096

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/451390/cmap_HighResolution_693705601_693964801_4FGL_J1018.1+1905_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-03', job_status='DONE', photon_flux_upper_limit='4.60e-08', time_completed='2022-12-29 00:53:23.152749', job_id='451390', GAL2='0.89', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1672304003.15', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.05e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1753' AND source_name='4FGL J1018.1+1905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 00:53:23 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 451390: <4FGL_J1018.1+1905_daily_bin1753> in cluster <slac> Done

Job <4FGL_J1018.1+1905_daily_bin1753> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Dec 29 00:40:27 2022
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 00:43:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 00:43:25 2022
Terminated at Thu Dec 29 00:53:24 2022
Results reported at Thu Dec 29 00:53:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.1+1905_daily_bin1753 154.548 19.0963 693705601 693964801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.1+1905 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   479.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             328.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            777 sec.

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

