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


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin530
RA = 24.4069, Dec = -24.5163
tmin = 559526401, tmax = 560131201
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='209842', job_status='RUN', time_executed='2021-07-03 23:46:17.210241', time_epoch_executed='1625381177.21' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='530'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209842

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209842/ft1_4FGL_J0137.6-2430_weekly_bin530.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209842/ft2_4FGL_J0137.6-2430_weekly_bin530.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209842/ft1_4FGL_J0137.6-2430_weekly_bin530.fits outfile=/scratch/kocevski/209842/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin530.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=559526401.0 tmax=560131201.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.78
user 7.33
sys 0.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209842/ft1_filtered_4FGL_J0137.6-2430_weekly_bin530.fits" evtable="EVENTS" scfile=/scratch/kocevski/209842/ft2_4FGL_J0137.6-2430_weekly_bin530.fits sctable="SC_DATA" outfile=/scratch/kocevski/209842/ltcube_559526401_560131201_4FGL_J0137.6-2430_weekly_bin530.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/209842/ft2_4FGL_J0137.6-2430_weekly_bin530.fits
.....................!
real 26.84
user 26.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209842/ft1_filtered_4FGL_J0137.6-2430_weekly_bin530.fits evtable="EVENTS" scfile=/scratch/kocevski/209842/ft2_4FGL_J0137.6-2430_weekly_bin530.fits sctable="SC_DATA" expcube=/scratch/kocevski/209842/ltcube_559526401_560131201_4FGL_J0137.6-2430_weekly_bin530.fits outfile=/scratch/kocevski/209842/expmap_559526401_560131201_4FGL_J0137.6-2430_weekly_bin530.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/209842/ltcube_559526401_560131201_4FGL_J0137.6-2430_weekly_bin530.fits
.....................!
real 192.49
user 187.62
sys 4.35

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/209842/ft1_filtered_4FGL_J0137.6-2430_weekly_bin530.fits scfile=/scratch/kocevski/209842/ft2_4FGL_J0137.6-2430_weekly_bin530.fits outfile=/scratch/kocevski/209842/cmap_559526401_560131201_4FGL_J0137.6-2430_weekly_bin530.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.99
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209842/ft1_filtered_4FGL_J0137.6-2430_weekly_bin530.fits scfile=/scratch/kocevski/209842/ft2_4FGL_J0137.6-2430_weekly_bin530.fits outfile=/scratch/kocevski/209842/cmap_HighResolution_559526401_560131201_4FGL_J0137.6-2430_weekly_bin530.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.68
user 0.42
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209842/ft1_filtered_4FGL_J0137.6-2430_weekly_bin530.fits evtable="EVENTS" scfile=/scratch/kocevski/209842/ft2_4FGL_J0137.6-2430_weekly_bin530.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209842/Model_4FGL_J0137.6-2430_weekly_bin530.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/209842/ft1_filtered_4FGL_J0137.6-2430_weekly_bin530.fits.....................!
real 48.84
user 43.88
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.264       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.6316       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.266       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34442E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9496       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0005       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2863       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .55851E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0602       1.0000         .10000E-03   10000.    
    12 'norm      '    5.6993       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.535       1.0000         .10000E-03   10000.    
    14 'norm      '    4.4554       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1899       1.0000         .10000E-03   10000.    
    16 'norm      '    5.6664       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.1764       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4060       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0628       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .62177       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=   4678.106     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2306 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.276        64.077        .26630E-05    .46794E-04
   2  norm          .10000E-03    3.2860        .18645E-08** at limit **
   3  norm          8.6331        8.8113       -.26132E-07   -.35054E-04
   4  Prefactor     20.264        10.730        .28397E-06    .67773E-04
   5  Prefactor     .10000E-03    4.8612       -.13443E-06** at limit **
   6  Prefactor     .10045E-03    10.399       -.17679E-05** at limit **
   7  norm          2.9445        1.9946        .11171E-05   -.15375E-02
   8  norm          1.0005        1.9369        .73546E-07   -.98436E-04
   9  Prefactor     6.2868        18.084        .37066E-06    .22745E-04
  10  Prefactor     .10000E-03    2.7169       -.90330E-06** at limit **
  11  norm          1.0602        1.0213        .73821E-07   -.67422E-04
  12  norm          5.7009        3.7655        .43621E-07    .16298E-03
  13  Prefactor     14.537        22.424        .52580E-06    .16698E-04
  14  norm          4.4562        5.6021        .40026E-07   -.10787E-03
  15  Prefactor     1.1889        614.88        .26464E-05   -.23110E-04
  16  norm          5.6664        2.4885        .31908E-07   -.74350E-04
  17  Prefactor     6.1979        19.366        .38025E-05    .14069E-03
  18  Prefactor     3.4013        9.8664       -.46600E-06   -.18779E-03
  19  Prefactor     .10000E-03    4.9623        .12604E-06** at limit **
  20  Normalizat    1.0629        .20064       -.40587E-06    .12042E-03
  21  Prefactor     .62171        .20208       -.30028E-06    .28687E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.2757
  norm       = 0.0001
  norm       = 8.6331
  Prefactor  = 20.2638
  Prefactor  = 0.0001
  Prefactor  = 0.000100449
  norm       = 2.94449
  norm       = 1.00049
  Prefactor  = 6.28682
  Prefactor  = 0.0001
  norm       = 1.06018
  norm       = 5.70095
  Prefactor  = 14.5369
  norm       = 4.45618
  Prefactor  = 1.18895
  norm       = 5.66643
  Prefactor  = 6.19794
  Prefactor  = 3.40134
  Prefactor  = 0.0001
  Normalizat = 1.06286
  Prefactor  = 0.621708
 **********
 **   18 **HESSE 
 **********

 FCN=   4678.106     FROM HESSE     STATUS=OK           333 CALLS     2639 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.276        64.016        .57719E-04   -1.4317    
   2  norm          .10000E-03    3.2885        .12109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.6331        8.8142        .13644E-03   -1.5120    
   4  Prefactor     20.264        10.753        .88972E-04   -1.4807    
   5  Prefactor     .10000E-03    4.8654        .14728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10045E-03    52.480        .38637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9445        2.0672        .38971E-03   -1.5365    
   8  norm          1.0005        1.5556        .12655E-02   -1.5508    
   9  Prefactor     6.2868        17.841        .16010E-03   -1.5206    
  10  Prefactor     .10000E-03    13.602        .20426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0602        .99157        .62756E-04   -1.5502    
  12  norm          5.7009        3.7264        .94684E-04   -1.5230    
  13  Prefactor     14.537        22.399        .10506E-03   -1.4945    
  14  norm          4.4562        5.5806        .16487E-03   -1.5286    
  15  Prefactor     1.1889        627.75        .41766E-02   -1.5490    
  16  norm          5.6664        2.4928        .67077E-04   -1.5232    
  17  Prefactor     6.1979        19.853        .16154E-03   -1.5210    
  18  Prefactor     3.4013        9.9949        .21921E-03   -1.5339    
  19  Prefactor     .10000E-03    4.9677        .14878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0629        .23283        .22201E-03   -.90953    
  21  Prefactor     .62171        .23325        .30515E-03   -1.0668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.97175e-09
Minuit parameter uncertainties:
  1  64.1077
  2  5.50737e-06
  3  8.81556
  4  10.7538
  5  8.98952e-06
  6  0.00971681
  7  2.06721
  8  1.55565
  9  17.8565
  10  0.000133513
  11  0.991587
  12  3.72658
  13  22.4118
  14  5.58121
  15  55.2288
  16  2.49287
  17  19.8741
  18  9.9998
  19  3.27361e-06
  20  0.233058
  21  0.233617
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  5.701e+00  3.727e+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.217e-01  2.336e-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.063e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.03
Ra Dec: 24.407 -24.516
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 9.06e-08 +/- 5.92e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 1.67e-05

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) = 4677.830617
delta logL = 0.275130960824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4677.82531055
delta logL = 0.280437402826

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5561       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8295       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64089       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=   4677.825     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      241 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5560        3.4432        .87057E-04    .75638E-03
   2  alpha         2.8295        .59478        .14132E-01    .55048E-04
   3  Normalizat    1.0380        .22002        .22422E-03   -.24540E-04
   4  Prefactor     .64091        .23312        .30089E-03   -.16549E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55598
  alpha      = 2.82953
  Normalizat = 1.03805
  Prefactor  = 0.640911
 **********
 **   18 **HESSE 
 **********

 FCN=   4677.825     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5560        3.4087        .34823E-05   -1.5237    
   2  alpha         2.8295        .58874        .56529E-03    .13220    
   3  Normalizat    1.0380        .22031        .89688E-05   -.91767    
   4  Prefactor     .64091        .23335        .12036E-04   -1.0589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01325e-10
Minuit parameter uncertainties:
  1  3.4088
  2  0.59442
  3  0.220502
  4  0.2337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209842': 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) = 4677.82531054
delta logL = 0.280437417718

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  5.556e+00  3.409e+00  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  2.830e+00  5.944e-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.409e-01  2.337e-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.038e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.62
Ra Dec: 24.407 -24.516
Photon Index (Free Index): 2.83 +/- 0.59
Photon Flux (Free Index): 1.19e-07 +/- 7.48e-08
Energy Flux (Free Index): 2.56e-05 +/- 1.48e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/209842/cmap_HighResolution_559526401_560131201_4FGL_J0137.6-2430_weekly_bin530.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.06e-08', energy_flux2='2.56e-05', photon_flux_error='5.92e-08', dlogl='2.80e-01', energy_flux='2.55e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-07-03 23:55:16.786400', photon_index_error2='0.59', photon_index2='2.83', ts='4.03', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='1.06', time_epoch_completed='1625381716.79', return_code='0', job_id='209842', GAL2='0.64', EG2='1.04', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='7.48e-08', ts2='4.62', photon_index='2.41' WHERE bin_id='530' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:55:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0136>
Subject: Job 209842: <4FGL_J0137.6-2430_weekly_bin530> in cluster <slac> Done

Job <4FGL_J0137.6-2430_weekly_bin530> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jul  3 23:41:21 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 23:41:23 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:41:23 2021
Terminated at Sat Jul  3 23:55:19 2021
Results reported at Sat Jul  3 23:55:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin530 24.4069 -24.5163 559526401 560131201 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 :                                   524.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            838 sec.

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

