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


Performing analysis on: 4FGL_J0304.5+6821_weekly_bin509
RA = 46.1411, Dec = 68.3539
tmin = 546825601, tmax = 547430401
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='956204', job_status='RUN', time_executed='2021-07-05 21:15:51.677255', time_epoch_executed='1625544951.68' WHERE source_name='4FGL J0304.5+6821' and cadence='weekly' and bin_id='509'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/956204

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/956204/ft1_4FGL_J0304.5+6821_weekly_bin509.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/956204/ft2_4FGL_J0304.5+6821_weekly_bin509.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/956204/ft1_4FGL_J0304.5+6821_weekly_bin509.fits outfile=/scratch/kocevski/956204/ft1_filteredMKT_4FGL_J0304.5+6821_weekly_bin509.fits ra=46.1411 dec=68.3539 rad=12.0 tmin=546825601.0 tmax=547430401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 9.71
user 7.49
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/956204/ft2_4FGL_J0304.5+6821_weekly_bin509.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/956204/ft1_filteredMKT_4FGL_J0304.5+6821_weekly_bin509.fits evtable="EVENTS" outfile="/scratch/kocevski/956204/ft1_filtered_4FGL_J0304.5+6821_weekly_bin509.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.41
user 0.40
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/956204/ft1_filtered_4FGL_J0304.5+6821_weekly_bin509.fits" evtable="EVENTS" scfile=/scratch/kocevski/956204/ft2_4FGL_J0304.5+6821_weekly_bin509.fits sctable="SC_DATA" outfile=/scratch/kocevski/956204/ltcube_546825601_547430401_4FGL_J0304.5+6821_weekly_bin509.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/956204/ft2_4FGL_J0304.5+6821_weekly_bin509.fits
.....................!
real 26.79
user 25.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/956204/ft1_filtered_4FGL_J0304.5+6821_weekly_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/956204/ft2_4FGL_J0304.5+6821_weekly_bin509.fits sctable="SC_DATA" expcube=/scratch/kocevski/956204/ltcube_546825601_547430401_4FGL_J0304.5+6821_weekly_bin509.fits outfile=/scratch/kocevski/956204/expmap_546825601_547430401_4FGL_J0304.5+6821_weekly_bin509.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/956204/ltcube_546825601_547430401_4FGL_J0304.5+6821_weekly_bin509.fits
.....................!
real 200.56
user 186.71
sys 4.87

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/956204/ft1_filtered_4FGL_J0304.5+6821_weekly_bin509.fits scfile=/scratch/kocevski/956204/ft2_4FGL_J0304.5+6821_weekly_bin509.fits outfile=/scratch/kocevski/956204/cmap_546825601_547430401_4FGL_J0304.5+6821_weekly_bin509.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 2.91
user 0.44
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/956204/ft1_filtered_4FGL_J0304.5+6821_weekly_bin509.fits scfile=/scratch/kocevski/956204/ft2_4FGL_J0304.5+6821_weekly_bin509.fits outfile=/scratch/kocevski/956204/cmap_HighResolution_546825601_547430401_4FGL_J0304.5+6821_weekly_bin509.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 0.83
user 0.44
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/956204/ft1_filtered_4FGL_J0304.5+6821_weekly_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/956204/ft2_4FGL_J0304.5+6821_weekly_bin509.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/956204/Model_4FGL_J0304.5+6821_weekly_bin509.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/956204/ft1_filtered_4FGL_J0304.5+6821_weekly_bin509.fits.....................!
real 2237.41
user 2222.05
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/956204/ft1_filtered_4FGL_J0304.5+6821_weekly_bin509.fits', '/scratch/kocevski/956204/ft2_4FGL_J0304.5+6821_weekly_bin509.fits', expMap='/scratch/kocevski/956204/expmap_546825601_547430401_4FGL_J0304.5+6821_weekly_bin509.fits', expCube='/scratch/kocevski/956204/ltcube_546825601_547430401_4FGL_J0304.5+6821_weekly_bin509.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/956204/Model_4FGL_J0304.5+6821_weekly_bin509.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/956204/ft1_filtered_4FGL_J0304.5+6821_weekly_bin509.fits
Spacecraft file(s): /scratch/kocevski/956204/ft2_4FGL_J0304.5+6821_weekly_bin509.fits
Exposure map: /scratch/kocevski/956204/expmap_546825601_547430401_4FGL_J0304.5+6821_weekly_bin509.fits
Exposure cube: /scratch/kocevski/956204/ltcube_546825601_547430401_4FGL_J0304.5+6821_weekly_bin509.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/956204/Model_4FGL_J0304.5+6821_weekly_bin509.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) = 163370.510607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14432E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .58980E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0336       1.0000         .10000E-03   10000.    
     4 'norm      '    8.3039       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8589       1.0000         .10000E-03   10000.    
     6 'norm      '    4.1979       1.0000         .10000E-03   10000.    
     7 'norm      '    2.0595       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6147       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11427E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53102       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6654       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11863E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .99494       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22001       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3909       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3693       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .96910       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   163370.4     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1565 TOTAL
                     EDM=   .24E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7169         .0000    ** at limit **
   2  Prefactor     .10068E-03    21.231         .0000    ** at limit **
   3  Prefactor     2.0341        .41883         .0000        .99751E-02
   4  norm          8.2860        4.3089         .0000       -.11118E-01
   5  Prefactor     2.8601        1.2395         .0000        .13358E-01
   6  norm          4.1978        .26620         .0000        .75384E-02
   7  norm          2.0570        2.1028         .0000        .19615E-02
   8  norm          1.6149        1.6017         .0000        .26474    
   9  Prefactor     .10000E-03    3.1203         .0000    ** at limit **
  10  Prefactor     .53402        .80022         .0000        .12639E-01
  11  Prefactor     4.6644        1.3863         .0000        .83092E-01
  12  Prefactor     .10000E-03    4.7204         .0000    ** at limit **
  13  Prefactor     1.0058        2.0859         .0000        .28812    
  14  Prefactor     .29869        1.7720         .0000        .46091E-02
  15  norm          .10000E-03    .75434         .0000    ** at limit **
  16  Prefactor     3.3895        2.9826         .0000        .32946E-02
  17  Normalizat    1.3691        .11253         .0000        .28276E-03
  18  Prefactor     .96911        .13605E-01     .0000       -.13764E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100678
  Prefactor  = 2.03414
  norm       = 8.286
  Prefactor  = 2.86006
  norm       = 4.19785
  norm       = 2.05702
  norm       = 1.61491
  Prefactor  = 0.0001
  Prefactor  = 0.534017
  Prefactor  = 4.66441
  Prefactor  = 0.0001
  Prefactor  = 1.00581
  Prefactor  = 0.29869
  norm       = 0.0001
  Prefactor  = 3.38946
  Normalizat = 1.36905
  Prefactor  = 0.969109
 **********
 **   18 **HESSE 
 **********

 FCN=   163370.4     FROM HESSE     STATUS=OK           260 CALLS     1825 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10068E-03    21.950        .42146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0341        .41685        .11355E-03   -1.5423    
   4  norm          8.2860        4.2987        .13912E-03   -1.5132    
   5  Prefactor     2.8601        1.2311        .24044E-03   -1.5370    
   6  norm          4.1978        .26624        .50130E-04   -1.5298    
   7  norm          2.0570        2.0941        .28797E-03   -1.5421    
   8  norm          1.6149        1.5960        .16661E-02   -1.5454    
   9  Prefactor     .10000E-03    3.1275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .53402        1.5017        .42314E-02   -1.5562    
  11  Prefactor     4.6644        1.3816        .93159E-03   -1.5276    
  12  Prefactor     .10000E-03    4.7511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0058        2.0512        .26296E-02   -1.5507    
  14  Prefactor     .29869        1.7735        .20907       -1.5599    
  15  norm          .10000E-03    .75614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.3895        2.9874        .21972E-03   -1.5340    
  17  Normalizat    1.3691        .11355        .84567E-03   -.81528    
  18  Prefactor     .96911        .14085E-01    .12229E-03   -.93766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27204e-06
Minuit parameter uncertainties:
  1  8.18253e-07
  2  0.00771626
  3  0.41685
  4  4.29883
  5  1.23111
  6  0.266239
  7  2.09419
  8  1.59607
  9  1.67056e-05
  10  1.50178
  11  1.38163
  12  5.57039e-05
  13  2.05133
  14  1.45545
  15  5.59962e-08
  16  2.98749
  17  0.113574
  18  0.0140851
Done.

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

Extracting fit parameters...

4FGL J0304.5+6821
   Spectrum: LogParabola
306         norm:  1.615e+00  1.596e+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.691e-01  1.409e-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.369e+00  1.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 46.141 68.354
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 2.08e-08 +/- 2.06e-08
Energy Flux (Fixed Index): 6.15e-06 +/- 6.07e-06

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

Saving results to:
/scratch/kocevski/956204/likelihoodResults_546825601_547430401_4FGL_J0304.5+6821_weekly_bin509.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) = 163369.472869
delta logL = 0.904642681591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 163369.472008
delta logL = 0.905503227812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74093E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97117       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   163369.5     FROM MIGRAD    STATUS=FAILED       106 CALLS      407 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74125E-01    .56934E-01    .56896E-03    .39637    
   2  alpha         5.0000        .67071        .50000    ** at limit **
   3  Normalizat    1.3318        .11112        .85499E-03   -.96588E-04
   4  Prefactor     .97117        .13623E-01    .12217E-03   -.24419E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   163369.5     FROM SIMPLEX   STATUS=UNCHANGED    137 CALLS      544 TOTAL
                     EDM=   .65E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74125E-01    .56934E-01    .63194E-08   -1.5654    
   2  alpha         5.0000        .67071        .53308E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3318        .11112        .19828E-06   -.82621    
   4  Prefactor     .97117        .13623E-01    .40704E-08   -.93697    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   163369.5     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      581 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74125E-01    .50536E-01    .11379E-03   -.11893E-02
   2  alpha         5.0000        .53629        .50000    ** at limit **
   3  Normalizat    1.3318        .11131        .34200E-04   -.97865E-04
   4  Prefactor     .97117        .13626E-01    .48867E-05   -.25312E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0741246
  alpha      = 5
  Normalizat = 1.33183
  Prefactor  = 0.971165
 **********
 **   18 **HESSE 
 **********

 FCN=   163369.5     FROM HESSE     STATUS=OK            31 CALLS      612 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74125E-01    .49552E-01    .45517E-05   -1.5654    
   2  alpha         5.0000        .51699        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3318        .11133        .68399E-05   -.82621    
   4  Prefactor     .97117        .13620E-01    .97734E-06   -.93697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01314e-11
Minuit parameter uncertainties:
  1  0.0495524
  2  3.06019e-06
  3  0.111354
  4  0.0136197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/956204': 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) = 163369.472007
delta logL = 0.905504479306

Extracting fit parameters...

4FGL J0304.5+6821
   Spectrum: LogParabola
306         norm:  7.412e-02  4.955e-02  1.000e-04  1.000e+04 ( 1.000e-12)
307        alpha:  5.000e+00  3.060e-06  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.712e-01  1.362e-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.332e+00  1.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.16
Ra Dec: 46.141 68.354
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.81e-08 +/- 3.87e-08
Energy Flux (Free Index): 8.27e-06 +/- 5.52e-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/956204/cmap_HighResolution_546825601_547430401_4FGL_J0304.5+6821_weekly_bin509.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-05', comment='SUCCESS', photon_flux='2.08e-08', energy_flux2='8.27e-06', photon_flux_error='2.06e-08', dlogl='9.06e-01', energy_flux='6.15e-06', photon_flux2='5.81e-08', job_status='DONE', time_completed='2021-07-06 00:08:22.832084', photon_index_error2='0.00', photon_index2='5.00', ts='1.22', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='6.09e-08', energy_flux_error2='5.52e-06', EG='1.37', time_epoch_completed='1625555302.83', return_code='0', job_id='956204', GAL2='0.97', EG2='1.33', return_code2='0', energy_flux_error='6.07e-06', photon_flux_error2='3.87e-08', ts2='3.16', photon_index='2.67' WHERE bin_id='509' AND source_name='4FGL J0304.5+6821' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul  6 00:08:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 956204: <4FGL_J0304.5+6821_weekly_bin509> in cluster <slac> Done

Job <4FGL_J0304.5+6821_weekly_bin509> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Jul  5 18:48:47 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul  5 21:10:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul  5 21:10:46 2021
Terminated at Tue Jul  6 00:08:27 2021
Results reported at Tue Jul  6 00:08:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0304.5+6821_weekly_bin509 46.1411 68.3539 546825601 547430401 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 :                                   9989.00 sec.
    Max Memory :                                 646 MB
    Average Memory :                             551.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10660 sec.
    Turnaround time :                            19180 sec.

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

