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


Performing analysis on: 4FGL_J1838.8+4802_daily_bin1761
RA = 279.714, Dec = 48.0412
tmin = 695779201, tmax = 696038401
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='929195', job_status='RUN', time_executed='2023-01-22 01:22:09.107153', time_epoch_executed='1674379329.11' WHERE source_name='4FGL J1838.8+4802' and cadence='daily' and bin_id='1761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929195

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929195/ft1_4FGL_J1838.8+4802_daily_bin1761.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929195/ft2_4FGL_J1838.8+4802_daily_bin1761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929195/ft1_4FGL_J1838.8+4802_daily_bin1761.fits outfile=/scratch/kocevski/929195/ft1_filteredMKT_4FGL_J1838.8+4802_daily_bin1761.fits ra=279.714 dec=48.0412 rad=12.0 tmin=695779201.0 tmax=696038401.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 5.07
user 4.75
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929195/ft2_4FGL_J1838.8+4802_daily_bin1761.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/929195/ft1_filteredMKT_4FGL_J1838.8+4802_daily_bin1761.fits evtable="EVENTS" outfile="/scratch/kocevski/929195/ft1_filtered_4FGL_J1838.8+4802_daily_bin1761.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.56
user 0.34
sys 0.18

Number of photons that the gtmktime cut: 1116

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929195/ft1_filtered_4FGL_J1838.8+4802_daily_bin1761.fits evtable="EVENTS" scfile=/scratch/kocevski/929195/ft2_4FGL_J1838.8+4802_daily_bin1761.fits sctable="SC_DATA" expcube=/scratch/kocevski/929195/ltcube_695779201_696038401_4FGL_J1838.8+4802_daily_bin1761.fits outfile=/scratch/kocevski/929195/expmap_695779201_696038401_4FGL_J1838.8+4802_daily_bin1761.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/929195/ltcube_695779201_696038401_4FGL_J1838.8+4802_daily_bin1761.fits
.....................!
real 192.93
user 187.50
sys 4.90

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/929195/ft1_filtered_4FGL_J1838.8+4802_daily_bin1761.fits scfile=/scratch/kocevski/929195/ft2_4FGL_J1838.8+4802_daily_bin1761.fits outfile=/scratch/kocevski/929195/cmap_695779201_696038401_4FGL_J1838.8+4802_daily_bin1761.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.58
user 0.37
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63760E-03   1.0000          .0000       .10000E+07
     2 'norm      '    2.0198       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10596       1.0000          .0000       .10000E+07
     4 'Prefactor '    .29515E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    14.613       1.0000          .0000       .10000E+07
     6 'Prefactor '    .23653E-01   1.0000          .0000       .10000E+07
     7 'norm      '    1.2782       1.0000          .0000       .10000E+07
     8 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     9 'norm      '    .21699E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .99865E-07   1.0000          .0000       .10000E+07
    11 'norm      '    .76289E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.7177       1.0000          .0000       .10000E+07
    13 'norm      '    2.9269       1.0000          .0000       .10000E+07
    14 'Normalizat'    .98699       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.1020       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=   11471.90     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      831 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19779E-06    1.3022       -.18381E-05** at limit **
   2  norm          2.0160        4.2867       -.27961E-05    .38805E-02
   3  Prefactor     .10508E-06    1.5076        .38970E-05** at limit **
   4  Prefactor     .49960E-09    1.2455       -.17066E-05** at limit **
   5  Prefactor     15.131        25.098        .17479E-04   -.22002E-02
   6  Prefactor     .90750E-01    2.4648       -.41689E-05** at limit **
   7  norm          1.2762        13.001       -.57428E-05   -.25529E-02
   8  Prefactor     .11657E-08    3.3676        .43797E-05** at limit **
   9  norm           .0000        6.1100       -.63215E-05** at limit **
  10  norm          .11102E-09    5.1590        .97707E-05** at limit **
  11  norm          .14433E-08    2.8220        .34655E-05** at limit **
  12  Prefactor     2.7183        1.8214       -.42462E-06    .10197E-01
  13  norm          2.9271        1.9679        .10591E-05    .37007E-02
  14  Normalizat    .98666        .21867        .12568E-05    .40002E-03
  15  Prefactor     1.1020        .10381        .66406E-05    .81106E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.97786e-07
  norm       = 2.01604
  Prefactor  = 1.05083e-07
  Prefactor  = 4.996e-10
  Prefactor  = 15.1313
  Prefactor  = 0.09075
  norm       = 1.27625
  Prefactor  = 1.16573e-09
  norm       = 0
  norm       = 1.11022e-10
  norm       = 1.44329e-09
  Prefactor  = 2.71829
  norm       = 2.92711
  Normalizat = 0.98666
  Prefactor  = 1.10199
 **********
 **   18 **HESSE 
 **********

 FCN=   11471.90     FROM HESSE     STATUS=OK           220 CALLS     1051 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19779E-06    1.4248        .66876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0160        4.3417        .72790E-03   -1.5680    
   3  Prefactor     .10508E-06    69.132        .13772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .49960E-09    1.2645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.131        25.255        .26175E-03   -1.5630    
   6  Prefactor     .90750E-01    5.1003        .75884E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2762        13.900        .98190E-03   -1.5685    
   8  Prefactor     .11657E-08    6.2798        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        6.1626        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .11102E-09    5.1915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .14433E-08    6.2866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7183        1.8254        .61752E-03   -1.5675    
  13  norm          2.9271        1.9613        .59351E-03   -1.5674    
  14  Normalizat    .98666        .19133        .85668E-01   -.93479    
  15  Prefactor     1.1020        .89835E-01    .37513E-01   -.89403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.354e-06
Minuit parameter uncertainties:
  1  0.0010617
  2  4.34171
  3  0.00539015
  4  5.10112e-05
  5  25.255
  6  1.36067
  7  8.42376
  8  0.000169422
  9  5.84374e-08
  10  4.19864e-05
  11  0.00019196
  12  1.8254
  13  1.96135
  14  0.191464
  15  0.0898475
Done.

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

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  1.443e-09  1.920e-04  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.102e+00  8.985e-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:  9.867e-01  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/929195/likelihoodResults_695779201_696038401_4FGL_J1838.8+4802_daily_bin1761.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) = 11471.9771367
delta logL = -0.0774196014881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11471.0398822
delta logL = 0.859834834509

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19860E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .91255       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1230       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=   11471.04     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      263 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19859E-01    .62765        .29006E-03** at limit **
   2  alpha         5.0000        3.6997        .46267    ** at limit **
   3  Normalizat    .91263        .91692E-01    .88690E-01   -.38141E-03
   4  Prefactor     1.1230        .39162E-01    .36770E-01   -.67183E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0198589
  alpha      = 5
  Normalizat = 0.912629
  Prefactor  = 1.12302
 **********
 **   18 **HESSE 
 **********

 FCN=   11471.04     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19859E-01    .17940E-01    .13369E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        1.0110        .66240E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .91263        .21836        .39277E-03   -.96018    
   4  Prefactor     1.1230        .10437        .17331E-03   -.88734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27897e-10
Minuit parameter uncertainties:
  1  0.0179395
  2  1.24597e-05
  3  0.21857
  4  0.104391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929195': 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) = 11471.0398821
delta logL = 0.859834964114

Extracting fit parameters...

4FGL J1838.8+4802
   Spectrum: LogParabola
373         norm:  1.986e-02  1.794e-02  0.000e+00  1.000e+06 ( 1.000e-13)
374        alpha:  5.000e+00  1.246e-05  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.123e+00  1.044e-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:  9.126e-01  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 279.714 48.041
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.19e-08 +/- 4.66e-08
Energy Flux (Free Index): 7.03e-06 +/- 6.33e-06

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/929195/cmap_HighResolution_695779201_696038401_4FGL_J1838.8+4802_daily_bin1761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-05', comment='SUCCESS', energy_flux2='7.03e-06', dlogl='8.60e-01', photon_flux2='5.19e-08', job_status='DONE', time_completed='2023-01-22 01:34:40.263630', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='3.76e-08', energy_flux_error2='6.33e-06', EG='0.99', time_epoch_completed='1674380080.26', return_code='0', job_id='929195', GAL2='1.12', EG2='0.91', return_code2='0', photon_flux_error2='4.66e-08', ts2='1.88', photon_index='1.76' WHERE bin_id='1761' AND source_name='4FGL J1838.8+4802' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 22 01:34:40 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 929195: <4FGL_J1838.8+4802_daily_bin1761> in cluster <slac> Done

Job <4FGL_J1838.8+4802_daily_bin1761> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan 22 01:20:21 2023
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 22 01:20:48 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 22 01:20:48 2023
Terminated at Sun Jan 22 01:34:41 2023
Results reported at Sun Jan 22 01:34:41 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1838.8+4802_daily_bin1761 279.714 48.0412 695779201 696038401 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 :                                   752.51 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             347.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            860 sec.

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

