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 14 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 = 17117
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0304.5+3349_weekly_bin217
RA = 46.1379, Dec = 33.8261
tmin = 370224001, tmax = 370828801
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='925801', job_status='RUN', time_executed='2021-07-05 19:11:00.670691', time_epoch_executed='1625537460.67' WHERE source_name='4FGL J0304.5+3349' and cadence='weekly' and bin_id='217'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925801

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925801/ft1_4FGL_J0304.5+3349_weekly_bin217.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925801/ft2_4FGL_J0304.5+3349_weekly_bin217.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925801/ft1_4FGL_J0304.5+3349_weekly_bin217.fits outfile=/scratch/kocevski/925801/ft1_filteredMKT_4FGL_J0304.5+3349_weekly_bin217.fits ra=46.1379 dec=33.8261 rad=12.0 tmin=370224001.0 tmax=370828801.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 38.30
user 36.76
sys 1.08

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/925801/ft2_4FGL_J0304.5+3349_weekly_bin217.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/925801/ft2_4FGL_J0304.5+3349_weekly_bin217.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/925801/ft1_filteredMKT_4FGL_J0304.5+3349_weekly_bin217.fits evtable="EVENTS" outfile="/scratch/kocevski/925801/ft1_filtered_4FGL_J0304.5+3349_weekly_bin217.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.22
user 0.38
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925801/ft1_filtered_4FGL_J0304.5+3349_weekly_bin217.fits" evtable="EVENTS" scfile=/scratch/kocevski/925801/ft2_4FGL_J0304.5+3349_weekly_bin217.fits sctable="SC_DATA" outfile=/scratch/kocevski/925801/ltcube_370224001_370828801_4FGL_J0304.5+3349_weekly_bin217.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/925801/ft2_4FGL_J0304.5+3349_weekly_bin217.fits
.....................!
real 24.06
user 22.96
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925801/ft1_filtered_4FGL_J0304.5+3349_weekly_bin217.fits evtable="EVENTS" scfile=/scratch/kocevski/925801/ft2_4FGL_J0304.5+3349_weekly_bin217.fits sctable="SC_DATA" expcube=/scratch/kocevski/925801/ltcube_370224001_370828801_4FGL_J0304.5+3349_weekly_bin217.fits outfile=/scratch/kocevski/925801/expmap_370224001_370828801_4FGL_J0304.5+3349_weekly_bin217.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/925801/ltcube_370224001_370828801_4FGL_J0304.5+3349_weekly_bin217.fits
.....................!
real 198.89
user 186.76
sys 6.89

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
Added 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J0304.5+3349 @ 46.1379 33.8261

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/925801/ft1_filtered_4FGL_J0304.5+3349_weekly_bin217.fits scfile=/scratch/kocevski/925801/ft2_4FGL_J0304.5+3349_weekly_bin217.fits outfile=/scratch/kocevski/925801/cmap_370224001_370828801_4FGL_J0304.5+3349_weekly_bin217.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=46.1379 yref=33.8261 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.81
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/925801/ft1_filtered_4FGL_J0304.5+3349_weekly_bin217.fits scfile=/scratch/kocevski/925801/ft2_4FGL_J0304.5+3349_weekly_bin217.fits outfile=/scratch/kocevski/925801/cmap_HighResolution_370224001_370828801_4FGL_J0304.5+3349_weekly_bin217.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=46.1379 yref=33.8261 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.10
user 0.44
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/925801/ft1_filtered_4FGL_J0304.5+3349_weekly_bin217.fits evtable="EVENTS" scfile=/scratch/kocevski/925801/ft2_4FGL_J0304.5+3349_weekly_bin217.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/925801/Model_4FGL_J0304.5+3349_weekly_bin217.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 GAL_V02
Working on...
/scratch/kocevski/925801/ft1_filtered_4FGL_J0304.5+3349_weekly_bin217.fits.....................!
real 1024.00
user 1007.68
sys 6.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/925801/ft1_filtered_4FGL_J0304.5+3349_weekly_bin217.fits', '/scratch/kocevski/925801/ft2_4FGL_J0304.5+3349_weekly_bin217.fits', expMap='/scratch/kocevski/925801/expmap_370224001_370828801_4FGL_J0304.5+3349_weekly_bin217.fits', expCube='/scratch/kocevski/925801/ltcube_370224001_370828801_4FGL_J0304.5+3349_weekly_bin217.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/925801/Model_4FGL_J0304.5+3349_weekly_bin217.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0304.5+3349'

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  3.979e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.863e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  3.847e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/925801/ft1_filtered_4FGL_J0304.5+3349_weekly_bin217.fits
Spacecraft file(s): /scratch/kocevski/925801/ft2_4FGL_J0304.5+3349_weekly_bin217.fits
Exposure map: /scratch/kocevski/925801/expmap_370224001_370828801_4FGL_J0304.5+3349_weekly_bin217.fits
Exposure cube: /scratch/kocevski/925801/ltcube_370224001_370828801_4FGL_J0304.5+3349_weekly_bin217.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/925801/Model_4FGL_J0304.5+3349_weekly_bin217.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) = 74671.6900351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9664       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    24.820       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    19.708       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1659       1.0000         .10000E-03   10000.    
     7 'norm      '    3.5363       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11412E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18983E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.144       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5349       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8226       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0116       1.0000         .10000E-03   10000.    
    16 'norm      '    2.9949       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0449       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98893       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   74671.68     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2001 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9658        2.0963        .13435E-07   -.13345E-02
   2  Prefactor     .10000E-03    .66456        .22685E-08** at limit **
   3  norm          24.820        .76807       -.15715E-08    .41463E-03
   4  Prefactor     .10000E-03    .46000       -.14074E-07** at limit **
   5  norm          19.709        3.2699        .89646E-08    .78043E-04
   6  Prefactor     1.1668        7.6341       -.98837E-08   -.25780E-03
   7  norm          3.5363        .77446       -.10026E-09   -.56324E-04
   8  Prefactor     .10000E-03    .73454        .24390E-07** at limit **
   9  Prefactor     .10000E-03    5.1546        .27353E-07** at limit **
  10  norm          .10000E-03    12.565       -.55760E-06** at limit **
  11  Prefactor     .10000E-03    .95910       -.74759E-06** at limit **
  12  Prefactor     27.153        26.077        .10249E-04    .20514E-03
  13  norm          3.5348        .34651       -.13535E-06    .14557E-01
  14  Prefactor     2.8225        .69586        .26155E-08    .29208E-03
  15  norm          2.0118        2.6796       -.40028E-07   -.20910E-04
  16  norm          2.9949        .91707        .36072E-08   -.37183E-04
  17  Prefactor     .10000E-03    21.875        .49048E-06** at limit **
  18  Normalizat    1.0450        .10089        .67408E-07    .37439E-03
  19  Prefactor     .98893        .31050E-01   -.34738E-07    .91004E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.96584
  Prefactor  = 0.0001
  norm       = 24.82
  Prefactor  = 0.0001
  norm       = 19.7086
  Prefactor  = 1.16681
  norm       = 3.53629
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 27.1526
  norm       = 3.53484
  Prefactor  = 2.82253
  norm       = 2.01176
  norm       = 2.99492
  Prefactor  = 0.0001
  Normalizat = 1.04496
  Prefactor  = 0.988926
 **********
 **   18 **HESSE 
 **********

 FCN=   74671.68     FROM HESSE     STATUS=OK           282 CALLS     2283 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9658        2.6813        .10126E-02   -1.5310    
   2  Prefactor     .10000E-03    2.2691        .42817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          24.820        .81691        .36696E-04   -1.4711    
   4  Prefactor     .10000E-03    1.2228        .34256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          19.709        3.1586        .45110E-03   -1.4820    
   6  Prefactor     1.1668        18.121        .21291E-02   -1.5492    
   7  norm          3.5363        .77393        .10740E-03   -1.5332    
   8  Prefactor     .10000E-03    .95037        .74267E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.1604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    13.033        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.9601        .48546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.153        26.102        .76893E-04   -1.4665    
  13  norm          3.5348        .33447        .41388E-04   -1.5332    
  14  Prefactor     2.8225        .69078        .10454E-03   -1.5372    
  15  norm          2.0118        2.6678        .29188E-03   -1.5424    
  16  norm          2.9949        .91436        .13401E-03   -1.5362    
  17  Prefactor     .10000E-03    21.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0450        .10881        .52312E-03   -.91539    
  19  Prefactor     .98893        .34303E-01    .17453E-03   -.93100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49534e-09
Minuit parameter uncertainties:
  1  2.6814
  2  6.7893e-07
  3  0.816914
  4  2.03036e-06
  5  3.1586
  6  9.19926
  7  0.773937
  8  3.23342e-05
  9  1.21187e-07
  10  8.92199e-06
  11  0.000172976
  12  26.1133
  13  0.334467
  14  0.690777
  15  2.66794
  16  0.914361
  17  3.44076e-06
  18  0.108837
  19  0.0343035
Done.

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

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.000e-04  8.922e-06  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.863e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  3.847e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  9.889e-01  3.430e-02  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  1.045e+00  1.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 46.138 33.826
Photon Flux Upper Limit: 2.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.97e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/925801/likelihoodResults_370224001_370828801_4FGL_J0304.5+3349_weekly_bin217.txt

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): 102
logL (Free Index) = 74671.6835358
delta logL = -0.0003663325042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 74671.6831695
delta logL = -6.40284270048e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8423       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98893       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   74671.61     FROM MIGRAD    STATUS=FAILED       282 CALLS      439 TOTAL
                     EDM=   .33E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4565        726.76        .36285E-02    .51617E-02
   2  alpha         .64342        4.2316        .16660        .60630E-03
   3  Normalizat    1.0455        .72237E-01    .52312E-03   -.15786E-03
   4  Prefactor     .98855        .24485E-01    .17453E-03   -.55760E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   74671.61     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      525 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4565        726.76        .24620E-03    .51617E-02
   2  alpha         .64342        4.2316        .61893E-02    .60630E-03
   3  Normalizat    1.0455        .72237E-01    .13398E-03   -.15786E-03
   4  Prefactor     .98855        .24485E-01    .20979E-04   -.55760E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   74671.61     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      563 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4565        6.6512        .72569E-03   -.13535E-04
   2  alpha         .64342        4.0052        .33320E-01    .23149E-04
   3  Normalizat    1.0455        .10124        .20925E-04   -.15647E-03
   4  Prefactor     .98855        .33266E-01    .69811E-05   -.55238E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.45653
  alpha      = 0.643424
  Normalizat = 1.0455
  Prefactor  = 0.988547
 **********
 **   18 **HESSE 
 **********

 FCN=   74671.61     FROM HESSE     STATUS=OK            25 CALLS      588 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4565        5.5599        .29028E-04   -1.5467    
   2  alpha         .64342        3.8437        .66639E-02   -2.3046    
   3  Normalizat    1.0455        .10117        .41850E-05   -.91521    
   4  Prefactor     .98855        .33240E-01    .13962E-05   -.93112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51066e-11
Minuit parameter uncertainties:
  1  5.56191
  2  1.96853
  3  0.101192
  4  0.0332409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925801': 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) = 74671.6144644
delta logL = 0.0687050183478

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.457e+00  5.562e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  6.434e-01  1.969e+00  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  3.847e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
554    Prefactor:  9.885e-01  3.324e-02  0.000e+00  1.000e+01 ( 1.000e+00)
555        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
556        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
553   Normalization:  1.045e+00  1.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 46.138 33.826

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/925801/cmap_HighResolution_370224001_370828801_4FGL_J0304.5+3349_weekly_bin217.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-06', job_status='DONE', photon_flux_upper_limit='2.43e-08', time_completed='2021-07-05 20:34:59.591851', job_id='925801', GAL2='0.99', fit_tolerance='1e-08', EG2='1.05', EG='1.04', time_epoch_completed='1625542499.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.87e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='217' AND source_name='4FGL J0304.5+3349' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul  5 20:34:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 925801: <4FGL_J0304.5+3349_weekly_bin217> in cluster <slac> Done

Job <4FGL_J0304.5+3349_weekly_bin217> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Jul  5 16:54:27 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul  5 19:08:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul  5 19:08:38 2021
Terminated at Mon Jul  5 20:35:03 2021
Results reported at Mon Jul  5 20:35:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0304.5+3349_weekly_bin217 46.1379 33.8261 370224001 370828801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0304.5+3349 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   4961.00 sec.
    Max Memory :                                 1148 MB
    Average Memory :                             422.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5185 sec.
    Turnaround time :                            13236 sec.

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

