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


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin297
RA = 24.4069, Dec = -24.5163
tmin = 418608001, tmax = 419212801
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='208291', job_status='RUN', time_executed='2021-07-03 23:37:56.161219', time_epoch_executed='1625380676.16' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208291

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208291/ft1_4FGL_J0137.6-2430_weekly_bin297.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208291/ft2_4FGL_J0137.6-2430_weekly_bin297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208291/ft1_4FGL_J0137.6-2430_weekly_bin297.fits outfile=/scratch/kocevski/208291/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin297.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=418608001.0 tmax=419212801.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 12.14
user 11.28
sys 0.37

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/208291/ft2_4FGL_J0137.6-2430_weekly_bin297.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/208291/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin297.fits evtable="EVENTS" outfile="/scratch/kocevski/208291/ft1_filtered_4FGL_J0137.6-2430_weekly_bin297.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.65
user 0.38
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208291/ft1_filtered_4FGL_J0137.6-2430_weekly_bin297.fits" evtable="EVENTS" scfile=/scratch/kocevski/208291/ft2_4FGL_J0137.6-2430_weekly_bin297.fits sctable="SC_DATA" outfile=/scratch/kocevski/208291/ltcube_418608001_419212801_4FGL_J0137.6-2430_weekly_bin297.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/208291/ft2_4FGL_J0137.6-2430_weekly_bin297.fits
.....................!
real 27.02
user 26.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208291/ft1_filtered_4FGL_J0137.6-2430_weekly_bin297.fits evtable="EVENTS" scfile=/scratch/kocevski/208291/ft2_4FGL_J0137.6-2430_weekly_bin297.fits sctable="SC_DATA" expcube=/scratch/kocevski/208291/ltcube_418608001_419212801_4FGL_J0137.6-2430_weekly_bin297.fits outfile=/scratch/kocevski/208291/expmap_418608001_419212801_4FGL_J0137.6-2430_weekly_bin297.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/208291/ltcube_418608001_419212801_4FGL_J0137.6-2430_weekly_bin297.fits
.....................!
real 191.01
user 185.66
sys 4.78

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/208291/ft1_filtered_4FGL_J0137.6-2430_weekly_bin297.fits scfile=/scratch/kocevski/208291/ft2_4FGL_J0137.6-2430_weekly_bin297.fits outfile=/scratch/kocevski/208291/cmap_418608001_419212801_4FGL_J0137.6-2430_weekly_bin297.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.72
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208291/ft1_filtered_4FGL_J0137.6-2430_weekly_bin297.fits scfile=/scratch/kocevski/208291/ft2_4FGL_J0137.6-2430_weekly_bin297.fits outfile=/scratch/kocevski/208291/cmap_HighResolution_418608001_419212801_4FGL_J0137.6-2430_weekly_bin297.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.78
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208291/ft1_filtered_4FGL_J0137.6-2430_weekly_bin297.fits evtable="EVENTS" scfile=/scratch/kocevski/208291/ft2_4FGL_J0137.6-2430_weekly_bin297.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208291/Model_4FGL_J0137.6-2430_weekly_bin297.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/208291/ft1_filtered_4FGL_J0137.6-2430_weekly_bin297.fits.....................!
real 63.89
user 61.40
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.321       1.0000         .10000E-03   10000.    
     2 'norm      '    .54245E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .12420E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .78412       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.141       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50531       1.0000         .10000E-03   10000.    
     7 'norm      '    .11015E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20628E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9057       1.0000         .10000E-03   10000.    
    11 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1226       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14550E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12333E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.9332       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.340       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .31443E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .73823       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0830       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=   8026.143     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2376 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.463        58.902        .70494E-06    .26679E-04
   2  norm          .10000E-03    12.399       -.31395E-05** at limit **
   3  norm          .10000E-03    2.3785       -.69571E-06** at limit **
   4  Prefactor     .77814        3.1613        .89764E-06   -.14343E-03
   5  Prefactor     11.188        9.1694       -.36775E-06   -.56712E-04
   6  Prefactor     .49804        4.1466        .53231E-06   -.24596E-03
   7  norm          .10001E-03    .72069       -.30466E-06** at limit **
   8  norm          .10000E-03    .79102       -.37032E-07** at limit **
   9  Prefactor     .10000E-03    3.8111        .11190E-05** at limit **
  10  Prefactor     3.9049        2.8610        .14593E-06    .21377E-03
  11  norm          .10000E-03    .35565       -.30492E-08** at limit **
  12  norm          1.1226        1.4028        .71394E-07   -.10940E-03
  13  Prefactor     .10000E-03    2.4463       -.16211E-06** at limit **
  14  norm          .10000E-03    .77316        .15244E-07** at limit **
  15  Prefactor     .10000E-03    10.481        .10686E-05** at limit **
  16  norm          1.9334        1.4843        .45418E-07   -.35673E-04
  17  Prefactor     11.293        7.6139       -.96384E-06   -.27421E-03
  18  Prefactor     .10000E-03    1.2272       -.32738E-07** at limit **
  19  Prefactor     .10000E-03    1.6784       -.10072E-06** at limit **
  20  Normalizat    .73827        .12503        .19669E-06    .18876E-03
  21  Prefactor     1.0831        .14658       -.10850E-06    .21267E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.4629
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.778139
  Prefactor  = 11.1879
  Prefactor  = 0.498043
  norm       = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.90489
  norm       = 0.0001
  norm       = 1.12257
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.93341
  Prefactor  = 11.2926
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 0.738271
  Prefactor  = 1.08308
 **********
 **   18 **HESSE 
 **********

 FCN=   8026.143     FROM HESSE     STATUS=OK           327 CALLS     2703 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.463        58.926        .86745E-04   -1.4781    
   2  norm          .10000E-03    12.881        .42233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.5283        .25731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .77814        3.2543        .30695E-03   -1.5532    
   5  Prefactor     11.188        9.1068        .12003E-03   -1.5039    
   6  Prefactor     .49804        6.4405        .42737E-03   -1.5567    
   7  norm          .10001E-03    6.4367        .13309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .81429        .15545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.8494        .17135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9049        2.8209        .12083E-03   -1.5313    
  11  norm          .10000E-03    .56195        .10334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1226        1.3715        .11118E-03   -1.5496    
  13  Prefactor     .10000E-03    5.1325        .27031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.6554        .15230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.9334        1.4743        .90446E-04   -1.5430    
  17  Prefactor     11.293        7.7363        .11897E-03   -1.5036    
  18  Prefactor     .10000E-03    1.2403        .96840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.742        .22207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .73827        .14535        .21842E-03   -1.0240    
  21  Prefactor     1.0831        .17290        .22446E-03   -.90009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82451e-09
Minuit parameter uncertainties:
  1  59.0863
  2  0.000122233
  3  0.000126341
  4  3.18273
  5  9.10796
  6  3.58208
  7  0.000394139
  8  3.31765e-07
  9  3.06071e-05
  10  2.82103
  11  1.20928e-06
  12  1.37156
  13  2.74934e-05
  14  9.30546e-06
  15  5.47405e-05
  16  1.47436
  17  7.73703
  18  1.69547e-06
  19  0.000421161
  20  0.145428
  21  0.172985
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.123e+00  1.372e+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:  1.083e+00  1.730e-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:  7.383e-01  1.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/208291/likelihoodResults_418608001_419212801_4FGL_J0137.6-2430_weekly_bin297.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) = 8025.99413593
delta logL = 0.148696578159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8025.99012376
delta logL = 0.152708744966

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8025.990     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      224 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0862        1.3324        .92241E-04   -.71473E-03
   2  alpha         3.0272        1.2131        .16947E-02   -.18837E-04
   3  Normalizat    .72311        .14515        .22051E-03    .55681E-04
   4  Prefactor     1.0959        .17490        .22331E-03    .55590E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.08621
  alpha      = 3.02724
  Normalizat = 0.723113
  Prefactor  = 1.09586
 **********
 **   18 **HESSE 
 **********

 FCN=   8025.990     FROM HESSE     STATUS=OK            23 CALLS      247 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0862        1.3236        .36896E-05   -1.5500    
   2  alpha         3.0272        1.2058        .67789E-04    .21249    
   3  Normalizat    .72311        .14532        .88204E-05   -1.0299    
   4  Prefactor     1.0959        .17509        .44663E-04   -.89599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19017e-10
Minuit parameter uncertainties:
  1  1.3236
  2  1.26103
  3  0.1454
  4  0.175183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208291': 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) = 8025.99012332
delta logL = 0.152709189899

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.086e+00  1.324e+00  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  3.027e+00  1.261e+00  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:  1.096e+00  1.752e-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:  7.231e-01  1.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 24.407 -24.516
Photon Index (Free Index): 3.03 +/- 1.26
Photon Flux (Free Index): 2.72e-08 +/- 3.02e-08
Energy Flux (Free Index): 5.36e-06 +/- 5.60e-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/208291/cmap_HighResolution_418608001_419212801_4FGL_J0137.6-2430_weekly_bin297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.82e-05', comment='SUCCESS', energy_flux2='5.36e-06', dlogl='1.53e-01', photon_flux2='2.72e-08', job_status='DONE', time_completed='2021-07-03 23:51:29.770556', photon_index_error2='1.26', photon_index2='3.03', ts='0.84', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='6.48e-08', energy_flux_error2='5.60e-06', EG='0.74', time_epoch_completed='1625381489.77', return_code='0', job_id='208291', GAL2='1.10', EG2='0.72', return_code2='0', photon_flux_error2='3.02e-08', ts2='1.17', photon_index='2.41' WHERE bin_id='297' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:51:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 208291: <4FGL_J0137.6-2430_weekly_bin297> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin297 24.4069 -24.5163 418608001 419212801 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 :                                   746.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

