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


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin112
RA = 24.4069, Dec = -24.5163
tmin = 306720001, tmax = 307324801
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='208042', job_status='RUN', time_executed='2021-07-03 23:37:19.187779', time_epoch_executed='1625380639.19' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='112'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208042

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208042/ft1_4FGL_J0137.6-2430_weekly_bin112.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208042/ft2_4FGL_J0137.6-2430_weekly_bin112.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208042/ft1_4FGL_J0137.6-2430_weekly_bin112.fits outfile=/scratch/kocevski/208042/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin112.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=306720001.0 tmax=307324801.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 22.45
user 21.54
sys 0.63

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208042/ft1_filtered_4FGL_J0137.6-2430_weekly_bin112.fits" evtable="EVENTS" scfile=/scratch/kocevski/208042/ft2_4FGL_J0137.6-2430_weekly_bin112.fits sctable="SC_DATA" outfile=/scratch/kocevski/208042/ltcube_306720001_307324801_4FGL_J0137.6-2430_weekly_bin112.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/208042/ft2_4FGL_J0137.6-2430_weekly_bin112.fits
.....................!
real 26.49
user 25.88
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208042/ft1_filtered_4FGL_J0137.6-2430_weekly_bin112.fits evtable="EVENTS" scfile=/scratch/kocevski/208042/ft2_4FGL_J0137.6-2430_weekly_bin112.fits sctable="SC_DATA" expcube=/scratch/kocevski/208042/ltcube_306720001_307324801_4FGL_J0137.6-2430_weekly_bin112.fits outfile=/scratch/kocevski/208042/expmap_306720001_307324801_4FGL_J0137.6-2430_weekly_bin112.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/208042/ltcube_306720001_307324801_4FGL_J0137.6-2430_weekly_bin112.fits
.....................!
real 192.19
user 185.99
sys 5.40

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/208042/ft1_filtered_4FGL_J0137.6-2430_weekly_bin112.fits scfile=/scratch/kocevski/208042/ft2_4FGL_J0137.6-2430_weekly_bin112.fits outfile=/scratch/kocevski/208042/cmap_306720001_307324801_4FGL_J0137.6-2430_weekly_bin112.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.73
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208042/ft1_filtered_4FGL_J0137.6-2430_weekly_bin112.fits scfile=/scratch/kocevski/208042/ft2_4FGL_J0137.6-2430_weekly_bin112.fits outfile=/scratch/kocevski/208042/cmap_HighResolution_306720001_307324801_4FGL_J0137.6-2430_weekly_bin112.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.75
user 0.39
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208042/ft1_filtered_4FGL_J0137.6-2430_weekly_bin112.fits evtable="EVENTS" scfile=/scratch/kocevski/208042/ft2_4FGL_J0137.6-2430_weekly_bin112.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208042/Model_4FGL_J0137.6-2430_weekly_bin112.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/208042/ft1_filtered_4FGL_J0137.6-2430_weekly_bin112.fits.....................!
real 72.66
user 68.48
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    86.991       1.0000         .10000E-03   10000.    
     2 'norm      '    6.6466       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5883       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3828       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .31953E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.187       1.0000         .10000E-03   10000.    
     7 'norm      '    5.6395       1.0000         .10000E-03   10000.    
     8 'norm      '    4.2310       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .58359E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0965       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0920       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5023       1.0000         .10000E-03   10000.    
    14 'norm      '    6.2693       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.503       1.0000         .10000E-03   10000.    
    16 'norm      '    .46582       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7093       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5850       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2911       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .57228       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=   8496.913     FROM MIGRAD    STATUS=CONVERGED     89 CALLS     1850 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     87.005        8.1165        .74971E-05   -.94489E-02
   2  norm          6.6434        1.2177       -.12935E-05   -.38906E-03
   3  norm          2.5870        4.0214        .86089E-05    .60243E-03
   4  Prefactor     8.4305        7.5383        .87888E-05    .55625E-02
   5  Prefactor     .10236E-03    8.1197        .17455E-04** at limit **
   6  Prefactor     11.249        12.614       -.82149E-05    .14840E-02
   7  norm          5.6232        3.2358        .10147E-05   -.82199E-03
   8  norm          4.2314        2.3158       -.14033E-06   -.63749E-04
   9  Prefactor     .10001E-03    13.634        .94749E-05** at limit **
  10  Prefactor     9.0979        1.2134        .68786E-06    .33056E-02
  11  norm          .10000E-03    .79510        .56458E-06** at limit **
  12  norm          3.0935        2.0038        .35546E-06   -.16163E-03
  13  Prefactor     2.4993        5.1598       -.49060E-05   -.11140E-03
  14  norm          6.2695        3.1495        .94984E-06    .25203E-03
  15  Prefactor     20.449        27.117       -.50777E-04    .73060E-03
  16  norm          .46527        1.2522        .65346E-06    .87785E-04
  17  Prefactor     .10000E-03    1.5891        .64470E-06** at limit **
  18  Prefactor     3.6934        3.9847        .38748E-06   -.33046E-03
  19  Prefactor     2.5809        1.9426        .18731E-05    .16393E-02
  20  Normalizat    1.2910        .18045       -.41118E-05   -.33579E-04
  21  Prefactor     .57232        .18682        .46515E-05   -.12573E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 87.005
  norm       = 6.64341
  norm       = 2.58701
  Prefactor  = 8.43049
  Prefactor  = 0.000102357
  Prefactor  = 11.2492
  norm       = 5.62317
  norm       = 4.23141
  Prefactor  = 0.000100009
  Prefactor  = 9.09791
  norm       = 0.0001
  norm       = 3.0935
  Prefactor  = 2.49927
  norm       = 6.26947
  Prefactor  = 20.4491
  norm       = 0.465275
  Prefactor  = 0.0001
  Prefactor  = 3.6934
  Prefactor  = 2.5809
  Normalizat = 1.29103
  Prefactor  = 0.572323
 **********
 **   18 **HESSE 
 **********

 FCN=   8496.913     FROM HESSE     STATUS=OK           375 CALLS     2225 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     87.005        89.083        .10769E-02   -1.3840    
   2  norm          6.6434        7.1535        .38912E-02   -1.5192    
   3  norm          2.5870        4.0456        .63410E-02   -1.5386    
   4  Prefactor     8.4305        8.4244        .34615E-02   -1.5127    
   5  Prefactor     .10236E-03    23.136        .10681E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.249        12.625        .29945E-02   -1.5037    
   7  norm          5.6232        3.4059        .42289E-02   -1.5234    
   8  norm          4.2314        2.3203        .48975E-02   -1.5297    
   9  Prefactor     .10001E-03    13.543        .10539E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.0979        5.3343        .33222E-02   -1.5105    
  11  norm          .10000E-03    .38426        .21157E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0935        2.0357        .57660E-02   -1.5356    
  13  Prefactor     2.4993        5.1893        .64586E-02   -1.5392    
  14  norm          6.2695        3.1508        .40080E-02   -1.5207    
  15  Prefactor     20.449        29.156        .22114E-02   -1.4803    
  16  norm          .46527        1.2532        .11130E-01   -1.5572    
  17  Prefactor     .10000E-03    1.5879        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6934        4.5033        .52420E-02   -1.5324    
  19  Prefactor     2.5809        5.3779        .63454E-02   -1.5387    
  20  Normalizat    1.2910        .15362        .47953E-01   -.83835    
  21  Prefactor     .57232        .15892        .75360E-01   -1.0876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47215e-06
Minuit parameter uncertainties:
  1  89.2202
  2  7.1544
  3  4.04604
  4  8.42557
  5  0.0147758
  6  12.6276
  7  3.406
  8  2.32033
  9  0.00067933
  10  5.33457
  11  1.41578e-06
  12  2.03571
  13  5.19027
  14  3.15086
  15  29.1768
  16  1.2533
  17  9.5995e-07
  18  4.50376
  19  5.37891
  20  0.153677
  21  0.159046
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  3.094e+00  2.036e+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:  5.723e-01  1.590e-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.291e+00  1.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.06
Ra Dec: 24.407 -24.516
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.92e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 9.11e-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) = 8496.89797136
delta logL = 0.0149531134775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8496.89734804
delta logL = 0.0155764331648

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1431       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5111       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57622       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=   8496.897     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1431        3.4206        .57163E-02   -.22396E-02
   2  alpha         2.5112        .88547        .41152       -.19599E-04
   3  Normalizat    1.2862        .14523        .48024E-01   -.58841E-04
   4  Prefactor     .57601        .15898        .75137E-01    .25826E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.1431
  alpha      = 2.51115
  Normalizat = 1.28625
  Prefactor  = 0.576008
 **********
 **   18 **HESSE 
 **********

 FCN=   8496.897     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1431        1.9953        .98917E-04   -1.5353    
   2  alpha         2.5112        .59072        .18766E-01    .44606E-02
   3  Normalizat    1.2862        .17309        .21230E-03   -.83978    
   4  Prefactor     .57601        .18640        .33269E-03   -1.0861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.9861e-10
Minuit parameter uncertainties:
  1  1.99534
  2  0.596359
  3  0.173165
  4  0.186595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208042': 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) = 8496.89734734
delta logL = 0.0155771309583

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  3.143e+00  1.995e+00  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  2.511e+00  5.964e-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:  5.760e-01  1.866e-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.286e+00  1.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.11
Ra Dec: 24.407 -24.516
Photon Index (Free Index): 2.51 +/- 0.60
Photon Flux (Free Index): 5.34e-08 +/- 4.05e-08
Energy Flux (Free Index): 1.39e-05 +/- 8.82e-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/208042/cmap_HighResolution_306720001_307324801_4FGL_J0137.6-2430_weekly_bin112.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.92e-08', energy_flux2='1.39e-05', photon_flux_error='3.23e-08', dlogl='1.56e-02', energy_flux='1.38e-05', photon_flux2='5.34e-08', job_status='DONE', time_completed='2021-07-03 23:50:20.576203', photon_index_error2='0.60', photon_index2='2.51', ts='4.06', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', energy_flux_error2='8.82e-06', EG='1.29', time_epoch_completed='1625381420.58', return_code='0', job_id='208042', GAL2='0.58', EG2='1.29', return_code2='0', energy_flux_error='9.11e-06', photon_flux_error2='4.05e-08', ts2='4.11', photon_index='2.41' WHERE bin_id='112' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:50:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 208042: <4FGL_J0137.6-2430_weekly_bin112> in cluster <slac> Done

Job <4FGL_J0137.6-2430_weekly_bin112> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Jul  3 23:35:37 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 23:35:38 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:35:38 2021
Terminated at Sat Jul  3 23:50:22 2021
Results reported at Sat Jul  3 23:50:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin112 24.4069 -24.5163 306720001 307324801 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 :                                   704.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            885 sec.

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

