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


Performing analysis on: 4FGL_J0304.5+6821_weekly_bin130
RA = 46.1411, Dec = 68.3539
tmin = 317606401, tmax = 318211201
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='942764', job_status='RUN', time_executed='2021-07-05 20:21:47.779706', time_epoch_executed='1625541707.78' WHERE source_name='4FGL J0304.5+6821' and cadence='weekly' and bin_id='130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/942764

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/942764/ft1_4FGL_J0304.5+6821_weekly_bin130.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/942764/ft2_4FGL_J0304.5+6821_weekly_bin130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/942764/ft1_4FGL_J0304.5+6821_weekly_bin130.fits outfile=/scratch/kocevski/942764/ft1_filteredMKT_4FGL_J0304.5+6821_weekly_bin130.fits ra=46.1411 dec=68.3539 rad=12.0 tmin=317606401.0 tmax=318211201.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.86
user 6.82
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/942764/ft2_4FGL_J0304.5+6821_weekly_bin130.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/942764/ft2_4FGL_J0304.5+6821_weekly_bin130.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/942764/ft1_filteredMKT_4FGL_J0304.5+6821_weekly_bin130.fits evtable="EVENTS" outfile="/scratch/kocevski/942764/ft1_filtered_4FGL_J0304.5+6821_weekly_bin130.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 2.47
user 0.39
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/942764/ft1_filtered_4FGL_J0304.5+6821_weekly_bin130.fits" evtable="EVENTS" scfile=/scratch/kocevski/942764/ft2_4FGL_J0304.5+6821_weekly_bin130.fits sctable="SC_DATA" outfile=/scratch/kocevski/942764/ltcube_317606401_318211201_4FGL_J0304.5+6821_weekly_bin130.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/942764/ft2_4FGL_J0304.5+6821_weekly_bin130.fits
.....................!
real 27.86
user 26.25
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/942764/ft1_filtered_4FGL_J0304.5+6821_weekly_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/942764/ft2_4FGL_J0304.5+6821_weekly_bin130.fits sctable="SC_DATA" expcube=/scratch/kocevski/942764/ltcube_317606401_318211201_4FGL_J0304.5+6821_weekly_bin130.fits outfile=/scratch/kocevski/942764/expmap_317606401_318211201_4FGL_J0304.5+6821_weekly_bin130.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/942764/ltcube_317606401_318211201_4FGL_J0304.5+6821_weekly_bin130.fits
.....................!
real 199.58
user 185.98
sys 5.20

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.
Added 187 point sources and 3 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 J0304.5+6821 @ 46.1411 68.3539

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/942764/ft1_filtered_4FGL_J0304.5+6821_weekly_bin130.fits scfile=/scratch/kocevski/942764/ft2_4FGL_J0304.5+6821_weekly_bin130.fits outfile=/scratch/kocevski/942764/cmap_317606401_318211201_4FGL_J0304.5+6821_weekly_bin130.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.1411 yref=68.3539 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.41
user 0.42
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/942764/ft1_filtered_4FGL_J0304.5+6821_weekly_bin130.fits scfile=/scratch/kocevski/942764/ft2_4FGL_J0304.5+6821_weekly_bin130.fits outfile=/scratch/kocevski/942764/cmap_HighResolution_317606401_318211201_4FGL_J0304.5+6821_weekly_bin130.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.1411 yref=68.3539 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.21
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/942764/ft1_filtered_4FGL_J0304.5+6821_weekly_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/942764/ft2_4FGL_J0304.5+6821_weekly_bin130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/942764/Model_4FGL_J0304.5+6821_weekly_bin130.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 W 3
Working on...
/scratch/kocevski/942764/ft1_filtered_4FGL_J0304.5+6821_weekly_bin130.fits.....................!
real 1232.56
user 1216.26
sys 3.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/942764/ft1_filtered_4FGL_J0304.5+6821_weekly_bin130.fits', '/scratch/kocevski/942764/ft2_4FGL_J0304.5+6821_weekly_bin130.fits', expMap='/scratch/kocevski/942764/expmap_317606401_318211201_4FGL_J0304.5+6821_weekly_bin130.fits', expCube='/scratch/kocevski/942764/ltcube_317606401_318211201_4FGL_J0304.5+6821_weekly_bin130.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/942764/Model_4FGL_J0304.5+6821_weekly_bin130.xml', optimizer='MINUIT')

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

4FGL J0304.5+6821
   Spectrum: LogParabola
306         norm:  2.775e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        alpha:  2.670e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
308         beta:  2.132e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
309           Eb:  9.365e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/942764/ft1_filtered_4FGL_J0304.5+6821_weekly_bin130.fits
Spacecraft file(s): /scratch/kocevski/942764/ft2_4FGL_J0304.5+6821_weekly_bin130.fits
Exposure map: /scratch/kocevski/942764/expmap_317606401_318211201_4FGL_J0304.5+6821_weekly_bin130.fits
Exposure cube: /scratch/kocevski/942764/ltcube_317606401_318211201_4FGL_J0304.5+6821_weekly_bin130.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/942764/Model_4FGL_J0304.5+6821_weekly_bin130.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) = 86824.1814791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14935E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5337       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9109       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .41969       1.0000         .10000E-03   10000.    
     6 'norm      '    7.3847       1.0000         .10000E-03   10000.    
     7 'norm      '    3.4286       1.0000         .10000E-03   10000.    
     8 'norm      '    2.5617       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .38957E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11835E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21970E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4148       1.0000         .10000E-03   10000.    
    15 'norm      '    .11988E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.5168       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3757       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .97001       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   86824.05     FROM MIGRAD    STATUS=CONVERGED    357 CALLS     1527 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9441        .52400E-06** at limit **
   2  Prefactor     .10000E-03    7.3670        .19504E-05** at limit **
   3  Prefactor     2.5339        .61170       -.10049E-06   -.47881E-02
   4  norm          1.8879        6.4303       -.17861E-05   -.48208E-03
   5  Prefactor     .42173        .65648       -.59121E-06   -.83376E-03
   6  norm          7.3850        .43673       -.11572E-07   -.66353E-03
   7  norm          3.4325        3.7948       -.13882E-06   -.23999E-03
   8  norm          2.5636        2.1210       -.74457E-06   -.28519E-02
   9  Prefactor     .10000E-03    10.040        .37345E-06** at limit **
  10  Prefactor     .10000E-03    1.3950       -.49549E-06** at limit **
  11  Prefactor     .10000E-03    .30715       -.84879E-07** at limit **
  12  Prefactor     .10000E-03    5.6806       -.16871E-05** at limit **
  13  Prefactor     .10000E-03    2.9311       -.96496E-06** at limit **
  14  Prefactor     8.4037        9.4394       -.70124E-05    .60974E-03
  15  norm          .10000E-03    1.4903        .64519E-06** at limit **
  16  Prefactor     9.5052        7.5740       -.24139E-05    .26757E-03
  17  Normalizat    1.3757        .15539        .16501E-05    .21254E-03
  18  Prefactor     .97002        .18837E-01   -.96726E-08    .24087E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.53386
  norm       = 1.88786
  Prefactor  = 0.421733
  norm       = 7.38505
  norm       = 3.43247
  norm       = 2.56362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.40375
  norm       = 0.0001
  Prefactor  = 9.50525
  Normalizat = 1.37567
  Prefactor  = 0.970016
 **********
 **   18 **HESSE 
 **********

 FCN=   86824.05     FROM HESSE     STATUS=OK           248 CALLS     1775 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.3789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5339        .61597        .10947E-03   -1.5390    
   4  norm          1.8879        6.5321        .30073E-03   -1.5433    
   5  Prefactor     .42173        1.4482        .27842E-02   -1.5578    
   6  norm          7.3850        .43729        .45156E-04   -1.5164    
   7  norm          3.4325        3.7915        .21845E-03   -1.5337    
   8  norm          2.5636        2.2030        .25506E-03   -1.5388    
   9  Prefactor     .10000E-03    10.112        .21276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.4591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6871        .31559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.6911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.0076        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.4037        9.1503        .13820E-03   -1.5128    
  15  norm          .10000E-03    1.4919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.5052        7.5470        .12990E-03   -1.5091    
  17  Normalizat    1.3757        .15669        .86975E-03   -.81335    
  18  Prefactor     .97002        .19450E-01    .12431E-03   -.93736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67467e-07
Minuit parameter uncertainties:
  1  8.67735e-06
  2  1.81751e-05
  3  0.615972
  4  6.53461
  5  1.44836
  6  0.437286
  7  3.79177
  8  2.20302
  9  3.55671e-06
  10  5.68154e-06
  11  4.10248e-05
  12  3.02733e-05
  13  1.3565e-05
  14  9.15186
  15  7.49052e-06
  16  7.54772
  17  0.15674
  18  0.0194497
Done.

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

Extracting fit parameters...

4FGL J0304.5+6821
   Spectrum: LogParabola
306         norm:  2.564e+00  2.203e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        alpha:  2.670e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
308         beta:  2.132e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
309           Eb:  9.365e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  9.700e-01  1.945e-02  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
627   Normalization:  1.376e+00  1.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 46.141 68.354
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 3.31e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 9.76e-06 +/- 8.38e-06

TS (Fixed Index): 1.83
Ra Dec: 46.141 68.354
Photon Flux Upper Limit: 9.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/942764/likelihoodResults_317606401_318211201_4FGL_J0304.5+6821_weekly_bin130.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): 0
logL (Free Index) = 86823.7015395
delta logL = 0.349402749518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 86823.6616101
delta logL = 0.389332147141

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   86823.66     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      254 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6677        94.002        .52720E-02    .11042E-02
   2  alpha         2.1154        2.7887        .41785        .10139E-03
   3  Normalizat    1.3838        .11318        .19467        .23043E-03
   4  Prefactor     .96973        .10197E-01    .28133E-01   -.52039E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.66774
  alpha      = 2.11544
  Normalizat = 1.38379
  Prefactor  = 0.969727
 **********
 **   18 **HESSE 
 **********

 FCN=   86823.66     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6677        2.8894        .21088E-03   -1.5325    
   2  alpha         2.1154        .60157        .56848E-01   -.15444    
   3  Normalizat    1.3838        .15272        .86779E-03   -.81099    
   4  Prefactor     .96973        .19026E-01    .12433E-03   -.93746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00763e-08
Minuit parameter uncertainties:
  1  2.88952
  2  0.60768
  3  0.152774
  4  0.0190261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/942764': 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) = 86823.66161
delta logL = 0.389332234758

Extracting fit parameters...

4FGL J0304.5+6821
   Spectrum: LogParabola
306         norm:  3.668e+00  2.890e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        alpha:  2.115e+00  6.077e-01  0.000e+00  5.000e+00 ( 1.000e+00)
308         beta:  2.132e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
309           Eb:  9.365e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  9.697e-01  1.903e-02  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
627   Normalization:  1.384e+00  1.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.61
Ra Dec: 46.141 68.354
Photon Index (Free Index): 2.12 +/- 0.61
Photon Flux (Free Index): 2.28e-08 +/- 2.23e-08
Energy Flux (Free Index): 1.13e-05 +/- 8.91e-06

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/942764/cmap_HighResolution_317606401_318211201_4FGL_J0304.5+6821_weekly_bin130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-05', comment='SUCCESS', photon_flux='3.31e-08', energy_flux2='1.13e-05', photon_flux_error='2.84e-08', dlogl='3.89e-01', energy_flux='9.76e-06', photon_flux2='2.28e-08', job_status='DONE', time_completed='2021-07-05 21:46:55.485978', photon_index_error2='0.61', photon_index2='2.12', ts='1.83', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='9.05e-08', energy_flux_error2='8.91e-06', EG='1.38', time_epoch_completed='1625546815.49', return_code='0', job_id='942764', GAL2='0.97', EG2='1.38', return_code2='0', energy_flux_error='8.38e-06', photon_flux_error2='2.23e-08', ts2='2.61', photon_index='2.67' WHERE bin_id='130' AND source_name='4FGL J0304.5+6821' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul  5 21:46:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 942764: <4FGL_J0304.5+6821_weekly_bin130> in cluster <slac> Done

Job <4FGL_J0304.5+6821_weekly_bin130> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Jul  5 17:56:57 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul  5 20:18:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul  5 20:18:42 2021
Terminated at Mon Jul  5 21:46:59 2021
Results reported at Mon Jul  5 21:46:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0304.5+6821_weekly_bin130 46.1411 68.3539 317606401 318211201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0304.5+6821 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5052.00 sec.
    Max Memory :                                 1265 MB
    Average Memory :                             466.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5296 sec.
    Turnaround time :                            13802 sec.

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

