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


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin339
RA = 24.4069, Dec = -24.5163
tmin = 444009601, tmax = 444614401
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='208344', job_status='RUN', time_executed='2021-07-03 23:40:11.281874', time_epoch_executed='1625380811.28' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208344

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208344/ft1_4FGL_J0137.6-2430_weekly_bin339.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208344/ft2_4FGL_J0137.6-2430_weekly_bin339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208344/ft1_4FGL_J0137.6-2430_weekly_bin339.fits outfile=/scratch/kocevski/208344/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin339.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=444009601.0 tmax=444614401.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.90
user 8.49
sys 0.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/208344/ft2_4FGL_J0137.6-2430_weekly_bin339.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/208344/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin339.fits evtable="EVENTS" outfile="/scratch/kocevski/208344/ft1_filtered_4FGL_J0137.6-2430_weekly_bin339.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.31
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208344/ft1_filtered_4FGL_J0137.6-2430_weekly_bin339.fits" evtable="EVENTS" scfile=/scratch/kocevski/208344/ft2_4FGL_J0137.6-2430_weekly_bin339.fits sctable="SC_DATA" outfile=/scratch/kocevski/208344/ltcube_444009601_444614401_4FGL_J0137.6-2430_weekly_bin339.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/208344/ft2_4FGL_J0137.6-2430_weekly_bin339.fits
.....................!
real 21.47
user 21.08
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208344/ft1_filtered_4FGL_J0137.6-2430_weekly_bin339.fits evtable="EVENTS" scfile=/scratch/kocevski/208344/ft2_4FGL_J0137.6-2430_weekly_bin339.fits sctable="SC_DATA" expcube=/scratch/kocevski/208344/ltcube_444009601_444614401_4FGL_J0137.6-2430_weekly_bin339.fits outfile=/scratch/kocevski/208344/expmap_444009601_444614401_4FGL_J0137.6-2430_weekly_bin339.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/208344/ltcube_444009601_444614401_4FGL_J0137.6-2430_weekly_bin339.fits
.....................!
real 155.49
user 150.23
sys 4.52

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/208344/ft1_filtered_4FGL_J0137.6-2430_weekly_bin339.fits scfile=/scratch/kocevski/208344/ft2_4FGL_J0137.6-2430_weekly_bin339.fits outfile=/scratch/kocevski/208344/cmap_444009601_444614401_4FGL_J0137.6-2430_weekly_bin339.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.81
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208344/ft1_filtered_4FGL_J0137.6-2430_weekly_bin339.fits scfile=/scratch/kocevski/208344/ft2_4FGL_J0137.6-2430_weekly_bin339.fits outfile=/scratch/kocevski/208344/cmap_HighResolution_444009601_444614401_4FGL_J0137.6-2430_weekly_bin339.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.67
user 0.33
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208344/ft1_filtered_4FGL_J0137.6-2430_weekly_bin339.fits evtable="EVENTS" scfile=/scratch/kocevski/208344/ft2_4FGL_J0137.6-2430_weekly_bin339.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208344/Model_4FGL_J0137.6-2430_weekly_bin339.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/208344/ft1_filtered_4FGL_J0137.6-2430_weekly_bin339.fits.....................!
real 68.11
user 65.62
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/208344/ft1_filtered_4FGL_J0137.6-2430_weekly_bin339.fits', '/scratch/kocevski/208344/ft2_4FGL_J0137.6-2430_weekly_bin339.fits', expMap='/scratch/kocevski/208344/expmap_444009601_444614401_4FGL_J0137.6-2430_weekly_bin339.fits', expCube='/scratch/kocevski/208344/ltcube_444009601_444614401_4FGL_J0137.6-2430_weekly_bin339.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/208344/Model_4FGL_J0137.6-2430_weekly_bin339.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/208344/ft1_filtered_4FGL_J0137.6-2430_weekly_bin339.fits
Spacecraft file(s): /scratch/kocevski/208344/ft2_4FGL_J0137.6-2430_weekly_bin339.fits
Exposure map: /scratch/kocevski/208344/expmap_444009601_444614401_4FGL_J0137.6-2430_weekly_bin339.fits
Exposure cube: /scratch/kocevski/208344/ltcube_444009601_444614401_4FGL_J0137.6-2430_weekly_bin339.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/208344/Model_4FGL_J0137.6-2430_weekly_bin339.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) = 10875.9745503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11071E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.5409       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9777       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9011       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.956       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9474       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8962       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8464       1.0000         .10000E-03   10000.    
    11 'norm      '    .20213E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.9689       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.6656       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2935       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2577       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1260       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .68502       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10875.19     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     1968 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.180       -.21928E-05** at limit **
   2  norm          .10000E-03    3.6938        .23500E-06** at limit **
   3  norm          8.5376        3.6872        .52970E-06   -.65619E-03
   4  Prefactor     4.9778        4.2675       -.23169E-05    .51982E-04
   5  Prefactor     3.8983        5.6040        .47487E-05   -.10160E-02
   6  Prefactor     10.954        7.6773        .91851E-06   -.19306E-03
   7  norm          1.9474        1.9246       -.75551E-07   -.53583E-03
   8  norm          1.8963        1.0928       -.41805E-07   -.53555E-04
   9  Prefactor     .10004E-03    4.3468        .66905E-06** at limit **
  10  Prefactor     1.8477        2.9081       -.15238E-05   -.11857E-02
  11  norm          .10000E-03    .34750       -.34743E-07** at limit **
  12  norm          2.9692        1.5789        .49044E-07   -.43311E-03
  13  Prefactor     .10000E-03    1.3088       -.21708E-07** at limit **
  14  norm          3.6664        2.3997       -.19469E-06   -.64202E-03
  15  Prefactor     .10000E-03    18.380       -.31391E-05** at limit **
  16  norm          1.2933        1.4392       -.25122E-06   -.13974E-02
  17  Prefactor     .10000E-03    2.4564       -.48637E-07** at limit **
  18  Prefactor     2.2726        3.4087       -.11475E-05   -.87468E-03
  19  Prefactor     .10000E-03    1.3190        .28736E-07** at limit **
  20  Normalizat    1.1259        .11769        .67254E-06   -.38809E-04
  21  Prefactor     .68507        .12821       -.36568E-06    .38929E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.53763
  Prefactor  = 4.97776
  Prefactor  = 3.89829
  Prefactor  = 10.954
  norm       = 1.94745
  norm       = 1.8963
  Prefactor  = 0.000100036
  Prefactor  = 1.84767
  norm       = 0.0001
  norm       = 2.96918
  Prefactor  = 0.0001
  norm       = 3.66641
  Prefactor  = 0.0001
  norm       = 1.29334
  Prefactor  = 0.0001
  Prefactor  = 2.27261
  Prefactor  = 0.0001
  Normalizat = 1.12595
  Prefactor  = 0.685066
 **********
 **   18 **HESSE 
 **********

 FCN=   10875.19     FROM HESSE     STATUS=OK           333 CALLS     2301 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    66.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.7274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.5376        3.6682        .12640E-03   -1.5123    
   4  Prefactor     4.9778        4.2992        .18025E-03   -1.5262    
   5  Prefactor     3.8983        5.3532        .20427E-03   -1.5313    
   6  Prefactor     10.954        7.6780        .12104E-03   -1.5046    
   7  norm          1.9474        1.8909        .10911E-03   -1.5429    
   8  norm          1.8963        1.0917        .79888E-04   -1.5433    
   9  Prefactor     .10004E-03    20.522        .41151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8477        2.9534        .20393E-03   -1.5436    
  11  norm          .10000E-03    .32418        .20201E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9692        1.5643        .88855E-04   -1.5363    
  13  Prefactor     .10000E-03    1.3237        .11648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6664        2.4037        .12166E-03   -1.5325    
  15  Prefactor     .10000E-03    18.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2933        1.4421        .12583E-03   -1.5481    
  17  Prefactor     .10000E-03    2.4653        .15958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2726        3.4936        .23102E-03   -1.5406    
  19  Prefactor     .10000E-03    1.3289        .11694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1259        .13822        .20150E-03   -.88923    
  21  Prefactor     .68507        .14922        .28719E-03   -1.0412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06191e-09
Minuit parameter uncertainties:
  1  0.000264648
  2  3.57965e-06
  3  3.66833
  4  4.29949
  5  5.35389
  6  7.67872
  7  1.89092
  8  1.09174
  9  0.00171821
  10  2.95362
  11  2.42094e-05
  12  1.56435
  13  1.10606e-06
  14  2.40372
  15  0.000184041
  16  1.44219
  17  5.48747e-06
  18  3.49396
  19  1.03324e-06
  20  0.13826
  21  0.149311
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  2.969e+00  1.564e+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

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  6.851e-01  1.493e-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.126e+00  1.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.51
Ra Dec: 24.407 -24.516
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.72e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 7.00e-06

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) = 10874.9856858
delta logL = 0.205687619547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10874.953753
delta logL = 0.23762037197

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5208       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67120       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=   10874.95     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5208        1.4067        .64327E-02    .30507E-03
   2  alpha         1.9999        .38933        .42243       -.56130E-04
   3  Normalizat    1.1450        .11275        .36409E-01   -.73507E-04
   4  Prefactor     .67120        .12817        .65518E-01   -.94749E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.52077
  alpha      = 1.99987
  Normalizat = 1.14495
  Prefactor  = 0.671198
 **********
 **   18 **HESSE 
 **********

 FCN=   10874.95     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5208        1.7245        .88532E-04   -1.5390    
   2  alpha         1.9999        .57614        .16084E-01   -.20141    
   3  Normalizat    1.1450        .13258        .20011E-03   -.88321    
   4  Prefactor     .67120        .14893        .28989E-03   -1.0467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8877e-09
Minuit parameter uncertainties:
  1  1.72458
  2  0.581594
  3  0.132623
  4  0.14902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208344': 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) = 10874.9537529
delta logL = 0.237620462332

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  2.521e+00  1.725e+00  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  2.000e+00  5.816e-01  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:  6.712e-01  1.490e-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.145e+00  1.326e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.99
Ra Dec: 24.407 -24.516
Photon Index (Free Index): 2.00 +/- 0.58
Photon Flux (Free Index): 3.25e-08 +/- 2.73e-08
Energy Flux (Free Index): 1.39e-05 +/- 7.85e-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/208344/cmap_HighResolution_444009601_444614401_4FGL_J0137.6-2430_weekly_bin339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.72e-08', energy_flux2='1.39e-05', photon_flux_error='2.49e-08', dlogl='2.38e-01', energy_flux='1.33e-05', photon_flux2='3.25e-08', job_status='DONE', time_completed='2021-07-03 23:51:16.999621', photon_index_error2='0.58', photon_index2='2.00', ts='7.51', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='7.85e-06', EG='1.13', time_epoch_completed='1625381477.0', return_code='0', job_id='208344', GAL2='0.67', EG2='1.14', return_code2='0', energy_flux_error='7.00e-06', photon_flux_error2='2.73e-08', ts2='7.99', photon_index='2.41' WHERE bin_id='339' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:51:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0178>
Subject: Job 208344: <4FGL_J0137.6-2430_weekly_bin339> in cluster <slac> Done

Job <4FGL_J0137.6-2430_weekly_bin339> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Jul  3 23:36:04 2021
Job was executed on host(s) <bullet0178>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 23:36:05 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:05 2021
Terminated at Sat Jul  3 23:51:18 2021
Results reported at Sat Jul  3 23:51:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin339 24.4069 -24.5163 444009601 444614401 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 :                                   603.03 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             236.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

