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


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin149
RA = 24.4069, Dec = -24.5163
tmin = 329097601, tmax = 329702401
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='208099', job_status='RUN', time_executed='2021-07-03 23:36:01.496307', time_epoch_executed='1625380561.5' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208099

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208099/ft1_4FGL_J0137.6-2430_weekly_bin149.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208099/ft2_4FGL_J0137.6-2430_weekly_bin149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208099/ft1_4FGL_J0137.6-2430_weekly_bin149.fits outfile=/scratch/kocevski/208099/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin149.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=329097601.0 tmax=329702401.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.70
user 7.27
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208099/ft1_filtered_4FGL_J0137.6-2430_weekly_bin149.fits" evtable="EVENTS" scfile=/scratch/kocevski/208099/ft2_4FGL_J0137.6-2430_weekly_bin149.fits sctable="SC_DATA" outfile=/scratch/kocevski/208099/ltcube_329097601_329702401_4FGL_J0137.6-2430_weekly_bin149.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/208099/ft2_4FGL_J0137.6-2430_weekly_bin149.fits
.....................!
real 26.23
user 25.75
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208099/ft1_filtered_4FGL_J0137.6-2430_weekly_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/208099/ft2_4FGL_J0137.6-2430_weekly_bin149.fits sctable="SC_DATA" expcube=/scratch/kocevski/208099/ltcube_329097601_329702401_4FGL_J0137.6-2430_weekly_bin149.fits outfile=/scratch/kocevski/208099/expmap_329097601_329702401_4FGL_J0137.6-2430_weekly_bin149.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/208099/ltcube_329097601_329702401_4FGL_J0137.6-2430_weekly_bin149.fits
.....................!
real 191.49
user 185.66
sys 4.85

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/208099/ft1_filtered_4FGL_J0137.6-2430_weekly_bin149.fits scfile=/scratch/kocevski/208099/ft2_4FGL_J0137.6-2430_weekly_bin149.fits outfile=/scratch/kocevski/208099/cmap_329097601_329702401_4FGL_J0137.6-2430_weekly_bin149.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.62
user 0.40
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208099/ft1_filtered_4FGL_J0137.6-2430_weekly_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/208099/ft2_4FGL_J0137.6-2430_weekly_bin149.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208099/Model_4FGL_J0137.6-2430_weekly_bin149.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/208099/ft1_filtered_4FGL_J0137.6-2430_weekly_bin149.fits.....................!
real 72.70
user 70.82
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.935       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .37628       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2966       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17802E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.242       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4361       1.0000         .10000E-03   10000.    
     8 'norm      '    2.3367       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.226       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9852       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6025       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0538       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4830       1.0000         .10000E-03   10000.    
    14 'norm      '    .95202E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.4638       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1784       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1461       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .95938       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .86855       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=   9746.597     FROM MIGRAD    STATUS=CONVERGED     66 CALLS     1876 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.936        1.0287        .52323E-07   -.20142E-02
   2  norm          .10000E-03    3.1973        .32164E-06** at limit **
   3  norm          .37667        .82970       -.13975E-05    .10835E-03
   4  Prefactor     4.3008        4.9986       -.17772E-05   -.15181E-02
   5  Prefactor     .10000E-03    41.898       -.14735E-05** at limit **
   6  Prefactor     15.243        1.1417       -.16017E-06    .13097E-02
   7  norm          1.4363        1.6850       -.51155E-06    .96789E-04
   8  norm          2.3368        1.3595        .11623E-06    .28189E-03
   9  Prefactor     17.226        1.0189        .89670E-07   -.10511E-02
  10  Prefactor     3.9854        2.7349        .26308E-05    .60527E-03
  11  norm          1.6027        .94316       -.15584E-06   -.14601E-03
  12  norm          3.0531        1.4688       -.65240E-07   -.86724E-04
  13  Prefactor     2.4836        1.1157       -.59111E-06    .35361E-03
  14  norm          .10823        3.3504       -.36623E-05    .76743E-03
  15  Prefactor     .10000E-03    8.1540       -.51141E-06** at limit **
  16  norm          6.4643        1.8974       -.14086E-07    .57630E-03
  17  Prefactor     4.1796        1.5274       -.77901E-06    .15482E-02
  18  Prefactor     .10000E-03    2.0721       -.19660E-06** at limit **
  19  Prefactor     1.1465        3.3613        .14067E-05    .24958E-03
  20  Normalizat    .95920        .15160        .85139E-06    .65328E-04
  21  Prefactor     .86864        .16496        .83252E-07   -.59571E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.9358
  norm       = 0.0001
  norm       = 0.376666
  Prefactor  = 4.30084
  Prefactor  = 0.0001
  Prefactor  = 15.2433
  norm       = 1.43634
  norm       = 2.33682
  Prefactor  = 17.2264
  Prefactor  = 3.9854
  norm       = 1.60269
  norm       = 3.05311
  Prefactor  = 2.48356
  norm       = 0.108227
  Prefactor  = 0.000100001
  norm       = 6.46429
  Prefactor  = 4.17957
  Prefactor  = 0.0001
  Prefactor  = 1.14649
  Normalizat = 0.959204
  Prefactor  = 0.868641
 **********
 **   18 **HESSE 
 **********

 FCN=   9746.597     FROM HESSE     STATUS=OK           377 CALLS     2253 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.936        82.118        .13913E-02   -1.4265    
   2  norm          .10000E-03    3.1925        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .37667        2.8099        .10755E-01   -1.5585    
   4  Prefactor     4.3008        6.1259        .48589E-02   -1.5293    
   5  Prefactor     .10000E-03    4.9008        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.243        11.166        .25648E-02   -1.4927    
   7  norm          1.4363        2.2329        .90052E-02   -1.5468    
   8  norm          2.3368        1.3747        .67059E-02   -1.5402    
   9  Prefactor     17.226        10.938        .24125E-02   -1.4878    
  10  Prefactor     3.9854        2.8305        .50509E-02   -1.5309    
  11  norm          1.6027        .95283        .83713E-02   -1.5455    
  12  norm          3.0531        1.4864        .58039E-02   -1.5358    
  13  Prefactor     2.4836        3.6222        .64858E-02   -1.5393    
  14  norm          .10823        .83719        .59041E-01   -1.5642    
  15  Prefactor     .10000E-03    8.3575        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.4643        1.9014        .39465E-02   -1.5199    
  17  Prefactor     4.1796        7.3574        .49291E-02   -1.5299    
  18  Prefactor     .10000E-03    2.0304        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1465        3.4971        .10829E-01   -1.5494    
  20  Normalizat    .95920        .13142        .45656E-01   -.94410    
  21  Prefactor     .86864        .14139        .44603E-01   -.97246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.27641e-08
Minuit parameter uncertainties:
  1  82.2975
  2  1.12702e-05
  3  2.05741
  4  6.12675
  5  9.81772e-05
  6  11.1678
  7  2.23306
  8  1.3747
  9  10.9388
  10  2.83059
  11  0.952844
  12  1.4864
  13  3.62256
  14  0.60175
  15  0.000165299
  16  1.90145
  17  7.35902
  18  4.0302e-06
  19  3.49768
  20  0.131461
  21  0.141453
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  3.053e+00  1.486e+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:  8.686e-01  1.415e-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:  9.592e-01  1.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.73
Ra Dec: 24.407 -24.516
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.85e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 6.65e-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) = 9744.44065016
delta logL = 2.15661997304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9744.43730625
delta logL = 2.15996387657

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5265       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4011       1.0000          .0000       5.0000    
     3 'Normalizat'    .99043       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85082       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=   9744.437     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      212 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5265        .96889        .86400E-02    .53226E-03
   2  alpha         1.4010        .31321        .28820       -.58436E-04
   3  Normalizat    .99043        .12233        .46047E-01    .11886E-04
   4  Prefactor     .85082        .14031        .44375E-01    .22293E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.52647
  alpha      = 1.40103
  Normalizat = 0.990428
  Prefactor  = 0.850824
 **********
 **   18 **HESSE 
 **********

 FCN=   9744.437     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5265        1.4501        .66432E-04   -1.5461    
   2  alpha         1.4010        .49721        .11899E-01   -.45514    
   3  Normalizat    .99043        .14316        .22237E-03   -.93352    
   4  Prefactor     .85082        .16398        .27187E-03   -.97881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3397e-09
Minuit parameter uncertainties:
  1  1.45017
  2  0.501362
  3  0.14322
  4  0.164079
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208099': 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) = 9744.43730624
delta logL = 2.15996388592

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.526e+00  1.450e+00  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  1.401e+00  5.014e-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:  8.508e-01  1.641e-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:  9.904e-01  1.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.05
Ra Dec: 24.407 -24.516
Photon Index (Free Index): 1.40 +/- 0.50
Photon Flux (Free Index): 1.80e-08 +/- 1.58e-08
Energy Flux (Free Index): 2.21e-05 +/- 1.59e-05

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/208099/cmap_HighResolution_329097601_329702401_4FGL_J0137.6-2430_weekly_bin149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.85e-08', energy_flux2='2.21e-05', photon_flux_error='2.36e-08', dlogl='2.16e+00', energy_flux='1.37e-05', photon_flux2='1.80e-08', job_status='DONE', time_completed='2021-07-03 23:47:16.573633', photon_index_error2='0.50', photon_index2='1.40', ts='13.73', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='0.96', time_epoch_completed='1625381236.57', return_code='0', job_id='208099', GAL2='0.85', EG2='0.99', return_code2='0', energy_flux_error='6.65e-06', photon_flux_error2='1.58e-08', ts2='18.05', photon_index='2.41' WHERE bin_id='149' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:47:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 208099: <4FGL_J0137.6-2430_weekly_bin149> in cluster <slac> Done

Job <4FGL_J0137.6-2430_weekly_bin149> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Jul  3 23:35:42 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 23:35:44 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:44 2021
Terminated at Sat Jul  3 23:47:17 2021
Results reported at Sat Jul  3 23:47:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin149 24.4069 -24.5163 329097601 329702401 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 :                                   664.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            695 sec.

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

