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 11 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 = 17212
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0308.4+0407_weekly_bin92
RA = 47.1105, Dec = 4.1177
tmin = 294624001, tmax = 295228801
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='994867', job_status='RUN', time_executed='2021-07-06 08:11:50.064962', time_epoch_executed='1625584310.06' WHERE source_name='4FGL J0308.4+0407' and cadence='weekly' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994867

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994867/ft1_4FGL_J0308.4+0407_weekly_bin92.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994867/ft2_4FGL_J0308.4+0407_weekly_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994867/ft1_4FGL_J0308.4+0407_weekly_bin92.fits outfile=/scratch/kocevski/994867/ft1_filteredMKT_4FGL_J0308.4+0407_weekly_bin92.fits ra=47.1105 dec=4.1177 rad=12.0 tmin=294624001.0 tmax=295228801.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 5.26
user 4.56
sys 0.41

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/994867/ft2_4FGL_J0308.4+0407_weekly_bin92.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/994867/ft2_4FGL_J0308.4+0407_weekly_bin92.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/994867/ft1_filteredMKT_4FGL_J0308.4+0407_weekly_bin92.fits evtable="EVENTS" outfile="/scratch/kocevski/994867/ft1_filtered_4FGL_J0308.4+0407_weekly_bin92.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.83
user 0.37
sys 0.33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994867/ft1_filtered_4FGL_J0308.4+0407_weekly_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/994867/ft2_4FGL_J0308.4+0407_weekly_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/994867/ltcube_294624001_295228801_4FGL_J0308.4+0407_weekly_bin92.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/994867/ft2_4FGL_J0308.4+0407_weekly_bin92.fits
.....................!
real 27.75
user 26.70
sys 0.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994867/ft1_filtered_4FGL_J0308.4+0407_weekly_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/994867/ft2_4FGL_J0308.4+0407_weekly_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/994867/ltcube_294624001_295228801_4FGL_J0308.4+0407_weekly_bin92.fits outfile=/scratch/kocevski/994867/expmap_294624001_295228801_4FGL_J0308.4+0407_weekly_bin92.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/994867/ltcube_294624001_295228801_4FGL_J0308.4+0407_weekly_bin92.fits
.....................!
real 197.01
user 188.00
sys 5.77

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

Setting source of interest to:
4FGL J0308.4+0407 @ 47.1105 4.1177

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/994867/ft1_filtered_4FGL_J0308.4+0407_weekly_bin92.fits scfile=/scratch/kocevski/994867/ft2_4FGL_J0308.4+0407_weekly_bin92.fits outfile=/scratch/kocevski/994867/cmap_294624001_295228801_4FGL_J0308.4+0407_weekly_bin92.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=47.1105 yref=4.1177 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.38
user 0.40
sys 0.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994867/ft1_filtered_4FGL_J0308.4+0407_weekly_bin92.fits scfile=/scratch/kocevski/994867/ft2_4FGL_J0308.4+0407_weekly_bin92.fits outfile=/scratch/kocevski/994867/cmap_HighResolution_294624001_295228801_4FGL_J0308.4+0407_weekly_bin92.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=47.1105 yref=4.1177 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.48
user 0.44
sys 0.31

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/994867/ft1_filtered_4FGL_J0308.4+0407_weekly_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/994867/ft2_4FGL_J0308.4+0407_weekly_bin92.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/994867/Model_4FGL_J0308.4+0407_weekly_bin92.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/994867/ft1_filtered_4FGL_J0308.4+0407_weekly_bin92.fits.....................!
real 317.49
user 299.46
sys 1.46

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/994867/ft1_filtered_4FGL_J0308.4+0407_weekly_bin92.fits', '/scratch/kocevski/994867/ft2_4FGL_J0308.4+0407_weekly_bin92.fits', expMap='/scratch/kocevski/994867/expmap_294624001_295228801_4FGL_J0308.4+0407_weekly_bin92.fits', expCube='/scratch/kocevski/994867/ltcube_294624001_295228801_4FGL_J0308.4+0407_weekly_bin92.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/994867/Model_4FGL_J0308.4+0407_weekly_bin92.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0308.4+0407'

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  1.323e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  1.973e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/994867/ft1_filtered_4FGL_J0308.4+0407_weekly_bin92.fits
Spacecraft file(s): /scratch/kocevski/994867/ft2_4FGL_J0308.4+0407_weekly_bin92.fits
Exposure map: /scratch/kocevski/994867/expmap_294624001_295228801_4FGL_J0308.4+0407_weekly_bin92.fits
Exposure cube: /scratch/kocevski/994867/ltcube_294624001_295228801_4FGL_J0308.4+0407_weekly_bin92.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/994867/Model_4FGL_J0308.4+0407_weekly_bin92.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) = 26164.6587051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7407       1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.746       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .98184E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.0410       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.959       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7861       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2987       1.0000         .10000E-03   10000.    
    13 'norm      '    4.6266       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0175       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.3970       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9387       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1964       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.313       1.0000         .10000E-03   10000.    
    21 'norm      '    .20488       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3021       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .85614       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1467       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26164.65     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2758 TOTAL
                     EDM=   .78E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7370        14.361       -.13397E-05    .35732E-04
   2  Prefactor     45.742        39.634       -.50077E-05    .91930E-05
   3  Prefactor     .10000E-03    4.0814       -.22236E-06** at limit **
   4  Prefactor     .10000E-03    3.0964        .11721E-06** at limit **
   5  Prefactor     .10000E-03    9.6272       -.60585E-06** at limit **
   6  Prefactor     .10004E-03    4.1054       -.72248E-06** at limit **
   7  norm          4.0407        6.5217        .35062E-06    .40352E-04
   8  Prefactor     .10000E-03    9.9969       -.21468E-05** at limit **
   9  Prefactor     42.958        29.575       -.13180E-05    .10408E-04
  10  Prefactor     .10000E-03    11.763        .23135E-05** at limit **
  11  Prefactor     2.7859        3.2916        .27508E-05    .12605E-03
  12  norm          2.2991        5.1346        .23923E-06   -.58667E-04
  13  norm          4.6264        2.2139       -.59267E-07    .83774E-06
  14  Prefactor     4.0178        6.1858       -.19087E-06    .12424E-04
  15  Prefactor     .10000E-03    1.2860        .16659E-06** at limit **
  16  norm          7.3972        4.4641       -.11444E-06    .17937E-04
  17  Prefactor     8.9397        7.4106       -.11451E-06   -.91145E-05
  18  Prefactor     .10000E-03    5.7718       -.25948E-06** at limit **
  19  Prefactor     2.1965        1.8502       -.83620E-08    .90512E-05
  20  Prefactor     11.313        6.8035       -.76586E-07    .57706E-05
  21  norm          .20521        .13390       -.36059E-07   -.15769E-03
  22  norm          1.3022        .71771       -.41851E-07   -.39541E-05
  23  Normalizat    .85617        .11757       -.61998E-06    .19693E-03
  24  Prefactor     1.1467        .49732E-01    .23361E-06    .87185E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.73705
  Prefactor  = 45.7417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  norm       = 4.04068
  Prefactor  = 0.0001
  Prefactor  = 42.9579
  Prefactor  = 0.0001
  Prefactor  = 2.78587
  norm       = 2.29907
  norm       = 4.6264
  Prefactor  = 4.01783
  Prefactor  = 0.0001
  norm       = 7.39724
  Prefactor  = 8.93972
  Prefactor  = 0.0001
  Prefactor  = 2.19651
  Prefactor  = 11.3131
  norm       = 0.205211
  norm       = 1.30218
  Normalizat = 0.856168
  Prefactor  = 1.14667
 **********
 **   18 **HESSE 
 **********

 FCN=   26164.65     FROM HESSE     STATUS=OK           407 CALLS     3165 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7370        14.334        .14413E-03   -1.5152    
   2  Prefactor     45.742        39.619        .59280E-04   -1.4354    
   3  Prefactor     .10000E-03    4.1174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.6274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    32.969        .61245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.0407        6.4904        .20059E-03   -1.5306    
   8  Prefactor     .10000E-03    10.291        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     42.958        29.479        .61164E-04   -1.4396    
  10  Prefactor     .10000E-03    11.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.7859        3.2891        .24378E-03   -1.5374    
  12  norm          2.2991        5.1390        .13534E-02   -1.5405    
  13  norm          4.6264        2.2094        .15940E-03   -1.5278    
  14  Prefactor     4.0178        6.1812        .20120E-03   -1.5307    
  15  Prefactor     .10000E-03    1.3065        .17897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.3972        4.4660        .14747E-03   -1.5164    
  17  Prefactor     8.9397        7.4025        .67031E-03   -1.5110    
  18  Prefactor     .10000E-03    5.7938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1965        1.8482        .19568E-03   -1.5412    
  20  Prefactor     11.313        6.8014        .11911E-03   -1.5035    
  21  norm          .20521        1.9349        .20000E-02   -1.5617    
  22  norm          1.3022        .70713        .97536E-04   -1.5480    
  23  Normalizat    .85617        .12222        .40915E-03   -.98018    
  24  Prefactor     1.1467        .53533E-01    .16010E-03   -.87988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14233e-08
Minuit parameter uncertainties:
  1  14.3403
  2  39.6414
  3  9.76753e-06
  4  1.05338e-05
  5  1.10344e-05
  6  0.0021859
  7  6.49152
  8  3.17656e-05
  9  29.4885
  10  5.29257e-07
  11  3.28934
  12  5.14002
  13  2.20943
  14  6.18221
  15  5.63617e-06
  16  4.46619
  17  7.40327
  18  5.63586e-06
  19  1.8482
  20  6.8019
  21  1.26002
  22  0.707136
  23  0.122262
  24  0.0535353
Done.

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

Extracting fit parameters...

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  1.000e-04  5.636e-06  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  1.973e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.147e+00  5.354e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  8.562e-01  1.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 47.111 4.118
Photon Flux Upper Limit: 2.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/994867/likelihoodResults_294624001_295228801_4FGL_J0308.4+0407_weekly_bin92.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) = 26164.651245
delta logL = -0.00364800053649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26164.6475971
delta logL = -7.17773218639e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9779       1.0000          .0000       10.000    
     3 'Normalizat'    .85617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1467       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5020E+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=   26164.65     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10033E-03    5.1732        .17907E-02** at limit **
   2  Index         2.0250        6.1697        .50000       -.24035E-04
   3  Normalizat    .85617        .63859E-02    .40915E-03    .21229E-04
   4  Prefactor     1.1467        .28705E-02    .16010E-03    .39482E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100327
  Index      = 2.02504
  Normalizat = 0.856167
  Prefactor  = 1.14667
 **********
 **   18 **HESSE 
 **********

 FCN=   26164.65     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10033E-03    115.35        .35813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0250        5.0612        .50000       -.63726    
   3  Normalizat    .85617        .35857E-01    .16366E-04   -.98018    
   4  Prefactor     1.1467        .15343E-01    .64040E-05   -.87988    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.3986e-07
Minuit parameter uncertainties:
  1  0.0123082
  2  706.878
  3  0.0358584
  4  0.0153435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994867': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26164.6475968
delta logL = 2.09827703657e-07

Extracting fit parameters...

4FGL J0308.4+0407
   Spectrum: PowerLaw
290    Prefactor:  1.003e-04  1.231e-02  1.000e-04  1.000e+04 ( 1.000e-13)
291        Index:  2.025e+00  7.069e+02  0.000e+00  1.000e+01 (-1.000e+00)
292        Scale:  2.451e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  1.147e+00  1.534e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  8.562e-01  3.586e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 47.111 4.118

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/994867/cmap_HighResolution_294624001_295228801_4FGL_J0308.4+0407_weekly_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.14e-03', job_status='DONE', photon_flux_upper_limit='2.86e-08', time_completed='2021-07-06 08:44:02.436598', job_id='994867', GAL2='1.15', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1625586242.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='92' AND source_name='4FGL J0308.4+0407' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul  6 08:44:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 994867: <4FGL_J0308.4+0407_weekly_bin92> in cluster <slac> Done

Job <4FGL_J0308.4+0407_weekly_bin92> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Jul  5 21:18:41 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul  5 22:32:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul  5 22:32:52 2021
Terminated at Tue Jul  6 08:44:10 2021
Results reported at Tue Jul  6 08:44:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0308.4+0407_weekly_bin92 47.1105 4.1177 294624001 295228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0308.4+0407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1901.07 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             64.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   36677 sec.
    Turnaround time :                            41129 sec.

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

