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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin1755
RA = 124.557, Dec = 42.3819
tmin = 694224001, tmax = 694483201
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='819040', job_status='RUN', time_executed='2023-01-04 00:46:34.452327', time_epoch_executed='1672821994.45' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/819040

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/819040/ft1_4FGL_J0818.2+4222_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/819040/ft2_4FGL_J0818.2+4222_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/819040/ft1_4FGL_J0818.2+4222_daily_bin1755.fits outfile=/scratch/kocevski/819040/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1755.fits ra=124.557 dec=42.3819 rad=12.0 tmin=694224001.0 tmax=694483201.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.01
user 2.78
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/819040/ft2_4FGL_J0818.2+4222_daily_bin1755.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/819040/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1755.fits evtable="EVENTS" outfile="/scratch/kocevski/819040/ft1_filtered_4FGL_J0818.2+4222_daily_bin1755.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.52
user 0.36
sys 0.14

Number of photons that the gtmktime cut: 2

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/819040/ft1_filtered_4FGL_J0818.2+4222_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/819040/ft2_4FGL_J0818.2+4222_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/819040/ltcube_694224001_694483201_4FGL_J0818.2+4222_daily_bin1755.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/819040/ft2_4FGL_J0818.2+4222_daily_bin1755.fits
.....................!
real 16.81
user 16.35
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/819040/ft1_filtered_4FGL_J0818.2+4222_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/819040/ft2_4FGL_J0818.2+4222_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/819040/ltcube_694224001_694483201_4FGL_J0818.2+4222_daily_bin1755.fits outfile=/scratch/kocevski/819040/expmap_694224001_694483201_4FGL_J0818.2+4222_daily_bin1755.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/819040/ltcube_694224001_694483201_4FGL_J0818.2+4222_daily_bin1755.fits
.....................!
real 193.52
user 187.65
sys 5.52

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/819040/ft1_filtered_4FGL_J0818.2+4222_daily_bin1755.fits scfile=/scratch/kocevski/819040/ft2_4FGL_J0818.2+4222_daily_bin1755.fits outfile=/scratch/kocevski/819040/cmap_694224001_694483201_4FGL_J0818.2+4222_daily_bin1755.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/819040/ft1_filtered_4FGL_J0818.2+4222_daily_bin1755.fits scfile=/scratch/kocevski/819040/ft2_4FGL_J0818.2+4222_daily_bin1755.fits outfile=/scratch/kocevski/819040/cmap_HighResolution_694224001_694483201_4FGL_J0818.2+4222_daily_bin1755.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/819040/ft1_filtered_4FGL_J0818.2+4222_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/819040/ft2_4FGL_J0818.2+4222_daily_bin1755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/819040/Model_4FGL_J0818.2+4222_daily_bin1755.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/819040/ft1_filtered_4FGL_J0818.2+4222_daily_bin1755.fits..!
real 14.02
user 12.66
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/819040/ft1_filtered_4FGL_J0818.2+4222_daily_bin1755.fits', '/scratch/kocevski/819040/ft2_4FGL_J0818.2+4222_daily_bin1755.fits', expMap='/scratch/kocevski/819040/expmap_694224001_694483201_4FGL_J0818.2+4222_daily_bin1755.fits', expCube='/scratch/kocevski/819040/ltcube_694224001_694483201_4FGL_J0818.2+4222_daily_bin1755.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/819040/Model_4FGL_J0818.2+4222_daily_bin1755.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/819040/ft1_filtered_4FGL_J0818.2+4222_daily_bin1755.fits
Spacecraft file(s): /scratch/kocevski/819040/ft2_4FGL_J0818.2+4222_daily_bin1755.fits
Exposure map: /scratch/kocevski/819040/expmap_694224001_694483201_4FGL_J0818.2+4222_daily_bin1755.fits
Exposure cube: /scratch/kocevski/819040/ltcube_694224001_694483201_4FGL_J0818.2+4222_daily_bin1755.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/819040/Model_4FGL_J0818.2+4222_daily_bin1755.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 28.3877605384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 21.2497491055

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24019E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .28979E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .89978E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .73441E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .69179E-02   1.0000          .0000       .10000E+07
     6 'norm      '    9.5249       1.0000          .0000       .10000E+07
     7 'norm      '    .39413E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.8757       1.0000          .0000       .10000E+07
     9 'Prefactor '    190.85       1.0000          .0000       .10000E+07
    10 'Prefactor '    57409.       1.0000          .0000       .10000E+07
    11 'norm      '    .38802E-07   1.0000          .0000       .10000E+07
    12 'norm      '    .44942E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .10000E+07   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.4821       1.0000          .0000       .10000E+07
    15 'Prefactor '    43.277       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.3012       1.0000          .0000       .10000E+07
    17 'Prefactor '    15.391       1.0000          .0000       .10000E+07
    18 'Prefactor '    84.657       1.0000          .0000       .10000E+07
    19 'Prefactor '    .35738E-01   1.0000          .0000       .10000E+07
    20 'norm      '    91.467       1.0000          .0000       .10000E+07
    21 'norm      '    151.41       1.0000          .0000       .10000E+07
    22 'Prefactor '    5.9597       1.0000          .0000       .10000E+07
    23 'Prefactor '    1.4222       1.0000          .0000       .10000E+07
    24 'Prefactor '    6.8125       1.0000          .0000       .10000E+07
    25 'norm      '    .16958       1.0000          .0000       .10000E+07
    26 'Prefactor '    .67724E-06   1.0000          .0000       .10000E+07
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .15628       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   21.22920     FROM MIGRAD    STATUS=CONVERGED    219 CALLS      727 TOTAL
                     EDM=   .68E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        16.441        .42118E-03** at limit **
   2  Prefactor      .0000        267.29        .42118E-03** at limit **
   3  Prefactor      .0000        47.881        .42118E-03** at limit **
   4  Prefactor      .0000        38.797        .42118E-03** at limit **
   5  Prefactor      .0000        190.49        .42118E-03** at limit **
   6  norm          9.5249        1.0014         .0000         .0000    
   7  norm           .0000        .44347E-01   -.27035E-08** at limit **
   8  Prefactor      .0000        .89735E-01   -.11761E-06** at limit **
   9  Prefactor     .84693E-06    .13102E-02    .14772E-05** at limit **
  10  Prefactor     57410.        1.0000       -.31382E-09   -.63634E-01
  11  norm           .0000        .44347E-01    .10207E-08** at limit **
  12  norm           .0000        .44347E-01   -.11988E-08** at limit **
  13  norm          .10000E+07    .44432       -.12288E-06   -.87530E-03
  14  Prefactor     1.4821        1.0727         .0000         .0000    
  15  Prefactor     43.413        1.0016       -.11455E-08   -.18598E-03
  16  Prefactor     1.3012        1.1044         .0000         .0000    
  17  Prefactor     15.441        1.0021       -.69971E-09   -.40368E-04
  18  Prefactor     84.816        1.0010       -.96113E-09   -.30511E-03
  19  Prefactor      .0000        .65301       -.96525E-07** at limit **
  20  norm          91.770        1.0017       -.17517E-08   -.60118E-03
  21  norm          151.83        1.0014       -.19140E-08   -.10871E-02
  22  Prefactor     5.9597        1.0036         .0000         .0000    
  23  Prefactor     1.4222        1.0811         .0000         .0000    
  24  Prefactor     .49960E-09    .36898E-01   -.10364E-05** at limit **
  25  norm           .0000        .38096       -.35796E-08** at limit **
  26  Prefactor      .0000        .44347E-01   -.35398E-06** at limit **
  27  Normalizat    .10000E-01    .25505       -.33236E-04** at limit **
  28  Prefactor     .15625        .42058       -.76195E-05   -.73728E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 9.52487
  norm       = 0
  Prefactor  = 0
  Prefactor  = 8.46934e-07
  Prefactor  = 57410.2
  norm       = 0
  norm       = 0
  norm       = 999999
  Prefactor  = 1.48211
  Prefactor  = 43.4134
  Prefactor  = 1.30123
  Prefactor  = 15.4406
  Prefactor  = 84.816
  Prefactor  = 0
  norm       = 91.7695
  norm       = 151.834
  Prefactor  = 5.95967
  Prefactor  = 1.42219
  Prefactor  = 4.996e-10
  norm       = 0
  Prefactor  = 0
  Normalizat = 0.01
  Prefactor  = 0.156251
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   21.22920     FROM HESSE     STATUS=FAILED        21 CALLS      748 TOTAL
                     EDM=   .68E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        16.441        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        267.29        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        47.881        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        38.797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        190.49        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          25115.        25106.         .0000       -1.5646    
   7  norm           .0000        .44347E-01   -.27035E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .89735E-01   -.11761E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .84693E-06    .13102E-02    .14772E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     57410.        1.0000       -.31382E-09   -1.0869    
  11  norm           .0000        .44347E-01    .10207E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .44347E-01   -.11988E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E+07    .44432       -.12288E-06    1.5690    
  14  Prefactor     1.4821        1.0727         .0000       -1.5684    
  15  Prefactor     43.413        1.0016       -.11455E-08   -1.5576    
  16  Prefactor     1.3012        1.1044         .0000       -1.5685    
  17  Prefactor     15.441        1.0021       -.69971E-09   -1.5629    
  18  Prefactor     84.816        1.0010       -.96113E-09   -1.5524    
  19  Prefactor      .0000        .65301       -.96525E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          91.770        1.0017       -.17517E-08   -1.5516    
  21  norm          151.83        1.0014       -.19140E-08   -1.5462    
  22  Prefactor     5.9597        1.0036         .0000       -1.5659    
  23  Prefactor     1.4222        1.0811         .0000       -1.5684    
  24  Prefactor     .49960E-09    .36898E-01   -.10364E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm           .0000        .38096       -.35796E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor      .0000        .44347E-01   -.35398E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .25505       -.33236E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .15625        .42058       -.76195E-05   -1.3201    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.77314e-12
Minuit parameter uncertainties:
  1  7.11891e-06
  2  4.02546e-05
  3  9.5255e-07
  4  4.93928e-07
  5  3.25967e-05
  6  1.00138
  7  2.2917e-09
  8  1.67478e-06
  9  6.66234e-05
  10  1.00001
  11  1.61675e-08
  12  4.69925e-09
  13  0.444324
  14  1.07271
  15  1.00164
  16  1.10437
  17  1.00214
  18  1.00096
  19  3.48113e-06
  20  1.00167
  21  1.00141
  22  1.00356
  23  1.08114
  24  8.48795e-06
  25  2.64558e-07
  26  1.55091e-06
  27  1.71117e-06
  28  0.42909
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 21.2292028082

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.000e+06  4.443e-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.563e-01  4.291e-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:  1.000e-02  1.711e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.45
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.99e-02 +/- 2.22e-08
Energy Flux (Fixed Index): 2.81e+01 +/- 1.25e-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) = 15.8212248306
delta logL = 5.40797797758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15.8190806594
delta logL = 5.41012214884

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15.81908     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      163 TOTAL
                     EDM=   .54E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E+07    .71103E+06    .17802E-02** at limit **
   2  alpha         5.0000        .27178       -.80380E-06** at limit **
   3  Normalizat    .10000E-01    .38897       -.26428E-05** at limit **
   4  Prefactor     .15616        .20186        .54463E-07    .20127E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1e+06
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.156165
 **********
 **   18 **HESSE 
 **********

 FCN=   15.81908     FROM HESSE     STATUS=OK            25 CALLS      188 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E+07    .71103E+06    .10702E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         5.0000        .27173        .92830E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .38906        .78264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .15616        .20159        .64438E-04   -1.3202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07994e-13
Minuit parameter uncertainties:
  1  0.000685489
  2  1.721e-10
  3  9.28799e-10
  4  0.202485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/819040': 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) = 15.8190768345
delta logL = 5.41012597371

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.000e+06  6.855e-04  0.000e+00  1.000e+06 ( 1.000e-11)
284        alpha:  5.000e+00  1.721e-10  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.562e-01  2.025e-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:  1.000e-02  9.288e-10  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.01
Ra Dec: 124.557 42.382
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.13e+00 +/- 3.82e-09
Energy Flux (Free Index): 6.96e+02 +/- 5.16e-07

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/819040/cmap_HighResolution_694224001_694483201_4FGL_J0818.2+4222_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.99e-02', energy_flux2='6.96e+02', photon_flux_error='2.22e-08', dlogl='5.41e+00', energy_flux='2.81e+01', photon_flux2='5.13e+00', job_status='DONE', time_completed='2023-01-04 00:52:04.512233', photon_index_error2='0.00', photon_index2='5.00', ts='7.45', fit_tolerance='1e-08', GAL='0.16', photon_index_error='0.00', energy_flux_error2='5.16e-07', EG='0.01', time_epoch_completed='1672822324.51', return_code='101', job_id='819040', GAL2='0.16', EG2='0.01', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='3.82e-09', ts2='19.01', photon_index='2.00' WHERE bin_id='1755' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 00:52:04 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 819040: <4FGL_J0818.2+4222_daily_bin1755> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin1755> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Jan  4 00:45:31 2023
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 00:46:04 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 00:46:04 2023
Terminated at Wed Jan  4 00:52:05 2023
Results reported at Wed Jan  4 00:52:05 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin1755 124.557 42.3819 694224001 694483201 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 :                                   332.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             475.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   360 sec.
    Turnaround time :                            394 sec.

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

