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


Performing analysis on: 4FGL_J0058.4+3315_weekly_bin641
RA = 14.6101, Dec = 33.2505
tmin = 626659201, tmax = 627264001
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='28285', job_status='RUN', time_executed='2021-07-03 13:40:39.696745', time_epoch_executed='1625344839.7' WHERE source_name='4FGL J0058.4+3315' and cadence='weekly' and bin_id='641'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28285

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28285/ft1_4FGL_J0058.4+3315_weekly_bin641.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28285/ft2_4FGL_J0058.4+3315_weekly_bin641.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28285/ft1_4FGL_J0058.4+3315_weekly_bin641.fits outfile=/scratch/kocevski/28285/ft1_filteredMKT_4FGL_J0058.4+3315_weekly_bin641.fits ra=14.6101 dec=33.2505 rad=12.0 tmin=626659201.0 tmax=627264001.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.61
user 5.87
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/28285/ft2_4FGL_J0058.4+3315_weekly_bin641.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/28285/ft2_4FGL_J0058.4+3315_weekly_bin641.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/28285/ft1_filteredMKT_4FGL_J0058.4+3315_weekly_bin641.fits evtable="EVENTS" outfile="/scratch/kocevski/28285/ft1_filtered_4FGL_J0058.4+3315_weekly_bin641.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.23
user 0.38
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28285/ft1_filtered_4FGL_J0058.4+3315_weekly_bin641.fits" evtable="EVENTS" scfile=/scratch/kocevski/28285/ft2_4FGL_J0058.4+3315_weekly_bin641.fits sctable="SC_DATA" outfile=/scratch/kocevski/28285/ltcube_626659201_627264001_4FGL_J0058.4+3315_weekly_bin641.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/28285/ft2_4FGL_J0058.4+3315_weekly_bin641.fits
.....................!
real 27.40
user 26.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28285/ft1_filtered_4FGL_J0058.4+3315_weekly_bin641.fits evtable="EVENTS" scfile=/scratch/kocevski/28285/ft2_4FGL_J0058.4+3315_weekly_bin641.fits sctable="SC_DATA" expcube=/scratch/kocevski/28285/ltcube_626659201_627264001_4FGL_J0058.4+3315_weekly_bin641.fits outfile=/scratch/kocevski/28285/expmap_626659201_627264001_4FGL_J0058.4+3315_weekly_bin641.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/28285/ltcube_626659201_627264001_4FGL_J0058.4+3315_weekly_bin641.fits
.....................!
real 192.32
user 185.50
sys 4.50

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

Setting source of interest to:
4FGL J0058.4+3315 @ 14.6101 33.2505

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/28285/ft1_filtered_4FGL_J0058.4+3315_weekly_bin641.fits scfile=/scratch/kocevski/28285/ft2_4FGL_J0058.4+3315_weekly_bin641.fits outfile=/scratch/kocevski/28285/cmap_626659201_627264001_4FGL_J0058.4+3315_weekly_bin641.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=14.6101 yref=33.2505 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.00
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/28285/ft1_filtered_4FGL_J0058.4+3315_weekly_bin641.fits scfile=/scratch/kocevski/28285/ft2_4FGL_J0058.4+3315_weekly_bin641.fits outfile=/scratch/kocevski/28285/cmap_HighResolution_626659201_627264001_4FGL_J0058.4+3315_weekly_bin641.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=14.6101 yref=33.2505 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.67
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/28285/ft1_filtered_4FGL_J0058.4+3315_weekly_bin641.fits evtable="EVENTS" scfile=/scratch/kocevski/28285/ft2_4FGL_J0058.4+3315_weekly_bin641.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28285/Model_4FGL_J0058.4+3315_weekly_bin641.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/28285/ft1_filtered_4FGL_J0058.4+3315_weekly_bin641.fits.....................!
real 67.21
user 62.73
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/28285/ft1_filtered_4FGL_J0058.4+3315_weekly_bin641.fits', '/scratch/kocevski/28285/ft2_4FGL_J0058.4+3315_weekly_bin641.fits', expMap='/scratch/kocevski/28285/expmap_626659201_627264001_4FGL_J0058.4+3315_weekly_bin641.fits', expCube='/scratch/kocevski/28285/ltcube_626659201_627264001_4FGL_J0058.4+3315_weekly_bin641.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/28285/Model_4FGL_J0058.4+3315_weekly_bin641.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0058.4+3315'

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.596e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/28285/ft1_filtered_4FGL_J0058.4+3315_weekly_bin641.fits
Spacecraft file(s): /scratch/kocevski/28285/ft2_4FGL_J0058.4+3315_weekly_bin641.fits
Exposure map: /scratch/kocevski/28285/expmap_626659201_627264001_4FGL_J0058.4+3315_weekly_bin641.fits
Exposure cube: /scratch/kocevski/28285/ltcube_626659201_627264001_4FGL_J0058.4+3315_weekly_bin641.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/28285/Model_4FGL_J0058.4+3315_weekly_bin641.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) = 6079.64139367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.536       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .61650E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34990E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    2.5954       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.481       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2765       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0589       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.085       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18108E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0580       1.0000         .10000E-03   10000.    
    15 'norm      '    2.3974       1.0000         .10000E-03   10000.    
    16 'Prefactor '    197.10       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4296       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13040E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97976       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92546       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6079.566     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2928 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.538        19.113        .20417E-06    .16517E-04
   2  Prefactor     .10330E-03    4.6019        .19508E-05** at limit **
   3  Prefactor     .10000E-03    26.033       -.22804E-06** at limit **
   4  Prefactor     .10000E-03    62.597       -.24753E-05** at limit **
   5  Prefactor     .10000E-03    63.290       -.25929E-05** at limit **
   6  norm          2.5950        2.0509        .53541E-07    .82016E-04
   7  Prefactor     16.483        22.263        .32106E-06   -.24517E-04
   8  Prefactor     .10000E-03    2.9196       -.19849E-06** at limit **
   9  Prefactor     2.2659        53.997        .51345E-06    .33045E-05
  10  Prefactor     5.0546        8.8971        .15695E-06    .62935E-04
  11  Prefactor     16.088        20.793        .10402E-06    .27003E-04
  12  Prefactor     .10001E-03    316.73        .88352E-05** at limit **
  13  Prefactor     .10000E-03    38.060        .46610E-07** at limit **
  14  norm          2.0589        1.4597        .30733E-07    .89428E-04
  15  norm          2.3964        2.4384        .41422E-06    .39882E-03
  16  Prefactor     197.43        147.13       -.76431E-05   -.11294E-03
  17  Prefactor     8.3839        18.730        .43883E-05    .11843E-03
  18  Prefactor     .10000E-03    14.211        .94912E-06** at limit **
  19  Prefactor     .10000E-03    34.982        .45075E-05** at limit **
  20  norm          .10000E-03    .84295       -.12921E-06** at limit **
  21  Prefactor     .10000E-03    225.12        .16468E-05** at limit **
  22  norm          .10000E-03    1.5139        .60541E-06** at limit **
  23  Prefactor     .10000E-03    41.686       -.69226E-06** at limit **
  24  Normalizat    .97943        .23466       -.32153E-05   -.11408E-03
  25  Prefactor     .92577        .13346        .22392E-05   -.19458E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 28.5377
  Prefactor  = 0.000103297
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 2.59502
  Prefactor  = 16.4828
  Prefactor  = 0.0001
  Prefactor  = 2.26591
  Prefactor  = 5.05457
  Prefactor  = 16.0875
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 2.05887
  norm       = 2.39636
  Prefactor  = 197.432
  Prefactor  = 8.38385
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.979431
  Prefactor  = 0.925768
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.566     FROM HESSE     STATUS=OK           431 CALLS     3359 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.538        19.125        .74999E-04   -1.4639    
   2  Prefactor     .10330E-03    5.9066        .45623E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    64.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    65.800        .39311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.5950        2.0418        .95330E-04   -1.5386    
   7  Prefactor     16.483        22.342        .98656E-04   -1.4896    
   8  Prefactor     .10000E-03    2.9585        .13010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2659        52.161        .27215E-03   -1.5407    
  10  Prefactor     5.0546        8.8825        .17877E-03   -1.5258    
  11  Prefactor     16.088        20.794        .99863E-04   -1.4906    
  12  Prefactor     .10001E-03    317.82        .20316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0589        1.4536        .74039E-04   -1.5421    
  15  norm          2.3964        2.4038        .11229E-03   -1.5398    
  16  Prefactor     197.43        149.87        .14388E-03   -1.2888    
  17  Prefactor     8.3839        18.844        .13807E-03   -1.5129    
  18  Prefactor     .10000E-03    14.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    35.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .85615        .69918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    225.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.5408        .93691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    41.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97943        .26492        .31726E-03   -.93723    
  25  Prefactor     .92577        .15075        .19142E-03   -.95246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86265e-09
Minuit parameter uncertainties:
  1  19.1293
  2  0.00882618
  3  2.97943e-05
  4  0.000484478
  5  0.000570332
  6  2.04181
  7  22.3532
  8  1.00762e-05
  9  21.7642
  10  8.88483
  11  20.8034
  12  0.00311075
  13  3.99507e-06
  14  1.45364
  15  2.40394
  16  150.163
  17  18.8577
  18  7.61917e-05
  19  0.000692915
  20  3.46313e-06
  21  0.000596163
  22  1.75807e-05
  23  0.000139679
  24  0.265272
  25  0.150823
Done.

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

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  2.266e+00  2.176e+01  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  9.258e-01  1.508e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  9.794e-01  2.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 14.610 33.251
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/28285/likelihoodResults_626659201_627264001_4FGL_J0058.4+3315_weekly_bin641.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) = 6079.42228874
delta logL = 0.143843144841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6079.4141707
delta logL = 0.151961193986

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5275       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1551       1.0000          .0000       10.000    
     3 'Normalizat'    .93748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93675       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+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=   6079.414     FROM MIGRAD    STATUS=FAILED       106 CALLS      281 TOTAL
                     EDM=   .96E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5503        479.09        .10762E-02   -.47316E-04
   2  Index         3.1517        5.1704        .85407E-02    .41392E-03
   3  Normalizat    .93812        .27635        .32341E-03    .89991E-05
   4  Prefactor     .93644        .17752        .19038E-03    .45206E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6079.414     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      372 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5503        479.09        .28057E-03   -.47316E-04
   2  Index         3.1517        5.1704        .12484E-02    .41392E-03
   3  Normalizat    .93812        .27635        .24417E-03    .89991E-05
   4  Prefactor     .93644        .17752        .15000E-03    .45206E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6079.414     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      407 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5503        11.868        .43047E-04   -.80551E-04
   2  Index         3.1517        1.5022        .17081E-02   -.14769E-04
   3  Normalizat    .93812        .26594        .12936E-04    .82609E-05
   4  Prefactor     .93644        .15131        .76150E-05    .43594E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55033
  Index      = 3.15167
  Normalizat = 0.938115
  Prefactor  = 0.936444
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.414     FROM HESSE     STATUS=OK            23 CALLS      430 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5503        11.114        .17219E-05   -1.5331    
   2  Index         3.1517        1.4081        .68325E-04   -.37865    
   3  Normalizat    .93812        .26612        .25873E-05   -.95133    
   4  Prefactor     .93644        .15126        .15230E-05   -.94879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08096e-11
Minuit parameter uncertainties:
  1  11.1206
  2  1.43064
  3  0.266494
  4  0.151332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28285': 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) = 6079.41416516
delta logL = 0.151966726511

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  3.550e+00  1.112e+01  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  3.152e+00  1.431e+00  0.000e+00  1.000e+01 (-1.000e+00)
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  9.364e-01  1.513e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  9.381e-01  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 14.610 33.251

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/28285/cmap_HighResolution_626659201_627264001_4FGL_J0058.4+3315_weekly_bin641.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.48e-07', time_completed='2021-07-03 13:52:59.038163', job_id='28285', GAL2='0.94', fit_tolerance='1e-08', EG2='0.94', EG='0.98', time_epoch_completed='1625345579.04', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.52e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='641' AND source_name='4FGL J0058.4+3315' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 13:52:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 28285: <4FGL_J0058.4+3315_weekly_bin641> in cluster <slac> Done

Job <4FGL_J0058.4+3315_weekly_bin641> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Jul  3 13:37:19 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 13:37:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 13:37:21 2021
Terminated at Sat Jul  3 13:53:00 2021
Results reported at Sat Jul  3 13:53:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0058.4+3315_weekly_bin641 14.6101 33.2505 626659201 627264001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0058.4+3315 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   710.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             277.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

