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


Performing analysis on: 4FGL_J0258.1+2030_weekly_bin507
RA = 44.5422, Dec = 20.5137
tmin = 545616001, tmax = 546220801
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='808026', job_status='RUN', time_executed='2021-07-05 10:01:40.219895', time_epoch_executed='1625504500.22' WHERE source_name='4FGL J0258.1+2030' and cadence='weekly' and bin_id='507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808026

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808026/ft1_4FGL_J0258.1+2030_weekly_bin507.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808026/ft2_4FGL_J0258.1+2030_weekly_bin507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808026/ft1_4FGL_J0258.1+2030_weekly_bin507.fits outfile=/scratch/kocevski/808026/ft1_filteredMKT_4FGL_J0258.1+2030_weekly_bin507.fits ra=44.5422 dec=20.5137 rad=12.0 tmin=545616001.0 tmax=546220801.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.99
user 8.28
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/808026/ft2_4FGL_J0258.1+2030_weekly_bin507.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/808026/ft2_4FGL_J0258.1+2030_weekly_bin507.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/808026/ft1_filteredMKT_4FGL_J0258.1+2030_weekly_bin507.fits evtable="EVENTS" outfile="/scratch/kocevski/808026/ft1_filtered_4FGL_J0258.1+2030_weekly_bin507.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 1.27
user 0.36
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808026/ft1_filtered_4FGL_J0258.1+2030_weekly_bin507.fits" evtable="EVENTS" scfile=/scratch/kocevski/808026/ft2_4FGL_J0258.1+2030_weekly_bin507.fits sctable="SC_DATA" outfile=/scratch/kocevski/808026/ltcube_545616001_546220801_4FGL_J0258.1+2030_weekly_bin507.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/808026/ft2_4FGL_J0258.1+2030_weekly_bin507.fits
.....................!
real 27.43
user 26.02
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808026/ft1_filtered_4FGL_J0258.1+2030_weekly_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/808026/ft2_4FGL_J0258.1+2030_weekly_bin507.fits sctable="SC_DATA" expcube=/scratch/kocevski/808026/ltcube_545616001_546220801_4FGL_J0258.1+2030_weekly_bin507.fits outfile=/scratch/kocevski/808026/expmap_545616001_546220801_4FGL_J0258.1+2030_weekly_bin507.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/808026/ltcube_545616001_546220801_4FGL_J0258.1+2030_weekly_bin507.fits
.....................!
real 198.60
user 186.07
sys 5.55

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 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J0258.1+2030 @ 44.5422 20.5137

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/808026/ft1_filtered_4FGL_J0258.1+2030_weekly_bin507.fits scfile=/scratch/kocevski/808026/ft2_4FGL_J0258.1+2030_weekly_bin507.fits outfile=/scratch/kocevski/808026/cmap_545616001_546220801_4FGL_J0258.1+2030_weekly_bin507.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=44.5422 yref=20.5137 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.57
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808026/ft1_filtered_4FGL_J0258.1+2030_weekly_bin507.fits scfile=/scratch/kocevski/808026/ft2_4FGL_J0258.1+2030_weekly_bin507.fits outfile=/scratch/kocevski/808026/cmap_HighResolution_545616001_546220801_4FGL_J0258.1+2030_weekly_bin507.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=44.5422 yref=20.5137 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.35
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/808026/ft1_filtered_4FGL_J0258.1+2030_weekly_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/808026/ft2_4FGL_J0258.1+2030_weekly_bin507.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/808026/Model_4FGL_J0258.1+2030_weekly_bin507.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/808026/ft1_filtered_4FGL_J0258.1+2030_weekly_bin507.fits.....................!
real 34.34
user 27.88
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/808026/ft1_filtered_4FGL_J0258.1+2030_weekly_bin507.fits', '/scratch/kocevski/808026/ft2_4FGL_J0258.1+2030_weekly_bin507.fits', expMap='/scratch/kocevski/808026/expmap_545616001_546220801_4FGL_J0258.1+2030_weekly_bin507.fits', expCube='/scratch/kocevski/808026/ltcube_545616001_546220801_4FGL_J0258.1+2030_weekly_bin507.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/808026/Model_4FGL_J0258.1+2030_weekly_bin507.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0258.1+2030'

4FGL J0258.1+2030
   Spectrum: LogParabola
272         norm:  1.040e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        alpha:  1.961e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  2.458e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  2.394e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/808026/ft1_filtered_4FGL_J0258.1+2030_weekly_bin507.fits
Spacecraft file(s): /scratch/kocevski/808026/ft2_4FGL_J0258.1+2030_weekly_bin507.fits
Exposure map: /scratch/kocevski/808026/expmap_545616001_546220801_4FGL_J0258.1+2030_weekly_bin507.fits
Exposure cube: /scratch/kocevski/808026/ltcube_545616001_546220801_4FGL_J0258.1+2030_weekly_bin507.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/808026/Model_4FGL_J0258.1+2030_weekly_bin507.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1272.02801584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1267.60101268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41218E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    3.5915       1.0000         .10000E-03   10000.    
     3 'Prefactor '    431.96       1.0000         .10000E-03   10000.    
     4 'Prefactor '    79.425       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34754       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22081E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.8491       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .24692       1.0000         .10000E-03   10000.    
     9 'norm      '    4.1247       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13033E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    51.907       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14500       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17120       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19193       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .34249E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2696       1.0000         .10000E-03   10000.    
    17 'norm      '    48.306       1.0000         .10000E-03   10000.    
    18 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.110       1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.489       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .98047       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83301       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75645       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1267.532     FROM MIGRAD    STATUS=CONVERGED    232 CALLS      556 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    289.82        .32228E-05** at limit **
   2  norm          7.3383        138.60       -.63844E-04   -.74941E-02
   3  Prefactor     448.03        35.186        .42527E-05    .48942E-01
   4  Prefactor     79.847        14.432        .36806E-05   -.21027E-01
   5  Prefactor     .10013E-03    843.01       -.24954E-04** at limit **
   6  Prefactor     .10000E-03    21.412        .52015E-06** at limit **
   7  norm          8.8491        1.0016         .0000         .0000    
   8  Prefactor     .10000E-03    87.281        .11532E-05** at limit **
   9  norm          4.1519        3.2790        .15900E-05   -.97669E-04
  10  Prefactor     .10000E-03    60.258       -.56002E-05** at limit **
  11  norm          52.634        42.395       -.41921E-05    .30696E-02
  12  Prefactor     .10000E-03    67.967       -.37990E-05** at limit **
  13  Prefactor     .10000E-03    65.168        .56450E-05** at limit **
  14  Prefactor     .10000E-03    201.19        .11587E-06** at limit **
  15  Prefactor     .10000E-03    50.280       -.31838E-05** at limit **
  16  Prefactor     8.2696        1.0018         .0000         .0000    
  17  norm          43.045        76.797        .24301E-04   -.12413E-01
  18  norm          .10000E-03    5.9740        .83121E-06** at limit **
  19  Prefactor     565.09        1527.5        .95612E-04   -.28404E-02
  20  Prefactor     30.250        59.517       -.14669E-04    .17890E-02
  21  Prefactor     .10000E-03    75.460        .73558E-04** at limit **
  22  norm          .10000E-03    7.3602       -.51278E-06** at limit **
  23  norm          .10000E-03    181.04        .31833E-06** at limit **
  24  Normalizat    .79438        .74727       -.87993E-05   -.42827E-05
  25  Prefactor     .75722        .20788       -.18970E-07   -.13610E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010006
  norm       = 7.33829
  Prefactor  = 448.03
  Prefactor  = 79.8466
  Prefactor  = 0.000100132
  Prefactor  = 0.0001
  norm       = 8.84905
  Prefactor  = 0.0001
  norm       = 4.1519
  Prefactor  = 0.0001
  norm       = 52.6338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 8.26963
  norm       = 43.0451
  norm       = 0.0001
  Prefactor  = 565.093
  Prefactor  = 30.2501
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.794382
  Prefactor  = 0.757216
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1267.532     FROM HESSE     STATUS=FAILED        35 CALLS      591 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    288.60        .92271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.3383        9801.7        .53307E-02   -1.6250    
   3  Prefactor     448.03        540.43        .49189E-03   -1.1442    
   4  Prefactor     79.847        56.501        .11266E-02   -1.3918    
   5  Prefactor     .10013E-03    843.13        .10632E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.486        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          498.85        489.97         .0000       -1.5113    
   8  Prefactor     .10000E-03    .25958        .11532E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.1519        1.0109        .15900E-05   -1.5300    
  10  Prefactor     .10000E-03    .26466       -.56002E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          52.634        1.0070       -.41921E-05   -1.4256    
  12  Prefactor     .10000E-03    .23637       -.37990E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .24233        .56450E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .24704        .11587E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .21127       -.31838E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.2696        1.0018         .0000       -1.5133    
  17  norm          43.045        .94428        .24301E-04   -1.4395    
  18  norm          .10000E-03    .20571        .83121E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     565.09        5.5894        .95612E-04   -1.0908    
  20  Prefactor     30.250        .85442       -.14669E-04   -1.4607    
  21  Prefactor     .10000E-03    .20571        .73558E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .20571       -.51278E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .42879        .31833E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .79438        1.1455       -.87993E-05   -1.0028    
  25  Prefactor     .75722        1.1064       -.18970E-07   -1.0133    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.79412e-09
Minuit parameter uncertainties:
  1  0.0083594
  2  728.495
  3  546.778
  4  56.5391
  5  0.021388
  6  1.496e-06
  7  1.0016
  8  1.29324e-05
  9  1.01086
  10  8.59848e-07
  11  1.00699
  12  1.58666e-08
  13  9.41488e-06
  14  4.03781e-05
  15  4.03264e-06
  16  1.00184
  17  0.94428
  18  7.74284e-07
  19  5.58942
  20  0.854421
  21  3.14742e-05
  22  2.28936e-07
  23  3.34526e-06
  24  1.18341
  25  1.14148
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1267.53184471

Extracting fit parameters...

4FGL J0258.1+2030
   Spectrum: LogParabola
272         norm:  4.305e+01  9.443e-01  1.000e-04  1.000e+04 ( 1.000e-13)
273        alpha:  1.961e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
274         beta:  2.458e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  2.394e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  7.572e-01  1.141e+00  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  7.944e-01  1.183e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.47
Ra Dec: 44.542 20.514
Photon Flux Upper Limit: 5.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.94e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808026/likelihoodResults_545616001_546220801_4FGL_J0258.1+2030_weekly_bin507.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): 0
logL (Free Index) = 1266.8165532
delta logL = 0.715291513941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1266.81398852
delta logL = 0.71785619143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.100       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5910       1.0000          .0000       5.0000    
     3 'Normalizat'    .67120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76343       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1266.814     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      311 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.091        34.237        .10513E-03   -.77808E-04
   2  alpha         3.5912        1.4280        .66094E-02   -.52372E-05
   3  Normalizat    .67013        .74380        .56341E-03    .60555E-04
   4  Prefactor     .76378        .20599        .14607E-03    .37083E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.0908
  alpha      = 3.5912
  Normalizat = 0.670132
  Prefactor  = 0.763782
 **********
 **   18 **HESSE 
 **********

 FCN=   1266.814     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.091        26.550        .42051E-05   -1.5042    
   2  alpha         3.5912        1.1424        .26438E-03    .45168    
   3  Normalizat    .67013        .73682        .22536E-04   -1.0508    
   4  Prefactor     .76378        .20487        .29213E-04   -1.0108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63952e-10
Minuit parameter uncertainties:
  1  26.5786
  2  1.19827
  3  0.748096
  4  0.205069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808026': 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) = 1266.81398692
delta logL = 0.717857791679

Extracting fit parameters...

4FGL J0258.1+2030
   Spectrum: LogParabola
272         norm:  1.109e+01  2.658e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        alpha:  3.591e+00  1.198e+00  0.000e+00  5.000e+00 ( 1.000e+00)
274         beta:  2.458e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
275           Eb:  2.394e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  7.638e-01  2.051e-01  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  6.701e-01  7.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.91
Ra Dec: 44.542 20.514
Photon Index (Free Index): 3.59 +/- 1.20
Photon Flux (Free Index): 6.22e-07 +/- 7.78e-07
Energy Flux (Free Index): 1.44e-04 +/- 1.39e-04

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/808026/cmap_HighResolution_545616001_546220801_4FGL_J0258.1+2030_weekly_bin507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-04', comment='SUCCESS', energy_flux2='1.44e-04', dlogl='7.18e-01', photon_flux2='6.22e-07', job_status='DONE', time_completed='2021-07-05 10:10:55.881403', photon_index_error2='1.20', photon_index2='3.59', ts='0.47', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='5.18e-07', energy_flux_error2='1.39e-04', EG='0.79', time_epoch_completed='1625505055.88', return_code='101', job_id='808026', GAL2='0.76', EG2='0.67', return_code2='0', photon_flux_error2='7.78e-07', ts2='1.91', photon_index='1.96' WHERE bin_id='507' AND source_name='4FGL J0258.1+2030' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul  5 10:10:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 808026: <4FGL_J0258.1+2030_weekly_bin507> in cluster <slac> Done

Job <4FGL_J0258.1+2030_weekly_bin507> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Jul  5 09:55:21 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul  5 09:55:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul  5 09:55:22 2021
Terminated at Mon Jul  5 10:11:00 2021
Results reported at Mon Jul  5 10:11:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0258.1+2030_weekly_bin507 44.5422 20.5137 545616001 546220801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0258.1+2030 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   395.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             183.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

