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


Performing analysis on: 4FGL_J0824.9+3915_weekly_bin602
RA = 126.236, Dec = 39.2574
tmin = 603072001, tmax = 603676801
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='118832', job_status='RUN', time_executed='2021-07-13 18:39:14.806565', time_epoch_executed='1626226754.81' WHERE source_name='4FGL J0824.9+3915' and cadence='weekly' and bin_id='602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/118832

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/118832/ft1_4FGL_J0824.9+3915_weekly_bin602.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/118832/ft2_4FGL_J0824.9+3915_weekly_bin602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/118832/ft1_4FGL_J0824.9+3915_weekly_bin602.fits outfile=/scratch/kocevski/118832/ft1_filteredMKT_4FGL_J0824.9+3915_weekly_bin602.fits ra=126.236 dec=39.2574 rad=12.0 tmin=603072001.0 tmax=603676801.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 6.23
user 5.79
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/118832/ft2_4FGL_J0824.9+3915_weekly_bin602.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/118832/ft2_4FGL_J0824.9+3915_weekly_bin602.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/118832/ft1_filteredMKT_4FGL_J0824.9+3915_weekly_bin602.fits evtable="EVENTS" outfile="/scratch/kocevski/118832/ft1_filtered_4FGL_J0824.9+3915_weekly_bin602.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.63
user 0.39
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/118832/ft1_filtered_4FGL_J0824.9+3915_weekly_bin602.fits" evtable="EVENTS" scfile=/scratch/kocevski/118832/ft2_4FGL_J0824.9+3915_weekly_bin602.fits sctable="SC_DATA" outfile=/scratch/kocevski/118832/ltcube_603072001_603676801_4FGL_J0824.9+3915_weekly_bin602.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/118832/ft2_4FGL_J0824.9+3915_weekly_bin602.fits
.....................!
real 33.11
user 31.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/118832/ft1_filtered_4FGL_J0824.9+3915_weekly_bin602.fits evtable="EVENTS" scfile=/scratch/kocevski/118832/ft2_4FGL_J0824.9+3915_weekly_bin602.fits sctable="SC_DATA" expcube=/scratch/kocevski/118832/ltcube_603072001_603676801_4FGL_J0824.9+3915_weekly_bin602.fits outfile=/scratch/kocevski/118832/expmap_603072001_603676801_4FGL_J0824.9+3915_weekly_bin602.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/118832/ltcube_603072001_603676801_4FGL_J0824.9+3915_weekly_bin602.fits
.....................!
real 191.14
user 185.95
sys 4.56

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

Setting source of interest to:
4FGL J0824.9+3915 @ 126.236 39.2574

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/118832/ft1_filtered_4FGL_J0824.9+3915_weekly_bin602.fits scfile=/scratch/kocevski/118832/ft2_4FGL_J0824.9+3915_weekly_bin602.fits outfile=/scratch/kocevski/118832/cmap_603072001_603676801_4FGL_J0824.9+3915_weekly_bin602.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=126.236 yref=39.2574 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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/118832/ft1_filtered_4FGL_J0824.9+3915_weekly_bin602.fits scfile=/scratch/kocevski/118832/ft2_4FGL_J0824.9+3915_weekly_bin602.fits outfile=/scratch/kocevski/118832/cmap_HighResolution_603072001_603676801_4FGL_J0824.9+3915_weekly_bin602.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=126.236 yref=39.2574 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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/118832/ft1_filtered_4FGL_J0824.9+3915_weekly_bin602.fits evtable="EVENTS" scfile=/scratch/kocevski/118832/ft2_4FGL_J0824.9+3915_weekly_bin602.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/118832/Model_4FGL_J0824.9+3915_weekly_bin602.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/118832/ft1_filtered_4FGL_J0824.9+3915_weekly_bin602.fits.....................!
real 27.47
user 25.82
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/118832/ft1_filtered_4FGL_J0824.9+3915_weekly_bin602.fits', '/scratch/kocevski/118832/ft2_4FGL_J0824.9+3915_weekly_bin602.fits', expMap='/scratch/kocevski/118832/expmap_603072001_603676801_4FGL_J0824.9+3915_weekly_bin602.fits', expCube='/scratch/kocevski/118832/ltcube_603072001_603676801_4FGL_J0824.9+3915_weekly_bin602.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/118832/Model_4FGL_J0824.9+3915_weekly_bin602.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0824.9+3915'

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.301e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/118832/ft1_filtered_4FGL_J0824.9+3915_weekly_bin602.fits
Spacecraft file(s): /scratch/kocevski/118832/ft2_4FGL_J0824.9+3915_weekly_bin602.fits
Exposure map: /scratch/kocevski/118832/expmap_603072001_603676801_4FGL_J0824.9+3915_weekly_bin602.fits
Exposure cube: /scratch/kocevski/118832/ltcube_603072001_603676801_4FGL_J0824.9+3915_weekly_bin602.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/118832/Model_4FGL_J0824.9+3915_weekly_bin602.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) = 1454.00253681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.551       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .98314E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .17263E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1037       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.5241       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.233       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4830       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11785E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12096E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18909E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'norm      '    5436.3       1.0000         .10000E-03   10000.    
    23 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    24 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .83969E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+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.

 FCN=   1447.179     FROM MIGRAD    STATUS=CONVERGED   1038 CALLS     3668 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.575        23.981        .92990E-04   -.28150E-03
   2  Prefactor     .10300E-03    220.24        .39419E-02** at limit **
   3  norm          .10000E-03    93.820        .40713E-03** at limit **
   4  norm          .10000E-03    1.4444        .44533E-03** at limit **
   5  Prefactor     1.1565        55.416        .45141E-03   -.22948E-03
   6  Prefactor     .10000E-03    101.16        .18142E-02** at limit **
   7  Prefactor     5.5224        11.354        .17094E-03   -.17634E-03
   8  Prefactor     36.126        79.643        .33290E-03    .17502E-05
   9  norm          2.4829        1.7235        .40015E-04   -.33602E-03
  10  Prefactor     .10003E-03    148.92        .18142E-02** at limit **
  11  Prefactor     .10000E-03    124.16        .18142E-02** at limit **
  12  Prefactor     .10000E-03    25.678        .18142E-02** at limit **
  13  Prefactor     .10000E-03    5.4839        .86976E-03** at limit **
  14  Prefactor     .10000E-03    51.547        .18142E-02** at limit **
  15  Prefactor     .10000E-03    19.203        .16288E-02** at limit **
  16  norm          .10000E-03    16.357        .15031E-02** at limit **
  17  Prefactor     .10000E-03    39.134        .18142E-02** at limit **
  18  Prefactor    10000.0        7899.9        .19677E-02** at limit **
  19  Prefactor     .10040E-03    9999.9        .18167E-02** at limit **
  20  Prefactor     .10016E-03    1342.7        .18142E-02** at limit **
  21  Prefactor    10000.0        8538.4        .18609E-02** at limit **
  22  norm          5435.1        1916.7        .40153E-04   -.64908E-04
  23  norm         10000.0        8026.1        .21415E-02** at limit **
  24  Prefactor    10000.0        1236.3        .21421E-02** at limit **
  25  Normalizat    .82417E-01    .80310        .79483E-02   -.15359E-03
  26  Prefactor     1.0060        .30317        .16713E-03   -.46186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5751
  Prefactor  = 0.000103002
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 1.15648
  Prefactor  = 0.0001
  Prefactor  = 5.52241
  Prefactor  = 36.126
  norm       = 2.48289
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100395
  Prefactor  = 0.000100157
  Prefactor  = 10000
  norm       = 5435.09
  norm       = 10000
  Prefactor  = 10000
  Normalizat = 0.0824175
  Prefactor  = 1.006
 **********
 **   18 **HESSE 
 **********

 FCN=   1447.179     FROM HESSE     STATUS=OK           430 CALLS     4098 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.575        23.731        .18598E-04   -1.4846    
   2  Prefactor     .10300E-03    223.16        .78838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    93.825        .81427E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.4444        .89065E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1565        54.763        .18056E-04   -1.5493    
   6  Prefactor     .10000E-03    101.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5224        11.351        .68377E-05   -1.5238    
   8  Prefactor     36.126        79.598        .13316E-04   -1.4505    
   9  norm          2.4829        1.7232        .80030E-05   -1.5393    
  10  Prefactor     .10003E-03    148.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    124.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.678        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.4840        .17395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    51.547        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.203        .32575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    16.357        .30062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    39.134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        7899.4        .39354E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10040E-03    9999.9        .36334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10016E-03    1342.7        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        8537.0        .37218E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5435.1        1900.4        .80306E-05    .87129E-01
  23  norm         10000.0        8026.1        .42831E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor    10000.0        1236.3        .42843E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .82417E-01    .68169        .31793E-03   -1.4003    
  26  Prefactor     1.0060        .28263        .33426E-04   -.92530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61153e-08
Minuit parameter uncertainties:
  1  23.7435
  2  0.0519613
  3  0.00124173
  4  4.27291e-06
  5  15.9312
  6  0.000115744
  7  11.3557
  8  79.8333
  9  1.72324
  10  0.00418783
  11  0.000377386
  12  1.44433e-06
  13  1.81508e-05
  14  5.85693e-05
  15  1.05978e-05
  16  9.91113e-06
  17  4.15203e-05
  18  0.0530515
  19  0.198105
  20  0.029701
  21  0.0928549
  22  1949.77
  23  0.0137177
  24  0.00351452
  25  0.451315
  26  0.283044
Done.

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

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.815e-05  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  2.432e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.006e+00  2.830e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  8.242e-02  4.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 126.236 39.257
Photon Flux Upper Limit: 3.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.84e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/118832/likelihoodResults_603072001_603676801_4FGL_J0824.9+3915_weekly_bin602.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1447.17937941
delta logL = -0.000681634649936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1447.17869776
delta logL = 2.34394974541e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4198       1.0000          .0000       10.000    
     3 'Normalizat'    .82406E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0060       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+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.

 FCN=   1447.179     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      256 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.490        .87714E-02** at limit **
   2  Index         1.8862        5.2121        .50000        .15904E-06
   3  Normalizat    .82434E-01    .26090E-01    .79457E-02    .11666E-04
   4  Prefactor     1.0060        .17810E-01    .16713E-03    .37616E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88621
  Normalizat = 0.0824336
  Prefactor  = 1.00599
 **********
 **   18 **HESSE 
 **********

 FCN=   1447.179     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      287 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    457.45        .95716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8862        7.8583        .50000       -.67226    
   3  Normalizat    .82434E-01    .80604E-01    .31783E-03   -1.4003    
   4  Prefactor     1.0060        .55086E-01    .33426E-04   -.92530    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06508e-09
Minuit parameter uncertainties:
  1  0.000290183
  2  1339.14
  3  0.0807257
  4  0.0550886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/118832': 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): 102
logL (Free Index) = 1447.1786962
delta logL = 1.58453553922e-06

Extracting fit parameters...

4FGL J0824.9+3915
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.902e-04  1.000e-04  1.000e+04 ( 1.000e-12)
315        Index:  1.886e+00  1.339e+03  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  8.513e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.006e+00  5.509e-02  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  8.243e-02  8.073e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 126.236 39.257

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/118832/cmap_HighResolution_603072001_603676801_4FGL_J0824.9+3915_weekly_bin602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-02', job_status='DONE', photon_flux_upper_limit='3.66e-07', time_completed='2021-07-13 18:47:41.568189', job_id='118832', GAL2='1.01', fit_tolerance='1e-08', EG2='0.08', EG='0.08', time_epoch_completed='1626227261.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.58e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='602' AND source_name='4FGL J0824.9+3915' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 13 18:47:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 118832: <4FGL_J0824.9+3915_weekly_bin602> in cluster <slac> Done

Job <4FGL_J0824.9+3915_weekly_bin602> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jul 13 18:36:05 2021
Job was executed on host(s) <bullet0028>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 13 18:37:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 13 18:37:13 2021
Terminated at Tue Jul 13 18:47:42 2021
Results reported at Tue Jul 13 18:47:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0824.9+3915_weekly_bin602 126.236 39.2574 603072001 603676801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0824.9+3915 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   481.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             254.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            697 sec.

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

