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


Performing analysis on: 4FGL_J0258.1+2030_weekly_bin572
RA = 44.5422, Dec = 20.5137
tmin = 584928001, tmax = 585532801
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='808132', job_status='RUN', time_executed='2021-07-05 14:39:41.826471', time_epoch_executed='1625521181.83' WHERE source_name='4FGL J0258.1+2030' and cadence='weekly' and bin_id='572'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808132

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808132/ft1_4FGL_J0258.1+2030_weekly_bin572.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808132/ft2_4FGL_J0258.1+2030_weekly_bin572.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808132/ft1_4FGL_J0258.1+2030_weekly_bin572.fits outfile=/scratch/kocevski/808132/ft1_filteredMKT_4FGL_J0258.1+2030_weekly_bin572.fits ra=44.5422 dec=20.5137 rad=12.0 tmin=584928001.0 tmax=585532801.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 7.08
user 5.89
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/808132/ft2_4FGL_J0258.1+2030_weekly_bin572.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/808132/ft1_filteredMKT_4FGL_J0258.1+2030_weekly_bin572.fits evtable="EVENTS" outfile="/scratch/kocevski/808132/ft1_filtered_4FGL_J0258.1+2030_weekly_bin572.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.63
user 0.38
sys 0.19

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808132/ft1_filtered_4FGL_J0258.1+2030_weekly_bin572.fits evtable="EVENTS" scfile=/scratch/kocevski/808132/ft2_4FGL_J0258.1+2030_weekly_bin572.fits sctable="SC_DATA" expcube=/scratch/kocevski/808132/ltcube_584928001_585532801_4FGL_J0258.1+2030_weekly_bin572.fits outfile=/scratch/kocevski/808132/expmap_584928001_585532801_4FGL_J0258.1+2030_weekly_bin572.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/808132/ltcube_584928001_585532801_4FGL_J0258.1+2030_weekly_bin572.fits
.....................!
real 195.47
user 185.13
sys 5.07

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/808132/ft1_filtered_4FGL_J0258.1+2030_weekly_bin572.fits scfile=/scratch/kocevski/808132/ft2_4FGL_J0258.1+2030_weekly_bin572.fits outfile=/scratch/kocevski/808132/cmap_584928001_585532801_4FGL_J0258.1+2030_weekly_bin572.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 0.79
user 0.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808132/ft1_filtered_4FGL_J0258.1+2030_weekly_bin572.fits scfile=/scratch/kocevski/808132/ft2_4FGL_J0258.1+2030_weekly_bin572.fits outfile=/scratch/kocevski/808132/cmap_HighResolution_584928001_585532801_4FGL_J0258.1+2030_weekly_bin572.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.11
user 0.40
sys 0.19

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/808132/ft1_filtered_4FGL_J0258.1+2030_weekly_bin572.fits', '/scratch/kocevski/808132/ft2_4FGL_J0258.1+2030_weekly_bin572.fits', expMap='/scratch/kocevski/808132/expmap_584928001_585532801_4FGL_J0258.1+2030_weekly_bin572.fits', expCube='/scratch/kocevski/808132/ltcube_584928001_585532801_4FGL_J0258.1+2030_weekly_bin572.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/808132/Model_4FGL_J0258.1+2030_weekly_bin572.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/808132/ft1_filtered_4FGL_J0258.1+2030_weekly_bin572.fits
Spacecraft file(s): /scratch/kocevski/808132/ft2_4FGL_J0258.1+2030_weekly_bin572.fits
Exposure map: /scratch/kocevski/808132/expmap_584928001_585532801_4FGL_J0258.1+2030_weekly_bin572.fits
Exposure cube: /scratch/kocevski/808132/ltcube_584928001_585532801_4FGL_J0258.1+2030_weekly_bin572.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/808132/Model_4FGL_J0258.1+2030_weekly_bin572.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) = 33965.4624887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3987       1.0000         .10000E-03   10000.    
     2 'norm      '    27.765       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46530E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.9833       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1008       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4073       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.693       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .94892       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6429       1.0000         .10000E-03   10000.    
    18 'norm      '    5.6351       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7134       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.1624       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0977       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0063       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.

 FCN=   33965.40     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     2993 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3987        1.3644        .32433E-07    .45532E-04
   2  norm          27.766        23.907       -.18986E-06    .81296E-05
   3  Prefactor     .10004E-03    7.0576        .15364E-06** at limit **
   4  Prefactor     .10000E-03    1.0190       -.72278E-08** at limit **
   5  Prefactor     .10000E-03    9.2854        .16584E-07** at limit **
   6  Prefactor     .10000E-03    1.3825       -.76098E-07** at limit **
   7  norm          4.9834        1.0549        .31577E-07   -.17660E-03
   8  Prefactor     .10000E-03    4.4810       -.20202E-06** at limit **
   9  norm          1.1008        .29897       -.41824E-07   -.44758E-03
  10  Prefactor     .10000E-03    13.541       -.59753E-06** at limit **
  11  norm          .10001E-03    2.3163       -.14757E-05** at limit **
  12  Prefactor     5.4074        5.7972       -.23904E-07   -.81962E-04
  13  Prefactor     18.669        20.564        .10082E-04   -.17423E-04
  14  Prefactor     .95442        2.5766        .28732E-06   -.11767E-03
  15  Prefactor     .10000E-03    3.2531       -.11126E-07** at limit **
  16  Prefactor     .10000E-03    48.842       -.10020E-05** at limit **
  17  norm          1.6429        .61245        .11910E-07   -.13579E-02
  18  norm          5.6352        4.0497       -.28397E-07    .47558E-04
  19  Prefactor     .10000E-03    22.659        .20523E-06** at limit **
  20  Prefactor     5.7135        3.3081       -.28766E-08    .19421E-05
  21  Prefactor     .10000E-03    2.1953        .26900E-08** at limit **
  22  norm          4.1625        1.4040        .57348E-07   -.51296E-04
  23  norm          .10000E-03    1.6306        .11570E-08** at limit **
  24  Normalizat    1.0976        .12615       -.13451E-05    .29884E-03
  25  Prefactor     1.0063        .41253E-01    .10131E-06    .26923E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.39871
  norm       = 27.7656
  Prefactor  = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.98337
  Prefactor  = 0.0001
  norm       = 1.10081
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 5.4074
  Prefactor  = 18.6692
  Prefactor  = 0.954419
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.64294
  norm       = 5.6352
  Prefactor  = 0.0001
  Prefactor  = 5.71351
  Prefactor  = 0.0001
  norm       = 4.16247
  norm       = 0.0001
  Normalizat = 1.09759
  Prefactor  = 1.0063
 **********
 **   18 **HESSE 
 **********

 FCN=   33965.40     FROM HESSE     STATUS=OK           439 CALLS     3432 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3987        1.3850        .20709E-03   -1.5471    
   2  norm          27.766        23.907        .76030E-04   -1.4654    
   3  Prefactor     .10004E-03    7.0931        .13234       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.0291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.3037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.3958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.9834        1.0545        .83551E-04   -1.5261    
   8  Prefactor     .10000E-03    4.6167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1008        .29376        .49331E-04   -1.5498    
  10  Prefactor     .10000E-03    13.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    11.688        .53280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4074        5.8026        .86406E-03   -1.5243    
  13  Prefactor     18.669        20.684        .92638E-04   -1.4844    
  14  Prefactor     .95442        5.0537        .44725E-02   -1.5513    
  15  Prefactor     .10000E-03    3.2615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    49.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6429        3.4742        .16479E-02   -1.5452    
  18  norm          5.6352        4.0496        .16922E-03   -1.5233    
  19  Prefactor     .10000E-03    22.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.7135        3.3009        .16804E-03   -1.5230    
  21  Prefactor     .10000E-03    2.2059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.1625        1.3988        .11781E-03   -1.5300    
  23  norm          .10000E-03    1.6315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0976        .14042        .41987E-03   -.89829    
  25  Prefactor     1.0063        .47128E-01    .15488E-03   -.92520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10535e-07
Minuit parameter uncertainties:
  1  1.385
  2  23.915
  3  0.00104036
  4  1.18377e-06
  5  5.97996e-06
  6  9.49787e-06
  7  1.05451
  8  4.55075e-05
  9  0.293762
  10  0.000157914
  11  0.000569043
  12  5.8032
  13  20.6923
  14  4.39277
  15  2.33549e-06
  16  0.00011109
  17  3.47465
  18  4.04984
  19  3.55601e-06
  20  3.301
  21  1.07408e-06
  22  1.39876
  23  3.20958e-07
  24  0.140467
  25  0.04713
Done.

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

Extracting fit parameters...

4FGL J0258.1+2030
   Spectrum: LogParabola
272         norm:  1.643e+00  3.475e+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

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  1.006e+00  4.713e-02  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:  1.098e+00  1.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 44.542 20.514
Photon Flux Upper Limit: 1.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808132/likelihoodResults_584928001_585532801_4FGL_J0258.1+2030_weekly_bin572.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) = 33965.3038318
delta logL = 0.091498302434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 33964.9002782
delta logL = 0.495051922189

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15700E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0143       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   33964.90     FROM MIGRAD    STATUS=FAILED       104 CALLS      326 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15699E-01    .16872E-01    .18779E-03    .17679    
   2  alpha         5.0000        .89548        .50000    ** at limit **
   3  Normalizat    1.0533        .13630        .42757E-03   -.17443E-04
   4  Prefactor     1.0143        .46786E-01    .15432E-03   -.31825E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   33964.90     FROM SIMPLEX   STATUS=UNCHANGED    104 CALLS      430 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15699E-01    .16872E-01    .14165E-06   -1.5683    
   2  alpha         5.0000        .89548        .14820E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0533        .13630        .46778E-05   -.91264    
   4  Prefactor     1.0143        .46786E-01    .30469E-06   -.92253    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   33964.90     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      469 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15699E-01    .15952E-01    .37558E-04   -.11987E-02
   2  alpha         5.0000        .80993        .50000    ** at limit **
   3  Normalizat    1.0533        .13670        .17103E-04   -.18081E-04
   4  Prefactor     1.0143        .46833E-01    .61729E-05   -.32414E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0156995
  alpha      = 5
  Normalizat = 1.05335
  Prefactor  = 1.01433
 **********
 **   18 **HESSE 
 **********

 FCN=   33964.90     FROM HESSE     STATUS=OK            31 CALLS      500 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15699E-01    .15788E-01    .15023E-05   -1.5683    
   2  alpha         5.0000        .79513        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0533        .13659        .34205E-05   -.91264    
   4  Prefactor     1.0143        .46779E-01    .12346E-05   -.92253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.99242e-11
Minuit parameter uncertainties:
  1  0.0157876
  2  9.23314e-05
  3  0.136636
  4  0.0467806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808132': 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) = 33964.9002673
delta logL = 0.495062831294

Extracting fit parameters...

4FGL J0258.1+2030
   Spectrum: LogParabola
272         norm:  1.570e-02  1.579e-02  1.000e-04  1.000e+04 ( 1.000e-13)
273        alpha:  5.000e+00  9.233e-05  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:  1.014e+00  4.678e-02  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:  1.053e+00  1.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 44.542 20.514
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 3.97e-08 +/- 3.98e-08
Energy Flux (Free Index): 6.11e-06 +/- 6.14e-06

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/808132/cmap_HighResolution_584928001_585532801_4FGL_J0258.1+2030_weekly_bin572.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-05', comment='SUCCESS', energy_flux2='6.11e-06', dlogl='4.95e-01', photon_flux2='3.97e-08', job_status='DONE', time_completed='2021-07-05 15:26:03.727093', photon_index_error2='0.00', photon_index2='5.00', ts='0.28', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.93e-08', energy_flux_error2='6.14e-06', EG='1.10', time_epoch_completed='1625523963.73', return_code='0', job_id='808132', GAL2='1.01', EG2='1.05', return_code2='0', photon_flux_error2='3.98e-08', ts2='1.34', photon_index='1.96' WHERE bin_id='572' AND source_name='4FGL J0258.1+2030' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul  5 15:26:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 808132: <4FGL_J0258.1+2030_weekly_bin572> in cluster <slac> Done

Job <4FGL_J0258.1+2030_weekly_bin572> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Jul  5 09:55:30 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul  5 09:55:32 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:32 2021
Terminated at Mon Jul  5 15:26:14 2021
Results reported at Mon Jul  5 15:26:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0258.1+2030_weekly_bin572 44.5422 20.5137 584928001 585532801 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 :                                   2740.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             92.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   19841 sec.
    Turnaround time :                            19844 sec.

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

