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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin606
RA = 124.557, Dec = 42.3819
tmin = 605491201, tmax = 606096001
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='571703', job_status='RUN', time_executed='2021-07-13 14:55:41.422581', time_epoch_executed='1626213341.42' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571703

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571703/ft1_4FGL_J0818.2+4222_weekly_bin606.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571703/ft2_4FGL_J0818.2+4222_weekly_bin606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571703/ft1_4FGL_J0818.2+4222_weekly_bin606.fits outfile=/scratch/kocevski/571703/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin606.fits ra=124.557 dec=42.3819 rad=12.0 tmin=605491201.0 tmax=606096001.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 9.95
user 9.40
sys 0.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/571703/ft1_filtered_4FGL_J0818.2+4222_weekly_bin606.fits" evtable="EVENTS" scfile=/scratch/kocevski/571703/ft2_4FGL_J0818.2+4222_weekly_bin606.fits sctable="SC_DATA" outfile=/scratch/kocevski/571703/ltcube_605491201_606096001_4FGL_J0818.2+4222_weekly_bin606.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/571703/ft2_4FGL_J0818.2+4222_weekly_bin606.fits
.....................!
real 31.45
user 30.88
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571703/ft1_filtered_4FGL_J0818.2+4222_weekly_bin606.fits evtable="EVENTS" scfile=/scratch/kocevski/571703/ft2_4FGL_J0818.2+4222_weekly_bin606.fits sctable="SC_DATA" expcube=/scratch/kocevski/571703/ltcube_605491201_606096001_4FGL_J0818.2+4222_weekly_bin606.fits outfile=/scratch/kocevski/571703/expmap_605491201_606096001_4FGL_J0818.2+4222_weekly_bin606.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/571703/ltcube_605491201_606096001_4FGL_J0818.2+4222_weekly_bin606.fits
.....................!
real 193.26
user 187.66
sys 4.90

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
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/571703/ft1_filtered_4FGL_J0818.2+4222_weekly_bin606.fits scfile=/scratch/kocevski/571703/ft2_4FGL_J0818.2+4222_weekly_bin606.fits outfile=/scratch/kocevski/571703/cmap_605491201_606096001_4FGL_J0818.2+4222_weekly_bin606.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.61
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571703/ft1_filtered_4FGL_J0818.2+4222_weekly_bin606.fits scfile=/scratch/kocevski/571703/ft2_4FGL_J0818.2+4222_weekly_bin606.fits outfile=/scratch/kocevski/571703/cmap_HighResolution_605491201_606096001_4FGL_J0818.2+4222_weekly_bin606.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.61
user 0.41
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/571703/ft1_filtered_4FGL_J0818.2+4222_weekly_bin606.fits', '/scratch/kocevski/571703/ft2_4FGL_J0818.2+4222_weekly_bin606.fits', expMap='/scratch/kocevski/571703/expmap_605491201_606096001_4FGL_J0818.2+4222_weekly_bin606.fits', expCube='/scratch/kocevski/571703/ltcube_605491201_606096001_4FGL_J0818.2+4222_weekly_bin606.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/571703/Model_4FGL_J0818.2+4222_weekly_bin606.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/571703/ft1_filtered_4FGL_J0818.2+4222_weekly_bin606.fits
Spacecraft file(s): /scratch/kocevski/571703/ft2_4FGL_J0818.2+4222_weekly_bin606.fits
Exposure map: /scratch/kocevski/571703/expmap_605491201_606096001_4FGL_J0818.2+4222_weekly_bin606.fits
Exposure cube: /scratch/kocevski/571703/ltcube_605491201_606096001_4FGL_J0818.2+4222_weekly_bin606.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/571703/Model_4FGL_J0818.2+4222_weekly_bin606.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) = 15673.5808762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .67738E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.901       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .80721       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .98214       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.2595       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9499       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5152       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1395       1.0000         .10000E-03   10000.    
    12 'norm      '    .82452       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0653       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16202E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18754E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18137E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4652       1.0000         .10000E-03   10000.    
    20 'norm      '    24.843       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2285       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .95316       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.426       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .28329E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.6698       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.2646       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0374       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0230       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=   15673.56     FROM MIGRAD    STATUS=CONVERGED    872 CALLS     4271 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    15.003        .74168E-06** at limit **
   2  Prefactor     .10000E-03    4.4067       -.96278E-07** at limit **
   3  Prefactor     47.901        21.257        .56990E-06    .80125E-04
   4  Prefactor     .79453        14.693       -.22964E-05   -.13339E-03
   5  Prefactor     .99290        20.689       -.69604E-06   -.85361E-04
   6  norm          .10000E-03    3.5033       -.70989E-07** at limit **
   7  norm          1.2593        1.8173        .49477E-06    .29471E-03
   8  Prefactor     3.9477        5.2819       -.86801E-06   -.19443E-03
   9  Prefactor     .10000E-03    49.950       -.14884E-05** at limit **
  10  Prefactor     1.5151        1.6855       -.11240E-07   -.47213E-05
  11  norm          2.1395        2.1774       -.16014E-07    .28793E-05
  12  norm          .82423        .76339        .23995E-07    .39328E-04
  13  norm          2.0652        .49074       -.20928E-07   -.65778E-03
  14  Prefactor     .10236E-03    198.32       -.25822E-05** at limit **
  15  Prefactor     .10000E-03    3.4779       -.59976E-07** at limit **
  16  Prefactor     .10000E-03    .69889        .29328E-07** at limit **
  17  Prefactor     .10000E-03    12.840       -.12639E-06** at limit **
  18  Prefactor     .10017E-03    20.299       -.25858E-06** at limit **
  19  Prefactor     1.4652        2.9519       -.23409E-07   -.27535E-04
  20  norm          24.842        5.8658        .46571E-07    .59041E-04
  21  norm          1.2286        2.2796        .94099E-07    .25692E-04
  22  Prefactor     .95349        1.9916        .33355E-07   -.60734E-04
  23  Prefactor     10.405        36.995       -.94679E-06   -.21724E-04
  24  Prefactor     .10154E-03    662.63       -.64244E-05** at limit **
  25  Prefactor     2.6699        1.9970        .23538E-07    .24484E-04
  26  Prefactor     .10000E-03    8.7878       -.15599E-06** at limit **
  27  norm          .10000E-03    .16128       -.16512E-06** at limit **
  28  Prefactor     4.2652        2.7379        .33321E-06   -.76522E-06
  29  Normalizat    1.0374        .12932       -.49608E-06    .56660E-04
  30  Prefactor     1.0231        .96134E-01    .61320E-06   -.79944E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 47.9006
  Prefactor  = 0.79453
  Prefactor  = 0.992898
  norm       = 0.0001
  norm       = 1.25931
  Prefactor  = 3.94768
  Prefactor  = 0.0001
  Prefactor  = 1.51507
  norm       = 2.13947
  norm       = 0.824231
  norm       = 2.06523
  Prefactor  = 0.000102355
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.00010017
  Prefactor  = 1.46515
  norm       = 24.8422
  norm       = 1.22859
  Prefactor  = 0.953492
  Prefactor  = 10.4052
  Prefactor  = 0.000101537
  Prefactor  = 2.66989
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.26523
  Normalizat = 1.0374
  Prefactor  = 1.02307
 **********
 **   18 **HESSE 
 **********

 FCN=   15673.56     FROM HESSE     STATUS=OK           648 CALLS     4919 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    3.7309        .59654E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.4420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     47.901        21.209        .57937E-04   -1.4323    
   4  Prefactor     .79453        15.651        .46262E-02   -1.5530    
   5  Prefactor     .99290        20.903        .47860E-02   -1.5509    
   6  norm          .10000E-03    3.5598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.2593        1.8132        .18806E-03   -1.5484    
   8  Prefactor     3.9477        5.2712        .20297E-03   -1.5311    
   9  Prefactor     .10000E-03    50.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5151        1.6820        .16553E-03   -1.5462    
  11  norm          2.1395        2.1741        .17709E-03   -1.5415    
  12  norm          .82423        .76438        .12193E-02   -1.5526    
  13  norm          2.0652        .48926        .40731E-04   -1.5421    
  14  Prefactor     .10236E-03    11.691        .12501       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.1119        .33860E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10017E-03    3.6942        .70003E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4652        2.9087        .29680E-03   -1.5466    
  20  norm          24.842        5.8697        .80369E-04   -1.4711    
  21  norm          1.2286        2.2272        .24887E-03   -1.5486    
  22  Prefactor     .95349        1.9825        .23316E-03   -1.5513    
  23  Prefactor     10.405        37.058        .12409E-03   -1.5063    
  24  Prefactor     .10154E-03    14.221        .14997       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.6699        1.9946        .14497E-03   -1.5381    
  26  Prefactor     .10000E-03    8.8192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .38289        .89391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.2652        2.8554        .16103E-03   -1.5295    
  29  Normalizat    1.0374        .14767        .28558E-03   -.91788    
  30  Prefactor     1.0231        .10950        .22061E-03   -.91965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55695e-07
Minuit parameter uncertainties:
  1  0.000350605
  2  1.08405e-06
  3  21.2123
  4  7.05435
  5  9.11469
  6  9.14445e-07
  7  1.81327
  8  5.27182
  9  1.54304e-05
  10  1.68201
  11  2.17422
  12  0.764392
  13  0.489262
  14  0.0104974
  15  2.09628e-06
  16  9.97214e-05
  17  4.90526e-06
  18  0.00158537
  19  2.90901
  20  5.86979
  21  2.22736
  22  1.9826
  23  37.1402
  24  0.00935173
  25  1.99468
  26  7.58065e-07
  27  5.84996e-06
  28  2.85554
  29  0.14773
  30  0.109523
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  2.065e+00  4.893e-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:  1.023e+00  1.095e-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.037e+00  1.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 57.13
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 2.44e-08
Energy Flux (Fixed Index): 5.81e-05 +/- 1.38e-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) = 15673.2586185
delta logL = 0.302337394634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15673.219631
delta logL = 0.341324840416

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0622       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8260       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0185       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=   15673.22     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0624        .58344        .71936E-02    .16368E-03
   2  alpha         1.8261        .22271        .22960       -.19228E-04
   3  Normalizat    1.0512        .11993        .64205E-01    .32610E-04
   4  Prefactor     1.0185        .92113E-01    .42297E-01    .13335E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.06239
  alpha      = 1.82611
  Normalizat = 1.05119
  Prefactor  = 1.01853
 **********
 **   18 **HESSE 
 **********

 FCN=   15673.22     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0624        .50286        .42017E-04   -1.5421    
   2  alpha         1.8261        .20362        .95484E-02   -.27293    
   3  Normalizat    1.0512        .13765        .28400E-03   -.91335    
   4  Prefactor     1.0185        .10587        .22111E-03   -.92114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51613e-11
Minuit parameter uncertainties:
  1  0.502865
  2  0.20386
  3  0.137695
  4  0.105887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571703': 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) = 15673.2196307
delta logL = 0.341325186741

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  2.062e+00  5.029e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.826e+00  2.039e-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:  1.019e+00  1.059e-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.051e+00  1.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 57.74
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.83 +/- 0.20
Photon Flux (Free Index): 8.80e-08 +/- 2.77e-08
Energy Flux (Free Index): 6.85e-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/571703/cmap_HighResolution_605491201_606096001_4FGL_J0818.2+4222_weekly_bin606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='6.85e-05', photon_flux_error='2.44e-08', dlogl='3.41e-01', energy_flux='5.81e-05', photon_flux2='8.80e-08', job_status='DONE', time_completed='2021-07-13 15:29:47.069783', photon_index_error2='0.20', photon_index2='1.83', ts='57.13', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.24e-05', EG='1.04', time_epoch_completed='1626215387.07', return_code='0', job_id='571703', GAL2='1.02', EG2='1.05', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='2.77e-08', ts2='57.74', photon_index='2.00' WHERE bin_id='606' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:29:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 571703: <4FGL_J0818.2+4222_weekly_bin606> in cluster <slac> Done

Job <4FGL_J0818.2+4222_weekly_bin606> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Jul 12 07:41:02 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 07:43:37 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:43:37 2021
Terminated at Tue Jul 13 15:29:54 2021
Results reported at Tue Jul 13 15:29:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin606 124.557 42.3819 605491201 606096001 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 :                                   1659.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             50.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2461 sec.
    Turnaround time :                            114532 sec.

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

