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


Performing analysis on: 4FGL_J0304.5+3349_weekly_bin140
RA = 46.1379, Dec = 33.8261
tmin = 323654401, tmax = 324259201
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='918957', job_status='RUN', time_executed='2021-07-05 19:09:01.756905', time_epoch_executed='1625537341.76' WHERE source_name='4FGL J0304.5+3349' and cadence='weekly' and bin_id='140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/918957

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/918957/ft1_4FGL_J0304.5+3349_weekly_bin140.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/918957/ft2_4FGL_J0304.5+3349_weekly_bin140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/918957/ft1_4FGL_J0304.5+3349_weekly_bin140.fits outfile=/scratch/kocevski/918957/ft1_filteredMKT_4FGL_J0304.5+3349_weekly_bin140.fits ra=46.1379 dec=33.8261 rad=12.0 tmin=323654401.0 tmax=324259201.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.31
user 6.79
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/918957/ft2_4FGL_J0304.5+3349_weekly_bin140.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/918957/ft1_filteredMKT_4FGL_J0304.5+3349_weekly_bin140.fits evtable="EVENTS" outfile="/scratch/kocevski/918957/ft1_filtered_4FGL_J0304.5+3349_weekly_bin140.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.92
user 0.39
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/918957/ft1_filtered_4FGL_J0304.5+3349_weekly_bin140.fits" evtable="EVENTS" scfile=/scratch/kocevski/918957/ft2_4FGL_J0304.5+3349_weekly_bin140.fits sctable="SC_DATA" outfile=/scratch/kocevski/918957/ltcube_323654401_324259201_4FGL_J0304.5+3349_weekly_bin140.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/918957/ft2_4FGL_J0304.5+3349_weekly_bin140.fits
.....................!
real 27.03
user 25.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/918957/ft1_filtered_4FGL_J0304.5+3349_weekly_bin140.fits evtable="EVENTS" scfile=/scratch/kocevski/918957/ft2_4FGL_J0304.5+3349_weekly_bin140.fits sctable="SC_DATA" expcube=/scratch/kocevski/918957/ltcube_323654401_324259201_4FGL_J0304.5+3349_weekly_bin140.fits outfile=/scratch/kocevski/918957/expmap_323654401_324259201_4FGL_J0304.5+3349_weekly_bin140.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/918957/ltcube_323654401_324259201_4FGL_J0304.5+3349_weekly_bin140.fits
.....................!
real 196.14
user 184.98
sys 4.81

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/918957/ft1_filtered_4FGL_J0304.5+3349_weekly_bin140.fits scfile=/scratch/kocevski/918957/ft2_4FGL_J0304.5+3349_weekly_bin140.fits outfile=/scratch/kocevski/918957/cmap_323654401_324259201_4FGL_J0304.5+3349_weekly_bin140.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.37
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/918957/ft1_filtered_4FGL_J0304.5+3349_weekly_bin140.fits scfile=/scratch/kocevski/918957/ft2_4FGL_J0304.5+3349_weekly_bin140.fits outfile=/scratch/kocevski/918957/cmap_HighResolution_323654401_324259201_4FGL_J0304.5+3349_weekly_bin140.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.05
user 0.43
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.790       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5871       1.0000         .10000E-03   10000.    
     3 'norm      '    .13069       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14074       1.0000         .10000E-03   10000.    
     5 'norm      '    5.5977       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27994E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.7081       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .66061       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.867       1.0000         .10000E-03   10000.    
    10 'norm      '    6.9087       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8850       1.0000         .10000E-03   10000.    
    13 'norm      '    2.2669       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8570       1.0000         .10000E-03   10000.    
    15 'norm      '    .10948E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2238       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2893       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96858       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=   30127.95     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     1729 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.789        3.0305       -.21188E-06   -.13129E-02
   2  Prefactor     4.6049        6.6404        .10933E-06   -.27227E-03
   3  norm          .13073        .24204        .31197E-06   -.13042E-02
   4  Prefactor     .15886        1.3127       -.18002E-06   -.10168E-03
   5  norm          5.5925        3.0831        .67453E-06   -.88758E-04
   6  Prefactor     .10000E-03    7.9609       -.29909E-07** at limit **
   7  norm          9.7081        1.6866        .16224E-07   -.61828E-03
   8  Prefactor     .70276        2.3208        .64994E-06   -.67806E-03
   9  Prefactor     30.832        25.438        .55033E-06    .20499E-03
  10  norm          6.9614        11.023        .22069E-06   -.94600E-05
  11  Prefactor     .10000E-03    6.9887        .12280E-05** at limit **
  12  Prefactor     4.9665        70.181        .66240E-05    .31036E-04
  13  norm          2.2666        .43503       -.11260E-06    .62186E-04
  14  Prefactor     1.8572        .98793        .15773E-06   -.22686E-03
  15  norm          .10000E-03    5.9329       -.11805E-07** at limit **
  16  norm          2.2245        1.3541        .23266E-06   -.13511E-03
  17  Prefactor     .10000E-03    24.691       -.29251E-07** at limit **
  18  Normalizat    1.2888        .15247       -.10640E-05   -.37418E-03
  19  Prefactor     .96863        .44757E-01    .37321E-07   -.81445E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.7888
  Prefactor  = 4.60492
  norm       = 0.130735
  Prefactor  = 0.158864
  norm       = 5.5925
  Prefactor  = 0.0001
  norm       = 9.70814
  Prefactor  = 0.702757
  Prefactor  = 30.8323
  norm       = 6.96137
  Prefactor  = 0.0001
  Prefactor  = 4.96649
  norm       = 2.26661
  Prefactor  = 1.85722
  norm       = 0.0001
  norm       = 2.22448
  Prefactor  = 0.0001
  Normalizat = 1.28884
  Prefactor  = 0.968626
 **********
 **   18 **HESSE 
 **********

 FCN=   30127.95     FROM HESSE     STATUS=OK           280 CALLS     2009 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.789        2.9666        .10079E-03   -1.4913    
   2  Prefactor     4.6049        6.6057        .18794E-03   -1.5279    
   3  norm          .13073        .26157        .96961E-03   -1.5636    
   4  Prefactor     .15886        12.693        .35647E-02   -1.5628    
   5  norm          5.5925        3.1339        .84899E-03   -1.5235    
   6  Prefactor     .10000E-03    7.9788        .21419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.7081        1.6888        .89312E-04   -1.5085    
   8  Prefactor     .70276        14.443        .44189E-02   -1.5540    
   9  Prefactor     30.832        25.830        .72118E-04   -1.4597    
  10  norm          6.9614        11.018        .15264E-03   -1.5180    
  11  Prefactor     .10000E-03    7.2476        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9665        73.049        .18199E-03   -1.5262    
  13  norm          2.2666        .44493        .41468E-04   -1.5407    
  14  Prefactor     1.8572        .97444        .11496E-03   -1.5435    
  15  norm          .10000E-03    6.1425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2245        1.3442        .14396E-03   -1.5410    
  17  Prefactor     .10000E-03    24.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2888        .17237        .44942E-03   -.83900    
  19  Prefactor     .96863        .50616E-01    .16251E-03   -.93783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16779e-07
Minuit parameter uncertainties:
  1  2.96662
  2  6.60673
  3  0.261574
  4  2.83975
  5  3.13399
  6  4.16111e-06
  7  1.68884
  8  6.37308
  9  25.8393
  10  11.0214
  11  9.86825e-07
  12  38.1502
  13  0.444935
  14  0.974444
  15  2.61789e-06
  16  1.34427
  17  6.51455e-06
  18  0.17245
  19  0.050618
Done.

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

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  6.961e+00  1.102e+01  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.686e-01  5.062e-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.289e+00  1.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 46.138 33.826
Photon Flux Upper Limit: 4.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/918957/likelihoodResults_323654401_324259201_4FGL_J0304.5+3349_weekly_bin140.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) = 30127.9488055
delta logL = 0.001675200725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 30127.9479771
delta logL = 0.00250360880091

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4407       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9637       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2880       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96874       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=   30127.95     FROM MIGRAD    STATUS=FAILED        86 CALLS      276 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4406        18.556        .79073E-03   -.22941E-03
   2  alpha         2.9637        1.8299        .58924E-01    .79427E-03
   3  Normalizat    1.2880        .15134        .44955E-03   -.14668E-04
   4  Prefactor     .96874        .48370E-01    .16251E-03   -.48971E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   30127.95     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      349 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4406        18.556        .22882E-03   -1.5200    
   2  alpha         2.9637        1.8299        .29461E-02    .18656    
   3  Normalizat    1.2880        .15134        .21720E-03   -.83925    
   4  Prefactor     .96874        .48370E-01    .60150E-04   -.93779    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   30127.95     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      377 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4406        13.231        .31629E-04   -.70162E-04
   2  alpha         2.9637        1.3895        .11785E-01    .14702E-05
   3  Normalizat    1.2880        .15089        .17982E-04   -.80925E-05
   4  Prefactor     .96874        .48300E-01    .65002E-05   -.15391E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.44063
  alpha      = 2.96372
  Normalizat = 1.288
  Prefactor  = 0.968744
 **********
 **   18 **HESSE 
 **********

 FCN=   30127.95     FROM HESSE     STATUS=OK            25 CALLS      402 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4406        12.728        .63258E-05   -1.5200    
   2  alpha         2.9637        1.3425        .47140E-03    .18657    
   3  Normalizat    1.2880        .15082        .35964E-05   -.83925    
   4  Prefactor     .96874        .48285E-01    .13000E-05   -.93779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30399e-11
Minuit parameter uncertainties:
  1  12.7338
  2  1.42034
  3  0.150874
  4  0.0482871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/918957': 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) = 30127.9479771
delta logL = 0.00250361529106

Extracting fit parameters...

4FGL J0304.5+3349
   Spectrum: LogParabola
295         norm:  6.441e+00  1.273e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.964e+00  1.420e+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.687e-01  4.829e-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.288e+00  1.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
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/918957/cmap_HighResolution_323654401_324259201_4FGL_J0304.5+3349_weekly_bin140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-05', job_status='DONE', photon_flux_upper_limit='4.81e-08', time_completed='2021-07-05 19:40:50.573717', job_id='918957', GAL2='0.97', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1625539250.57', return_code2='0', ts='0.51', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.50e-03', ts2='0.52', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='140' AND source_name='4FGL J0304.5+3349' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul  5 19:40:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0063>
Subject: Job 918957: <4FGL_J0304.5+3349_weekly_bin140> in cluster <slac> Done

Job <4FGL_J0304.5+3349_weekly_bin140> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Jul  5 16:28:51 2021
Job was executed on host(s) <bullet0063>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul  5 19:04:18 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:04:18 2021
Terminated at Mon Jul  5 19:40:56 2021
Results reported at Mon Jul  5 19:40:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0304.5+3349_weekly_bin140 46.1379 33.8261 323654401 324259201 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 :                                   1866.15 sec.
    Max Memory :                                 625 MB
    Average Memory :                             346.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2935 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2197 sec.
    Turnaround time :                            11525 sec.

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

