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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin588
RA = 124.557, Dec = 42.3819
tmin = 594604801, tmax = 595209601
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='571685', job_status='RUN', time_executed='2021-07-13 14:54:01.158827', time_epoch_executed='1626213241.16' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571685

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571685/ft1_4FGL_J0818.2+4222_weekly_bin588.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571685/ft2_4FGL_J0818.2+4222_weekly_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571685/ft1_4FGL_J0818.2+4222_weekly_bin588.fits outfile=/scratch/kocevski/571685/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin588.fits ra=124.557 dec=42.3819 rad=12.0 tmin=594604801.0 tmax=595209601.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 6.61
user 5.95
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571685/ft1_filtered_4FGL_J0818.2+4222_weekly_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/571685/ft2_4FGL_J0818.2+4222_weekly_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/571685/ltcube_594604801_595209601_4FGL_J0818.2+4222_weekly_bin588.fits outfile=/scratch/kocevski/571685/expmap_594604801_595209601_4FGL_J0818.2+4222_weekly_bin588.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/571685/ltcube_594604801_595209601_4FGL_J0818.2+4222_weekly_bin588.fits
.....................!
real 195.00
user 187.59
sys 5.21

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/571685/ft1_filtered_4FGL_J0818.2+4222_weekly_bin588.fits scfile=/scratch/kocevski/571685/ft2_4FGL_J0818.2+4222_weekly_bin588.fits outfile=/scratch/kocevski/571685/cmap_594604801_595209601_4FGL_J0818.2+4222_weekly_bin588.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.74
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571685/ft1_filtered_4FGL_J0818.2+4222_weekly_bin588.fits scfile=/scratch/kocevski/571685/ft2_4FGL_J0818.2+4222_weekly_bin588.fits outfile=/scratch/kocevski/571685/cmap_HighResolution_594604801_595209601_4FGL_J0818.2+4222_weekly_bin588.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.64
user 0.43
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.082       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.384       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.1943       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0334       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4297       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.717       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4745       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8388       1.0000         .10000E-03   10000.    
    12 'norm      '    .79794       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4664       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4234       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11630E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.3476       1.0000         .10000E-03   10000.    
    21 'norm      '    .32857       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0400       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.4787       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11148E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.2598       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.1882       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .78152       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2729       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=   22935.45     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3437 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.082        5.0506        .74667E-09   -.30380E-03
   2  Prefactor     .10000E-03    4.1442       -.94371E-06** at limit **
   3  Prefactor     11.383        11.883       -.86164E-06   -.32044E-04
   4  Prefactor     .10000E-03    5.1560       -.18452E-06** at limit **
   5  Prefactor     .10000E-03    5.3698        .13120E-06** at limit **
   6  norm          8.1944        5.7289       -.40740E-07   -.83729E-03
   7  norm          1.0339        1.2442        .80098E-07   -.27615E-03
   8  Prefactor     5.4293        2.8396        .24681E-06   -.20922E-02
   9  Prefactor     19.714        19.004       -.32652E-05   -.83450E-04
  10  Prefactor     4.4745        2.8019       -.45009E-09   -.35110E-03
  11  norm          1.8385        1.9720       -.33898E-07   -.50204E-03
  12  norm          .79803        .61472        .35671E-08   -.37830E-04
  13  norm          1.4664        .35683        .13026E-07    .25152E-04
  14  Prefactor     .10000E-03    2.3992        .63955E-07** at limit **
  15  Prefactor     .10000E-03    1.5582       -.13324E-07** at limit **
  16  Prefactor     .10000E-03    .41667        .36428E-08** at limit **
  17  Prefactor     .10000E-03    5.3956        .42356E-06** at limit **
  18  Prefactor     3.4237        3.4979       -.48657E-09   -.15877E-03
  19  Prefactor     .10000E-03    1.1539       -.20142E-06** at limit **
  20  norm          5.3478        3.0699       -.50179E-07   -.13268E-03
  21  norm          .32782        .96933       -.67217E-07   -.73785E-03
  22  Prefactor     2.0400        1.2639       -.18114E-07   -.36736E-03
  23  Prefactor     .10000E-03    10.120       -.12210E-07** at limit **
  24  Prefactor     5.4806        12.738        .25965E-05    .17167E-04
  25  Prefactor     .10000E-03    .37018        .85893E-07** at limit **
  26  Prefactor     3.2599        7.0485       -.90731E-06   -.14317E-03
  27  norm          .10000E-03    .56748E-01   -.87159E-08** at limit **
  28  Prefactor     2.1884        1.8618       -.29645E-07   -.58125E-03
  29  Normalizat    .78150        .10283        .27067E-06   -.17361E-04
  30  Prefactor     1.2729        .82600E-01   -.58610E-08    .64390E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0817
  Prefactor  = 0.0001
  Prefactor  = 11.3826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.19441
  norm       = 1.03387
  Prefactor  = 5.42929
  Prefactor  = 19.7142
  Prefactor  = 4.47453
  norm       = 1.83854
  norm       = 0.798028
  norm       = 1.46644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.4237
  Prefactor  = 0.0001
  norm       = 5.34777
  norm       = 0.327818
  Prefactor  = 2.04004
  Prefactor  = 0.0001
  Prefactor  = 5.48061
  Prefactor  = 0.000100003
  Prefactor  = 3.25986
  norm       = 0.0001
  Prefactor  = 2.18838
  Normalizat = 0.7815
  Prefactor  = 1.27291
 **********
 **   18 **HESSE 
 **********

 FCN=   22935.45     FROM HESSE     STATUS=OK           604 CALLS     4041 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.082        5.0873        .63098E-03   -1.5073    
   2  Prefactor     .10000E-03    4.1905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.383        11.884        .11874E-03   -1.5033    
   4  Prefactor     .10000E-03    5.3566        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.4163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.1944        6.2312        .70027E-03   -1.5135    
   7  norm          1.0339        1.0864        .18063E-02   -1.5505    
   8  Prefactor     5.4293        3.9755        .86224E-03   -1.5242    
   9  Prefactor     19.714        19.064        .90201E-04   -1.4820    
  10  Prefactor     4.4745        2.7918        .18612E-03   -1.5285    
  11  norm          1.8385        1.9734        .21189E-03   -1.5437    
  12  norm          .79803        .59852        .99282E-04   -1.5529    
  13  norm          1.4664        .35428        .41911E-04   -1.5466    
  14  Prefactor     .10000E-03    2.4004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.5619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .71402        .18773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.4739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.4237        3.4993        .21862E-03   -1.5338    
  19  Prefactor     .10000E-03    2.8826        .31478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.3478        3.0448        .17379E-03   -1.5245    
  21  norm          .32782        1.2751        .25798E-02   -1.5593    
  22  Prefactor     2.0400        1.2548        .12459E-03   -1.5422    
  23  Prefactor     .10000E-03    10.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.4806        12.689        .17166E-03   -1.5240    
  25  Prefactor     .10000E-03    3.5221        .17358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.2599        7.0128        .22430E-03   -1.5347    
  27  norm          .10000E-03    .63848E-01    .66056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.1884        1.7646        .16779E-03   -1.5412    
  29  Normalizat    .78150        .11556        .30453E-03   -1.0076    
  30  Prefactor     1.2729        .93683E-01    .20714E-03   -.84116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43407e-07
Minuit parameter uncertainties:
  1  5.08748
  2  7.66205e-06
  3  11.8861
  4  5.29906e-06
  5  1.06234e-05
  6  6.23174
  7  1.08646
  8  3.97565
  9  19.0702
  10  2.79188
  11  1.97342
  12  0.598521
  13  0.354284
  14  9.18663e-08
  15  7.09075e-08
  16  1.94348e-06
  17  2.50085e-06
  18  3.49954
  19  5.09262e-05
  20  3.04486
  21  1.27523
  22  1.25481
  23  1.24116e-07
  24  12.695
  25  0.000214648
  26  7.01452
  27  3.65432e-08
  28  1.76463
  29  0.115592
  30  0.093695
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.466e+00  3.543e-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.273e+00  9.370e-02  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:  7.815e-01  1.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 52.13
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.32e-08 +/- 1.77e-08
Energy Flux (Fixed Index): 4.12e-05 +/- 9.96e-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) = 22935.4326066
delta logL = 0.0203431000809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 22935.4315529
delta logL = 0.0213968427561

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4626       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0410       1.0000          .0000       5.0000    
     3 'Normalizat'    .77845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2739       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=   22935.43     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4626        4.5786        .88921E-02    .76138E-03
   2  alpha         2.0410        3.4433        .28897        .62854E-04
   3  Normalizat    .77845        .74325E-01    .68938E-01    .10258E-03
   4  Prefactor     1.2739        .46484E-01    .33081E-01   -.12871E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.4626
  alpha      = 2.04102
  Normalizat = 0.778448
  Prefactor  = 1.27392
 **********
 **   18 **HESSE 
 **********

 FCN=   22935.43     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4626        .34410        .41369E-04   -1.5466    
   2  alpha         2.0410        .21850        .11204E-01   -.18464    
   3  Normalizat    .77845        .10794        .30504E-03   -1.0087    
   4  Prefactor     1.2739        .91144E-01    .20705E-03   -.84086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28737e-12
Minuit parameter uncertainties:
  1  0.344099
  2  0.218787
  3  0.107973
  4  0.0911551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571685': 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) = 22935.4315529
delta logL = 0.0213968455391

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  1.463e+00  3.441e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  2.041e+00  2.188e-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.274e+00  9.116e-02  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:  7.784e-01  1.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 52.19
Ra Dec: 124.557 42.382
Photon Index (Free Index): 2.04 +/- 0.22
Photon Flux (Free Index): 7.65e-08 +/- 2.34e-08
Energy Flux (Free Index): 3.99e-05 +/- 1.13e-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/571685/cmap_HighResolution_594604801_595209601_4FGL_J0818.2+4222_weekly_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.32e-08', energy_flux2='3.99e-05', photon_flux_error='1.77e-08', dlogl='2.14e-02', energy_flux='4.12e-05', photon_flux2='7.65e-08', job_status='DONE', time_completed='2021-07-13 15:33:53.869249', photon_index_error2='0.22', photon_index2='2.04', ts='52.13', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='0.78', time_epoch_completed='1626215633.87', return_code='0', job_id='571685', GAL2='1.27', EG2='0.78', return_code2='0', energy_flux_error='9.96e-06', photon_flux_error2='2.34e-08', ts2='52.19', photon_index='2.00' WHERE bin_id='588' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:33:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 571685: <4FGL_J0818.2+4222_weekly_bin588> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin588 124.557 42.3819 594604801 595209601 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 :                                   1961.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             81.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2762 sec.
    Turnaround time :                            114775 sec.

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

