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


Performing analysis on: 4FGL_J1838.8+4802_daily_bin1738
RA = 279.714, Dec = 48.0412
tmin = 689817601, tmax = 690076801
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='410453', job_status='RUN', time_executed='2022-11-14 00:47:20.536538', time_epoch_executed='1668415640.54' WHERE source_name='4FGL J1838.8+4802' and cadence='daily' and bin_id='1738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410453

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410453/ft1_4FGL_J1838.8+4802_daily_bin1738.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410453/ft2_4FGL_J1838.8+4802_daily_bin1738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410453/ft1_4FGL_J1838.8+4802_daily_bin1738.fits outfile=/scratch/kocevski/410453/ft1_filteredMKT_4FGL_J1838.8+4802_daily_bin1738.fits ra=279.714 dec=48.0412 rad=12.0 tmin=689817601.0 tmax=690076801.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.07
user 3.87
sys 0.18

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

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

Number of photons that the gtmktime cut: 1038

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410453/ft1_filtered_4FGL_J1838.8+4802_daily_bin1738.fits" evtable="EVENTS" scfile=/scratch/kocevski/410453/ft2_4FGL_J1838.8+4802_daily_bin1738.fits sctable="SC_DATA" outfile=/scratch/kocevski/410453/ltcube_689817601_690076801_4FGL_J1838.8+4802_daily_bin1738.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/410453/ft2_4FGL_J1838.8+4802_daily_bin1738.fits
.....................!
real 12.93
user 12.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410453/ft1_filtered_4FGL_J1838.8+4802_daily_bin1738.fits evtable="EVENTS" scfile=/scratch/kocevski/410453/ft2_4FGL_J1838.8+4802_daily_bin1738.fits sctable="SC_DATA" expcube=/scratch/kocevski/410453/ltcube_689817601_690076801_4FGL_J1838.8+4802_daily_bin1738.fits outfile=/scratch/kocevski/410453/expmap_689817601_690076801_4FGL_J1838.8+4802_daily_bin1738.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/410453/ltcube_689817601_690076801_4FGL_J1838.8+4802_daily_bin1738.fits
.....................!
real 190.70
user 185.33
sys 5.02

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/410453/ft1_filtered_4FGL_J1838.8+4802_daily_bin1738.fits scfile=/scratch/kocevski/410453/ft2_4FGL_J1838.8+4802_daily_bin1738.fits outfile=/scratch/kocevski/410453/cmap_689817601_690076801_4FGL_J1838.8+4802_daily_bin1738.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410453/ft1_filtered_4FGL_J1838.8+4802_daily_bin1738.fits scfile=/scratch/kocevski/410453/ft2_4FGL_J1838.8+4802_daily_bin1738.fits outfile=/scratch/kocevski/410453/cmap_HighResolution_689817601_690076801_4FGL_J1838.8+4802_daily_bin1738.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.57
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48767E-06   1.0000          .0000       .10000E+07
     2 'norm      '    8.9274       1.0000          .0000       .10000E+07
     3 'Prefactor '    31.829       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.1941       1.0000          .0000       .10000E+07
     5 'Prefactor '    34.671       1.0000          .0000       .10000E+07
     6 'Prefactor '    9.0470       1.0000          .0000       .10000E+07
     7 'norm      '    .92516E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .41992E-04   1.0000          .0000       .10000E+07
     9 'norm      '    6.1847       1.0000          .0000       .10000E+07
    10 'norm      '    17.694       1.0000          .0000       .10000E+07
    11 'norm      '    8.7893       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.0097       1.0000          .0000       .10000E+07
    13 'norm      '    .30766       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.1107       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.0149       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=   10785.93     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      989 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.2022       -.20610E-06** at limit **
   2  norm          9.0196        6.1553       -.48593E-07   -.21573E-02
   3  Prefactor     31.853        2.7470        .12934E-06   -.37759E-01
   4  Prefactor     6.1414        5.1923       -.70118E-07   -.24350E-02
   5  Prefactor     34.927        33.637        .36549E-06    .23018E-02
   6  Prefactor     9.0176        8.7165       -.32410E-06   -.35927E-02
   7  norm           .0000        3.0637       -.28069E-06** at limit **
   8  Prefactor      .0000        12.522        .11679E-05** at limit **
   9  norm          6.1957        5.0771        .10011E-06    .17063E-02
  10  norm          17.702        1.7754        .14782E-06   -.37948E-01
  11  norm          8.7729        10.156       -.17497E-05   -.44329E-02
  12  Prefactor     4.0105        2.6440       -.64649E-07    .12939E-02
  13  norm          .30709        1.2239        .16064E-06    .71174E-03
  14  Normalizat    1.1104        .24019       -.20842E-05    .27265E-04
  15  Prefactor     1.0149        .11107        .14745E-05    .13939E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 9.01958
  Prefactor  = 31.8527
  Prefactor  = 6.14138
  Prefactor  = 34.927
  Prefactor  = 9.0176
  norm       = 0
  Prefactor  = 0
  norm       = 6.19571
  norm       = 17.7023
  norm       = 8.77288
  Prefactor  = 4.01051
  norm       = 0.307093
  Normalizat = 1.11043
  Prefactor  = 1.01494
 **********
 **   18 **HESSE 
 **********

 FCN=   10785.93     FROM HESSE     STATUS=OK           218 CALLS     1207 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.2105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.0196        6.3043        .33522E-03   -1.5648    
   3  Prefactor     31.853        63.221        .17727E-03   -1.5595    
   4  Prefactor     6.1414        5.1900        .40313E-03   -1.5658    
   5  Prefactor     34.927        33.668        .16985E-03   -1.5590    
   6  Prefactor     9.0176        8.7684        .33298E-03   -1.5648    
   7  norm           .0000        3.0610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        12.503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.1957        5.0811        .40344E-03   -1.5658    
  10  norm          17.702        11.111        .23783E-03   -1.5624    
  11  norm          8.7729        10.180        .33785E-03   -1.5649    
  12  Prefactor     4.0105        2.6603        .50339E-03   -1.5668    
  13  norm          .30709        1.2339        .10108E-02   -1.5697    
  14  Normalizat    1.1104        .20906        .85349E-01   -.89418    
  15  Prefactor     1.0149        .94764E-01    .42695E-01   -.92233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33372e-07
Minuit parameter uncertainties:
  1  4.09397e-06
  2  6.30434
  3  63.2225
  4  5.19004
  5  33.6678
  6  8.76839
  7  7.61174e-06
  8  2.24682e-05
  9  5.08115
  10  11.1107
  11  10.18
  12  2.66033
  13  1.23115
  14  0.209218
  15  0.0947792
Done.

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

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  8.773e+00  1.018e+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:  1.015e+00  9.478e-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.110e+00  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 279.714 48.041
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 1.42e-08 +/- 1.65e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 2.06e-05

TS (Fixed Index): 1.62
Ra Dec: 279.714 48.041
Photon Flux Upper Limit: 6.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410453/likelihoodResults_689817601_690076801_4FGL_J1838.8+4802_daily_bin1738.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) = 10785.1310539
delta logL = 0.796684013525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10785.1278172
delta logL = 0.799920750118

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9563       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7169       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0232       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10785.13     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      283 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9575        9.5738        .16448E-04    .35236E-02
   2  alpha         2.7168        .86923        .12916E-01    .66317E-04
   3  Normalizat    1.0659        .23674        .38450E-03    .38869E-03
   4  Prefactor     1.0232        .11055        .18536E-03    .10284E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 5.95753
  alpha      = 2.71675
  Normalizat = 1.06593
  Prefactor  = 1.02319
 **********
 **   18 **HESSE 
 **********

 FCN=   10785.13     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9575        7.6070        .65793E-06   -1.5659    
   2  alpha         2.7168        .69505        .51663E-03    .86810E-01
   3  Normalizat    1.0659        .23548        .15380E-04   -.90853    
   4  Prefactor     1.0232        .11030        .37072E-04   -.91960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83309e-10
Minuit parameter uncertainties:
  1  7.60704
  2  0.704408
  3  0.235711
  4  0.110323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410453': 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) = 10785.1278171
delta logL = 0.799920798003

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  5.958e+00  7.607e+00  0.000e+00  1.000e+06 ( 1.000e-13)
374        alpha:  2.717e+00  7.044e-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:  1.023e+00  1.103e-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.066e+00  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.25
Ra Dec: 279.714 48.041
Photon Index (Free Index): 2.72 +/- 0.70
Photon Flux (Free Index): 5.98e-08 +/- 5.42e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.15e-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/410453/cmap_HighResolution_689817601_690076801_4FGL_J1838.8+4802_daily_bin1738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.59e-05', comment='SUCCESS', photon_flux='1.42e-08', energy_flux2='1.53e-05', photon_flux_error='1.65e-08', dlogl='8.00e-01', energy_flux='1.77e-05', photon_flux2='5.98e-08', job_status='DONE', time_completed='2022-11-14 00:59:47.240124', photon_index_error2='0.70', photon_index2='2.72', ts='1.62', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='6.09e-08', energy_flux_error2='1.15e-05', EG='1.11', time_epoch_completed='1668416387.24', return_code='0', job_id='410453', GAL2='1.02', EG2='1.07', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='5.42e-08', ts2='3.25', photon_index='1.76' WHERE bin_id='1738' AND source_name='4FGL J1838.8+4802' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Nov 14 00:59:47 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 410453: <4FGL_J1838.8+4802_daily_bin1738> in cluster <slac> Done

Job <4FGL_J1838.8+4802_daily_bin1738> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Nov 14 00:45:19 2022
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov 14 00:46:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov 14 00:46:09 2022
Terminated at Mon Nov 14 00:59:48 2022
Results reported at Mon Nov 14 00:59:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1838.8+4802_daily_bin1738 279.714 48.0412 689817601 690076801 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 :                                   748.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             354.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            869 sec.

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

