aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 63 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin440
RA = 124.557, Dec = 42.3819
tmin = 505094401, tmax = 505699201
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='569293', job_status='RUN', time_executed='2021-07-12 07:41:01.336769', time_epoch_executed='1626100861.34' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569293

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569293/ft1_4FGL_J0818.2+4222_weekly_bin440.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569293/ft2_4FGL_J0818.2+4222_weekly_bin440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569293/ft1_4FGL_J0818.2+4222_weekly_bin440.fits outfile=/scratch/kocevski/569293/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin440.fits ra=124.557 dec=42.3819 rad=12.0 tmin=505094401.0 tmax=505699201.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 8.77
user 7.68
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/569293/ft2_4FGL_J0818.2+4222_weekly_bin440.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/569293/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin440.fits evtable="EVENTS" outfile="/scratch/kocevski/569293/ft1_filtered_4FGL_J0818.2+4222_weekly_bin440.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 2.09
user 0.38
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569293/ft1_filtered_4FGL_J0818.2+4222_weekly_bin440.fits" evtable="EVENTS" scfile=/scratch/kocevski/569293/ft2_4FGL_J0818.2+4222_weekly_bin440.fits sctable="SC_DATA" outfile=/scratch/kocevski/569293/ltcube_505094401_505699201_4FGL_J0818.2+4222_weekly_bin440.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/569293/ft2_4FGL_J0818.2+4222_weekly_bin440.fits
.....................!
real 29.28
user 27.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569293/ft1_filtered_4FGL_J0818.2+4222_weekly_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/569293/ft2_4FGL_J0818.2+4222_weekly_bin440.fits sctable="SC_DATA" expcube=/scratch/kocevski/569293/ltcube_505094401_505699201_4FGL_J0818.2+4222_weekly_bin440.fits outfile=/scratch/kocevski/569293/expmap_505094401_505699201_4FGL_J0818.2+4222_weekly_bin440.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/569293/ltcube_505094401_505699201_4FGL_J0818.2+4222_weekly_bin440.fits
.....................!
real 203.18
user 185.52
sys 5.85

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/569293/ft1_filtered_4FGL_J0818.2+4222_weekly_bin440.fits scfile=/scratch/kocevski/569293/ft2_4FGL_J0818.2+4222_weekly_bin440.fits outfile=/scratch/kocevski/569293/cmap_505094401_505699201_4FGL_J0818.2+4222_weekly_bin440.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 1.91
user 0.42
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569293/ft1_filtered_4FGL_J0818.2+4222_weekly_bin440.fits scfile=/scratch/kocevski/569293/ft2_4FGL_J0818.2+4222_weekly_bin440.fits outfile=/scratch/kocevski/569293/cmap_HighResolution_505094401_505699201_4FGL_J0818.2+4222_weekly_bin440.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 1.81
user 0.44
sys 0.19

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/569293/ft1_filtered_4FGL_J0818.2+4222_weekly_bin440.fits', '/scratch/kocevski/569293/ft2_4FGL_J0818.2+4222_weekly_bin440.fits', expMap='/scratch/kocevski/569293/expmap_505094401_505699201_4FGL_J0818.2+4222_weekly_bin440.fits', expCube='/scratch/kocevski/569293/ltcube_505094401_505699201_4FGL_J0818.2+4222_weekly_bin440.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/569293/Model_4FGL_J0818.2+4222_weekly_bin440.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  1.000e-04  1.000e+04 ( 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  0.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/569293/ft1_filtered_4FGL_J0818.2+4222_weekly_bin440.fits
Spacecraft file(s): /scratch/kocevski/569293/ft2_4FGL_J0818.2+4222_weekly_bin440.fits
Exposure map: /scratch/kocevski/569293/expmap_505094401_505699201_4FGL_J0818.2+4222_weekly_bin440.fits
Exposure cube: /scratch/kocevski/569293/ltcube_505094401_505699201_4FGL_J0818.2+4222_weekly_bin440.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/569293/Model_4FGL_J0818.2+4222_weekly_bin440.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) = 16137.9475972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7995       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.655       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    18.966       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0807       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26170E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1553       1.0000         .10000E-03   10000.    
    11 'norm      '    7.6095       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .45940       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2700       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.092       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4073       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6410       1.0000         .10000E-03   10000.    
    21 'norm      '    6.5017       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0342       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.233       1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.971       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.3565       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.1416       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1711       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87961       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=   16137.93     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3978 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7997        5.2668       -.59116E-07   -.67445E-05
   2  Prefactor     10.655        8.0134       -.88883E-07    .33627E-05
   3  Prefactor     .10000E-03    9.1760        .23850E-05** at limit **
   4  Prefactor     .10000E-03    3.0198       -.13215E-07** at limit **
   5  Prefactor     .10000E-03    2.4828        .29169E-07** at limit **
   6  norm          18.966        9.5866       -.12799E-06    .62198E-05
   7  norm          1.0807        1.0908       -.95522E-08   -.21706E-04
   8  Prefactor     .10000E-03    2.3965       -.87384E-07** at limit **
   9  Prefactor     .10000E-03    8.3464       -.17156E-05** at limit **
  10  Prefactor     5.1553        3.2100       -.62692E-07    .22682E-04
  11  norm          7.6095        2.9660        .89481E-07    .15863E-04
  12  norm          .10000E-03    .35368       -.28579E-07** at limit **
  13  norm          .45932        .32155        .13664E-07    .17579E-03
  14  Prefactor     .10000E-03    11.333       -.61896E-06** at limit **
  15  Prefactor     1.2693        .62747       -.27404E-07   -.27161E-03
  16  Prefactor     .10000E-03    .46523       -.14106E-07** at limit **
  17  Prefactor     27.091        16.711       -.38697E-06    .11553E-05
  18  Prefactor     .10000E-03    1.9877        .26564E-07** at limit **
  19  Prefactor     2.4073        4.3085       -.45315E-08   -.17261E-05
  20  norm          1.6409        2.6239       -.17367E-06    .11406E-04
  21  norm          6.5015        3.8812        .14154E-06    .26662E-04
  22  Prefactor     1.0345        1.7916        .42319E-06    .24722E-03
  23  Prefactor     11.227        39.980       -.16227E-04   -.62158E-05
  24  Prefactor     19.971        17.277       -.58033E-06   -.12027E-05
  25  Prefactor     3.3564        2.0378       -.16892E-07   -.21084E-04
  26  Prefactor     .10000E-03    5.1094        .14880E-06** at limit **
  27  norm          1.1416        .35966        .21002E-08   -.33063E-04
  28  Prefactor     .10000E-03    1.8316        .88115E-09** at limit **
  29  Normalizat    1.1712        .12164        .30813E-06   -.37712E-04
  30  Prefactor     .87957        .89300E-01    .47199E-07    .27725E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.79972
  Prefactor  = 10.6553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.966
  norm       = 1.08069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.1553
  norm       = 7.60948
  norm       = 0.0001
  norm       = 0.459322
  Prefactor  = 0.0001
  Prefactor  = 1.26931
  Prefactor  = 0.0001
  Prefactor  = 27.0911
  Prefactor  = 0.0001
  Prefactor  = 2.40729
  norm       = 1.64086
  norm       = 6.50147
  Prefactor  = 1.03449
  Prefactor  = 11.2266
  Prefactor  = 19.9707
  Prefactor  = 3.35638
  Prefactor  = 0.0001
  norm       = 1.14161
  Prefactor  = 0.0001
  Normalizat = 1.17115
  Prefactor  = 0.879567
 **********
 **   18 **HESSE 
 **********

 FCN=   16137.93     FROM HESSE     STATUS=OK           600 CALLS     4578 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7997        5.2770        .18364E-03   -1.5270    
   2  Prefactor     10.655        8.0130        .12274E-03   -1.5055    
   3  Prefactor     .10000E-03    9.2002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.4861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.966        9.5861        .91968E-04   -1.4837    
   7  norm          1.0807        1.0726        .12921E-03   -1.5500    
   8  Prefactor     .10000E-03    15.839        .37790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.3528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.1553        3.2004        .16804E-03   -1.5254    
  11  norm          7.6095        2.9604        .13195E-03   -1.5156    
  12  norm          .10000E-03    .36775        .14717E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .45932        .30360        .56824E-03   -1.5572    
  14  Prefactor     .10000E-03    11.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2693        6.6858        .19744E-02   -1.5483    
  16  Prefactor     .10000E-03    .46982        .84556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.091        16.803        .76967E-04   -1.4667    
  18  Prefactor     .10000E-03    1.9927        .17485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4073        4.2868        .26387E-03   -1.5398    
  20  norm          1.6409        2.5876        .24894E-03   -1.5452    
  21  norm          6.5015        3.8696        .15739E-03   -1.5198    
  22  Prefactor     1.0345        1.7836        .20627E-03   -1.5505    
  23  Prefactor     11.227        39.988        .11953E-03   -1.5038    
  24  Prefactor     19.971        17.269        .89625E-04   -1.4814    
  25  Prefactor     3.3564        2.0381        .13483E-03   -1.5342    
  26  Prefactor     .10000E-03    5.1169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.1416        .35594        .40899E-04   -1.5494    
  28  Prefactor     .10000E-03    1.8804        .33318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1712        .14140        .26371E-03   -.87499    
  30  Prefactor     .87957        .10396        .22825E-03   -.96859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88314e-10
Minuit parameter uncertainties:
  1  5.27751
  2  8.01382
  3  6.95205e-06
  4  2.01792e-06
  5  5.19993e-07
  6  9.58691
  7  1.07259
  8  0.00010223
  9  4.23398e-07
  10  3.20048
  11  2.96049
  12  6.16258e-07
  13  0.303601
  14  2.92663e-06
  15  5.82707
  16  8.71777e-08
  17  16.806
  18  4.94188e-07
  19  4.28735
  20  2.58774
  21  3.86976
  22  1.78369
  23  40.0841
  24  17.2737
  25  2.03816
  26  1.52784e-06
  27  0.35594
  28  3.76941e-07
  29  0.141447
  30  0.103979
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  4.593e-01  3.036e-01  1.000e-04  1.000e+04 ( 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  0.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:  8.796e-01  1.040e-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.171e+00  1.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.46
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.29e-08 +/- 1.52e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 8.54e-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) = 16137.8525855
delta logL = 0.0747226529584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16137.8516629
delta logL = 0.0756452474507

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16137.85     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      254 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44953        .30300        .57156E-03    .60330E-02
   2  alpha         1.8049        .47834        .19520E-01   -.96798E-05
   3  Normalizat    1.1748        .13173        .26336E-03    .15886E-04
   4  Prefactor     .87841        .10100        .22839E-03    .90595E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.44953
  alpha      = 1.80495
  Normalizat = 1.17483
  Prefactor  = 0.878408
 **********
 **   18 **HESSE 
 **********

 FCN=   16137.85     FROM HESSE     STATUS=OK            27 CALLS      281 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44953        .30579        .11431E-03   -1.5574    
   2  alpha         1.8049        .48290        .78079E-03   -.28173    
   3  Normalizat    1.1748        .13183        .10535E-04   -.87384    
   4  Prefactor     .87841        .10108        .91356E-05   -.96900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.58438e-12
Minuit parameter uncertainties:
  1  0.305795
  2  0.486219
  3  0.131864
  4  0.101105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569293': 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) = 16137.8516626
delta logL = 0.0756455437622

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  4.495e-01  3.058e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.805e+00  4.862e-01  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  8.301e-02  0.000e+00  0.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:  8.784e-01  1.011e-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.175e+00  1.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.61
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.80 +/- 0.49
Photon Flux (Free Index): 1.88e-08 +/- 1.64e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.23e-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/569293/cmap_HighResolution_505094401_505699201_4FGL_J0818.2+4222_weekly_bin440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.29e-08', energy_flux2='1.53e-05', photon_flux_error='1.52e-08', dlogl='7.56e-02', energy_flux='1.29e-05', photon_flux2='1.88e-08', job_status='DONE', time_completed='2021-07-13 15:14:38.674880', photon_index_error2='0.49', photon_index2='1.80', ts='4.46', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.23e-05', EG='1.17', time_epoch_completed='1626214478.67', return_code='0', job_id='569293', GAL2='0.88', EG2='1.17', return_code2='0', energy_flux_error='8.54e-06', photon_flux_error2='1.64e-08', ts2='4.61', photon_index='2.00' WHERE bin_id='440' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:14:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 569293: <4FGL_J0818.2+4222_weekly_bin440> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin440> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jul 12 07:32:17 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:35:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 12 07:35:03 2021
Terminated at Tue Jul 13 15:14:39 2021
Results reported at Tue Jul 13 15:14:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin440 124.557 42.3819 505094401 505699201 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 :                                   1613.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             615.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2059 sec.
    Turnaround time :                            114142 sec.

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

