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


Performing analysis on: 4FGL_J0818.2+4222_daily_bin1747
RA = 124.557, Dec = 42.3819
tmin = 692150401, tmax = 692409601
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='794215', job_status='RUN', time_executed='2022-12-11 00:31:19.135701', time_epoch_executed='1670747479.14' WHERE source_name='4FGL J0818.2+4222' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794215

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794215/ft1_4FGL_J0818.2+4222_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794215/ft2_4FGL_J0818.2+4222_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794215/ft1_4FGL_J0818.2+4222_daily_bin1747.fits outfile=/scratch/kocevski/794215/ft1_filteredMKT_4FGL_J0818.2+4222_daily_bin1747.fits ra=124.557 dec=42.3819 rad=12.0 tmin=692150401.0 tmax=692409601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.03
user 3.76
sys 0.25

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

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

Number of photons that the gtmktime cut: 759

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/794215/ft1_filtered_4FGL_J0818.2+4222_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/794215/ft2_4FGL_J0818.2+4222_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/794215/ltcube_692150401_692409601_4FGL_J0818.2+4222_daily_bin1747.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/794215/ft2_4FGL_J0818.2+4222_daily_bin1747.fits
.....................!
real 12.19
user 11.85
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794215/ft1_filtered_4FGL_J0818.2+4222_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/794215/ft2_4FGL_J0818.2+4222_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/794215/ltcube_692150401_692409601_4FGL_J0818.2+4222_daily_bin1747.fits outfile=/scratch/kocevski/794215/expmap_692150401_692409601_4FGL_J0818.2+4222_daily_bin1747.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/794215/ltcube_692150401_692409601_4FGL_J0818.2+4222_daily_bin1747.fits
.....................!
real 192.43
user 186.70
sys 5.40

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/794215/ft1_filtered_4FGL_J0818.2+4222_daily_bin1747.fits scfile=/scratch/kocevski/794215/ft2_4FGL_J0818.2+4222_daily_bin1747.fits outfile=/scratch/kocevski/794215/cmap_692150401_692409601_4FGL_J0818.2+4222_daily_bin1747.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/794215/ft1_filtered_4FGL_J0818.2+4222_daily_bin1747.fits scfile=/scratch/kocevski/794215/ft2_4FGL_J0818.2+4222_daily_bin1747.fits outfile=/scratch/kocevski/794215/cmap_HighResolution_692150401_692409601_4FGL_J0818.2+4222_daily_bin1747.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.36
sys 0.17

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8266.89709221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68834E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    8.5891       1.0000          .0000       .10000E+07
     3 'Prefactor '    .69612E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .10894E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .65558E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .44640E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .35028E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.4712       1.0000          .0000       .10000E+07
     9 'Prefactor '    73.178       1.0000          .0000       .10000E+07
    10 'Prefactor '    30.918       1.0000          .0000       .10000E+07
    11 'norm      '    8.6241       1.0000          .0000       .10000E+07
    12 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    13 'norm      '    .55797       1.0000          .0000       .10000E+07
    14 'Prefactor '    24.506       1.0000          .0000       .10000E+07
    15 'Prefactor '    .17178E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .43205       1.0000          .0000       .10000E+07
    17 'Prefactor '    .20376E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    7.8026       1.0000          .0000       .10000E+07
    19 'Prefactor '    8.8591       1.0000          .0000       .10000E+07
    20 'norm      '    .76550E-07   1.0000          .0000       .10000E+07
    21 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    22 'Prefactor '    .13369E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    18.641       1.0000          .0000       .10000E+07
    24 'Prefactor '    .11499E-02   1.0000          .0000       .10000E+07
    25 'norm      '    .34805E-07   1.0000          .0000       .10000E+07
    26 'Prefactor '    .56566E-07   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.1158       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0212       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=   8261.396     FROM MIGRAD    STATUS=CONVERGED    191 CALLS     1522 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        3.0364       -.53577E-08** at limit **
   2  Prefactor     8.4605        2.2899        .49970E-09    .54599E-02
   3  Prefactor     .52958E-07    2.9126        .41955E-07** at limit **
   4  Prefactor     .10825E-07    3.4473        .11259E-07** at limit **
   5  Prefactor     .32307E-07    10.696        .45531E-07** at limit **
   6  norm          .51303E-06    6.7116       -.17627E-07** at limit **
   7  norm           .0000        1.2807        .31264E-07** at limit **
   8  Prefactor     1.4313        12.283        .38885E-06    .40893E-02
   9  Prefactor     73.706        51.013       -.31694E-07   -.21427E-02
  10  Prefactor     30.910        7.1670       -.36771E-07   -.18691E-01
  11  norm          8.5995        5.4756        .30126E-08    .37898E-03
  12  norm           .0000        .94112        .28319E-07** at limit **
  13  norm          .55766        .45139        .61343E-07    .18156E-02
  14  Prefactor     24.465        24.704        .60440E-07   -.24214E-01
  15  Prefactor      .0000        4.5180        .23199E-07** at limit **
  16  Prefactor     .43074        2.1680        .30364E-06    .51908E-03
  17  Prefactor     .41800E-07    6.1310        .65508E-07** at limit **
  18  Prefactor     7.7921        3.1534       -.69548E-07    .12273E-01
  19  Prefactor     8.7720        2.0952        .35239E-07   -.24317E-01
  20  norm           .0000        2.4882        .14938E-07** at limit **
  21  norm           .0000        2.0104        .19922E-07** at limit **
  22  Prefactor     .26867E-06    11.035       -.31032E-07** at limit **
  23  Prefactor     18.579        5.5037       -.17361E-08   -.92300E-03
  24  Prefactor     .16265E-07    5.3098        .13609E-08** at limit **
  25  norm           .0000        .18706        .43067E-07** at limit **
  26  Prefactor      .0000        1.3823        .89367E-08** at limit **
  27  Normalizat    1.1164        .21723       -.15351E-05    .70861E-05
  28  Prefactor     1.0213        .16235        .13894E-05    .21467E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 8.46049
  Prefactor  = 5.29576e-08
  Prefactor  = 1.08247e-08
  Prefactor  = 3.23075e-08
  norm       = 5.13034e-07
  norm       = 0
  Prefactor  = 1.43131
  Prefactor  = 73.7058
  Prefactor  = 30.9103
  norm       = 8.59948
  norm       = 0
  norm       = 0.55766
  Prefactor  = 24.4646
  Prefactor  = 0
  Prefactor  = 0.430741
  Prefactor  = 4.17999e-08
  Prefactor  = 7.79205
  Prefactor  = 8.77203
  norm       = 0
  norm       = 0
  Prefactor  = 2.68674e-07
  Prefactor  = 18.5793
  Prefactor  = 1.62648e-08
  norm       = 0
  Prefactor  = 0
  Normalizat = 1.1164
  Prefactor  = 1.0213
 **********
 **   18 **HESSE 
 **********

 FCN=   8261.396     FROM HESSE     STATUS=OK           571 CALLS     2093 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        3.0341        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.4605        15.467        .34180E-03   -1.5650    
   3  Prefactor     .52958E-07    8.5329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10825E-07    9.0897        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .32307E-07    11.691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .51303E-06    13.954        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        1.2750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4313        14.439        .88558E-03   -1.5684    
   9  Prefactor     73.706        52.448        .11691E-03   -1.5536    
  10  Prefactor     30.910        7.5043        .17987E-03   -1.5597    
  11  norm          8.5995        5.4873        .34110E-03   -1.5649    
  12  norm           .0000        .93630        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55766        .45868        .73080E-03   -1.5693    
  14  Prefactor     24.465        27.333        .20205E-03   -1.5609    
  15  Prefactor      .0000        4.5171        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .43074        2.1597        .85863E-03   -1.5695    
  17  Prefactor     .41800E-07    8.3245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.7921        8.2643        .35874E-03   -1.5652    
  19  Prefactor     8.7720        8.5113        .33651E-03   -1.5649    
  20  norm           .0000        2.4844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        2.0095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .26867E-06    14.597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.579        5.4830        .23170E-03   -1.5622    
  24  Prefactor     .16265E-07    9.2043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm           .0000        .18522        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor      .0000        1.3797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1164        .18791        .66911E-01   -.89227    
  28  Prefactor     1.0213        .14087        .42020E-01   -.92023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09743e-07
Minuit parameter uncertainties:
  1  1.02557e-05
  2  15.4671
  3  0.00134459
  4  0.000627644
  5  0.00122954
  6  0.00535132
  7  7.11469e-07
  8  9.09223
  9  52.4487
  10  7.50425
  11  5.48727
  12  1.37658e-07
  13  0.458679
  14  27.3336
  15  7.73668e-06
  16  1.929
  17  0.00117945
  18  8.26435
  19  8.5113
  20  8.12469e-06
  21  2.40747e-06
  22  0.00396091
  23  5.48295
  24  0.000774298
  25  2.47613e-07
  26  1.04911e-06
  27  0.18802
  28  0.140924
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  5.577e-01  4.587e-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.021e+00  1.409e-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.116e+00  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.40
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.78e-08 +/- 2.29e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.29e-05

TS (Fixed Index): 3.40
Ra Dec: 124.557 42.382
Photon Flux Upper Limit: 8.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/794215/likelihoodResults_692150401_692409601_4FGL_J0818.2+4222_daily_bin1747.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) = 8261.39422581
delta logL = 0.00182835497253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8261.39420802
delta logL = 0.00184614741738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .55596       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0306       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1157       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0215       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=   8261.394     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      196 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55596        15.149        .73269E-03    .12130E-01
   2  alpha         2.0306        2.7788        .42108        .51972E-05
   3  Normalizat    1.1157        .89130E-01    .66928E-01    .69076E-04
   4  Prefactor     1.0215        .70730E-01    .41991E-01   -.21397E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.555957
  alpha      = 2.03055
  Normalizat = 1.1157
  Prefactor  = 1.02154
 **********
 **   18 **HESSE 
 **********

 FCN=   8261.394     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55596        .44878        .53203E-05   -1.5693    
   2  alpha         2.0306        .56846        .17288E-01   -.18890    
   3  Normalizat    1.1157        .20699        .29609E-03   -.89249    
   4  Prefactor     1.0215        .16027        .23680E-03   -.92015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.87932e-11
Minuit parameter uncertainties:
  1  0.448778
  2  0.573663
  3  0.207139
  4  0.160343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794215': 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) = 8261.39420801
delta logL = 0.00184615708895

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  5.560e-01  4.488e-01  0.000e+00  1.000e+06 ( 1.000e-11)
284        alpha:  2.031e+00  5.737e-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.022e+00  1.603e-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.116e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.42
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.03 +/- 0.57
Photon Flux (Free Index): 2.87e-08 +/- 2.70e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.41e-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/794215/cmap_HighResolution_692150401_692409601_4FGL_J0818.2+4222_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-05', comment='SUCCESS', photon_flux='2.78e-08', energy_flux2='1.53e-05', photon_flux_error='2.29e-08', dlogl='1.85e-03', energy_flux='1.57e-05', photon_flux2='2.87e-08', job_status='DONE', time_completed='2022-12-11 00:43:36.170571', photon_index_error2='0.57', photon_index2='2.03', ts='3.40', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='8.33e-08', energy_flux_error2='1.41e-05', EG='1.12', time_epoch_completed='1670748216.17', return_code='0', job_id='794215', GAL2='1.02', EG2='1.12', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='2.70e-08', ts2='3.42', photon_index='2.00' WHERE bin_id='1747' AND source_name='4FGL J0818.2+4222' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 00:43:36 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 794215: <4FGL_J0818.2+4222_daily_bin1747> in cluster <slac> Done

Job <4FGL_J0818.2+4222_daily_bin1747> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Dec 11 00:30:17 2022
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 00:30:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 00:30:19 2022
Terminated at Sun Dec 11 00:43:36 2022
Results reported at Sun Dec 11 00:43:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_daily_bin1747 124.557 42.3819 692150401 692409601 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 :                                   739.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            799 sec.

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

