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


Performing analysis on: 4FGL_J1838.8+4802_daily_bin1748
RA = 279.714, Dec = 48.0412
tmin = 692409601, tmax = 692668801
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='892621', job_status='RUN', time_executed='2022-12-14 01:02:19.838758', time_epoch_executed='1671008539.84' WHERE source_name='4FGL J1838.8+4802' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892621/ft1_4FGL_J1838.8+4802_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892621/ft2_4FGL_J1838.8+4802_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892621/ft1_4FGL_J1838.8+4802_daily_bin1748.fits outfile=/scratch/kocevski/892621/ft1_filteredMKT_4FGL_J1838.8+4802_daily_bin1748.fits ra=279.714 dec=48.0412 rad=12.0 tmin=692409601.0 tmax=692668801.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.61
user 3.37
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/892621/ft2_4FGL_J1838.8+4802_daily_bin1748.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/892621/ft2_4FGL_J1838.8+4802_daily_bin1748.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/892621/ft1_filteredMKT_4FGL_J1838.8+4802_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/892621/ft1_filtered_4FGL_J1838.8+4802_daily_bin1748.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 944

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/892621/ft1_filtered_4FGL_J1838.8+4802_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/892621/ft2_4FGL_J1838.8+4802_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/892621/ltcube_692409601_692668801_4FGL_J1838.8+4802_daily_bin1748.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/892621/ft2_4FGL_J1838.8+4802_daily_bin1748.fits
.....................!
real 12.53
user 11.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892621/ft1_filtered_4FGL_J1838.8+4802_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/892621/ft2_4FGL_J1838.8+4802_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/892621/ltcube_692409601_692668801_4FGL_J1838.8+4802_daily_bin1748.fits outfile=/scratch/kocevski/892621/expmap_692409601_692668801_4FGL_J1838.8+4802_daily_bin1748.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/892621/ltcube_692409601_692668801_4FGL_J1838.8+4802_daily_bin1748.fits
.....................!
real 191.19
user 185.80
sys 4.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
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 212 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1838.8+4802 @ 279.714 48.0412

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/892621/ft1_filtered_4FGL_J1838.8+4802_daily_bin1748.fits scfile=/scratch/kocevski/892621/ft2_4FGL_J1838.8+4802_daily_bin1748.fits outfile=/scratch/kocevski/892621/cmap_692409601_692668801_4FGL_J1838.8+4802_daily_bin1748.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=279.714 yref=48.0412 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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892621/ft1_filtered_4FGL_J1838.8+4802_daily_bin1748.fits scfile=/scratch/kocevski/892621/ft2_4FGL_J1838.8+4802_daily_bin1748.fits outfile=/scratch/kocevski/892621/cmap_HighResolution_692409601_692668801_4FGL_J1838.8+4802_daily_bin1748.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=279.714 yref=48.0412 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/892621/ft1_filtered_4FGL_J1838.8+4802_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/892621/ft2_4FGL_J1838.8+4802_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/892621/Model_4FGL_J1838.8+4802_daily_bin1748.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 Cygnus Cocoon
adding source EG_v02
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/892621/ft1_filtered_4FGL_J1838.8+4802_daily_bin1748.fits.....................!
real 95.76
user 94.30
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/892621/ft1_filtered_4FGL_J1838.8+4802_daily_bin1748.fits', '/scratch/kocevski/892621/ft2_4FGL_J1838.8+4802_daily_bin1748.fits', expMap='/scratch/kocevski/892621/expmap_692409601_692668801_4FGL_J1838.8+4802_daily_bin1748.fits', expCube='/scratch/kocevski/892621/ltcube_692409601_692668801_4FGL_J1838.8+4802_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/892621/Model_4FGL_J1838.8+4802_daily_bin1748.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1838.8+4802'

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  8.223e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
374        alpha:  1.764e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  4.590e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/892621/ft1_filtered_4FGL_J1838.8+4802_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/892621/ft2_4FGL_J1838.8+4802_daily_bin1748.fits
Exposure map: /scratch/kocevski/892621/expmap_692409601_692668801_4FGL_J1838.8+4802_daily_bin1748.fits
Exposure cube: /scratch/kocevski/892621/ltcube_692409601_692668801_4FGL_J1838.8+4802_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/892621/Model_4FGL_J1838.8+4802_daily_bin1748.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) = 9714.12147922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7197       1.0000          .0000       .10000E+07
     2 'norm      '    1.4938       1.0000          .0000       .10000E+07
     3 'Prefactor '    64.440       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33307E-08   1.0000          .0000       .10000E+07
     5 'Prefactor '    10.852       1.0000          .0000       .10000E+07
     6 'Prefactor '    8.7675       1.0000          .0000       .10000E+07
     7 'norm      '    1.6850       1.0000          .0000       .10000E+07
     8 'Prefactor '    .56090       1.0000          .0000       .10000E+07
     9 'norm      '    .75944E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .25983E-03   1.0000          .0000       .10000E+07
    11 'norm      '    14.263       1.0000          .0000       .10000E+07
    12 'Prefactor '    .90821       1.0000          .0000       .10000E+07
    13 'norm      '    .91211       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.4187       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .85427       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9714.111     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     1010 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7189        2.9658        .21679E-06   -.15376E-02
   2  norm          1.4852        3.2826       -.18303E-06    .46992E-03
   3  Prefactor     65.148        26.664        .49453E-06   -.30967    
   4  Prefactor      .0000        1.9406       -.10080E-07** at limit **
   5  Prefactor     11.733        27.986       -.17572E-05   -.47131E-01
   6  Prefactor     8.7453        10.814        .60569E-06    .96181E-02
   7  norm          1.6542        6.8377        .26984E-06   -.15023E-02
   8  Prefactor     .53931E-03    318.52       -.23954E-05** at limit **
   9  norm          .27756E-09    3.3629        .70275E-06** at limit **
  10  norm          .44409E-09    4.8492       -.34958E-06** at limit **
  11  norm          14.268        12.227       -.56885E-06    .12638E-01
  12  Prefactor     .90630        1.4017       -.23418E-06    .49421E-02
  13  norm          .91229        1.5397       -.25114E-06    .37676E-02
  14  Normalizat    1.4200        .23356        .27685E-04   -.31835E-04
  15  Prefactor     .85394        .10804       -.71814E-05   -.10444E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.71888
  norm       = 1.48521
  Prefactor  = 65.1476
  Prefactor  = 0
  Prefactor  = 11.7328
  Prefactor  = 8.74533
  norm       = 1.65419
  Prefactor  = 0.000539306
  norm       = 2.77556e-10
  norm       = 4.44089e-10
  norm       = 14.2683
  Prefactor  = 0.906299
  norm       = 0.912285
  Normalizat = 1.42
  Prefactor  = 0.853937
 **********
 **   18 **HESSE 
 **********

 FCN=   9714.111     FROM HESSE     STATUS=OK           222 CALLS     1232 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7189        2.9695        .52334E-03   -1.5669    
   2  norm          1.4852        3.3506        .87646E-03   -1.5684    
   3  Prefactor     65.148        52.248        .12458E-03   -1.5547    
   4  Prefactor      .0000        1.9354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.733        28.586        .30388E-03   -1.5639    
   6  Prefactor     8.7453        10.848        .33828E-03   -1.5649    
   7  norm          1.6542        6.9354        .81095E-03   -1.5682    
   8  Prefactor     .53931E-03    12.126        .10008E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .27756E-09    3.3604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .44409E-09    4.8545        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.268        12.235        .26495E-03   -1.5632    
  12  Prefactor     .90630        1.4182        .45194E-03   -1.5689    
  13  norm          .91229        1.5539        .44926E-03   -1.5689    
  14  Normalizat    1.4200        .20255        .73074E-01   -.80052    
  15  Prefactor     .85394        .91862E-01    .44419E-01   -.97770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89823e-06
Minuit parameter uncertainties:
  1  2.96946
  2  3.35062
  3  52.2488
  4  1.40745e-05
  5  28.5865
  6  10.8484
  7  6.77422
  8  0.161736
  9  6.17792e-05
  10  9.47314e-05
  11  12.2346
  12  1.41821
  13  1.55391
  14  0.202669
  15  0.0918787
Done.

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

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  1.427e+01  1.223e+01  0.000e+00  1.000e+06 ( 1.000e-13)
374        alpha:  1.764e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
375         beta:  4.590e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  8.539e-01  9.188e-02  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
722   Normalization:  1.420e+00  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.02
Ra Dec: 279.714 48.041
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 2.31e-08 +/- 1.98e-08
Energy Flux (Fixed Index): 2.88e-05 +/- 2.47e-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) = 9713.84722174
delta logL = 0.263388691134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9713.81256438
delta logL = 0.298046053384

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9713.813     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      218 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.742        9.8214        .30522E-03   -.40315E-02
   2  alpha         1.2366        .44184        .50000       -.55809E-04
   3  Normalizat    1.4288        .19358        .72881E-01    .11687E-04
   4  Prefactor     .85425        .91337E-01    .44420E-01    .72655E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.742
  alpha      = 1.23661
  Normalizat = 1.42876
  Prefactor  = 0.854251
 **********
 **   18 **HESSE 
 **********

 FCN=   9713.813     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.742        12.108        .61045E-04   -1.5642    
   2  alpha         1.2366        .62582        .19290E-01   -.52980    
   3  Normalizat    1.4288        .22683        .32249E-03   -.79800    
   4  Prefactor     .85425        .10738        .19015E-03   -.97759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42214e-12
Minuit parameter uncertainties:
  1  12.1082
  2  0.634948
  3  0.226993
  4  0.10741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892621': 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) = 9713.81256307
delta logL = 0.298047358985

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  1.074e+01  1.211e+01  0.000e+00  1.000e+06 ( 1.000e-13)
374        alpha:  1.237e+00  6.349e-01  0.000e+00  5.000e+00 ( 1.000e+00)
375         beta:  4.590e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
376           Eb:  1.698e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  8.543e-01  1.074e-01  0.000e+00  1.000e+01 ( 1.000e+00)
724        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
725        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
722   Normalization:  1.429e+00  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.60
Ra Dec: 279.714 48.041
Photon Index (Free Index): 1.24 +/- 0.63
Photon Flux (Free Index): 1.04e-08 +/- 1.32e-08
Energy Flux (Free Index): 6.07e-05 +/- 7.80e-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/892621/cmap_HighResolution_692409601_692668801_4FGL_J1838.8+4802_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.31e-08', energy_flux2='6.07e-05', photon_flux_error='1.98e-08', dlogl='2.98e-01', energy_flux='2.88e-05', photon_flux2='1.04e-08', job_status='DONE', time_completed='2022-12-14 01:12:50.930331', photon_index_error2='0.63', photon_index2='1.24', ts='6.02', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='7.80e-05', EG='1.42', time_epoch_completed='1671009170.93', return_code='0', job_id='892621', GAL2='0.85', EG2='1.43', return_code2='0', energy_flux_error='2.47e-05', photon_flux_error2='1.32e-08', ts2='6.60', photon_index='1.76' WHERE bin_id='1748' AND source_name='4FGL J1838.8+4802' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 01:12:50 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 892621: <4FGL_J1838.8+4802_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1838.8+4802_daily_bin1748> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec 14 01:00:25 2022
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 01:00:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 01:00:26 2022
Terminated at Wed Dec 14 01:12:51 2022
Results reported at Wed Dec 14 01:12:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1838.8+4802_daily_bin1748 279.714 48.0412 692409601 692668801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1838.8+4802 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   631.55 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             325.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            746 sec.

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

