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 171 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 = 17323
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0304.5+3349_weekly_bin8
RA = 46.1379, Dec = 33.8261
tmin = 243820801, tmax = 244425601
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='916510', job_status='RUN', time_executed='2021-07-06 08:12:44.358433', time_epoch_executed='1625584364.36' WHERE source_name='4FGL J0304.5+3349' and cadence='weekly' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916510

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916510/ft1_4FGL_J0304.5+3349_weekly_bin8.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916510/ft2_4FGL_J0304.5+3349_weekly_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916510/ft1_4FGL_J0304.5+3349_weekly_bin8.fits outfile=/scratch/kocevski/916510/ft1_filteredMKT_4FGL_J0304.5+3349_weekly_bin8.fits ra=46.1379 dec=33.8261 rad=12.0 tmin=243820801.0 tmax=244425601.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 4.78
user 3.42
sys 0.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916510/ft1_filtered_4FGL_J0304.5+3349_weekly_bin8.fits" evtable="EVENTS" scfile=/scratch/kocevski/916510/ft2_4FGL_J0304.5+3349_weekly_bin8.fits sctable="SC_DATA" outfile=/scratch/kocevski/916510/ltcube_243820801_244425601_4FGL_J0304.5+3349_weekly_bin8.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/916510/ft2_4FGL_J0304.5+3349_weekly_bin8.fits
.....................!
real 28.86
user 27.36
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916510/ft1_filtered_4FGL_J0304.5+3349_weekly_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/916510/ft2_4FGL_J0304.5+3349_weekly_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/916510/ltcube_243820801_244425601_4FGL_J0304.5+3349_weekly_bin8.fits outfile=/scratch/kocevski/916510/expmap_243820801_244425601_4FGL_J0304.5+3349_weekly_bin8.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/916510/ltcube_243820801_244425601_4FGL_J0304.5+3349_weekly_bin8.fits
.....................!
real 195.61
user 185.67
sys 5.28

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/916510/ft1_filtered_4FGL_J0304.5+3349_weekly_bin8.fits scfile=/scratch/kocevski/916510/ft2_4FGL_J0304.5+3349_weekly_bin8.fits outfile=/scratch/kocevski/916510/cmap_243820801_244425601_4FGL_J0304.5+3349_weekly_bin8.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 1.06
user 0.42
sys 0.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916510/ft1_filtered_4FGL_J0304.5+3349_weekly_bin8.fits scfile=/scratch/kocevski/916510/ft2_4FGL_J0304.5+3349_weekly_bin8.fits outfile=/scratch/kocevski/916510/cmap_HighResolution_243820801_244425601_4FGL_J0304.5+3349_weekly_bin8.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.11
user 0.41
sys 0.31

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916510/ft1_filtered_4FGL_J0304.5+3349_weekly_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/916510/ft2_4FGL_J0304.5+3349_weekly_bin8.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916510/Model_4FGL_J0304.5+3349_weekly_bin8.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/916510/ft1_filtered_4FGL_J0304.5+3349_weekly_bin8.fits.....................!
real 591.05
user 580.16
sys 1.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/916510/ft1_filtered_4FGL_J0304.5+3349_weekly_bin8.fits', '/scratch/kocevski/916510/ft2_4FGL_J0304.5+3349_weekly_bin8.fits', expMap='/scratch/kocevski/916510/expmap_243820801_244425601_4FGL_J0304.5+3349_weekly_bin8.fits', expCube='/scratch/kocevski/916510/ltcube_243820801_244425601_4FGL_J0304.5+3349_weekly_bin8.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/916510/Model_4FGL_J0304.5+3349_weekly_bin8.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/916510/ft1_filtered_4FGL_J0304.5+3349_weekly_bin8.fits
Spacecraft file(s): /scratch/kocevski/916510/ft2_4FGL_J0304.5+3349_weekly_bin8.fits
Exposure map: /scratch/kocevski/916510/expmap_243820801_244425601_4FGL_J0304.5+3349_weekly_bin8.fits
Exposure cube: /scratch/kocevski/916510/ltcube_243820801_244425601_4FGL_J0304.5+3349_weekly_bin8.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/916510/Model_4FGL_J0304.5+3349_weekly_bin8.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) = 39222.5695643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24244E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1930       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5144       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.8909       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .87521       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0815       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0351       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2765       1.0000         .10000E-03   10000.    
    15 'norm      '    .53298E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .42466       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1963       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99940       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=   39222.44     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     1694 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .46413       -.47027E-07** at limit **
   2  Prefactor     .10000E-03    1.4706       -.13611E-07** at limit **
   3  norm          1.1936        .37227       -.21759E-07    .58877E-03
   4  Prefactor     .10000E-03    1.2943       -.11411E-07** at limit **
   5  norm          1.5146        2.6920       -.64618E-06   -.85180E-04
   6  Prefactor     .10000E-03    4.6166        .15641E-06** at limit **
   7  norm          1.8909        .89352       -.48566E-07    .20097E-03
   8  Prefactor     .87536        2.9711       -.28759E-05   -.72220E-04
   9  Prefactor     .10000E-03    11.364       -.43352E-05** at limit **
  10  norm          .10000E-03    3.7584       -.23335E-06** at limit **
  11  Prefactor     2.0861        1.6347        .72959E-06   -.52055E-03
  12  Prefactor     .10000E-03    11.887        .45560E-05** at limit **
  13  norm          2.0350        .36011       -.23969E-07   -.82632E-03
  14  Prefactor     1.2765        .92523        .16669E-07   -.32466E-03
  15  norm          .10000E-03    1.5775       -.44212E-07** at limit **
  16  norm          .42523        .81317        .59288E-07   -.65388E-03
  17  Prefactor     .10000E-03    31.241       -.89191E-06** at limit **
  18  Normalizat    1.1963        .12319        .73247E-06    .12328E-03
  19  Prefactor     .99938        .38672E-01   -.58364E-07    .39212E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.19361
  Prefactor  = 0.0001
  norm       = 1.51461
  Prefactor  = 0.0001
  norm       = 1.89089
  Prefactor  = 0.87536
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.08611
  Prefactor  = 0.0001
  norm       = 2.03503
  Prefactor  = 1.27648
  norm       = 0.0001
  norm       = 0.425235
  Prefactor  = 0.0001
  Normalizat = 1.19631
  Prefactor  = 0.99938
 **********
 **   18 **HESSE 
 **********

 FCN=   39222.44     FROM HESSE     STATUS=OK           274 CALLS     1968 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7392        .23777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.4811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1936        .33879        .58880E-04   -1.5489    
   4  Prefactor     .10000E-03    1.3207        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5146        2.6796        .34743E-03   -1.5462    
   6  Prefactor     .10000E-03    4.6213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8909        .89078        .12287E-03   -1.5433    
   8  Prefactor     .87536        3.0490        .50869E-03   -1.5521    
   9  Prefactor     .10000E-03    11.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.7702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0861        5.2525        .14311E-02   -1.5419    
  12  Prefactor     .10000E-03    11.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0350        .37856        .47428E-04   -1.5423    
  14  Prefactor     1.2765        .88556        .14341E-03   -1.5482    
  15  norm          .10000E-03    9.0342        .48273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .42523        1.0810        .21497E-02   -1.5578    
  17  Prefactor     .10000E-03    31.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1963        .13490        .44983E-03   -.86717    
  19  Prefactor     .99938        .42275E-01    .15632E-03   -.92750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84034e-07
Minuit parameter uncertainties:
  1  5.36455e-05
  2  8.84511e-07
  3  0.338787
  4  3.22008e-06
  5  2.67983
  6  1.41675e-07
  7  0.890785
  8  3.04957
  9  6.31307e-06
  10  1.84389e-06
  11  5.25369
  12  8.0893e-06
  13  0.378563
  14  0.885567
  15  1.20239e-05
  16  1.08105
  17  1.43267e-05
  18  0.134943
  19  0.0422762
Done.

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

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.000e-04  1.844e-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.994e-01  4.228e-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.196e+00  1.349e-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.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.87e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916510/likelihoodResults_243820801_244425601_4FGL_J0304.5+3349_weekly_bin8.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) = 39222.441649
delta logL = -0.0012645270981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 39222.4403844
delta logL = -1.53086148202e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8616       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1963       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99939       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.

 FCN=   39222.44     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.7616        .90712E-02** at limit **
   2  alpha         2.8604        3.6245        .41709        .14756E-05
   3  Normalizat    1.1963        .11615        .10151        .12717E-03
   4  Prefactor     .99938        .37473E-01    .35376E-01    .36538E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.86043
  Normalizat = 1.19631
  Prefactor  = 0.99938
 **********
 **   18 **HESSE 
 **********

 FCN=   39222.44     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8604        3.6238        .50000        .14468    
   3  Normalizat    1.1963        .12690        .44983E-03   -.86717    
   4  Prefactor     .99938        .41065E-01    .15632E-03   -.92750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42795e-12
Minuit parameter uncertainties:
  1  9.62135e-07
  2  2.4743
  3  0.126936
  4  0.0410663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916510': 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) = 39222.4403844
delta logL = 1.36060407385e-09

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  1.000e-04  9.621e-07  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.860e+00  2.474e+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.994e-01  4.107e-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.196e+00  1.269e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/916510/cmap_HighResolution_243820801_244425601_4FGL_J0304.5+3349_weekly_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.87e-06', job_status='DONE', photon_flux_upper_limit='2.40e-08', time_completed='2021-07-06 08:50:05.122049', job_id='916510', GAL2='1.00', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1625586605.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.36e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='8' AND source_name='4FGL J0304.5+3349' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul  6 08:50:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 916510: <4FGL_J0304.5+3349_weekly_bin8> in cluster <slac> Done

Job <4FGL_J0304.5+3349_weekly_bin8> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Jul  5 16:18:25 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul  5 18:02:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul  5 18:02:39 2021
Terminated at Tue Jul  6 08:50:11 2021
Results reported at Tue Jul  6 08:50:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0304.5+3349_weekly_bin8 46.1379 33.8261 243820801 244425601 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 :                                   2225.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             60.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   53251 sec.
    Turnaround time :                            59506 sec.

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

