/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 230 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 = 7530
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1838.8+4802_daily_bin1734
RA = 279.714, Dec = 48.0412
tmin = 688780801, tmax = 689040001
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='769485', job_status='RUN', time_executed='2022-11-02 00:13:19.605897', time_epoch_executed='1667373199.61' WHERE source_name='4FGL J1838.8+4802' and cadence='daily' and bin_id='1734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/769485

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/769485/ft1_4FGL_J1838.8+4802_daily_bin1734.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/769485/ft2_4FGL_J1838.8+4802_daily_bin1734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/769485/ft1_4FGL_J1838.8+4802_daily_bin1734.fits outfile=/scratch/kocevski/769485/ft1_filteredMKT_4FGL_J1838.8+4802_daily_bin1734.fits ra=279.714 dec=48.0412 rad=12.0 tmin=688780801.0 tmax=689040001.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.98
user 3.38
sys 0.29

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

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

Number of photons that the gtmktime cut: 1049

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/769485/ft1_filtered_4FGL_J1838.8+4802_daily_bin1734.fits evtable="EVENTS" scfile=/scratch/kocevski/769485/ft2_4FGL_J1838.8+4802_daily_bin1734.fits sctable="SC_DATA" expcube=/scratch/kocevski/769485/ltcube_688780801_689040001_4FGL_J1838.8+4802_daily_bin1734.fits outfile=/scratch/kocevski/769485/expmap_688780801_689040001_4FGL_J1838.8+4802_daily_bin1734.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/769485/ltcube_688780801_689040001_4FGL_J1838.8+4802_daily_bin1734.fits
.....................!
real 190.18
user 185.28
sys 4.41

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/769485/ft1_filtered_4FGL_J1838.8+4802_daily_bin1734.fits scfile=/scratch/kocevski/769485/ft2_4FGL_J1838.8+4802_daily_bin1734.fits outfile=/scratch/kocevski/769485/cmap_688780801_689040001_4FGL_J1838.8+4802_daily_bin1734.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/769485/ft1_filtered_4FGL_J1838.8+4802_daily_bin1734.fits scfile=/scratch/kocevski/769485/ft2_4FGL_J1838.8+4802_daily_bin1734.fits outfile=/scratch/kocevski/769485/cmap_HighResolution_688780801_689040001_4FGL_J1838.8+4802_daily_bin1734.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2178       1.0000          .0000       .10000E+07
     2 'norm      '    3.1480       1.0000          .0000       .10000E+07
     3 'Prefactor '    37.635       1.0000          .0000       .10000E+07
     4 'Prefactor '    .33761E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .25096E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.8264       1.0000          .0000       .10000E+07
     7 'norm      '    4.5212       1.0000          .0000       .10000E+07
     8 'Prefactor '    .69370E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .72969E-06   1.0000          .0000       .10000E+07
    10 'norm      '    2.8962       1.0000          .0000       .10000E+07
    11 'norm      '    5.8034       1.0000          .0000       .10000E+07
    12 'Prefactor '    .99913       1.0000          .0000       .10000E+07
    13 'norm      '    1.9179       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.4651       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .74998       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=   10692.93     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      832 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2372        4.8991        .25699E-07    .27276E-03
   2  norm          3.1441        4.1117       -.25994E-08    .24221E-03
   3  Prefactor     37.615        1.1746       -.23784E-08    .50902E-02
   4  Prefactor     .55511E-09    51.735        .74945E-07** at limit **
   5  Prefactor     .27756E-09    59.130       -.21107E-06** at limit **
   6  Prefactor     7.8513        1.1597       -.81702E-08    .48268E-01
   7  norm          4.5219        4.3444       -.15289E-07   -.23235E-02
   8  Prefactor      .0000        35.796        .26927E-06** at limit **
   9  norm           .0000        1.6350        .41461E-07** at limit **
  10  norm          2.8967        3.6995       -.10146E-06   -.13852E-02
  11  norm          5.8152        5.6634        .25716E-07    .21972E-02
  12  Prefactor     .99790        1.2264        .10695E-07    .52712E-03
  13  norm          1.9191        1.5842        .17236E-07    .12297E-02
  14  Normalizat    1.4653        .21380       -.12268E-05    .95336E-05
  15  Prefactor     .74989        .98486E-01    .98630E-06    .66509E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.23724
  norm       = 3.14411
  Prefactor  = 37.6147
  Prefactor  = 5.55112e-10
  Prefactor  = 2.77556e-10
  Prefactor  = 7.85134
  norm       = 4.52189
  Prefactor  = 0
  norm       = 0
  norm       = 2.89669
  norm       = 5.81521
  Prefactor  = 0.997902
  norm       = 1.91905
  Normalizat = 1.46529
  Prefactor  = 0.749888
 **********
 **   18 **HESSE 
 **********

 FCN=   10692.93     FROM HESSE     STATUS=OK           224 CALLS     1056 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2372        4.9386        .49043E-03   -1.5667    
   2  norm          3.1441        4.1514        .57106E-03   -1.5672    
   3  Prefactor     37.615        34.288        .16302E-03   -1.5585    
   4  Prefactor     .55511E-09    1.6085        .90667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .27756E-09    59.895        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8513        7.2570        .35819E-03   -1.5652    
   7  norm          4.5219        4.3605        .47324E-03   -1.5665    
   8  Prefactor      .0000        36.334        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        1.6378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.8967        3.7201        .59685E-03   -1.5674    
  11  norm          5.8152        5.6684        .41667E-03   -1.5660    
  12  Prefactor     .99790        1.2354        .43734E-03   -1.5688    
  13  norm          1.9191        1.5878        .75011E-03   -1.5680    
  14  Normalizat    1.4653        .18288        .68908E-01   -.78758    
  15  Prefactor     .74989        .83289E-01    .43063E-01   -1.0160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.72959e-08
Minuit parameter uncertainties:
  1  4.93858
  2  4.15139
  3  34.2886
  4  6.01937e-05
  5  0.000249138
  6  7.25698
  7  4.36048
  8  4.40974e-05
  9  6.60531e-06
  10  3.72015
  11  5.66838
  12  1.23543
  13  1.58777
  14  0.182958
  15  0.0833028
Done.

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

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  5.815e+00  5.668e+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:  7.499e-01  8.330e-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.465e+00  1.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.90
Ra Dec: 279.714 48.041
Photon Index (Fixed Index): 1.76 +/- 0.00
Photon Flux (Fixed Index): 9.43e-09 +/- 9.19e-09
Energy Flux (Fixed Index): 1.17e-05 +/- 1.15e-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) = 10691.3171285
delta logL = 1.6176645333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10690.7302388
delta logL = 2.20455417893

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68958       1.0000          .0000       .10000E+07
     2 'alpha     '    .17912       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75074       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=   10690.73     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      231 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68298        1.1395        .61558E-03   -.10291E-01
   2  alpha         .17562        .61884        .50000        .10860E-03
   3  Normalizat    1.4684        .17851        .68839E-01    .11229E-05
   4  Prefactor     .75077        .83019E-01    .43073E-01   -.22696E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.682984
  alpha      = 0.175616
  Normalizat = 1.46843
  Prefactor  = 0.750769
 **********
 **   18 **HESSE 
 **********

 FCN=   10690.73     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68298        1.7881        .81917E-05   -1.5691    
   2  alpha         .17562        .99717        .43805E-01   -1.1937    
   3  Normalizat    1.4684        .21126        .30454E-03   -.78669    
   4  Prefactor     .75077        .98315E-01    .18954E-03   -1.0157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02085e-10
Minuit parameter uncertainties:
  1  1.78806
  2  0.886472
  3  0.211388
  4  0.0983377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/769485': 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) = 10690.7302297
delta logL = 2.20456332055

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  6.830e-01  1.788e+00  0.000e+00  1.000e+06 ( 1.000e-13)
374        alpha:  1.756e-01  8.865e-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:  7.508e-01  9.834e-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.468e+00  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.30
Ra Dec: 279.714 48.041
Photon Index (Free Index): 0.18 +/- 0.89
Photon Flux (Free Index): 2.66e-09 +/- 2.67e-09
Energy Flux (Free Index): 1.03e-04 +/- 1.22e-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/769485/cmap_HighResolution_688780801_689040001_4FGL_J1838.8+4802_daily_bin1734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.43e-09', energy_flux2='1.03e-04', photon_flux_error='9.19e-09', dlogl='2.20e+00', energy_flux='1.17e-05', photon_flux2='2.66e-09', job_status='DONE', time_completed='2022-11-02 00:24:05.477182', photon_index_error2='0.89', photon_index2='0.18', ts='9.90', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.22e-04', EG='1.47', time_epoch_completed='1667373845.48', return_code='0', job_id='769485', GAL2='0.75', EG2='1.47', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='2.67e-09', ts2='14.30', photon_index='1.76' WHERE bin_id='1734' AND source_name='4FGL J1838.8+4802' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov  2 00:24:05 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 769485: <4FGL_J1838.8+4802_daily_bin1734> in cluster <slac> Done

Job <4FGL_J1838.8+4802_daily_bin1734> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Nov  2 00:07:38 2022
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Nov  2 00:08:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Nov  2 00:08:07 2022
Terminated at Wed Nov  2 00:24:06 2022
Results reported at Wed Nov  2 00:24:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1838.8+4802_daily_bin1734 279.714 48.0412 688780801 689040001 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 :                                   647.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             262.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            988 sec.

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

