aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 = 17484
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0258.1+2030_weekly_bin717
RA = 44.5422, Dec = 20.5137
tmin = 672624001, tmax = 673228801
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='367665', job_status='RUN', time_executed='2022-05-03 01:09:21.053631', time_epoch_executed='1651565361.05' WHERE source_name='4FGL J0258.1+2030' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367665

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367665/ft1_4FGL_J0258.1+2030_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367665/ft2_4FGL_J0258.1+2030_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367665/ft1_4FGL_J0258.1+2030_weekly_bin717.fits outfile=/scratch/kocevski/367665/ft1_filteredMKT_4FGL_J0258.1+2030_weekly_bin717.fits ra=44.5422 dec=20.5137 rad=12.0 tmin=672624001.0 tmax=673228801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.35
user 6.10
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/367665/ft2_4FGL_J0258.1+2030_weekly_bin717.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/367665/ft1_filteredMKT_4FGL_J0258.1+2030_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/367665/ft1_filtered_4FGL_J0258.1+2030_weekly_bin717.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.57
user 0.40
sys 0.16

Number of photons that the gtmktime cut: 59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367665/ft1_filtered_4FGL_J0258.1+2030_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/367665/ft2_4FGL_J0258.1+2030_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/367665/ltcube_672624001_673228801_4FGL_J0258.1+2030_weekly_bin717.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/367665/ft2_4FGL_J0258.1+2030_weekly_bin717.fits
.....................!
real 41.00
user 40.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367665/ft1_filtered_4FGL_J0258.1+2030_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367665/ft2_4FGL_J0258.1+2030_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/367665/ltcube_672624001_673228801_4FGL_J0258.1+2030_weekly_bin717.fits outfile=/scratch/kocevski/367665/expmap_672624001_673228801_4FGL_J0258.1+2030_weekly_bin717.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/367665/ltcube_672624001_673228801_4FGL_J0258.1+2030_weekly_bin717.fits
.....................!
real 191.78
user 186.41
sys 4.96

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/367665/ft1_filtered_4FGL_J0258.1+2030_weekly_bin717.fits scfile=/scratch/kocevski/367665/ft2_4FGL_J0258.1+2030_weekly_bin717.fits outfile=/scratch/kocevski/367665/cmap_672624001_673228801_4FGL_J0258.1+2030_weekly_bin717.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.62
user 0.44
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367665/ft1_filtered_4FGL_J0258.1+2030_weekly_bin717.fits scfile=/scratch/kocevski/367665/ft2_4FGL_J0258.1+2030_weekly_bin717.fits outfile=/scratch/kocevski/367665/cmap_HighResolution_672624001_673228801_4FGL_J0258.1+2030_weekly_bin717.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 0.65
user 0.45
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18989E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .11484E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19536E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13596E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29620E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10655E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16323E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .12837E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .13420E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6987.7       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14680E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1663.9       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18949E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1690.7       1.0000         .10000E-03   10000.    
    17 'norm      '    845.71       1.0000         .10000E-03   10000.    
    18 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25740E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2032       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10744E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .22802E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.3146       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .65561       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=   710.5395     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     3406 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    102.17        .64493E-04** at limit **
   2  norm          .10000E-03    240.55        .55413E-04** at limit **
   3  Prefactor     .10001E-03    813.46       -.68878E-04** at limit **
   4  Prefactor     .10000E-03    90.955       -.25586E-04** at limit **
   5  Prefactor     .10000E-03    148.34        .89251E-05** at limit **
   6  Prefactor     .10001E-03    434.07        .85832E-04** at limit **
   7  norm          .10001E-03    26.528        .20200E-05** at limit **
   8  Prefactor     .10000E-03    218.87       -.12763E-04** at limit **
   9  norm          .10000E-03    16.977        .32411E-06** at limit **
  10  Prefactor     .10000E-03    772.96       -.22768E-04** at limit **
  11  norm          .10000E-03    134.81       -.66411E-04** at limit **
  12  Prefactor     6987.1        7860.8       -.13815E-03   -.42720E-05
  13  Prefactor     .10000E-03    6652.3       -.44742E-03** at limit **
  14  Prefactor     1663.7        997.88       -.71302E-04   -.10994E-04
  15  Prefactor     .10001E-03    8333.1       -.16772E-02** at limit **
  16  Prefactor     1695.4        5675.5        .12485E-02   -.17770E-05
  17  norm          845.55        794.87       -.56990E-04    .17645E-05
  18  norm          .10000E-03    17.137        .16385E-07** at limit **
  19  Prefactor     .10000E-03    940.51        .11601E-04** at limit **
  20  Prefactor     8.2092        26.168        .62380E-05   -.24968E-04
  21  Prefactor     .10000E-03    34.961        .20363E-06** at limit **
  22  norm          .10005E-03    14.791        .28003E-07** at limit **
  23  norm          5.2790        59.344        .10078E-04   -.32981E-04
  24  Normalizat    .10000E-01    .19880        .30838E-05** at limit **
  25  Prefactor     .65564        .12160       -.97606E-05   -.60196E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6987.08
  Prefactor  = 0.0001
  Prefactor  = 1663.66
  Prefactor  = 0.000100009
  Prefactor  = 1695.38
  norm       = 845.546
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.20921
  Prefactor  = 0.0001
  norm       = 0.000100049
  norm       = 5.27897
  Normalizat = 0.01
  Prefactor  = 0.65564
 **********
 **   18 **HESSE 
 **********

 FCN=   710.5395     FROM HESSE     STATUS=OK           409 CALLS     3815 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    104.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    240.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    813.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    91.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    148.34        .21395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    435.29        .20720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    26.971        .13409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    218.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    16.987        .10728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    772.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    134.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6987.1        7856.3        .43593E-04    .40870    
  13  Prefactor     .10000E-03    6652.3        .20488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1663.7        995.47        .53701E-04   -.73054    
  15  Prefactor     .10001E-03    8332.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1695.4        5674.9        .53360E-04   -.72205    
  17  norm          845.55        794.81        .71880E-04   -.98071    
  18  norm          .10000E-03    17.137        .10783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    940.54        .21453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.2092        25.011        .13998E-03   -1.5135    
  21  Prefactor     .10000E-03    34.962        .15406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10005E-03    26.990        .18717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.2790        59.549        .17434E-03   -1.5248    
  24  Normalizat    .10000E-01    .20330        .71627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .65564        .11926        .11519E-03   -1.0529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25881e-09
Minuit parameter uncertainties:
  1  0.000191857
  2  1.94977e-06
  3  0.00436765
  4  0.000432143
  5  4.31193e-05
  6  0.0029834
  7  0.000843245
  8  0.000416216
  9  0.00013784
  10  0.000228396
  11  1.35539e-05
  12  5732.35
  13  0.00138463
  14  1007.73
  15  0.0179909
  16  4587.89
  17  806.037
  18  6.9002e-06
  19  0.000690308
  20  25.0427
  21  6.44808e-05
  22  0.00230233
  23  35.5047
  24  4.07056e-06
  25  0.119309
Done.

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

Extracting fit parameters...

4FGL J0258.1+2030
   Spectrum: LogParabola
272         norm:  8.455e+02  8.060e+02  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:  6.556e-01  1.193e-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:  1.000e-02  4.071e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.41
Ra Dec: 44.542 20.514
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 1.49e-06 +/- 1.42e-06
Energy Flux (Fixed Index): 1.71e-03 +/- 1.63e-03

TS (Fixed Index): 3.41
Ra Dec: 44.542 20.514
Photon Flux Upper Limit: 5.73e-06 ph cm-2 s-1
Energy Flux Upper Limit: 6.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/367665/likelihoodResults_672624001_673228801_4FGL_J0258.1+2030_weekly_bin717.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) = 704.320974214
delta logL = 6.21856380616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 704.237242348
delta logL = 6.30229567231

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.813       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58158       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.

 FCN=   704.2372     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      322 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.815        7.3389        .29138E-02   -.16884E-02
   2  alpha         5.0000        .64578        .22643    ** at limit **
   3  Normalizat    .10000E-01    .11858        .12831    ** at limit **
   4  Prefactor     .58173        .10675        .26195E-01   -.60145E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.8153
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.581729
 **********
 **   18 **HESSE 
 **********

 FCN=   704.2372     FROM HESSE     STATUS=OK            25 CALLS      347 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.815        4.7751        .35400E-04   -1.5020    
   2  alpha         5.0000        .77847        .12233E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .11918        .28065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .58173        .10609        .11578E-03   -1.0836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19846e-09
Minuit parameter uncertainties:
  1  4.77526
  2  3.98076e-06
  3  2.50287e-06
  4  0.106125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367665': 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) = 704.237240824
delta logL = 6.3022971954

Extracting fit parameters...

4FGL J0258.1+2030
   Spectrum: LogParabola
272         norm:  1.182e+01  4.775e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        alpha:  5.000e+00  3.981e-06  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:  5.817e-01  1.061e-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:  1.000e-02  2.503e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.05
Ra Dec: 44.542 20.514
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.99e-05 +/- 1.20e-05
Energy Flux (Free Index): 4.60e-03 +/- 1.86e-03

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/367665/cmap_HighResolution_672624001_673228801_4FGL_J0258.1+2030_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-03', comment='SUCCESS', photon_flux='1.49e-06', energy_flux2='4.60e-03', photon_flux_error='1.42e-06', dlogl='6.30e+00', energy_flux='1.71e-03', photon_flux2='2.99e-05', job_status='DONE', time_completed='2022-05-03 01:16:21.117929', photon_index_error2='0.00', photon_index2='5.00', ts='3.41', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='5.73e-06', energy_flux_error2='1.86e-03', EG='0.01', time_epoch_completed='1651565781.12', return_code='0', job_id='367665', GAL2='0.58', EG2='0.01', return_code2='0', energy_flux_error='1.63e-03', photon_flux_error2='1.20e-05', ts2='16.05', photon_index='1.96' WHERE bin_id='717' AND source_name='4FGL J0258.1+2030' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:16:21 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0198>
Subject: Job 367665: <4FGL_J0258.1+2030_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0258.1+2030_weekly_bin717> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May  3 01:00:33 2022
Job was executed on host(s) <bullet0198>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:05:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 01:05:32 2022
Terminated at Tue May  3 01:16:21 2022
Results reported at Tue May  3 01:16:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0258.1+2030_weekly_bin717 44.5422 20.5137 672624001 673228801 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 :                                   420.33 sec.
    Max Memory :                                 631 MB
    Average Memory :                             198.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2936 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            948 sec.

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

