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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin1751
RA = 124.557, Dec = 42.3819
tmin = 693187201, tmax = 693446401
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='73725', job_status='RUN', time_executed='2022-12-23 00:27:04.504086', time_epoch_executed='1671784024.5' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73725

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73725/ft1_4FGL_J0818.2+4222_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73725/ft2_4FGL_J0818.2+4222_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73725/ft1_4FGL_J0818.2+4222_daily_bin1751.fits outfile=/scratch/kocevski/73725/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1751.fits ra=124.557 dec=42.3819 rad=12.0 tmin=693187201.0 tmax=693446401.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.61
user 3.39
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/73725/ft2_4FGL_J0818.2+4222_daily_bin1751.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73725/ft2_4FGL_J0818.2+4222_daily_bin1751.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/73725/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/73725/ft1_filtered_4FGL_J0818.2+4222_daily_bin1751.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.33
sys 0.15

Number of photons that the gtmktime cut: 741

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73725/ft1_filtered_4FGL_J0818.2+4222_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/73725/ft2_4FGL_J0818.2+4222_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/73725/ltcube_693187201_693446401_4FGL_J0818.2+4222_daily_bin1751.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/73725/ft2_4FGL_J0818.2+4222_daily_bin1751.fits
.....................!
real 11.91
user 11.56
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73725/ft1_filtered_4FGL_J0818.2+4222_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/73725/ft2_4FGL_J0818.2+4222_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/73725/ltcube_693187201_693446401_4FGL_J0818.2+4222_daily_bin1751.fits outfile=/scratch/kocevski/73725/expmap_693187201_693446401_4FGL_J0818.2+4222_daily_bin1751.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/73725/ltcube_693187201_693446401_4FGL_J0818.2+4222_daily_bin1751.fits
.....................!
real 190.20
user 185.46
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
Added 195 point sources and 0 extended sources

Setting source of interest to:
4FGL J0818.2+4222 @ 124.557 42.3819

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/73725/ft1_filtered_4FGL_J0818.2+4222_daily_bin1751.fits scfile=/scratch/kocevski/73725/ft2_4FGL_J0818.2+4222_daily_bin1751.fits outfile=/scratch/kocevski/73725/cmap_693187201_693446401_4FGL_J0818.2+4222_daily_bin1751.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=124.557 yref=42.3819 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73725/ft1_filtered_4FGL_J0818.2+4222_daily_bin1751.fits scfile=/scratch/kocevski/73725/ft2_4FGL_J0818.2+4222_daily_bin1751.fits outfile=/scratch/kocevski/73725/cmap_HighResolution_693187201_693446401_4FGL_J0818.2+4222_daily_bin1751.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=124.557 yref=42.3819 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/73725/ft1_filtered_4FGL_J0818.2+4222_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/73725/ft2_4FGL_J0818.2+4222_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/73725/Model_4FGL_J0818.2+4222_daily_bin1751.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/73725/ft1_filtered_4FGL_J0818.2+4222_daily_bin1751.fits.....................!
real 74.53
user 73.14
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/73725/ft1_filtered_4FGL_J0818.2+4222_daily_bin1751.fits', '/scratch/kocevski/73725/ft2_4FGL_J0818.2+4222_daily_bin1751.fits', expMap='/scratch/kocevski/73725/expmap_693187201_693446401_4FGL_J0818.2+4222_daily_bin1751.fits', expCube='/scratch/kocevski/73725/ltcube_693187201_693446401_4FGL_J0818.2+4222_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/73725/Model_4FGL_J0818.2+4222_daily_bin1751.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0818.2+4222'

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.121e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
284        alpha:  1.996e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  8.301e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/73725/ft1_filtered_4FGL_J0818.2+4222_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/73725/ft2_4FGL_J0818.2+4222_daily_bin1751.fits
Exposure map: /scratch/kocevski/73725/expmap_693187201_693446401_4FGL_J0818.2+4222_daily_bin1751.fits
Exposure cube: /scratch/kocevski/73725/ltcube_693187201_693446401_4FGL_J0818.2+4222_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/73725/Model_4FGL_J0818.2+4222_daily_bin1751.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) = 7967.03677225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.776       1.0000          .0000       .10000E+07
     2 'Prefactor '    10.214       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11235E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    10.673       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.7386       1.0000          .0000       .10000E+07
     6 'norm      '    13.722       1.0000          .0000       .10000E+07
     7 'norm      '    4.3950       1.0000          .0000       .10000E+07
     8 'Prefactor '    .32818E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12138E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    32.314       1.0000          .0000       .10000E+07
    11 'norm      '    .15751E-04   1.0000          .0000       .10000E+07
    12 'norm      '    5.3555       1.0000          .0000       .10000E+07
    13 'norm      '    .26532       1.0000          .0000       .10000E+07
    14 'Prefactor '    .35694E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .12364E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.5943       1.0000          .0000       .10000E+07
    17 'Prefactor '    11.283       1.0000          .0000       .10000E+07
    18 'Prefactor '    .30366E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .34796E-04   1.0000          .0000       .10000E+07
    20 'norm      '    .13323E-08   1.0000          .0000       .10000E+07
    21 'norm      '    5.6844       1.0000          .0000       .10000E+07
    22 'Prefactor '    .17510E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    4.6748       1.0000          .0000       .10000E+07
    24 'Prefactor '    4.9994       1.0000          .0000       .10000E+07
    25 'norm      '    .43853       1.0000          .0000       .10000E+07
    26 'Prefactor '    .66129       1.0000          .0000       .10000E+07
    27 'Normalizat'    .95955       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7967.014     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1937 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.779        1.2243       -.10613E-06   -.65030E-02
   2  Prefactor     10.170        2.0812       -.34376E-06    .20880E-01
   3  Prefactor     .17431E-07    19.177        .28438E-07** at limit **
   4  Prefactor     10.514        6.0915       -.11824E-05    .60833E-01
   5  Prefactor     3.7485        1.3332       -.28379E-06    .58857E-02
   6  norm          13.728        1.6526       -.15735E-06   -.65925E-02
   7  norm          4.4080        2.9299       -.16049E-06   -.35359E-02
   8  Prefactor     .11102E-09    3.4031       -.59808E-07** at limit **
   9  Prefactor     .20001E-06    6.5944        .84212E-06** at limit **
  10  Prefactor     32.302        1.6300       -.12145E-06   -.21786E-01
  11  norm          .10492E-06    4.9211       -.17787E-05** at limit **
  12  norm          5.3558        2.0331       -.70793E-07   -.13336E-03
  13  norm          .26533        .25473       -.21733E-08    .32136E-02
  14  Prefactor     .33307E-09    24.229       -.53164E-06** at limit **
  15  Prefactor     .19207E-07    4.5564        .61329E-06** at limit **
  16  Prefactor     2.5940        2.9479        .11381E-06    .10775E-02
  17  Prefactor     11.266        1.0751        .75086E-07   -.40657E-02
  18  Prefactor     .83267E-09    2.6955       -.51183E-06** at limit **
  19  Prefactor     .11102E-09    2.2765        .35659E-06** at limit **
  20  norm          .67724E-08    2.8258        .19393E-05** at limit **
  21  norm          5.6848        4.5254       -.22022E-06   -.27333E-04
  22  Prefactor     .12784E-06    7.1326        .12204E-06** at limit **
  23  Prefactor     4.6701        3.0555       -.12893E-06   -.88810E-03
  24  Prefactor     5.0323        1.2432       -.21034E-06    .51134E-02
  25  norm          .43822        .40247       -.38750E-07    .38420E-02
  26  Prefactor     .66458        .58121       -.12035E-06    .18844E-02
  27  Normalizat    .95976        .19791       -.26683E-05   -.13839E-03
  28  Prefactor     1.1054        .15621        .35474E-05   -.23207E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.7791
  Prefactor  = 10.17
  Prefactor  = 1.74305e-08
  Prefactor  = 10.514
  Prefactor  = 3.74848
  norm       = 13.7278
  norm       = 4.40795
  Prefactor  = 1.11022e-10
  Prefactor  = 2.00007e-07
  Prefactor  = 32.302
  norm       = 1.04916e-07
  norm       = 5.35576
  norm       = 0.265327
  Prefactor  = 3.33067e-10
  Prefactor  = 1.92069e-08
  Prefactor  = 2.59398
  Prefactor  = 11.2664
  Prefactor  = 8.32667e-10
  Prefactor  = 1.11022e-10
  norm       = 6.77236e-09
  norm       = 5.68476
  Prefactor  = 1.27842e-07
  Prefactor  = 4.67005
  Prefactor  = 5.03226
  norm       = 0.438216
  Prefactor  = 0.664579
  Normalizat = 0.95976
  Prefactor  = 1.10543
 **********
 **   18 **HESSE 
 **********

 FCN=   7967.014     FROM HESSE     STATUS=OK           583 CALLS     2520 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.779        7.4688        .30496E-03   -1.5642    
   2  Prefactor     10.170        14.382        .31328E-03   -1.5644    
   3  Prefactor     .17431E-07    19.260        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.514        14.483        .30643E-03   -1.5643    
   5  Prefactor     3.7485        19.418        .52196E-03   -1.5669    
   6  norm          13.728        10.657        .27013E-03   -1.5634    
   7  norm          4.4080        3.1072        .48016E-03   -1.5666    
   8  Prefactor     .11102E-09    3.4159        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .20001E-06    13.704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     32.302        7.4863        .17594E-03   -1.5594    
  11  norm          .10492E-06    5.6952        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.3558        2.0364        .43403E-03   -1.5662    
  13  norm          .26533        .25329        .97286E-03   -1.5698    
  14  Prefactor     .33307E-09    23.600        .16164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .19207E-07    4.7309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5940        3.0139        .63321E-03   -1.5676    
  17  Prefactor     11.266        20.269        .29800E-03   -1.5641    
  18  Prefactor     .83267E-09    2.7252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11102E-09    2.3029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .67724E-08    2.9345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.6848        4.5340        .42108E-03   -1.5660    
  22  Prefactor     .12784E-06    13.409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.6701        3.0752        .46521E-03   -1.5665    
  24  Prefactor     5.0323        13.337        .44952E-03   -1.5663    
  25  norm          .43822        .50399        .85152E-03   -1.5695    
  26  Prefactor     .66458        7.7748        .63908E-03   -1.5692    
  27  Normalizat    .95976        .18344        .68159E-01   -.94391    
  28  Prefactor     1.1054        .14104        .37387E-01   -.89293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49564e-07
Minuit parameter uncertainties:
  1  7.46883
  2  14.3816
  3  0.00115839
  4  14.4826
  5  17.0633
  6  10.6569
  7  3.10721
  8  4.23027e-05
  9  0.0033113
  10  7.48626
  11  0.00154595
  12  2.03642
  13  0.253291
  14  0.00017746
  15  0.000602932
  16  3.01386
  17  20.2688
  18  9.38853e-05
  19  3.15397e-05
  20  0.000281859
  21  4.53397
  22  0.00261875
  23  3.0752
  24  13.3372
  25  0.503986
  26  4.54621
  27  0.183559
  28  0.141084
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  2.653e-01  2.533e-01  0.000e+00  1.000e+06 ( 1.000e-11)
284        alpha:  1.996e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  8.301e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  1.105e+00  1.411e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  9.598e-01  1.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.43
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.32e-08 +/- 1.26e-08
Energy Flux (Fixed Index): 7.46e-06 +/- 7.12e-06

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) = 7966.78704312
delta logL = 0.227223329368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7966.77331285
delta logL = 0.240953603256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21958       1.0000          .0000       .10000E+07
     2 'alpha     '    1.4429       1.0000          .0000       5.0000    
     3 'Normalizat'    .96288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1052       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6230E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7966.773     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21888        .21642        .92054E-03** at limit **
   2  alpha         1.4428        .55319        .47178       -.32112E-04
   3  Normalizat    .96288        .17098        .68074E-01    .25407E-04
   4  Prefactor     1.1052        .13763        .37392E-01    .12530E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.218877
  alpha      = 1.44278
  Normalizat = 0.962883
  Prefactor  = 1.10524
 **********
 **   18 **HESSE 
 **********

 FCN=   7966.773     FROM HESSE     STATUS=OK            35 CALLS      246 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21888        .25792        .39368E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4428        .75453        .20993E-01   -.43663    
   3  Normalizat    .96288        .19245        .30114E-03   -.94284    
   4  Prefactor     1.1052        .15516        .22683E-03   -.89299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15317e-09
Minuit parameter uncertainties:
  1  0.257916
  2  0.769227
  3  0.192588
  4  0.155228
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73725': 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) = 7966.77330779
delta logL = 0.240958659649

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  2.189e-01  2.579e-01  0.000e+00  1.000e+06 ( 1.000e-11)
284        alpha:  1.443e+00  7.692e-01  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  8.301e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  7.677e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
620    Prefactor:  1.105e+00  1.552e-01  0.000e+00  1.000e+01 ( 1.000e+00)
621        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
622        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
619   Normalization:  9.629e-01  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.91
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.44 +/- 0.77
Photon Flux (Free Index): 7.42e-09 +/- 9.79e-09
Energy Flux (Free Index): 1.45e-05 +/- 2.24e-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/73725/cmap_HighResolution_693187201_693446401_4FGL_J0818.2+4222_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.32e-08', energy_flux2='1.45e-05', photon_flux_error='1.26e-08', dlogl='2.41e-01', energy_flux='7.46e-06', photon_flux2='7.42e-09', job_status='DONE', time_completed='2022-12-23 00:38:27.870007', photon_index_error2='0.77', photon_index2='1.44', ts='4.43', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.24e-05', EG='0.96', time_epoch_completed='1671784707.87', return_code='0', job_id='73725', GAL2='1.11', EG2='0.96', return_code2='0', energy_flux_error='7.12e-06', photon_flux_error2='9.79e-09', ts2='4.91', photon_index='2.00' WHERE bin_id='1751' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:38:27 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 73725: <4FGL_J0818.2+4222_daily_bin1751> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin1751> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Dec 23 00:25:19 2022
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:25:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:25:19 2022
Terminated at Fri Dec 23 00:38:28 2022
Results reported at Fri Dec 23 00:38:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin1751 124.557 42.3819 693187201 693446401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0818.2+4222 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   685.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            789 sec.

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

