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


Performing analysis on: 4FGL_J0303.6+4716_weekly_bin554
RA = 45.9098, Dec = 47.2759
tmin = 574041601, tmax = 574646401
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='899670', job_status='RUN', time_executed='2021-07-05 17:51:31.183882', time_epoch_executed='1625532691.18' WHERE source_name='4FGL J0303.6+4716' and cadence='weekly' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899670

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899670/ft1_4FGL_J0303.6+4716_weekly_bin554.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899670/ft2_4FGL_J0303.6+4716_weekly_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899670/ft1_4FGL_J0303.6+4716_weekly_bin554.fits outfile=/scratch/kocevski/899670/ft1_filteredMKT_4FGL_J0303.6+4716_weekly_bin554.fits ra=45.9098 dec=47.2759 rad=12.0 tmin=574041601.0 tmax=574646401.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 9.04
user 7.46
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/899670/ft2_4FGL_J0303.6+4716_weekly_bin554.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/899670/ft2_4FGL_J0303.6+4716_weekly_bin554.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/899670/ft1_filteredMKT_4FGL_J0303.6+4716_weekly_bin554.fits evtable="EVENTS" outfile="/scratch/kocevski/899670/ft1_filtered_4FGL_J0303.6+4716_weekly_bin554.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.93
user 0.40
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899670/ft1_filtered_4FGL_J0303.6+4716_weekly_bin554.fits" evtable="EVENTS" scfile=/scratch/kocevski/899670/ft2_4FGL_J0303.6+4716_weekly_bin554.fits sctable="SC_DATA" outfile=/scratch/kocevski/899670/ltcube_574041601_574646401_4FGL_J0303.6+4716_weekly_bin554.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/899670/ft2_4FGL_J0303.6+4716_weekly_bin554.fits
.....................!
real 28.94
user 26.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899670/ft1_filtered_4FGL_J0303.6+4716_weekly_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/899670/ft2_4FGL_J0303.6+4716_weekly_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/899670/ltcube_574041601_574646401_4FGL_J0303.6+4716_weekly_bin554.fits outfile=/scratch/kocevski/899670/expmap_574041601_574646401_4FGL_J0303.6+4716_weekly_bin554.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/899670/ltcube_574041601_574646401_4FGL_J0303.6+4716_weekly_bin554.fits
.....................!
real 209.01
user 188.51
sys 4.72

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 179 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0303.6+4716 @ 45.9098 47.2759

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/899670/ft1_filtered_4FGL_J0303.6+4716_weekly_bin554.fits scfile=/scratch/kocevski/899670/ft2_4FGL_J0303.6+4716_weekly_bin554.fits outfile=/scratch/kocevski/899670/cmap_574041601_574646401_4FGL_J0303.6+4716_weekly_bin554.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=45.9098 yref=47.2759 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.71
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899670/ft1_filtered_4FGL_J0303.6+4716_weekly_bin554.fits scfile=/scratch/kocevski/899670/ft2_4FGL_J0303.6+4716_weekly_bin554.fits outfile=/scratch/kocevski/899670/cmap_HighResolution_574041601_574646401_4FGL_J0303.6+4716_weekly_bin554.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=45.9098 yref=47.2759 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.80
user 0.43
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/899670/ft1_filtered_4FGL_J0303.6+4716_weekly_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/899670/ft2_4FGL_J0303.6+4716_weekly_bin554.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/899670/Model_4FGL_J0303.6+4716_weekly_bin554.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source HB 9
adding source W 3
Working on...
/scratch/kocevski/899670/ft1_filtered_4FGL_J0303.6+4716_weekly_bin554.fits.....................!
real 987.05
user 969.41
sys 3.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/899670/ft1_filtered_4FGL_J0303.6+4716_weekly_bin554.fits', '/scratch/kocevski/899670/ft2_4FGL_J0303.6+4716_weekly_bin554.fits', expMap='/scratch/kocevski/899670/expmap_574041601_574646401_4FGL_J0303.6+4716_weekly_bin554.fits', expCube='/scratch/kocevski/899670/ltcube_574041601_574646401_4FGL_J0303.6+4716_weekly_bin554.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/899670/Model_4FGL_J0303.6+4716_weekly_bin554.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0303.6+4716'

4FGL J0303.6+4716
   Spectrum: LogParabola
312         norm:  3.413e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
313        alpha:  2.097e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  7.937e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  9.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/899670/ft1_filtered_4FGL_J0303.6+4716_weekly_bin554.fits
Spacecraft file(s): /scratch/kocevski/899670/ft2_4FGL_J0303.6+4716_weekly_bin554.fits
Exposure map: /scratch/kocevski/899670/expmap_574041601_574646401_4FGL_J0303.6+4716_weekly_bin554.fits
Exposure cube: /scratch/kocevski/899670/ltcube_574041601_574646401_4FGL_J0303.6+4716_weekly_bin554.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/899670/Model_4FGL_J0303.6+4716_weekly_bin554.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) = 54127.8053178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69041E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .73344       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.657       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28766       1.0000         .10000E-03   10000.    
     5 'norm      '    5.7717       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0276       1.0000         .10000E-03   10000.    
     9 'norm      '    5.0076       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8449       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.0207       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9004       1.0000         .10000E-03   10000.    
    15 'norm      '    31.553       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5515       1.0000         .10000E-03   10000.    
    17 'norm      '    4.1692       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3789       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96332       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   54127.76     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1942 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    165.37        .15497E-04** at limit **
   2  norm          .73337        .20638        .19041E-07   -.11130E-02
   3  Prefactor     37.659        42.232       -.25558E-06   -.64400E-05
   4  Prefactor     .28444        5.9918       -.96387E-05   -.10161E-02
   5  norm          5.7728        4.3193        .13415E-05    .92422E-03
   6  Prefactor     .10000E-03    5.6822       -.19522E-06** at limit **
   7  norm          .10000E-03    4.7078       -.38739E-06** at limit **
   8  Prefactor     4.0278        1.6825       -.11957E-06   -.17845E-03
   9  norm          5.0078        2.7454        .19257E-07   -.85170E-03
  10  Prefactor     1.8442        11.020       -.24599E-05   -.11463E-03
  11  Prefactor     .10000E-03    15.138        .13082E-06** at limit **
  12  norm          4.0208        .56973        .34061E-07    .27642E-02
  13  Prefactor     .10000E-03    68.335       -.14751E-05** at limit **
  14  Prefactor     6.8969        15.281       -.13839E-05   -.70490E-04
  15  norm          31.516        33.880       -.62101E-06    .11383E-03
  16  Prefactor     1.5545        1.3635        .19978E-05   -.53288E-02
  17  norm          4.1691        4.4317        .11882E-07   -.68178E-03
  18  Normalizat    1.3789        .15336        .40873E-05    .21523E-03
  19  Prefactor     .96332        .23125E-01   -.38559E-06    .26574E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100026
  norm       = 0.733371
  Prefactor  = 37.6585
  Prefactor  = 0.284441
  norm       = 5.77278
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.02782
  norm       = 5.00782
  Prefactor  = 1.84419
  Prefactor  = 0.0001
  norm       = 4.02081
  Prefactor  = 0.000100001
  Prefactor  = 6.89686
  norm       = 31.5157
  Prefactor  = 1.55447
  norm       = 4.1691
  Normalizat = 1.37885
  Prefactor  = 0.963317
 **********
 **   18 **HESSE 
 **********

 FCN=   54127.76     FROM HESSE     STATUS=OK           272 CALLS     2214 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    163.62        .41975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .73337        .20677        .53476E-04   -1.5537    
   3  Prefactor     37.659        42.236        .65312E-04   -1.4480    
   4  Prefactor     .28444        9.3607        .39719E-02   -1.5601    
   5  norm          5.7728        4.3922        .16718E-03   -1.5227    
   6  Prefactor     .10000E-03    5.6882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.7855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.0278        1.6814        .18564E-03   -1.5307    
   9  norm          5.0078        2.7640        .89852E-03   -1.5260    
  10  Prefactor     1.8442        10.727        .30704E-03   -1.5436    
  11  Prefactor     .10000E-03    15.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.0208        .55908        .55166E-04   -1.5307    
  13  Prefactor     .10000E-03    68.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8969        15.373        .15273E-03   -1.5183    
  15  norm          31.516        34.690        .71331E-04   -1.4585    
  16  Prefactor     1.5545        2.1702        .17096E-02   -1.5459    
  17  norm          4.1691        4.4506        .98694E-03   -1.5300    
  18  Normalizat    1.3789        .15838        .67989E-03   -.81242    
  19  Prefactor     .96332        .23800E-01    .12757E-03   -.93962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18338e-08
Minuit parameter uncertainties:
  1  0.00414002
  2  0.206766
  3  42.2697
  4  3.26345
  5  4.39241
  6  1.97172e-05
  7  4.15555e-05
  8  1.68139
  9  2.76408
  10  8.89767
  11  1.6321e-05
  12  0.559078
  13  0.000444993
  14  15.3816
  15  34.7117
  16  2.17035
  17  4.45092
  18  0.158437
  19  0.0238006
Done.

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

Extracting fit parameters...

4FGL J0303.6+4716
   Spectrum: LogParabola
312         norm:  5.008e+00  2.764e+00  1.000e-04  1.000e+04 ( 1.000e-12)
313        alpha:  2.097e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  7.937e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  9.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.633e-01  2.380e-02  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.379e+00  1.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.72
Ra Dec: 45.910 47.276
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 4.35e-08 +/- 2.40e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 1.22e-05

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) = 54127.4822533
delta logL = 0.272972485574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 54127.4812943
delta logL = 0.273931523559

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2908       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4567       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96421       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   54127.48     FROM MIGRAD    STATUS=FAILED        88 CALLS      289 TOTAL
                     EDM=   .82E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2906        3.2182        .19449E-03    .10007E-03
   2  alpha         2.4567        .57450        .23343E-01    .12347E-02
   3  Normalizat    1.3619        .14305        .68336E-03   -.26352E-03
   4  Prefactor     .96421        .22695E-01    .12751E-03   -.14244E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   54127.48     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      363 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2906        3.2182        .61397E-04   -1.5294    
   2  alpha         2.4567        .57450        .11528E-02   -.17329E-01
   3  Normalizat    1.3619        .14305        .19106E-03   -.81738    
   4  Prefactor     .96421        .22695E-01    .42820E-04   -.93932    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   54127.48     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      391 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2906        2.8801        .77796E-05   -.37410E-04
   2  alpha         2.4567        .51474        .46686E-02    .50067E-05
   3  Normalizat    1.3619        .14280        .27334E-04   -.19964E-05
   4  Prefactor     .96421        .22680E-01    .51004E-05   -.35664E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.2906
  alpha      = 2.45668
  Normalizat = 1.36185
  Prefactor  = 0.964211
 **********
 **   18 **HESSE 
 **********

 FCN=   54127.48     FROM HESSE     STATUS=OK            23 CALLS      414 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2906        2.8238        .15559E-05   -1.5294    
   2  alpha         2.4567        .50471        .18674E-03   -.17329E-01
   3  Normalizat    1.3619        .14264        .54669E-05   -.81738    
   4  Prefactor     .96421        .22661E-01    .10201E-05   -.93932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17085e-12
Minuit parameter uncertainties:
  1  2.82393
  2  0.5082
  3  0.14268
  4  0.0226609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899670': 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) = 54127.4812943
delta logL = 0.273931529548

Extracting fit parameters...

4FGL J0303.6+4716
   Spectrum: LogParabola
312         norm:  4.291e+00  2.824e+00  1.000e-04  1.000e+04 ( 1.000e-12)
313        alpha:  2.457e+00  5.082e-01  0.000e+00  5.000e+00 ( 1.000e+00)
314         beta:  7.937e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  9.673e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
619    Prefactor:  9.642e-01  2.266e-02  0.000e+00  1.000e+01 ( 1.000e+00)
620        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
621        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.362e+00  1.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.31
Ra Dec: 45.910 47.276
Photon Index (Free Index): 2.46 +/- 0.51
Photon Flux (Free Index): 6.18e-08 +/- 3.82e-08
Energy Flux (Free Index): 1.96e-05 +/- 1.05e-05

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/899670/cmap_HighResolution_574041601_574646401_4FGL_J0303.6+4716_weekly_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.35e-08', energy_flux2='1.96e-05', photon_flux_error='2.40e-08', dlogl='2.74e-01', energy_flux='2.21e-05', photon_flux2='6.18e-08', job_status='DONE', time_completed='2021-07-05 18:48:18.988295', photon_index_error2='0.51', photon_index2='2.46', ts='4.72', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.05e-05', EG='1.38', time_epoch_completed='1625536098.99', return_code='0', job_id='899670', GAL2='0.96', EG2='1.36', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='3.82e-08', ts2='5.31', photon_index='2.10' WHERE bin_id='554' AND source_name='4FGL J0303.6+4716' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul  5 18:48:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0063>
Subject: Job 899670: <4FGL_J0303.6+4716_weekly_bin554> in cluster <slac> Done

Job <4FGL_J0303.6+4716_weekly_bin554> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Jul  5 15:19:58 2021
Job was executed on host(s) <bullet0063>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul  5 17:45:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul  5 17:45:26 2021
Terminated at Mon Jul  5 18:48:23 2021
Results reported at Mon Jul  5 18:48:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0303.6+4716_weekly_bin554 45.9098 47.2759 574041601 574646401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0303.6+4716 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3331.87 sec.
    Max Memory :                                 632 MB
    Average Memory :                             404.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2942 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   3777 sec.
    Turnaround time :                            12505 sec.

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

