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


Performing analysis on: 4FGL_J0303.6+4716_weekly_bin370
RA = 45.9098, Dec = 47.2759
tmin = 462758401, tmax = 463363201
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='896362', job_status='RUN', time_executed='2021-07-06 08:12:09.420982', time_epoch_executed='1625584329.42' WHERE source_name='4FGL J0303.6+4716' and cadence='weekly' and bin_id='370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/896362

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/896362/ft1_4FGL_J0303.6+4716_weekly_bin370.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/896362/ft2_4FGL_J0303.6+4716_weekly_bin370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/896362/ft1_4FGL_J0303.6+4716_weekly_bin370.fits outfile=/scratch/kocevski/896362/ft1_filteredMKT_4FGL_J0303.6+4716_weekly_bin370.fits ra=45.9098 dec=47.2759 rad=12.0 tmin=462758401.0 tmax=463363201.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.31
user 8.45
sys 0.52

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/896362/ft2_4FGL_J0303.6+4716_weekly_bin370.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/896362/ft1_filteredMKT_4FGL_J0303.6+4716_weekly_bin370.fits evtable="EVENTS" outfile="/scratch/kocevski/896362/ft1_filtered_4FGL_J0303.6+4716_weekly_bin370.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.63
user 0.36
sys 0.34

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/896362/ft1_filtered_4FGL_J0303.6+4716_weekly_bin370.fits" evtable="EVENTS" scfile=/scratch/kocevski/896362/ft2_4FGL_J0303.6+4716_weekly_bin370.fits sctable="SC_DATA" outfile=/scratch/kocevski/896362/ltcube_462758401_463363201_4FGL_J0303.6+4716_weekly_bin370.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/896362/ft2_4FGL_J0303.6+4716_weekly_bin370.fits
.....................!
real 27.02
user 26.18
sys 0.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/896362/ft1_filtered_4FGL_J0303.6+4716_weekly_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/896362/ft2_4FGL_J0303.6+4716_weekly_bin370.fits sctable="SC_DATA" expcube=/scratch/kocevski/896362/ltcube_462758401_463363201_4FGL_J0303.6+4716_weekly_bin370.fits outfile=/scratch/kocevski/896362/expmap_462758401_463363201_4FGL_J0303.6+4716_weekly_bin370.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/896362/ltcube_462758401_463363201_4FGL_J0303.6+4716_weekly_bin370.fits
.....................!
real 194.75
user 184.94
sys 6.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/896362/ft1_filtered_4FGL_J0303.6+4716_weekly_bin370.fits scfile=/scratch/kocevski/896362/ft2_4FGL_J0303.6+4716_weekly_bin370.fits outfile=/scratch/kocevski/896362/cmap_462758401_463363201_4FGL_J0303.6+4716_weekly_bin370.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 3.22
user 0.40
sys 0.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/896362/ft1_filtered_4FGL_J0303.6+4716_weekly_bin370.fits scfile=/scratch/kocevski/896362/ft2_4FGL_J0303.6+4716_weekly_bin370.fits outfile=/scratch/kocevski/896362/cmap_HighResolution_462758401_463363201_4FGL_J0303.6+4716_weekly_bin370.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.85
user 0.40
sys 0.35

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .93933       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8751       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10927E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.918       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7102       1.0000         .10000E-03   10000.    
     9 'norm      '    7.1969       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53692E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.7574       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.921       1.0000         .10000E-03   10000.    
    15 'norm      '    10.627       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .89329       1.0000         .10000E-03   10000.    
    17 'norm      '    22.035       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .99890       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98801       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=   47097.25     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     1692 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.388        .95593E-07** at limit **
   2  norm          .93931        .21117        .24294E-08    .15972E-03
   3  Prefactor     .10000E-03    139.20        .30187E-05** at limit **
   4  Prefactor     .10000E-03    1.2686        .71735E-07** at limit **
   5  norm          2.8746        2.5167        .14364E-06   -.31279E-03
   6  Prefactor     .10000E-03    46.712       -.30312E-06** at limit **
   7  norm          13.914        11.595        .40083E-07    .25647E-04
   8  Prefactor     4.7097        2.2093        .13368E-06   -.66502E-03
   9  norm          7.1968        2.4173        .54396E-06   -.21936E-02
  10  Prefactor     .10000E-03    2.1901       -.10483E-07** at limit **
  11  Prefactor     .10000E-03    34.091        .37394E-06** at limit **
  12  norm          4.7579        .53619       -.18083E-08   -.13664E-03
  13  Prefactor     .10000E-03    10.239        .31696E-07** at limit **
  14  Prefactor     38.942        19.465       -.91652E-06   -.15553E-03
  15  norm          10.690        27.325        .46353E-05    .23382E-03
  16  Prefactor     .88674        1.4067       -.13073E-06    .98799E-04
  17  norm          22.035        6.5992        .60919E-07    .80221E-04
  18  Normalizat    .99899        .15153       -.23910E-06   -.85632E-06
  19  Prefactor     .98803        .24845E-01   -.55061E-07    .38595E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.939305
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.87456
  Prefactor  = 0.0001
  norm       = 13.9143
  Prefactor  = 4.70967
  norm       = 7.19685
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.75785
  Prefactor  = 0.0001
  Prefactor  = 38.9419
  norm       = 10.6898
  Prefactor  = 0.886739
  norm       = 22.0351
  Normalizat = 0.998987
  Prefactor  = 0.988032
 **********
 **   18 **HESSE 
 **********

 FCN=   47097.25     FROM HESSE     STATUS=OK           282 CALLS     1974 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .93931        .21215        .45577E-04   -1.5514    
   3  Prefactor     .10000E-03    140.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.2934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8746        2.5181        .23971E-03   -1.5369    
   6  Prefactor     .10000E-03    48.629        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.914        11.546        .10736E-03   -1.4962    
   8  Prefactor     4.7097        2.2095        .18541E-03   -1.5274    
   9  norm          7.1968        2.6228        .74760E-03   -1.5171    
  10  Prefactor     .10000E-03    2.2765        .93248E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    34.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.7579        .53866        .48512E-04   -1.5272    
  13  Prefactor     .10000E-03    10.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     38.942        19.531        .64247E-04   -1.4459    
  15  norm          10.690        29.927        .12290E-03   -1.5054    
  16  Prefactor     .88674        2.6391        .28452E-02   -1.5520    
  17  norm          22.035        6.6160        .85329E-04   -1.4769    
  18  Normalizat    .99899        .15097        .73926E-03   -.93064    
  19  Prefactor     .98803        .25358E-01    .12621E-03   -.93130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1254e-09
Minuit parameter uncertainties:
  1  1.11476e-05
  2  0.212152
  3  0.00117291
  4  2.51807e-06
  5  2.51823
  6  5.79174e-05
  7  11.5474
  8  2.20951
  9  2.62288
  10  7.41725e-05
  11  7.88297e-05
  12  0.538657
  13  3.89912e-06
  14  19.5339
  15  29.9689
  16  2.63943
  17  6.61626
  18  0.151033
  19  0.0253579
Done.

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

Extracting fit parameters...

4FGL J0303.6+4716
   Spectrum: LogParabola
312         norm:  7.197e+00  2.623e+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.880e-01  2.536e-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:  9.990e-01  1.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.35
Ra Dec: 45.910 47.276
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 6.25e-08 +/- 2.28e-08
Energy Flux (Fixed Index): 3.17e-05 +/- 1.16e-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) = 47097.1307352
delta logL = 0.114726654894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 47097.1269159
delta logL = 0.118546019941

Fit tolerance = 1e-08

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

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

 FCN=   47097.13     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      217 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4289        43.556        .36786E-02    .83350E-03
   2  alpha         1.9481        3.4654        .42496        .66066E-04
   3  Normalizat    1.0062        .11892        .16565        .19668E-03
   4  Prefactor     .98776        .14049E-01    .28562E-01   -.79489E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.42889
  alpha      = 1.94809
  Normalizat = 1.00621
  Prefactor  = 0.987756
 **********
 **   18 **HESSE 
 **********

 FCN=   47097.13     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4289        2.7802        .14714E-03   -1.5163    
   2  alpha         1.9481        .30642        .19830E-01   -.22260    
   3  Normalizat    1.0062        .14195        .73700E-03   -.92823    
   4  Prefactor     .98776        .24234E-01    .12623E-03   -.93139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38221e-11
Minuit parameter uncertainties:
  1  2.78029
  2  0.307233
  3  0.142004
  4  0.0242338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/896362': 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) = 47097.1269157
delta logL = 0.118546142556

Extracting fit parameters...

4FGL J0303.6+4716
   Spectrum: LogParabola
312         norm:  7.429e+00  2.780e+00  1.000e-04  1.000e+04 ( 1.000e-12)
313        alpha:  1.948e+00  3.072e-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.878e-01  2.423e-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.006e+00  1.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.56
Ra Dec: 45.910 47.276
Photon Index (Free Index): 1.95 +/- 0.31
Photon Flux (Free Index): 5.37e-08 +/- 2.65e-08
Energy Flux (Free Index): 3.56e-05 +/- 1.64e-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/896362/cmap_HighResolution_462758401_463363201_4FGL_J0303.6+4716_weekly_bin370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.25e-08', energy_flux2='3.56e-05', photon_flux_error='2.28e-08', dlogl='1.19e-01', energy_flux='3.17e-05', photon_flux2='5.37e-08', job_status='DONE', time_completed='2021-07-06 08:59:08.310231', photon_index_error2='0.31', photon_index2='1.95', ts='17.35', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='1.00', time_epoch_completed='1625587148.31', return_code='0', job_id='896362', GAL2='0.99', EG2='1.01', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='2.65e-08', ts2='17.56', photon_index='2.10' WHERE bin_id='370' AND source_name='4FGL J0303.6+4716' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul  6 08:59:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 896362: <4FGL_J0303.6+4716_weekly_bin370> in cluster <slac> Done

Job <4FGL_J0303.6+4716_weekly_bin370> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Jul  5 15:07:24 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul  5 16:41:56 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:41:56 2021
Terminated at Tue Jul  6 08:59:13 2021
Results reported at Tue Jul  6 08:59:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0303.6+4716_weekly_bin370 45.9098 47.2759 462758401 463363201 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 :                                   2794.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             65.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   58637 sec.
    Turnaround time :                            64309 sec.

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

