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


Performing analysis on: 4FGL_J0228.1+8208_weekly_bin511
RA = 37.0303, Dec = 82.1434
tmin = 548035201, tmax = 548640001
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='547360', job_status='RUN', time_executed='2021-07-04 18:36:18.595145', time_epoch_executed='1625448978.6' WHERE source_name='4FGL J0228.1+8208' and cadence='weekly' and bin_id='511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/547360

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/547360/ft1_4FGL_J0228.1+8208_weekly_bin511.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/547360/ft2_4FGL_J0228.1+8208_weekly_bin511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/547360/ft1_4FGL_J0228.1+8208_weekly_bin511.fits outfile=/scratch/kocevski/547360/ft1_filteredMKT_4FGL_J0228.1+8208_weekly_bin511.fits ra=37.0303 dec=82.1434 rad=12.0 tmin=548035201.0 tmax=548640001.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.80
user 7.86
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/547360/ft2_4FGL_J0228.1+8208_weekly_bin511.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/547360/ft2_4FGL_J0228.1+8208_weekly_bin511.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/547360/ft1_filteredMKT_4FGL_J0228.1+8208_weekly_bin511.fits evtable="EVENTS" outfile="/scratch/kocevski/547360/ft1_filtered_4FGL_J0228.1+8208_weekly_bin511.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.98
user 0.39
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/547360/ft1_filtered_4FGL_J0228.1+8208_weekly_bin511.fits" evtable="EVENTS" scfile=/scratch/kocevski/547360/ft2_4FGL_J0228.1+8208_weekly_bin511.fits sctable="SC_DATA" outfile=/scratch/kocevski/547360/ltcube_548035201_548640001_4FGL_J0228.1+8208_weekly_bin511.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/547360/ft2_4FGL_J0228.1+8208_weekly_bin511.fits
.....................!
real 26.50
user 25.89
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/547360/ft1_filtered_4FGL_J0228.1+8208_weekly_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/547360/ft2_4FGL_J0228.1+8208_weekly_bin511.fits sctable="SC_DATA" expcube=/scratch/kocevski/547360/ltcube_548035201_548640001_4FGL_J0228.1+8208_weekly_bin511.fits outfile=/scratch/kocevski/547360/expmap_548035201_548640001_4FGL_J0228.1+8208_weekly_bin511.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/547360/ltcube_548035201_548640001_4FGL_J0228.1+8208_weekly_bin511.fits
.....................!
real 193.00
user 185.89
sys 4.15

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 208 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0228.1+8208 @ 37.0303 82.1434

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/547360/ft1_filtered_4FGL_J0228.1+8208_weekly_bin511.fits scfile=/scratch/kocevski/547360/ft2_4FGL_J0228.1+8208_weekly_bin511.fits outfile=/scratch/kocevski/547360/cmap_548035201_548640001_4FGL_J0228.1+8208_weekly_bin511.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=37.0303 yref=82.1434 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.72
user 0.44
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/547360/ft1_filtered_4FGL_J0228.1+8208_weekly_bin511.fits scfile=/scratch/kocevski/547360/ft2_4FGL_J0228.1+8208_weekly_bin511.fits outfile=/scratch/kocevski/547360/cmap_HighResolution_548035201_548640001_4FGL_J0228.1+8208_weekly_bin511.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=37.0303 yref=82.1434 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.61
user 0.45
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/547360/ft1_filtered_4FGL_J0228.1+8208_weekly_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/547360/ft2_4FGL_J0228.1+8208_weekly_bin511.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/547360/Model_4FGL_J0228.1+8208_weekly_bin511.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
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/547360/ft1_filtered_4FGL_J0228.1+8208_weekly_bin511.fits.....................!
real 95.69
user 85.35
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/547360/ft1_filtered_4FGL_J0228.1+8208_weekly_bin511.fits', '/scratch/kocevski/547360/ft2_4FGL_J0228.1+8208_weekly_bin511.fits', expMap='/scratch/kocevski/547360/expmap_548035201_548640001_4FGL_J0228.1+8208_weekly_bin511.fits', expCube='/scratch/kocevski/547360/ltcube_548035201_548640001_4FGL_J0228.1+8208_weekly_bin511.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/547360/Model_4FGL_J0228.1+8208_weekly_bin511.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0228.1+8208'

4FGL J0228.1+8208
   Spectrum: PowerLaw
159    Prefactor:  1.549e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
160        Index:  2.469e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
161        Scale:  1.217e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/547360/ft1_filtered_4FGL_J0228.1+8208_weekly_bin511.fits
Spacecraft file(s): /scratch/kocevski/547360/ft2_4FGL_J0228.1+8208_weekly_bin511.fits
Exposure map: /scratch/kocevski/547360/expmap_548035201_548640001_4FGL_J0228.1+8208_weekly_bin511.fits
Exposure cube: /scratch/kocevski/547360/ltcube_548035201_548640001_4FGL_J0228.1+8208_weekly_bin511.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/547360/Model_4FGL_J0228.1+8208_weekly_bin511.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8764       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.210       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.020       1.0000         .10000E-03   10000.    
     5 'norm      '    .15788E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.192       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.018       1.0000         .10000E-03   10000.    
     8 'norm      '    33.819       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.650       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.894       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14119E-03   1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.1170       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .90825       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5504.359     FROM MIGRAD    STATUS=CONVERGED    297 CALLS     1403 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8765        4.0680       -.22841E-06   -.42652E-03
   2  Prefactor     .10000E-03    80.208       -.24541E-04** at limit **
   3  Prefactor     13.208        14.023        .24437E-05    .12306E-03
   4  Prefactor     33.636        74.445       -.17827E-04   -.11128E-05
   5  norm          .10000E-03    20.862        .87599E-06** at limit **
   6  Prefactor     11.197        7.2661        .76580E-06   -.11860E-03
   7  Prefactor     32.018        33.621       -.28487E-04   -.32837E-04
   8  norm          33.819        21.614       -.73530E-07    .64405E-05
   9  Prefactor     14.587        21.802        .31399E-04    .26521E-04
  10  Prefactor     .10000E-03    38.320       -.11954E-05** at limit **
  11  Prefactor     14.891        12.641        .38216E-06    .19074E-05
  12  Prefactor     .10000E-03    24.159        .24780E-06** at limit **
  13  Prefactor     .10000E-03    51.057        .43924E-05** at limit **
  14  Normalizat    1.1170        .31136       -.25316E-05    .52194E-04
  15  Prefactor     .90829        .88730E-01    .10878E-05   -.11285E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.87646
  Prefactor  = 0.0001
  Prefactor  = 13.2076
  Prefactor  = 33.6358
  norm       = 0.000100001
  Prefactor  = 11.1966
  Prefactor  = 32.0183
  norm       = 33.819
  Prefactor  = 14.5874
  Prefactor  = 0.0001
  Prefactor  = 14.8915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11701
  Prefactor  = 0.908288
 **********
 **   18 **HESSE 
 **********

 FCN=   5504.359     FROM HESSE     STATUS=OK           184 CALLS     1587 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8765        4.0598        .17180E-03   -1.5369    
   2  Prefactor     .10000E-03    80.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.208        14.028        .11021E-03   -1.4981    
   4  Prefactor     33.636        74.491        .68703E-04   -1.4547    
   5  norm          .10000E-03    20.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.197        7.2678        .11975E-03   -1.5039    
   7  Prefactor     32.018        33.747        .70813E-04   -1.4576    
   8  norm          33.819        21.629        .68907E-04   -1.4544    
   9  Prefactor     14.587        21.813        .10464E-03   -1.4944    
  10  Prefactor     .10000E-03    38.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.891        12.658        .10378E-03   -1.4936    
  12  Prefactor     .10000E-03    24.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    52.847        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.1170        .33469        .45967E-03   -.89207    
  15  Prefactor     .90829        .95905E-01    .14802E-03   -.95852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28222e-10
Minuit parameter uncertainties:
  1  4.06023
  2  0.000159877
  3  14.032
  4  74.6983
  5  0.000215812
  6  7.26836
  7  33.7669
  8  21.6337
  9  21.8249
  10  4.86772e-05
  11  12.6606
  12  6.56034e-06
  13  5.42662e-06
  14  0.335329
  15  0.0959226
Done.

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

Extracting fit parameters...

4FGL J0228.1+8208
   Spectrum: PowerLaw
159    Prefactor:  3.202e+01  3.377e+01  1.000e-04  1.000e+04 ( 1.000e-13)
160        Index:  2.469e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
161        Scale:  1.217e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  9.083e-01  9.592e-02  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  1.117e+00  3.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.19
Ra Dec: 37.030 82.143
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.04e-07 +/- 1.10e-07
Energy Flux (Fixed Index): 3.13e-05 +/- 3.31e-05

TS (Fixed Index): 1.19
Ra Dec: 37.030 82.143
Photon Flux Upper Limit: 3.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.43e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/547360/likelihoodResults_548035201_548640001_4FGL_J0228.1+8208_weekly_bin511.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5499.7554534
delta logL = 4.60382768074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5499.04876025
delta logL = 5.31052082975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22643E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    7.3848       1.0000          .0000       10.000    
     3 'Normalizat'    .86289       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94895       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5499.049     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      356 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22540E-02    .12313E-01    .33828E-03** at limit **
   2  Index         7.3870        1.8026        .59087E-01   -.25756E-04
   3  Normalizat    .86285        .13632        .11479       -.94725E-05
   4  Prefactor     .94900        .40095E-01    .32716E-01   -.85218E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00225402
  Index      = 7.38697
  Normalizat = 0.862845
  Prefactor  = 0.949004
 **********
 **   18 **HESSE 
 **********

 FCN=   5499.049     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      389 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22540E-02    .17944E-01    .13398E-05   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.3870        2.2176        .25499E-02    .49769    
   3  Normalizat    .86285        .30288        .50916E-03   -.97778    
   4  Prefactor     .94900        .88088E-01    .14457E-03   -.94449    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.04198e-10
Minuit parameter uncertainties:
  1  0.0124341
  2  2.32453
  3  0.303476
  4  0.0881014
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/547360': 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): 102
logL (Free Index) = 5499.04875799
delta logL = 5.31052309599

Extracting fit parameters...

4FGL J0228.1+8208
   Spectrum: PowerLaw
159    Prefactor:  2.254e-03  1.243e-02  1.000e-04  1.000e+04 ( 1.000e-13)
160        Index:  7.387e+00  2.325e+00  0.000e+00  1.000e+01 (-1.000e+00)
161        Scale:  1.217e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  9.490e-01  8.810e-02  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  8.628e-01  3.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.83
Ra Dec: 37.030 82.143
Photon Index (Free Index): 7.39 +/- 2.32
Photon Flux (Free Index): 3.72e-07 +/- 1.44e-07
Energy Flux (Free Index): 4.39e-05 +/- 1.78e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/547360/cmap_HighResolution_548035201_548640001_4FGL_J0228.1+8208_weekly_bin511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-02', comment='SUCCESS', photon_flux='1.04e-07', energy_flux2='4.39e-05', photon_flux_error='1.10e-07', dlogl='5.31e+00', energy_flux='3.13e-05', photon_flux2='3.72e-07', job_status='DONE', time_completed='2021-07-04 18:47:57.437803', photon_index_error2='2.32', photon_index2='7.39', ts='1.19', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='3.14e-07', energy_flux_error2='1.78e-05', EG='1.12', time_epoch_completed='1625449677.44', return_code='0', job_id='547360', GAL2='0.95', EG2='0.86', return_code2='102', energy_flux_error='3.31e-05', photon_flux_error2='1.44e-07', ts2='12.83', photon_index='2.47' WHERE bin_id='511' AND source_name='4FGL J0228.1+8208' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 18:47:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 547360: <4FGL_J0228.1+8208_weekly_bin511> in cluster <slac> Done

Job <4FGL_J0228.1+8208_weekly_bin511> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jul  4 18:32:14 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 18:32:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 18:32:15 2021
Terminated at Sun Jul  4 18:48:05 2021
Results reported at Sun Jul  4 18:48:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0228.1+8208_weekly_bin511 37.0303 82.1434 548035201 548640001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0228.1+8208 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   645.09 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             251.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

