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


Performing analysis on: 4FGL_J1838.8+4802_daily_bin1732
RA = 279.714, Dec = 48.0412
tmin = 688262401, tmax = 688521601
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='646112', job_status='RUN', time_executed='2022-10-27 00:30:32.381962', time_epoch_executed='1666855832.38' WHERE source_name='4FGL J1838.8+4802' and cadence='daily' and bin_id='1732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/646112

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/646112/ft1_4FGL_J1838.8+4802_daily_bin1732.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/646112/ft2_4FGL_J1838.8+4802_daily_bin1732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/646112/ft1_4FGL_J1838.8+4802_daily_bin1732.fits outfile=/scratch/kocevski/646112/ft1_filteredMKT_4FGL_J1838.8+4802_daily_bin1732.fits ra=279.714 dec=48.0412 rad=12.0 tmin=688262401.0 tmax=688521601.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.51
user 3.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/646112/ft2_4FGL_J1838.8+4802_daily_bin1732.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/646112/ft1_filteredMKT_4FGL_J1838.8+4802_daily_bin1732.fits evtable="EVENTS" outfile="/scratch/kocevski/646112/ft1_filtered_4FGL_J1838.8+4802_daily_bin1732.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.49
user 0.31
sys 0.17

Number of photons that the gtmktime cut: 942

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/646112/ft1_filtered_4FGL_J1838.8+4802_daily_bin1732.fits" evtable="EVENTS" scfile=/scratch/kocevski/646112/ft2_4FGL_J1838.8+4802_daily_bin1732.fits sctable="SC_DATA" outfile=/scratch/kocevski/646112/ltcube_688262401_688521601_4FGL_J1838.8+4802_daily_bin1732.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/646112/ft2_4FGL_J1838.8+4802_daily_bin1732.fits
.....................!
real 12.18
user 11.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/646112/ft1_filtered_4FGL_J1838.8+4802_daily_bin1732.fits evtable="EVENTS" scfile=/scratch/kocevski/646112/ft2_4FGL_J1838.8+4802_daily_bin1732.fits sctable="SC_DATA" expcube=/scratch/kocevski/646112/ltcube_688262401_688521601_4FGL_J1838.8+4802_daily_bin1732.fits outfile=/scratch/kocevski/646112/expmap_688262401_688521601_4FGL_J1838.8+4802_daily_bin1732.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/646112/ltcube_688262401_688521601_4FGL_J1838.8+4802_daily_bin1732.fits
.....................!
real 190.76
user 185.73
sys 4.68

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/646112/ft1_filtered_4FGL_J1838.8+4802_daily_bin1732.fits scfile=/scratch/kocevski/646112/ft2_4FGL_J1838.8+4802_daily_bin1732.fits outfile=/scratch/kocevski/646112/cmap_688262401_688521601_4FGL_J1838.8+4802_daily_bin1732.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/646112/ft1_filtered_4FGL_J1838.8+4802_daily_bin1732.fits scfile=/scratch/kocevski/646112/ft2_4FGL_J1838.8+4802_daily_bin1732.fits outfile=/scratch/kocevski/646112/cmap_HighResolution_688262401_688521601_4FGL_J1838.8+4802_daily_bin1732.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/646112/ft1_filtered_4FGL_J1838.8+4802_daily_bin1732.fits evtable="EVENTS" scfile=/scratch/kocevski/646112/ft2_4FGL_J1838.8+4802_daily_bin1732.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/646112/Model_4FGL_J1838.8+4802_daily_bin1732.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/646112/ft1_filtered_4FGL_J1838.8+4802_daily_bin1732.fits.....................!
real 98.53
user 97.06
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57978E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .19680E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    25.838       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.7680       1.0000          .0000       .10000E+07
     5 'Prefactor '    .32662E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    3.3055       1.0000          .0000       .10000E+07
     7 'norm      '    .15273E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .57841E-02   1.0000          .0000       .10000E+07
     9 'norm      '    6.6118       1.0000          .0000       .10000E+07
    10 'norm      '    .43809       1.0000          .0000       .10000E+07
    11 'norm      '    20.351       1.0000          .0000       .10000E+07
    12 'Prefactor '    .91926E-07   1.0000          .0000       .10000E+07
    13 'norm      '    3.0525       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.0022       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .94191       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=   9657.621     FROM MIGRAD    STATUS=CONVERGED    127 CALLS      827 TOTAL
                     EDM=   .23E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.6889       -.49128E-07** at limit **
   2  norm           .0000        3.0973        .10359E-06** at limit **
   3  Prefactor     26.247        36.493        .16535E-07   -.30825E-05
   4  Prefactor     4.7682        4.8060       -.10092E-08    .30060E-04
   5  Prefactor      .0000        24.606       -.21512E-07** at limit **
   6  Prefactor     3.3365        8.5163        .13788E-06   -.10806E-03
   7  norm           .0000        6.0469       -.32859E-07** at limit **
   8  Prefactor      .0000        27.099        .45832E-08** at limit **
   9  norm          6.6559        8.1441       -.54785E-07    .91412E-04
  10  norm          .27336        21.315       -.69270E-06    .20027E-03
  11  norm          20.373        11.056       -.11829E-07    .99273E-04
  12  Prefactor      .0000        .40083       -.67756E-08** at limit **
  13  norm          3.0538        2.0818       -.79593E-08    .11175E-03
  14  Normalizat    1.0021        .22654        .55267E-06    .87353E-05
  15  Prefactor     .94206        .10476       -.40211E-06    .20910E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  Prefactor  = 26.2468
  Prefactor  = 4.76825
  Prefactor  = 0
  Prefactor  = 3.33647
  norm       = 0
  Prefactor  = 0
  norm       = 6.65592
  norm       = 0.27336
  norm       = 20.3733
  Prefactor  = 0
  norm       = 3.05379
  Normalizat = 1.00205
  Prefactor  = 0.942058
 **********
 **   18 **HESSE 
 **********

 FCN=   9657.621     FROM HESSE     STATUS=OK           214 CALLS     1041 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.6859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        3.0844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.247        36.458        .19677E-03   -1.5605    
   4  Prefactor     4.7682        4.7849        .46053E-03   -1.5664    
   5  Prefactor      .0000        24.576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3365        8.5161        .55658E-03   -1.5671    
   7  norm           .0000        6.0008        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        26.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.6559        8.1266        .39003E-03   -1.5656    
  10  norm          .27336        3.4711        .85200E-02   -1.5698    
  11  norm          20.373        11.080        .22174E-03   -1.5618    
  12  Prefactor      .0000        .40059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.0538        2.0881        .58043E-03   -1.5673    
  14  Normalizat    1.0021        .19221        .79849E-01   -.92962    
  15  Prefactor     .94206        .88143E-01    .45537E-01   -.94687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12784e-08
Minuit parameter uncertainties:
  1  1.38862e-06
  2  4.62581e-06
  3  36.4584
  4  4.78489
  5  2.8509e-06
  6  8.51618
  7  1.28269e-06
  8  5.25859e-06
  9  8.12664
  10  1.9482
  11  11.0799
  12  9.57868e-08
  13  2.08808
  14  0.192341
  15  0.0881567
Done.

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

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  2.037e+01  1.108e+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:  9.421e-01  8.816e-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.002e+00  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.11
Ra Dec: 279.714 48.041
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 3.30e-08 +/- 1.80e-08
Energy Flux (Fixed Index): 4.12e-05 +/- 2.24e-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) = 9656.17068233
delta logL = 1.45017443487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9656.11277028
delta logL = 1.50808648598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.045       1.0000          .0000       .10000E+07
     2 'alpha     '    1.1032       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94284       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=   9656.113     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      222 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.021        9.3875        .24977E-03   -.38307E-03
   2  alpha         1.1027        .29226        .31691       -.39548E-04
   3  Normalizat    1.0128        .18343        .79453E-01    .11626E-03
   4  Prefactor     .94290        .87584E-01    .45549E-01    .17681E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.0214
  alpha      = 1.10267
  Normalizat = 1.01284
  Prefactor  = 0.942903
 **********
 **   18 **HESSE 
 **********

 FCN=   9656.113     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.021        11.783        .99908E-05   -1.5628    
   2  alpha         1.1027        .38310        .13390E-01   -.59310    
   3  Normalizat    1.0128        .21561        .35167E-03   -.92601    
   4  Prefactor     .94290        .10320        .17243E-03   -.94658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05648e-09
Minuit parameter uncertainties:
  1  11.7832
  2  0.385319
  3  0.215796
  4  0.103226
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/646112': 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) = 9656.1127681
delta logL = 1.50808866598

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  1.602e+01  1.178e+01  0.000e+00  1.000e+06 ( 1.000e-13)
374        alpha:  1.103e+00  3.853e-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:  9.429e-01  1.032e-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.013e+00  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.07
Ra Dec: 279.714 48.041
Photon Index (Free Index): 1.10 +/- 0.39
Photon Flux (Free Index): 1.53e-08 +/- 1.09e-08
Energy Flux (Free Index): 1.29e-04 +/- 1.08e-04

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/646112/cmap_HighResolution_688262401_688521601_4FGL_J1838.8+4802_daily_bin1732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.30e-08', energy_flux2='1.29e-04', photon_flux_error='1.80e-08', dlogl='1.51e+00', energy_flux='4.12e-05', photon_flux2='1.53e-08', job_status='DONE', time_completed='2022-10-27 00:40:43.930197', photon_index_error2='0.39', photon_index2='1.10', ts='24.11', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.08e-04', EG='1.00', time_epoch_completed='1666856443.93', return_code='0', job_id='646112', GAL2='0.94', EG2='1.01', return_code2='0', energy_flux_error='2.24e-05', photon_flux_error2='1.09e-08', ts2='27.07', photon_index='1.76' WHERE bin_id='1732' AND source_name='4FGL J1838.8+4802' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct 27 00:40:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 646112: <4FGL_J1838.8+4802_daily_bin1732> in cluster <slac> Done

Job <4FGL_J1838.8+4802_daily_bin1732> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Oct 27 00:30:21 2022
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 27 00:30:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 27 00:30:23 2022
Terminated at Thu Oct 27 00:40:44 2022
Results reported at Thu Oct 27 00:40:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1838.8+4802_daily_bin1732 279.714 48.0412 688262401 688521601 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 :                                   606.17 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             376.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            623 sec.

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

