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


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin332
RA = 24.4069, Dec = -24.5163
tmin = 439776001, tmax = 440380801
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='208333', job_status='RUN', time_executed='2021-07-03 23:40:20.109293', time_epoch_executed='1625380820.11' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208333

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

Retrieving the FT1 file...

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

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

Retrieving 105 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208333/ft1_4FGL_J0137.6-2430_weekly_bin332.fits


Retrieving the FT1 file...

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

Retrieving 105 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208333/ft2_4FGL_J0137.6-2430_weekly_bin332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208333/ft1_4FGL_J0137.6-2430_weekly_bin332.fits outfile=/scratch/kocevski/208333/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin332.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=439776001.0 tmax=440380801.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 7.95
user 7.58
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/208333/ft2_4FGL_J0137.6-2430_weekly_bin332.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/208333/ft2_4FGL_J0137.6-2430_weekly_bin332.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/208333/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin332.fits evtable="EVENTS" outfile="/scratch/kocevski/208333/ft1_filtered_4FGL_J0137.6-2430_weekly_bin332.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.56
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208333/ft1_filtered_4FGL_J0137.6-2430_weekly_bin332.fits" evtable="EVENTS" scfile=/scratch/kocevski/208333/ft2_4FGL_J0137.6-2430_weekly_bin332.fits sctable="SC_DATA" outfile=/scratch/kocevski/208333/ltcube_439776001_440380801_4FGL_J0137.6-2430_weekly_bin332.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/208333/ft2_4FGL_J0137.6-2430_weekly_bin332.fits
.....................!
real 26.36
user 25.88
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208333/ft1_filtered_4FGL_J0137.6-2430_weekly_bin332.fits evtable="EVENTS" scfile=/scratch/kocevski/208333/ft2_4FGL_J0137.6-2430_weekly_bin332.fits sctable="SC_DATA" expcube=/scratch/kocevski/208333/ltcube_439776001_440380801_4FGL_J0137.6-2430_weekly_bin332.fits outfile=/scratch/kocevski/208333/expmap_439776001_440380801_4FGL_J0137.6-2430_weekly_bin332.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/208333/ltcube_439776001_440380801_4FGL_J0137.6-2430_weekly_bin332.fits
.....................!
real 193.74
user 187.63
sys 5.39

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

Setting source of interest to:
4FGL J0137.6-2430 @ 24.4069 -24.5163

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/208333/ft1_filtered_4FGL_J0137.6-2430_weekly_bin332.fits scfile=/scratch/kocevski/208333/ft2_4FGL_J0137.6-2430_weekly_bin332.fits outfile=/scratch/kocevski/208333/cmap_439776001_440380801_4FGL_J0137.6-2430_weekly_bin332.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=24.4069 yref=-24.5163 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.60
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208333/ft1_filtered_4FGL_J0137.6-2430_weekly_bin332.fits scfile=/scratch/kocevski/208333/ft2_4FGL_J0137.6-2430_weekly_bin332.fits outfile=/scratch/kocevski/208333/cmap_HighResolution_439776001_440380801_4FGL_J0137.6-2430_weekly_bin332.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=24.4069 yref=-24.5163 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.59
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208333/ft1_filtered_4FGL_J0137.6-2430_weekly_bin332.fits evtable="EVENTS" scfile=/scratch/kocevski/208333/ft2_4FGL_J0137.6-2430_weekly_bin332.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208333/Model_4FGL_J0137.6-2430_weekly_bin332.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/208333/ft1_filtered_4FGL_J0137.6-2430_weekly_bin332.fits.....................!
real 69.69
user 68.15
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/208333/ft1_filtered_4FGL_J0137.6-2430_weekly_bin332.fits', '/scratch/kocevski/208333/ft2_4FGL_J0137.6-2430_weekly_bin332.fits', expMap='/scratch/kocevski/208333/expmap_439776001_440380801_4FGL_J0137.6-2430_weekly_bin332.fits', expCube='/scratch/kocevski/208333/ltcube_439776001_440380801_4FGL_J0137.6-2430_weekly_bin332.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/208333/Model_4FGL_J0137.6-2430_weekly_bin332.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0137.6-2430'

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.902e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  2.406e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
276         beta:  1.159e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  3.788e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/208333/ft1_filtered_4FGL_J0137.6-2430_weekly_bin332.fits
Spacecraft file(s): /scratch/kocevski/208333/ft2_4FGL_J0137.6-2430_weekly_bin332.fits
Exposure map: /scratch/kocevski/208333/expmap_439776001_440380801_4FGL_J0137.6-2430_weekly_bin332.fits
Exposure cube: /scratch/kocevski/208333/ltcube_439776001_440380801_4FGL_J0137.6-2430_weekly_bin332.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/208333/Model_4FGL_J0137.6-2430_weekly_bin332.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8566.52719853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4951       1.0000         .10000E-03   10000.    
     2 'norm      '    20.708       1.0000         .10000E-03   10000.    
     3 'norm      '    7.5270       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.338       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6636       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13097E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11768E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .42049       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.241       1.0000         .10000E-03   10000.    
    16 'norm      '    4.2793       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2960       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11642E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.381       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.6914       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .33109       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8565.182     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1309 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    373.39        .66553E-05** at limit **
   2  norm          21.141        13.131       -.22758E-05    .80886E-04
   3  norm          7.5273        3.9059        .13391E-05   -.46713E-03
   4  Prefactor     .10000E-03    4.0547       -.25376E-06** at limit **
   5  Prefactor     .10000E-03    2.3528       -.27102E-06** at limit **
   6  Prefactor     .10000E-03    7.4380       -.19656E-05** at limit **
   7  norm          11.338        3.0052       -.22187E-06    .25402E-03
   8  norm          2.6629        1.4958        .10019E-05   -.30660E-03
   9  Prefactor     .10000E-03    133.81        .23206E-04** at limit **
  10  Prefactor     .10000E-03    1.8679       -.11017E-05** at limit **
  11  norm          .10000E-03    .40977       -.35035E-06** at limit **
  12  norm          .10000E-03    1.4648       -.63663E-06** at limit **
  13  Prefactor     .10000E-03    1.1910        .11471E-05** at limit **
  14  norm          .41483        6.9379        .11379E-04   -.25031E-03
  15  Prefactor     10.912        34.506        .21322E-04   -.33762E-04
  16  norm          4.2754        1.9950        .71583E-07    .12960E-03
  17  Prefactor     5.2526        5.6923       -.14707E-05    .87512E-04
  18  Prefactor     .10000E-03    1.7544        .10492E-05** at limit **
  19  Prefactor     12.353        7.6392        .13291E-06   -.27638E-04
  20  Normalizat    1.6929        .18451       -.50980E-05   -.14913E-03
  21  Prefactor     .33049        .18912        .77526E-05   -.91832E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 21.1406
  norm       = 7.52726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3382
  norm       = 2.66292
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.414835
  Prefactor  = 10.9118
  norm       = 4.27537
  Prefactor  = 5.25259
  Prefactor  = 0.0001
  Prefactor  = 12.3535
  Normalizat = 1.69294
  Prefactor  = 0.330492
 **********
 **   18 **HESSE 
 **********

 FCN=   8565.182     FROM HESSE     STATUS=OK           373 CALLS     1682 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    370.19        .39369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          21.141        13.145        .22005E-02   -1.4788    
   3  norm          7.5273        3.9017        .36544E-02   -1.5159    
   4  Prefactor     .10000E-03    3.9871        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.3554        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.4373        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.338        3.0141        .29744E-02   -1.5034    
   8  norm          2.6629        1.4938        .62434E-02   -1.5382    
   9  Prefactor     .10000E-03    6.2613        .10287       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8546        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .39876        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.4022        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1892        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .41483        1.5707        .64573E-01   -1.5579    
  15  Prefactor     10.912        34.495        .29873E-02   -1.5047    
  16  norm          4.2754        1.9951        .48690E-02   -1.5294    
  17  Prefactor     5.2526        5.6907        .43662E-02   -1.5250    
  18  Prefactor     .10000E-03    1.7389        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.353        7.6412        .28461E-02   -1.5005    
  20  Normalizat    1.6929        .17435        .45752E-01   -.72492    
  21  Prefactor     .33049        .18270        .10206       -1.2052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73107e-09
Minuit parameter uncertainties:
  1  0.00228525
  2  13.1466
  3  3.90183
  4  1.11611e-05
  5  2.07564e-06
  6  3.26748e-06
  7  3.01413
  8  1.49386
  9  0.000295996
  10  3.2646e-06
  11  4.93826e-07
  12  4.67953e-07
  13  6.40505e-06
  14  1.5709
  15  34.5583
  16  1.99511
  17  5.69127
  18  8.86043e-06
  19  7.64184
  20  0.174417
  21  0.183021
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.000e-04  4.680e-07  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  2.406e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
276         beta:  1.159e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  3.788e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  3.305e-01  1.830e-01  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.693e+00  1.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 24.407 -24.516
Photon Flux Upper Limit: 6.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/208333/likelihoodResults_439776001_440380801_4FGL_J0137.6-2430_weekly_bin332.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) = 8565.18550111
delta logL = -0.00325143018563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8564.38092982
delta logL = 0.801319857621

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8564.381     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      303 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40783        13.204        .10708E-01    .71411E-03
   2  alpha         5.0000        2.6374        .46357    ** at limit **
   3  Normalizat    1.6100        .12177        .46646E-01   -.16161E-03
   4  Prefactor     .39040        .84144E-01    .94340E-01    .12961E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.407829
  alpha      = 5
  Normalizat = 1.60997
  Prefactor  = 0.390396
 **********
 **   18 **HESSE 
 **********

 FCN=   8564.381     FROM HESSE     STATUS=OK            33 CALLS      336 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40783        .36234        .48811E-03   -1.5580    
   2  alpha         5.0000        3.2877        .88765E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.6100        .18877        .20618E-03   -.74733    
   4  Prefactor     .39040        .19520        .41815E-03   -1.1730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75412e-10
Minuit parameter uncertainties:
  1  0.362347
  2  6.20069e-07
  3  0.188856
  4  0.195535
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208333': 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) = 8564.38092687
delta logL = 0.801322803789

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  4.078e-01  3.623e-01  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  5.000e+00  6.201e-07  0.000e+00  5.000e+00 ( 1.000e+00)
276         beta:  1.159e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  3.788e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  3.904e-01  1.955e-01  0.000e+00  1.000e+01 ( 1.000e+00)
523        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
524        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
521   Normalization:  1.610e+00  1.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.73
Ra Dec: 24.407 -24.516
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.94e-08 +/- 6.13e-08
Energy Flux (Free Index): 9.36e-06 +/- 8.29e-06

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/208333/cmap_HighResolution_439776001_440380801_4FGL_J0137.6-2430_weekly_bin332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-05', comment='SUCCESS', energy_flux2='9.36e-06', dlogl='8.01e-01', photon_flux2='6.94e-08', job_status='DONE', time_completed='2021-07-03 23:52:21.036173', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.33', photon_index_error='0.00', photon_flux_upper_limit='6.27e-08', energy_flux_error2='8.29e-06', EG='1.69', time_epoch_completed='1625381541.04', return_code='0', job_id='208333', GAL2='0.39', EG2='1.61', return_code2='0', photon_flux_error2='6.13e-08', ts2='1.73', photon_index='2.41' WHERE bin_id='332' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:52:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 208333: <4FGL_J0137.6-2430_weekly_bin332> in cluster <slac> Done

Job <4FGL_J0137.6-2430_weekly_bin332> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Jul  3 23:36:03 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 23:36:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 23:36:04 2021
Terminated at Sat Jul  3 23:52:21 2021
Results reported at Sat Jul  3 23:52:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin332 24.4069 -24.5163 439776001 440380801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0137.6-2430 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   662.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             224.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            978 sec.

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

