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


Performing analysis on: 4FGL_J0303.6+4716_weekly_bin103
RA = 45.9098, Dec = 47.2759
tmin = 301276801, tmax = 301881601
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='888873', job_status='RUN', time_executed='2021-07-05 16:43:59.970701', time_epoch_executed='1625528639.97' WHERE source_name='4FGL J0303.6+4716' and cadence='weekly' and bin_id='103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888873

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888873/ft1_4FGL_J0303.6+4716_weekly_bin103.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888873/ft2_4FGL_J0303.6+4716_weekly_bin103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888873/ft1_4FGL_J0303.6+4716_weekly_bin103.fits outfile=/scratch/kocevski/888873/ft1_filteredMKT_4FGL_J0303.6+4716_weekly_bin103.fits ra=45.9098 dec=47.2759 rad=12.0 tmin=301276801.0 tmax=301881601.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 12.38
user 9.31
sys 0.38

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888873/ft1_filtered_4FGL_J0303.6+4716_weekly_bin103.fits" evtable="EVENTS" scfile=/scratch/kocevski/888873/ft2_4FGL_J0303.6+4716_weekly_bin103.fits sctable="SC_DATA" outfile=/scratch/kocevski/888873/ltcube_301276801_301881601_4FGL_J0303.6+4716_weekly_bin103.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/888873/ft2_4FGL_J0303.6+4716_weekly_bin103.fits
.....................!
real 28.08
user 25.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888873/ft1_filtered_4FGL_J0303.6+4716_weekly_bin103.fits evtable="EVENTS" scfile=/scratch/kocevski/888873/ft2_4FGL_J0303.6+4716_weekly_bin103.fits sctable="SC_DATA" expcube=/scratch/kocevski/888873/ltcube_301276801_301881601_4FGL_J0303.6+4716_weekly_bin103.fits outfile=/scratch/kocevski/888873/expmap_301276801_301881601_4FGL_J0303.6+4716_weekly_bin103.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/888873/ltcube_301276801_301881601_4FGL_J0303.6+4716_weekly_bin103.fits
.....................!
real 204.23
user 187.59
sys 5.51

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/888873/ft1_filtered_4FGL_J0303.6+4716_weekly_bin103.fits scfile=/scratch/kocevski/888873/ft2_4FGL_J0303.6+4716_weekly_bin103.fits outfile=/scratch/kocevski/888873/cmap_301276801_301881601_4FGL_J0303.6+4716_weekly_bin103.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.76
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/888873/ft1_filtered_4FGL_J0303.6+4716_weekly_bin103.fits scfile=/scratch/kocevski/888873/ft2_4FGL_J0303.6+4716_weekly_bin103.fits outfile=/scratch/kocevski/888873/cmap_HighResolution_301276801_301881601_4FGL_J0303.6+4716_weekly_bin103.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.75
user 0.42
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.030       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5451       1.0000         .10000E-03   10000.    
     3 'Prefactor '    75.019       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9517       1.0000         .10000E-03   10000.    
     5 'norm      '    .54386       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.893       1.0000         .10000E-03   10000.    
     7 'norm      '    2.1837       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .92566       1.0000         .10000E-03   10000.    
     9 'norm      '    7.5806       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0664       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.974       1.0000         .10000E-03   10000.    
    12 'norm      '    5.1229       1.0000         .10000E-03   10000.    
    13 'Prefactor '    79.671       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.607       1.0000         .10000E-03   10000.    
    15 'norm      '    26.218       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    15.391       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .95063       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98413       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=   50854.40     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     2026 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.031        31.254        .10453E-05   -.51290E-04
   2  norm          2.5452        .28832       -.23396E-07    .68476E-03
   3  Prefactor     75.018        65.065       -.91174E-06    .31768E-04
   4  Prefactor     1.9524        2.3854       -.55021E-06    .54835E-04
   5  norm          .54347        .16803        .76668E-07   -.20258E-02
   6  Prefactor     12.893        11.848       -.55489E-07    .93088E-05
   7  norm          2.1857        8.5178       -.89596E-05    .21983E-03
   8  Prefactor     .92487        1.1937        .27182E-06    .78289E-03
   9  norm          7.5809        2.6493        .88854E-07   -.23435E-03
  10  Prefactor     1.0690        4.5427       -.33796E-05    .62698E-04
  11  Prefactor     21.974        32.282       -.76881E-06    .89942E-04
  12  norm          5.1227        .56372        .34516E-07    .10018E-02
  13  Prefactor     79.670        45.859       -.12258E-05    .41540E-05
  14  Prefactor     27.599        18.499       -.76213E-05   -.36766E-03
  15  norm          26.199        37.381       -.30829E-04    .11495E-03
  16  Prefactor     .10001E-03    .64281        .22469E-05** at limit **
  17  norm          15.391        5.9910       -.61932E-06   -.44325E-03
  18  Normalizat    .95057        .14894        .18594E-05   -.30475E-03
  19  Prefactor     .98413        .24162E-01    .48173E-06   -.44707E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.0306
  norm       = 2.54516
  Prefactor  = 75.0185
  Prefactor  = 1.95243
  norm       = 0.543466
  Prefactor  = 12.8928
  norm       = 2.18565
  Prefactor  = 0.924868
  norm       = 7.58091
  Prefactor  = 1.06899
  Prefactor  = 21.9737
  norm       = 5.12272
  Prefactor  = 79.6701
  Prefactor  = 27.5985
  norm       = 26.1991
  Prefactor  = 0.000100012
  norm       = 15.3914
  Normalizat = 0.950569
  Prefactor  = 0.984126
 **********
 **   18 **HESSE 
 **********

 FCN=   50854.40     FROM HESSE     STATUS=OK           272 CALLS     2298 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.031        31.252        .64992E-04   -1.4474    
   2  norm          2.5452        .28873        .39070E-04   -1.5389    
   3  Prefactor     75.018        65.039        .46357E-04   -1.3974    
   4  Prefactor     1.9524        2.4097        .29704E-03   -1.5429    
   5  norm          .54347        2.0019        .22897E-02   -1.5561    
   6  Prefactor     12.893        11.847        .11156E-03   -1.4990    
   7  norm          2.1857        8.3495        .27856E-03   -1.5412    
   8  Prefactor     .92487        1.1411        .26091E-03   -1.5516    
   9  norm          7.5809        2.6462        .14565E-03   -1.5157    
  10  Prefactor     1.0690        4.3099        .47203E-03   -1.5501    
  11  Prefactor     21.974        32.360        .85447E-04   -1.4770    
  12  norm          5.1227        .56324        .49566E-04   -1.5255    
  13  Prefactor     79.670        45.829        .44994E-04   -1.3920    
  14  Prefactor     27.599        18.496        .76247E-04   -1.4657    
  15  norm          26.199        37.485        .78237E-04   -1.4684    
  16  Prefactor     .10001E-03    2.1972        .33926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.391        6.0008        .10209E-03   -1.4923    
  18  Normalizat    .95057        .14708        .74293E-03   -.94705    
  19  Prefactor     .98413        .24457E-01    .12632E-03   -.93261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85033e-09
Minuit parameter uncertainties:
  1  31.2653
  2  0.288729
  3  65.1005
  4  2.40979
  5  2.00212
  6  11.8489
  7  8.35394
  8  1.1411
  9  2.6462
  10  4.29321
  11  32.386
  12  0.563245
  13  45.8496
  14  18.5
  15  37.5185
  16  0.000320701
  17  6.001
  18  0.14714
  19  0.024457
Done.

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

Extracting fit parameters...

4FGL J0303.6+4716
   Spectrum: LogParabola
312         norm:  7.581e+00  2.646e+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.841e-01  2.446e-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.506e-01  1.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.63
Ra Dec: 45.910 47.276
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 6.59e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 3.34e-05 +/- 1.17e-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) = 50854.378477
delta logL = 0.0202417623223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 50854.3755775
delta logL = 0.0231412160429

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4144       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1844       1.0000          .0000       5.0000    
     3 'Normalizat'    .94532       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98431       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=   50854.38     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      256 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4146        2.8685        .14729E-03   -.45323E-03
   2  alpha         2.1843        .42757        .19783E-01   -.73361E-04
   3  Normalizat    .94533        .13711        .74475E-03    .22641E-03
   4  Prefactor     .98431        .23432E-01    .12631E-03    .87056E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.41461
  alpha      = 2.18428
  Normalizat = 0.94533
  Prefactor  = 0.984307
 **********
 **   18 **HESSE 
 **********

 FCN=   50854.38     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4146        2.7567        .58917E-05   -1.5163    
   2  alpha         2.1843        .41073        .79131E-03   -.12663    
   3  Normalizat    .94533        .13693        .29790E-04   -.94885    
   4  Prefactor     .98431        .23428E-01    .50523E-05   -.93254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37886e-10
Minuit parameter uncertainties:
  1  2.75673
  2  0.412631
  3  0.136983
  4  0.0234286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888873': 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) = 50854.3755775
delta logL = 0.0231412628345

Extracting fit parameters...

4FGL J0303.6+4716
   Spectrum: LogParabola
312         norm:  7.415e+00  2.757e+00  1.000e-04  1.000e+04 ( 1.000e-12)
313        alpha:  2.184e+00  4.126e-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.843e-01  2.343e-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.453e-01  1.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.69
Ra Dec: 45.910 47.276
Photon Index (Free Index): 2.18 +/- 0.41
Photon Flux (Free Index): 7.22e-08 +/- 3.88e-08
Energy Flux (Free Index): 3.21e-05 +/- 1.26e-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/888873/cmap_HighResolution_301276801_301881601_4FGL_J0303.6+4716_weekly_bin103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.59e-08', energy_flux2='3.21e-05', photon_flux_error='2.30e-08', dlogl='2.31e-02', energy_flux='3.34e-05', photon_flux2='7.22e-08', job_status='DONE', time_completed='2021-07-05 17:38:04.976417', photon_index_error2='0.41', photon_index2='2.18', ts='18.63', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='0.95', time_epoch_completed='1625531884.98', return_code='0', job_id='888873', GAL2='0.98', EG2='0.95', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='3.88e-08', ts2='18.69', photon_index='2.10' WHERE bin_id='103' AND source_name='4FGL J0303.6+4716' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul  5 17:38:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0200>
Subject: Job 888873: <4FGL_J0303.6+4716_weekly_bin103> in cluster <slac> Done

Job <4FGL_J0303.6+4716_weekly_bin103> 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) <bullet0200>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul  5 16:36:48 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:48 2021
Terminated at Mon Jul  5 17:38:11 2021
Results reported at Mon Jul  5 17:38:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0303.6+4716_weekly_bin103 45.9098 47.2759 301276801 301881601 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 :                                   3154.76 sec.
    Max Memory :                                 635 MB
    Average Memory :                             394.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2942 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   3682 sec.
    Turnaround time :                            10871 sec.

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

