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 34 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0303.6+4716_weekly_bin232
RA = 45.9098, Dec = 47.2759
tmin = 379296001, tmax = 379900801
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='892845', job_status='RUN', time_executed='2021-07-06 08:12:00.069126', time_epoch_executed='1625584320.07' WHERE source_name='4FGL J0303.6+4716' and cadence='weekly' and bin_id='232'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/892845

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/892845/ft1_4FGL_J0303.6+4716_weekly_bin232.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/892845/ft2_4FGL_J0303.6+4716_weekly_bin232.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/892845/ft1_4FGL_J0303.6+4716_weekly_bin232.fits outfile=/scratch/kocevski/892845/ft1_filteredMKT_4FGL_J0303.6+4716_weekly_bin232.fits ra=45.9098 dec=47.2759 rad=12.0 tmin=379296001.0 tmax=379900801.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 8.56
sys 0.44

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/892845/ft2_4FGL_J0303.6+4716_weekly_bin232.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/892845/ft1_filteredMKT_4FGL_J0303.6+4716_weekly_bin232.fits evtable="EVENTS" outfile="/scratch/kocevski/892845/ft1_filtered_4FGL_J0303.6+4716_weekly_bin232.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.99
user 0.37
sys 0.32

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/892845/ft1_filtered_4FGL_J0303.6+4716_weekly_bin232.fits" evtable="EVENTS" scfile=/scratch/kocevski/892845/ft2_4FGL_J0303.6+4716_weekly_bin232.fits sctable="SC_DATA" outfile=/scratch/kocevski/892845/ltcube_379296001_379900801_4FGL_J0303.6+4716_weekly_bin232.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/892845/ft2_4FGL_J0303.6+4716_weekly_bin232.fits
.....................!
real 32.42
user 31.55
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/892845/ft1_filtered_4FGL_J0303.6+4716_weekly_bin232.fits evtable="EVENTS" scfile=/scratch/kocevski/892845/ft2_4FGL_J0303.6+4716_weekly_bin232.fits sctable="SC_DATA" expcube=/scratch/kocevski/892845/ltcube_379296001_379900801_4FGL_J0303.6+4716_weekly_bin232.fits outfile=/scratch/kocevski/892845/expmap_379296001_379900801_4FGL_J0303.6+4716_weekly_bin232.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/892845/ltcube_379296001_379900801_4FGL_J0303.6+4716_weekly_bin232.fits
.....................!
real 195.35
user 185.79
sys 5.07

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
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/892845/ft1_filtered_4FGL_J0303.6+4716_weekly_bin232.fits scfile=/scratch/kocevski/892845/ft2_4FGL_J0303.6+4716_weekly_bin232.fits outfile=/scratch/kocevski/892845/cmap_379296001_379900801_4FGL_J0303.6+4716_weekly_bin232.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 1.48
user 0.41
sys 0.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/892845/ft1_filtered_4FGL_J0303.6+4716_weekly_bin232.fits scfile=/scratch/kocevski/892845/ft2_4FGL_J0303.6+4716_weekly_bin232.fits outfile=/scratch/kocevski/892845/cmap_HighResolution_379296001_379900801_4FGL_J0303.6+4716_weekly_bin232.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 1.82
user 0.43
sys 0.30

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/892845/ft1_filtered_4FGL_J0303.6+4716_weekly_bin232.fits evtable="EVENTS" scfile=/scratch/kocevski/892845/ft2_4FGL_J0303.6+4716_weekly_bin232.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/892845/Model_4FGL_J0303.6+4716_weekly_bin232.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/892845/ft1_filtered_4FGL_J0303.6+4716_weekly_bin232.fits.....................!
real 992.78
user 975.64
sys 1.50

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/892845/ft1_filtered_4FGL_J0303.6+4716_weekly_bin232.fits', '/scratch/kocevski/892845/ft2_4FGL_J0303.6+4716_weekly_bin232.fits', expMap='/scratch/kocevski/892845/expmap_379296001_379900801_4FGL_J0303.6+4716_weekly_bin232.fits', expCube='/scratch/kocevski/892845/ltcube_379296001_379900801_4FGL_J0303.6+4716_weekly_bin232.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/892845/Model_4FGL_J0303.6+4716_weekly_bin232.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/892845/ft1_filtered_4FGL_J0303.6+4716_weekly_bin232.fits
Spacecraft file(s): /scratch/kocevski/892845/ft2_4FGL_J0303.6+4716_weekly_bin232.fits
Exposure map: /scratch/kocevski/892845/expmap_379296001_379900801_4FGL_J0303.6+4716_weekly_bin232.fits
Exposure cube: /scratch/kocevski/892845/ltcube_379296001_379900801_4FGL_J0303.6+4716_weekly_bin232.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/892845/Model_4FGL_J0303.6+4716_weekly_bin232.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) = 54315.0421991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .99079       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10820E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.225       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21409E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.328       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6030       1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.610       1.0000         .10000E-03   10000.    
    12 'norm      '    4.0383       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.594       1.0000         .10000E-03   10000.    
    15 'norm      '    74.215       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6633       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5230       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2211       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97999       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=   54315.04     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     1956 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.764        .12803E-09** at limit **
   2  norm          .99082        .21736       -.74007E-10   -.68146E-04
   3  Prefactor     .10000E-03    23.038       -.25331E-09** at limit **
   4  Prefactor     .10000E-03    .60172       -.20182E-09** at limit **
   5  norm          .10000E-03    1.1098       -.66447E-11** at limit **
   6  Prefactor     .10000E-03    5.0454       -.24541E-10** at limit **
   7  norm          10.224        7.9199       -.39496E-09   -.74416E-03
   8  Prefactor     .10000E-03    .30581       -.55220E-09** at limit **
   9  norm          10.328        2.9570       -.28609E-08   -.78030E-04
  10  Prefactor     9.6026        7.9068       -.35731E-09    .15860E-03
  11  Prefactor     41.610        34.115       -.83748E-08    .77795E-03
  12  norm          4.0384        .53085        .43715E-10   -.43250E-04
  13  Prefactor     .10000E-03    42.854       -.10434E-08** at limit **
  14  Prefactor     14.594        14.084        .11064E-07    .15032E-04
  15  norm          74.215        38.688       -.15345E-08   -.13525E-04
  16  Prefactor     3.6632        2.0102        .11470E-10   -.45269E-05
  17  norm          2.5226        .51242       -.92294E-07   -.10972E-03
  18  Normalizat    1.2211        .14116       -.29407E-08   -.23604E-04
  19  Prefactor     .97999        .22390E-01    .44051E-08   -.91403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.990815
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.2241
  Prefactor  = 0.0001
  norm       = 10.3276
  Prefactor  = 9.60262
  Prefactor  = 41.6096
  norm       = 4.03841
  Prefactor  = 0.0001
  Prefactor  = 14.594
  norm       = 74.2149
  Prefactor  = 3.66318
  norm       = 2.52258
  Normalizat = 1.22105
  Prefactor  = 0.979994
 **********
 **   18 **HESSE 
 **********

 FCN=   54315.04     FROM HESSE     STATUS=OK           276 CALLS     2232 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .99082        .21605        .48735E-04   -1.5509    
   3  Prefactor     .10000E-03    23.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3688        .34499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.224        7.7292        .12530E-03   -1.5068    
   8  Prefactor     .10000E-03    5.6541        .24018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.328        2.9677        .62340E-03   -1.5065    
  10  Prefactor     9.6026        7.9084        .12932E-03   -1.5088    
  11  Prefactor     41.610        34.233        .62144E-04   -1.4417    
  12  norm          4.0384        .53542        .52834E-04   -1.5306    
  13  Prefactor     .10000E-03    43.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.594        14.120        .10484E-03   -1.4944    
  15  norm          74.215        38.643        .46606E-04   -1.3983    
  16  Prefactor     3.6632        2.0010        .21104E-03   -1.5325    
  17  norm          2.5226        4.6351        .12859E-02   -1.5390    
  18  Normalizat    1.2211        .14037        .67643E-03   -.85955    
  19  Prefactor     .97999        .23368E-01    .12677E-03   -.93399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98525e-09
Minuit parameter uncertainties:
  1  1.26995e-05
  2  0.216055
  3  1.28641e-05
  4  8.42213e-06
  5  1.01998e-06
  6  1.61608e-07
  7  7.72996
  8  1.39565e-06
  9  2.96776
  10  7.90923
  11  34.2488
  12  0.535418
  13  9.09021e-05
  14  14.1228
  15  38.6562
  16  2.00101
  17  4.63574
  18  0.140414
  19  0.0233683
Done.

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

Extracting fit parameters...

4FGL J0303.6+4716
   Spectrum: LogParabola
312         norm:  1.033e+01  2.968e+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.800e-01  2.337e-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.221e+00  1.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.62
Ra Dec: 45.910 47.276
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 8.97e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 4.55e-05 +/- 1.31e-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) = 54314.8523968
delta logL = 0.184616029292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 54314.8511281
delta logL = 0.185884649196

Fit tolerance = 1e-08

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

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

 FCN=   54314.85     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      309 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7554        3.1465        .12830E-03    .60043E-03
   2  alpha         2.2806        .31075        .14720E-01    .11504E-03
   3  Normalizat    1.2038        .13531        .68039E-03   -.17591E-03
   4  Prefactor     .98077        .22576E-01    .12672E-03   -.50599E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.7554
  alpha      = 2.2806
  Normalizat = 1.20379
  Prefactor  = 0.980773
 **********
 **   18 **HESSE 
 **********

 FCN=   54314.85     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7554        3.0280        .51319E-05   -1.5083    
   2  alpha         2.2806        .29869        .58879E-03   -.87874E-01
   3  Normalizat    1.2038        .13513        .27215E-04   -.86486    
   4  Prefactor     .98077        .22572E-01    .50688E-05   -.93373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10113e-10
Minuit parameter uncertainties:
  1  3.02803
  2  0.299411
  3  0.135166
  4  0.0225724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/892845': 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) = 54314.8511281
delta logL = 0.185884670478

Extracting fit parameters...

4FGL J0303.6+4716
   Spectrum: LogParabola
312         norm:  9.755e+00  3.028e+00  1.000e-04  1.000e+04 ( 1.000e-12)
313        alpha:  2.281e+00  2.994e-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.808e-01  2.257e-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.204e+00  1.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.09
Ra Dec: 45.910 47.276
Photon Index (Free Index): 2.28 +/- 0.30
Photon Flux (Free Index): 1.09e-07 +/- 4.20e-08
Energy Flux (Free Index): 4.22e-05 +/- 1.24e-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/892845/cmap_HighResolution_379296001_379900801_4FGL_J0303.6+4716_weekly_bin232.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.97e-08', energy_flux2='4.22e-05', photon_flux_error='2.58e-08', dlogl='1.86e-01', energy_flux='4.55e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-07-06 09:09:42.083018', photon_index_error2='0.30', photon_index2='2.28', ts='30.62', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='1.22', time_epoch_completed='1625587782.08', return_code='0', job_id='892845', GAL2='0.98', EG2='1.20', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='4.20e-08', ts2='31.09', photon_index='2.10' WHERE bin_id='232' AND source_name='4FGL J0303.6+4716' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul  6 09:09:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 892845: <4FGL_J0303.6+4716_weekly_bin232> in cluster <slac> Done

Job <4FGL_J0303.6+4716_weekly_bin232> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Jul  5 14:53:14 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul  5 16:39:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul  5 16:39:23 2021
Terminated at Tue Jul  6 09:09:47 2021
Results reported at Tue Jul  6 09:09:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0303.6+4716_weekly_bin232 45.9098 47.2759 379296001 379900801 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 :                                   3428.00 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             69.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   59423 sec.
    Turnaround time :                            65793 sec.

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

