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 36 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_J1838.8+4802_daily_bin1764
RA = 279.714, Dec = 48.0412
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='459218', job_status='RUN', time_executed='2023-01-31 01:37:29.481196', time_epoch_executed='1675157849.48' WHERE source_name='4FGL J1838.8+4802' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/459218

Creating custom pfile directory:
/scratch/kocevski/459218/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/459218/ft1_4FGL_J1838.8+4802_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/459218/ft2_4FGL_J1838.8+4802_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/459218/ft1_4FGL_J1838.8+4802_daily_bin1764.fits outfile=/scratch/kocevski/459218/ft1_filteredMKT_4FGL_J1838.8+4802_daily_bin1764.fits ra=279.714 dec=48.0412 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.80
user 3.52
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/459218/ft2_4FGL_J1838.8+4802_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/459218/ft1_filteredMKT_4FGL_J1838.8+4802_daily_bin1764.fits evtable="EVENTS" outfile="/scratch/kocevski/459218/ft1_filtered_4FGL_J1838.8+4802_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.52
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 1072

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/459218/ft1_filtered_4FGL_J1838.8+4802_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/459218/ft2_4FGL_J1838.8+4802_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/459218/ltcube_696556801_696816001_4FGL_J1838.8+4802_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/459218/ft2_4FGL_J1838.8+4802_daily_bin1764.fits
.....................!
real 15.10
user 14.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/459218/ft1_filtered_4FGL_J1838.8+4802_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/459218/ft2_4FGL_J1838.8+4802_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/459218/ltcube_696556801_696816001_4FGL_J1838.8+4802_daily_bin1764.fits outfile=/scratch/kocevski/459218/expmap_696556801_696816001_4FGL_J1838.8+4802_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/459218/ltcube_696556801_696816001_4FGL_J1838.8+4802_daily_bin1764.fits
.....................!
real 192.90
user 187.84
sys 4.60

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/459218/ft1_filtered_4FGL_J1838.8+4802_daily_bin1764.fits scfile=/scratch/kocevski/459218/ft2_4FGL_J1838.8+4802_daily_bin1764.fits outfile=/scratch/kocevski/459218/cmap_696556801_696816001_4FGL_J1838.8+4802_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=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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/459218/ft1_filtered_4FGL_J1838.8+4802_daily_bin1764.fits scfile=/scratch/kocevski/459218/ft2_4FGL_J1838.8+4802_daily_bin1764.fits outfile=/scratch/kocevski/459218/cmap_HighResolution_696556801_696816001_4FGL_J1838.8+4802_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=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.56
user 0.41
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/459218/ft1_filtered_4FGL_J1838.8+4802_daily_bin1764.fits', '/scratch/kocevski/459218/ft2_4FGL_J1838.8+4802_daily_bin1764.fits', expMap='/scratch/kocevski/459218/expmap_696556801_696816001_4FGL_J1838.8+4802_daily_bin1764.fits', expCube='/scratch/kocevski/459218/ltcube_696556801_696816001_4FGL_J1838.8+4802_daily_bin1764.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/459218/Model_4FGL_J1838.8+4802_daily_bin1764.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/459218/ft1_filtered_4FGL_J1838.8+4802_daily_bin1764.fits
Spacecraft file(s): /scratch/kocevski/459218/ft2_4FGL_J1838.8+4802_daily_bin1764.fits
Exposure map: /scratch/kocevski/459218/expmap_696556801_696816001_4FGL_J1838.8+4802_daily_bin1764.fits
Exposure cube: /scratch/kocevski/459218/ltcube_696556801_696816001_4FGL_J1838.8+4802_daily_bin1764.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/459218/Model_4FGL_J1838.8+4802_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) = 10892.2720832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90812       1.0000          .0000       .10000E+07
     2 'norm      '    .87063E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    15.677       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.1536       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.0169       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.2333       1.0000          .0000       .10000E+07
     7 'norm      '    .50448E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .16722E-01   1.0000          .0000       .10000E+07
     9 'norm      '    .47787E-01   1.0000          .0000       .10000E+07
    10 'norm      '    3.3084       1.0000          .0000       .10000E+07
    11 'norm      '    9.4256       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.5323       1.0000          .0000       .10000E+07
    13 'norm      '    7.5210       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.2404       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .88805       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=   10892.18     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      803 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90218        2.1955       -.15301E-06   -.67090E-02
   2  norm           .0000        1.1555       -.22694E-07** at limit **
   3  Prefactor     15.247        16.362        .29801E-07   -.21747E-01
   4  Prefactor     1.1863        4.2024       -.25979E-07   -.87570E-03
   5  Prefactor     .27086        363.95        .22645E-06    .26335E-02
   6  Prefactor     4.2480        1.4749       -.34174E-07   -.22592E-02
   7  norm          .16653E-09    2.0447       -.31058E-07** at limit **
   8  Prefactor     .56344E-07    23.942        .13842E-06** at limit **
   9  norm          .15926E-06    31.672       -.68284E-07** at limit **
  10  norm          3.4037        1.8442       -.16535E-08   -.63146E-02
  11  norm          9.4133        2.9092        .18682E-07   -.96710E-01
  12  Prefactor     1.5312        1.6699        .15109E-07    .35175E-02
  13  norm          7.5211        2.8036       -.35824E-08   -.33559E-03
  14  Normalizat    1.2406        .21835       -.43074E-06    .19684E-03
  15  Prefactor     .88807        .10296        .78817E-06    .48781E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.902179
  norm       = 0
  Prefactor  = 15.2474
  Prefactor  = 1.18627
  Prefactor  = 0.270856
  Prefactor  = 4.24797
  norm       = 1.66533e-10
  Prefactor  = 5.63438e-08
  norm       = 1.59261e-07
  norm       = 3.40366
  norm       = 9.41326
  Prefactor  = 1.53123
  norm       = 7.5211
  Normalizat = 1.24059
  Prefactor  = 0.888065
 **********
 **   18 **HESSE 
 **********

 FCN=   10892.18     FROM HESSE     STATUS=OK           236 CALLS     1039 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90218        2.2644        .45201E-03   -1.5689    
   2  norm           .0000        1.1640        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.247        24.850        .25270E-03   -1.5630    
   4  Prefactor     1.1863        4.3392        .10756E-02   -1.5686    
   5  Prefactor     .27086        22.526        .18124E-01   -1.5698    
   6  Prefactor     4.2480        5.2976        .48950E-03   -1.5667    
   7  norm          .16653E-09    2.0493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .56344E-07    8.1508        .92178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .15926E-06    2.4465        .10070E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.4037        5.8978        .55633E-03   -1.5671    
  11  norm          9.4133        8.6851        .32618E-03   -1.5647    
  12  Prefactor     1.5312        1.6929        .86175E-03   -1.5683    
  13  norm          7.5211        2.8098        .36545E-03   -1.5653    
  14  Normalizat    1.2406        .18818        .74257E-01   -.85358    
  15  Prefactor     .88807        .86562E-01    .44853E-01   -.96559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03194e-07
Minuit parameter uncertainties:
  1  2.26438
  2  9.13691e-06
  3  24.8497
  4  4.33921
  5  4.94017
  6  5.29762
  7  3.42842e-05
  8  0.00135526
  9  0.00124851
  10  5.89781
  11  8.68507
  12  1.69289
  13  2.80978
  14  0.188284
  15  0.0865749
Done.

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

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  9.413e+00  8.685e+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

GAL_V02
   Spectrum: PowerLaw
723    Prefactor:  8.881e-01  8.657e-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.241e+00  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.32
Ra Dec: 279.714 48.041
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 1.53e-08 +/- 1.41e-08
Energy Flux (Fixed Index): 1.90e-05 +/- 1.75e-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) = 10891.8094039
delta logL = 0.367150768605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10891.7529001
delta logL = 0.423654586524

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2869       1.0000          .0000       .10000E+07
     2 'alpha     '    1.1222       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88814       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=   10891.75     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      213 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2668        6.0992        .40010E-03   -.16346E-02
   2  alpha         1.1204        .45152        .50000       -.53112E-04
   3  Normalizat    1.2473        .17830        .74088E-01   -.28730E-04
   4  Prefactor     .88820        .86012E-01    .44854E-01   -.10531E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.2668
  alpha      = 1.1204
  Normalizat = 1.24727
  Prefactor  = 0.888198
 **********
 **   18 **HESSE 
 **********

 FCN=   10891.75     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2668        8.0531        .16004E-04   -1.5658    
   2  alpha         1.1204        .63852        .22210E-01   -.58457    
   3  Normalizat    1.2473        .21165        .32787E-03   -.85154    
   4  Prefactor     .88820        .10232        .18299E-03   -.96555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57242e-09
Minuit parameter uncertainties:
  1  8.05312
  2  0.648948
  3  0.211797
  4  0.10234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/459218': 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) = 10891.7528963
delta logL = 0.423658388117

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  6.267e+00  8.053e+00  0.000e+00  1.000e+06 ( 1.000e-13)
374        alpha:  1.120e+00  6.489e-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.882e-01  1.023e-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.247e+00  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.16
Ra Dec: 279.714 48.041
Photon Index (Free Index): 1.12 +/- 0.65
Photon Flux (Free Index): 5.97e-09 +/- 7.61e-09
Energy Flux (Free Index): 4.81e-05 +/- 6.46e-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/459218/cmap_HighResolution_696556801_696816001_4FGL_J1838.8+4802_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.53e-08', energy_flux2='4.81e-05', photon_flux_error='1.41e-08', dlogl='4.24e-01', energy_flux='1.90e-05', photon_flux2='5.97e-09', job_status='DONE', time_completed='2023-01-31 01:48:28.250417', photon_index_error2='0.65', photon_index2='1.12', ts='4.32', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='6.46e-05', EG='1.24', time_epoch_completed='1675158508.25', return_code='0', job_id='459218', GAL2='0.89', EG2='1.25', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='7.61e-09', ts2='5.16', photon_index='1.76' WHERE bin_id='1764' AND source_name='4FGL J1838.8+4802' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 01:48:28 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 459218: <4FGL_J1838.8+4802_daily_bin1764> in cluster <slac> Done

Job <4FGL_J1838.8+4802_daily_bin1764> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Jan 31 01:35:15 2023
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 01:36:38 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:36:38 2023
Terminated at Tue Jan 31 01:48:29 2023
Results reported at Tue Jan 31 01:48:29 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1838.8+4802_daily_bin1764 279.714 48.0412 696556801 696816001 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 :                                   659.14 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             342.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            794 sec.

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

