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


Performing analysis on: 4FGL_J0818.2+4222_weekly_bin445
RA = 124.557, Dec = 42.3819
tmin = 508118401, tmax = 508723201
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='571478', job_status='RUN', time_executed='2021-07-13 14:54:24.339972', time_epoch_executed='1626213264.34' WHERE source_name='4FGL J0818.2+4222' and cadence='weekly' and bin_id='445'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/571478

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/571478/ft1_4FGL_J0818.2+4222_weekly_bin445.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/571478/ft2_4FGL_J0818.2+4222_weekly_bin445.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/571478/ft1_4FGL_J0818.2+4222_weekly_bin445.fits outfile=/scratch/kocevski/571478/ft1_filteredMKT_4FGL_J0818.2+4222_weekly_bin445.fits ra=124.557 dec=42.3819 rad=12.0 tmin=508118401.0 tmax=508723201.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.85
user 7.50
sys 0.34

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/571478/ft1_filtered_4FGL_J0818.2+4222_weekly_bin445.fits evtable="EVENTS" scfile=/scratch/kocevski/571478/ft2_4FGL_J0818.2+4222_weekly_bin445.fits sctable="SC_DATA" expcube=/scratch/kocevski/571478/ltcube_508118401_508723201_4FGL_J0818.2+4222_weekly_bin445.fits outfile=/scratch/kocevski/571478/expmap_508118401_508723201_4FGL_J0818.2+4222_weekly_bin445.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/571478/ltcube_508118401_508723201_4FGL_J0818.2+4222_weekly_bin445.fits
.....................!
real 195.36
user 188.16
sys 5.17

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/571478/ft1_filtered_4FGL_J0818.2+4222_weekly_bin445.fits scfile=/scratch/kocevski/571478/ft2_4FGL_J0818.2+4222_weekly_bin445.fits outfile=/scratch/kocevski/571478/cmap_508118401_508723201_4FGL_J0818.2+4222_weekly_bin445.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.87
user 0.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/571478/ft1_filtered_4FGL_J0818.2+4222_weekly_bin445.fits scfile=/scratch/kocevski/571478/ft2_4FGL_J0818.2+4222_weekly_bin445.fits outfile=/scratch/kocevski/571478/cmap_HighResolution_508118401_508723201_4FGL_J0818.2+4222_weekly_bin445.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.68
user 0.42
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11312E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19308E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.037       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23535E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4233       1.0000         .10000E-03   10000.    
     6 'norm      '    34.840       1.0000         .10000E-03   10000.    
     7 'norm      '    1.1803       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4735       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4036       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5562       1.0000         .10000E-03   10000.    
    11 'norm      '    8.6412       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4964       1.0000         .10000E-03   10000.    
    13 'norm      '    .37896       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3347       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.515       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9541       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22638E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5840       1.0000         .10000E-03   10000.    
    20 'norm      '    5.3832       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .46800       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16820E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11240E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.0980       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.386       1.0000         .10000E-03   10000.    
    27 'norm      '    3.1984       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .31928E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .78907       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0706       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   17714.95     FROM MIGRAD    STATUS=FAILED      1431 CALLS     4706 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.0240        .35002E-02** at limit **
   2  Prefactor     .10001E-03    36.866        .49050E-02** at limit **
   3  Prefactor     26.016        16.530        .78508E-04    .18767E-03
   4  Prefactor     .10006E-03    37.781        .41279E-02** at limit **
   5  Prefactor     2.4255        8.8287        .26292E-03   -.31133E-04
   6  norm          34.840        9.1798        .67893E-04    .69659E-04
   7  norm          1.1803        1.1339        .21042E-03    .62761E-03
   8  Prefactor     6.4695        5.4776        .15774E-03   -.19517E-03
   9  Prefactor     8.4242        25.218        .13829E-03    .12496E-04
  10  Prefactor     3.5574        2.9442        .19266E-03   -.11259E-03
  11  norm          8.6413        2.9617        .12717E-03    .13624E-03
  12  norm          1.4964        .85371        .88221E-04    .10825E-04
  13  norm          .37905        .23907        .52905E-03    .13560E-02
  14  Prefactor     7.3402        13.921        .14810E-03    .49130E-05
  15  Prefactor     11.513        7.6547        .11806E-03    .20800E-04
  16  Prefactor     1.9542        1.5309        .13333E-03    .28649E-04
  17  Prefactor     .10000E-03    42.450        .50296E-02** at limit **
  18  Prefactor     .10000E-03    1.5138        .15958E-02** at limit **
  19  Prefactor     2.5845        3.5858        .25387E-03    .38333E-04
  20  norm          5.3845        3.5047        .86602E-03    .42370E-03
  21  norm          .10000E-03    .91852        .12425E-02** at limit **
  22  Prefactor     .46496        1.7542        .22064E-02    .11272E-01
  23  Prefactor     .10006E-03    27.408        .19375    ** at limit **
  24  Prefactor     .10000E-03    30.115        .36285E-03** at limit **
  25  Prefactor     9.0958        2.2963        .95803E-04    .11677E-03
  26  Prefactor     10.389        12.284        .12433E-03    .11448E-03
  27  norm          3.1968        .48399        .34365E-04   -.11420E-02
  28  Prefactor     .10000E-03    7.6769        .23047E-02** at limit **
  29  Normalizat    .78892        .13047        .29730E-03    .48993E-03
  30  Prefactor     1.0707        .98463E-01    .20978E-03    .11046E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   17714.95     FROM SIMPLEX   STATUS=UNCHANGED   1486 CALLS     6192 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.0240        .27830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    36.866        .60346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.016        16.530        .23215E-05   -1.4687    
   4  Prefactor     .10006E-03    37.781        .40116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4255        8.8287        .24383E-05   -1.5396    
   6  norm          34.840        9.1798        .22918E-05   -1.4527    
   7  norm          1.1803        1.1339        .24255E-05   -1.5491    
   8  Prefactor     6.4695        5.4776        .23695E-05   -1.5199    
   9  Prefactor     8.4242        25.218        .23210E-05   -1.5127    
  10  Prefactor     3.5574        2.9442        .23897E-05   -1.5331    
  11  norm          8.6413        2.9617        .23637E-05   -1.5120    
  12  norm          1.4964        .85371        .24319E-05   -1.5463    
  13  norm          .37905        .23907        .24517E-05   -1.5585    
  14  Prefactor     7.3402        13.921        .25501E-05   -1.5166    
  15  Prefactor     11.513        7.6547        .24245E-05   -1.5029    
  16  Prefactor     1.9542        1.5309        .24162E-05   -1.5428    
  17  Prefactor     .10000E-03    42.450        .56600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5138        .15763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5845        3.5858        .24278E-05   -1.5386    
  20  norm          5.3845        3.5047        .24144E-05   -1.5244    
  21  norm          .10000E-03    .91852        .11441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .46496        1.7542        .24332E-05   -1.5572    
  23  Prefactor     .10006E-03    27.408        .25949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    30.115        .63075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.0958        2.2963        .23798E-05   -1.5105    
  26  Prefactor     10.389        12.284        .24146E-05   -1.5063    
  27  norm          3.1968        .48399        .24025E-05   -1.5350    
  28  Prefactor     .10000E-03    7.6769        .17689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .78892        .13047        .15824E-05   -1.0048    
  30  Prefactor     1.0707        .98463E-01    .14173E-05   -.90410    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17714.95     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     6771 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.0718        .70005E-03** at limit **
   2  Prefactor     .10000E-03    38.191        .19620E-03** at limit **
   3  Prefactor     26.016        16.525        .31403E-05    .34754E-04
   4  Prefactor     .10000E-03    39.194        .16512E-02** at limit **
   5  Prefactor     2.4256        8.8253        .10517E-04    .86482E-05
   6  norm          34.840        9.1785        .27157E-05   -.13396E-04
   7  norm          1.1803        1.1328        .84166E-05    .15777E-03
   8  Prefactor     6.4695        5.4748        .63096E-05    .20180E-04
   9  Prefactor     8.4242        25.189        .55315E-05    .32884E-05
  10  Prefactor     3.5574        2.9430        .77062E-05    .35406E-05
  11  norm          8.6413        2.9615        .50869E-05    .21455E-04
  12  norm          1.4964        .85367        .35289E-05    .30928E-04
  13  norm          .37905        .23893        .21162E-04   -.77360E-04
  14  Prefactor     7.3402        13.917        .59239E-05   -.30706E-06
  15  Prefactor     11.513        7.6515        .47223E-05   -.96297E-05
  16  Prefactor     1.9542        1.5305        .53334E-05   -.10232E-04
  17  Prefactor     .10000E-03    44.328        .20118E-03** at limit **
  18  Prefactor     .10000E-03    1.5140        .31915E-03** at limit **
  19  Prefactor     2.5845        3.5856        .10155E-04    .89564E-06
  20  norm          5.3845        3.5010        .34641E-04   -.17066E-04
  21  norm          .10000E-03    .91859        .24851E-03** at limit **
  22  Prefactor     .46498        1.7407        .44128E-03    .44519E-04
  23  Prefactor     .10005E-03    28.968        .18619    ** at limit **
  24  Prefactor     .10000E-03    30.116        .72569E-04** at limit **
  25  Prefactor     9.0958        2.2962        .38321E-05   -.35600E-04
  26  Prefactor     10.389        12.281        .49732E-05   -.73151E-05
  27  norm          3.1968        .48231        .13746E-05   -.33797E-03
  28  Prefactor     .10000E-03    7.7073        .46094E-03** at limit **
  29  Normalizat    .78892        .13019        .11892E-04   -.15296E-05
  30  Prefactor     1.0707        .98472E-01    .41956E-04   -.49858E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.0159
  Prefactor  = 0.0001
  Prefactor  = 2.42559
  norm       = 34.8397
  norm       = 1.18029
  Prefactor  = 6.46954
  Prefactor  = 8.4242
  Prefactor  = 3.55739
  norm       = 8.64134
  norm       = 1.49644
  norm       = 0.37905
  Prefactor  = 7.34022
  Prefactor  = 11.5129
  Prefactor  = 1.9542
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.58446
  norm       = 5.38451
  norm       = 0.0001
  Prefactor  = 0.464977
  Prefactor  = 0.000100054
  Prefactor  = 0.0001
  Prefactor  = 9.09585
  Prefactor  = 10.3889
  norm       = 3.19681
  Prefactor  = 0.0001
  Normalizat = 0.78892
  Prefactor  = 1.07065
 **********
 **   18 **HESSE 
 **********

 FCN=   17714.95     FROM HESSE     STATUS=OK           568 CALLS     7339 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.0738        .14001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.192        .39240E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.016        16.534        .62806E-06   -1.4687    
   4  Prefactor     .10000E-03    39.465        .33023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4256        8.8247        .21033E-05   -1.5396    
   6  norm          34.840        9.1694        .54314E-06   -1.4527    
   7  norm          1.1803        1.1326        .16833E-05   -1.5491    
   8  Prefactor     6.4695        5.4523        .12619E-05   -1.5199    
   9  Prefactor     8.4242        24.893        .11063E-05   -1.5127    
  10  Prefactor     3.5574        2.9425        .15412E-05   -1.5331    
  11  norm          8.6413        2.9613        .10174E-05   -1.5120    
  12  norm          1.4964        .85367        .70577E-06   -1.5463    
  13  norm          .37905        .23889        .84648E-06   -1.5585    
  14  Prefactor     7.3402        13.917        .59239E-05   -1.5166    
  15  Prefactor     11.513        7.6383        .94446E-06   -1.5029    
  16  Prefactor     1.9542        1.5297        .10667E-05   -1.5428    
  17  Prefactor     .10000E-03    44.330        .40236E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5140        .63830E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5845        3.5851        .20309E-05   -1.5386    
  20  norm          5.3845        3.4988        .13856E-05   -1.5244    
  21  norm          .10000E-03    .91860        .49702E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .46498        1.7368        .17651E-04   -1.5572    
  23  Prefactor     .10005E-03    28.422        .18843       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    30.116        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.0958        2.2960        .76642E-06   -1.5105    
  26  Prefactor     10.389        12.290        .99464E-06   -1.5063    
  27  norm          3.1968        .48214        .36598E-06   -1.5350    
  28  Prefactor     .10000E-03    7.7085        .92188E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .78892        .13000        .23784E-05   -1.0048    
  30  Prefactor     1.0707        .98525E-01    .83911E-05   -.90410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.57039e-12
Minuit parameter uncertainties:
  1  1.66095e-06
  2  6.57886e-05
  3  16.5371
  4  6.26343e-05
  5  8.82946
  6  9.16976
  7  1.13259
  8  5.4527
  9  24.9235
  10  2.94259
  11  2.96135
  12  0.853677
  13  0.238893
  14  13.9232
  15  7.63894
  16  1.52975
  17  3.96644e-05
  18  3.66057e-07
  19  3.58535
  20  3.49888
  21  1.6025e-07
  22  1.73699
  23  0.00248429
  24  1.4174e-05
  25  2.29599
  26  12.293
  27  0.482141
  28  3.447e-06
  29  0.130054
  30  0.0985421
Done.

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

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  3.790e-01  2.389e-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.071e+00  9.854e-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.889e-01  1.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.37
Ra Dec: 124.557 42.382
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.89e-08 +/- 1.19e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 6.72e-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) = 17714.1081839
delta logL = 0.846074645633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17714.1017052
delta logL = 0.852553369306

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28432       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3972       1.0000          .0000       5.0000    
     3 'Normalizat'    .79305       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0720       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=   17714.10     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      218 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28434        .19948        .10264E-01    .80844E-04
   2  alpha         1.3972        .30443        .46023       -.89837E-04
   3  Normalizat    .79305        .10441        .67040E-01    .62161E-04
   4  Prefactor     1.0720        .85136E-01    .38762E-01    .71906E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.284335
  alpha      = 1.39724
  Normalizat = 0.793051
  Prefactor  = 1.07203
 **********
 **   18 **HESSE 
 **********

 FCN=   17714.10     FROM HESSE     STATUS=OK            35 CALLS      253 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28434        .25088        .47588E-03   -1.5601    
   2  alpha         1.3972        .46967        .17348E-01   -.45683    
   3  Normalizat    .79305        .11802        .29661E-03   -1.0033    
   4  Prefactor     1.0720        .96506E-01    .20971E-03   -.90366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73953e-09
Minuit parameter uncertainties:
  1  0.250883
  2  0.473166
  3  0.118054
  4  0.0965213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/571478': 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) = 17714.1017052
delta logL = 0.85255337357

Extracting fit parameters...

4FGL J0818.2+4222
   Spectrum: LogParabola
283         norm:  2.843e-01  2.509e-01  1.000e-04  1.000e+04 ( 1.000e-11)
284        alpha:  1.397e+00  4.732e-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.072e+00  9.652e-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.931e-01  1.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.07
Ra Dec: 124.557 42.382
Photon Index (Free Index): 1.40 +/- 0.47
Photon Flux (Free Index): 9.53e-09 +/- 9.11e-09
Energy Flux (Free Index): 2.10e-05 +/- 1.84e-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/571478/cmap_HighResolution_508118401_508723201_4FGL_J0818.2+4222_weekly_bin445.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.89e-08', energy_flux2='2.10e-05', photon_flux_error='1.19e-08', dlogl='8.53e-01', energy_flux='1.07e-05', photon_flux2='9.53e-09', job_status='DONE', time_completed='2021-07-13 15:42:11.609756', photon_index_error2='0.47', photon_index2='1.40', ts='5.37', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.84e-05', EG='0.79', time_epoch_completed='1626216131.61', return_code='0', job_id='571478', GAL2='1.07', EG2='0.79', return_code2='0', energy_flux_error='6.72e-06', photon_flux_error2='9.11e-09', ts2='7.07', photon_index='2.00' WHERE bin_id='445' AND source_name='4FGL J0818.2+4222' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 15:42:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 571478: <4FGL_J0818.2+4222_weekly_bin445> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.2+4222_weekly_bin445 124.557 42.3819 508118401 508723201 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 :                                   2508.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             76.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3369 sec.
    Turnaround time :                            115290 sec.

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

