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


Performing analysis on: 4FGL_J0303.6+4716_weekly_bin101
RA = 45.9098, Dec = 47.2759
tmin = 300067201, tmax = 300672001
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='888871', job_status='RUN', time_executed='2021-07-06 08:11:49.730911', time_epoch_executed='1625584309.73' WHERE source_name='4FGL J0303.6+4716' and cadence='weekly' and bin_id='101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888871

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888871/ft1_4FGL_J0303.6+4716_weekly_bin101.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888871/ft2_4FGL_J0303.6+4716_weekly_bin101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888871/ft1_4FGL_J0303.6+4716_weekly_bin101.fits outfile=/scratch/kocevski/888871/ft1_filteredMKT_4FGL_J0303.6+4716_weekly_bin101.fits ra=45.9098 dec=47.2759 rad=12.0 tmin=300067201.0 tmax=300672001.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 8.25
user 7.05
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/888871/ft2_4FGL_J0303.6+4716_weekly_bin101.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/888871/ft1_filteredMKT_4FGL_J0303.6+4716_weekly_bin101.fits evtable="EVENTS" outfile="/scratch/kocevski/888871/ft1_filtered_4FGL_J0303.6+4716_weekly_bin101.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.68
user 0.38
sys 0.27

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888871/ft1_filtered_4FGL_J0303.6+4716_weekly_bin101.fits" evtable="EVENTS" scfile=/scratch/kocevski/888871/ft2_4FGL_J0303.6+4716_weekly_bin101.fits sctable="SC_DATA" outfile=/scratch/kocevski/888871/ltcube_300067201_300672001_4FGL_J0303.6+4716_weekly_bin101.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/888871/ft2_4FGL_J0303.6+4716_weekly_bin101.fits
.....................!
real 27.78
user 26.52
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888871/ft1_filtered_4FGL_J0303.6+4716_weekly_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/888871/ft2_4FGL_J0303.6+4716_weekly_bin101.fits sctable="SC_DATA" expcube=/scratch/kocevski/888871/ltcube_300067201_300672001_4FGL_J0303.6+4716_weekly_bin101.fits outfile=/scratch/kocevski/888871/expmap_300067201_300672001_4FGL_J0303.6+4716_weekly_bin101.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/888871/ltcube_300067201_300672001_4FGL_J0303.6+4716_weekly_bin101.fits
.....................!
real 194.50
user 185.58
sys 5.31

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/888871/ft1_filtered_4FGL_J0303.6+4716_weekly_bin101.fits scfile=/scratch/kocevski/888871/ft2_4FGL_J0303.6+4716_weekly_bin101.fits outfile=/scratch/kocevski/888871/cmap_300067201_300672001_4FGL_J0303.6+4716_weekly_bin101.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.56
user 0.42
sys 0.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/888871/ft1_filtered_4FGL_J0303.6+4716_weekly_bin101.fits scfile=/scratch/kocevski/888871/ft2_4FGL_J0303.6+4716_weekly_bin101.fits outfile=/scratch/kocevski/888871/cmap_HighResolution_300067201_300672001_4FGL_J0303.6+4716_weekly_bin101.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.78
user 0.42
sys 0.30

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.2968       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4301       1.0000         .10000E-03   10000.    
     5 'norm      '    .16663E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1144       1.0000         .10000E-03   10000.    
     9 'norm      '    10.399       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.920       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9749       1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.821       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.834       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .71232       1.0000         .10000E-03   10000.    
    17 'norm      '    7.3503       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3168       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94999       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=   54755.05     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     1915 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.653        .42478E-07** at limit **
   2  norm          2.2969        .29651        .53860E-08    .21616E-04
   3  Prefactor     .10000E-03    19.028       -.64315E-06** at limit **
   4  Prefactor     2.4310        3.0443        .38793E-06    .47170E-04
   5  norm          .10000E-03    1.0967       -.10360E-06** at limit **
   6  Prefactor     .10000E-03    10.901        .51946E-06** at limit **
   7  norm          .10000E-03    3.0816        .24676E-07** at limit **
   8  Prefactor     3.1139        1.6109        .20271E-06    .25212E-04
   9  norm          10.399        2.9880        .13587E-07   -.33641E-04
  10  Prefactor     .10000E-03    3.7309        .17250E-07** at limit **
  11  Prefactor     15.919        31.305        .97441E-07    .32339E-06
  12  norm          2.9743        .46550        .59207E-08   -.63478E-04
  13  Prefactor     56.820        41.767        .46766E-06    .75420E-05
  14  Prefactor     24.817        17.112        .20503E-05    .20228E-03
  15  norm          .10000E-03    8.7437       -.34313E-06** at limit **
  16  Prefactor     .71524        1.4434        .67470E-06   -.60444E-03
  17  norm          7.3511        5.0321        .12871E-05    .64639E-05
  18  Normalizat    1.3168        .14545       -.46560E-06   -.19548E-04
  19  Prefactor     .94998        .22308E-01   -.14358E-06    .38757E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.29688
  Prefactor  = 0.0001
  Prefactor  = 2.43099
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.11391
  norm       = 10.3991
  Prefactor  = 0.0001
  Prefactor  = 15.9191
  norm       = 2.97428
  Prefactor  = 56.8197
  Prefactor  = 24.817
  norm       = 0.0001
  Prefactor  = 0.715237
  norm       = 7.35113
  Normalizat = 1.31681
  Prefactor  = 0.949979
 **********
 **   18 **HESSE 
 **********

 FCN=   54755.05     FROM HESSE     STATUS=OK           272 CALLS     2187 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2969        .29659        .43806E-04   -1.5405    
   3  Prefactor     .10000E-03    19.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4310        2.9292        .26251E-03   -1.5396    
   5  norm          .10000E-03    5.1789        .45073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.1102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1139        1.6062        .20286E-03   -1.5355    
   9  norm          10.399        2.9870        .12425E-03   -1.5063    
  10  Prefactor     .10000E-03    3.7977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.919        31.816        .10038E-03   -1.4910    
  12  norm          2.9743        .47300        .56104E-04   -1.5363    
  13  Prefactor     56.820        41.767        .53218E-04   -1.4199    
  14  Prefactor     24.817        17.195        .80383E-04   -1.4711    
  15  norm          .10000E-03    8.7495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .71524        1.4401        .38800E-03   -1.5539    
  17  norm          7.3511        4.9993        .73969E-03   -1.5166    
  18  Normalizat    1.3168        .14822        .68518E-03   -.83066    
  19  Prefactor     .94998        .23002E-01    .12622E-03   -.94416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83411e-10
Minuit parameter uncertainties:
  1  2.03408e-06
  2  0.296585
  3  2.03033e-05
  4  2.92934
  5  3.40259e-07
  6  1.33262e-05
  7  1.26359e-06
  8  1.60622
  9  2.98701
  10  2.18817e-06
  11  31.8495
  12  0.472997
  13  41.7889
  14  17.1987
  15  1.18268e-05
  16  1.44016
  17  4.99961
  18  0.148267
  19  0.0230024
Done.

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

Extracting fit parameters...

4FGL J0303.6+4716
   Spectrum: LogParabola
312         norm:  1.040e+01  2.987e+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.500e-01  2.300e-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.317e+00  1.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.17
Ra Dec: 45.910 47.276
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 9.03e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 4.59e-05 +/- 1.32e-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) = 54755.0469706
delta logL = 0.00334589053818

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 54755.0466405
delta logL = 0.00367597657896

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.463       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0743       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94989       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=   54755.05     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      213 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.463        35.721        .30967E-02    .20396E-02
   2  alpha         2.0743        1.9054        .41932        .16805E-03
   3  Normalizat    1.3187        .10505        .15404        .15894E-03
   4  Prefactor     .94990        .10963E-01    .28561E-01   -.84449E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4627
  alpha      = 2.07433
  Normalizat = 1.3187
  Prefactor  = 0.949895
 **********
 **   18 **HESSE 
 **********

 FCN=   54755.05     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.463        3.1285        .12387E-03   -1.5061    
   2  alpha         2.0743        .27274        .16718E-01   -.17110    
   3  Normalizat    1.3187        .13984        .68478E-03   -.83010    
   4  Prefactor     .94990        .22177E-01    .12622E-03   -.94419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59982e-10
Minuit parameter uncertainties:
  1  3.12851
  2  0.273295
  3  0.139882
  4  0.0221771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888871': 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) = 54755.0466405
delta logL = 0.00367598193407

Extracting fit parameters...

4FGL J0303.6+4716
   Spectrum: LogParabola
312         norm:  1.046e+01  3.129e+00  1.000e-04  1.000e+04 ( 1.000e-12)
313        alpha:  2.074e+00  2.733e-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.499e-01  2.218e-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.319e+00  1.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.16
Ra Dec: 45.910 47.276
Photon Index (Free Index): 2.07 +/- 0.27
Photon Flux (Free Index): 8.82e-08 +/- 3.47e-08
Energy Flux (Free Index): 4.65e-05 +/- 1.61e-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/888871/cmap_HighResolution_300067201_300672001_4FGL_J0303.6+4716_weekly_bin101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.03e-08', energy_flux2='4.65e-05', photon_flux_error='2.59e-08', dlogl='3.68e-03', energy_flux='4.59e-05', photon_flux2='8.82e-08', job_status='DONE', time_completed='2021-07-06 09:07:38.420866', photon_index_error2='0.27', photon_index2='2.07', ts='26.17', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='1.32', time_epoch_completed='1625587658.42', return_code='0', job_id='888871', GAL2='0.95', EG2='1.32', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='3.47e-08', ts2='26.16', photon_index='2.10' WHERE bin_id='101' AND source_name='4FGL J0303.6+4716' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul  6 09:07:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 888871: <4FGL_J0303.6+4716_weekly_bin101> in cluster <slac> Done

Job <4FGL_J0303.6+4716_weekly_bin101> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Jul  5 14:37:00 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul  5 16:36:47 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:36:47 2021
Terminated at Tue Jul  6 09:07:41 2021
Results reported at Tue Jul  6 09:07:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0303.6+4716_weekly_bin101 45.9098 47.2759 300067201 300672001 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 :                                   3309.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             69.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   59453 sec.
    Turnaround time :                            66641 sec.

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

