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


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin189
RA = 24.4069, Dec = -24.5163
tmin = 353289601, tmax = 353894401
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='208162', job_status='RUN', time_executed='2021-07-03 23:36:05.761155', time_epoch_executed='1625380565.76' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208162

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208162/ft1_4FGL_J0137.6-2430_weekly_bin189.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208162/ft2_4FGL_J0137.6-2430_weekly_bin189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208162/ft1_4FGL_J0137.6-2430_weekly_bin189.fits outfile=/scratch/kocevski/208162/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin189.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=353289601.0 tmax=353894401.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.49
user 7.09
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208162/ft1_filtered_4FGL_J0137.6-2430_weekly_bin189.fits" evtable="EVENTS" scfile=/scratch/kocevski/208162/ft2_4FGL_J0137.6-2430_weekly_bin189.fits sctable="SC_DATA" outfile=/scratch/kocevski/208162/ltcube_353289601_353894401_4FGL_J0137.6-2430_weekly_bin189.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/208162/ft2_4FGL_J0137.6-2430_weekly_bin189.fits
.....................!
real 26.46
user 25.99
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208162/ft1_filtered_4FGL_J0137.6-2430_weekly_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/208162/ft2_4FGL_J0137.6-2430_weekly_bin189.fits sctable="SC_DATA" expcube=/scratch/kocevski/208162/ltcube_353289601_353894401_4FGL_J0137.6-2430_weekly_bin189.fits outfile=/scratch/kocevski/208162/expmap_353289601_353894401_4FGL_J0137.6-2430_weekly_bin189.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/208162/ltcube_353289601_353894401_4FGL_J0137.6-2430_weekly_bin189.fits
.....................!
real 195.61
user 187.51
sys 4.53

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/208162/ft1_filtered_4FGL_J0137.6-2430_weekly_bin189.fits scfile=/scratch/kocevski/208162/ft2_4FGL_J0137.6-2430_weekly_bin189.fits outfile=/scratch/kocevski/208162/cmap_353289601_353894401_4FGL_J0137.6-2430_weekly_bin189.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.60
user 0.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208162/ft1_filtered_4FGL_J0137.6-2430_weekly_bin189.fits scfile=/scratch/kocevski/208162/ft2_4FGL_J0137.6-2430_weekly_bin189.fits outfile=/scratch/kocevski/208162/cmap_HighResolution_353289601_353894401_4FGL_J0137.6-2430_weekly_bin189.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.63
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208162/ft1_filtered_4FGL_J0137.6-2430_weekly_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/208162/ft2_4FGL_J0137.6-2430_weekly_bin189.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208162/Model_4FGL_J0137.6-2430_weekly_bin189.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/208162/ft1_filtered_4FGL_J0137.6-2430_weekly_bin189.fits.....................!
real 76.35
user 73.71
sys 1.81

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.990       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1472       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6641       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5635       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .96280E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.636       1.0000         .10000E-03   10000.    
     7 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.0464       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3495       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11534E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6351       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1872       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2996       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0184       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0121       1.0000         .10000E-03   10000.    
    16 'norm      '    6.3660       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4083       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28934       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1877       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1761       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .75629       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=   9321.889     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2266 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.959        80.665       -.34501E-04    .85410E-05
   2  norm          2.1482        5.1959        .11908E-05    .81420E-04
   3  norm          1.6641        1.7619       -.41455E-07    .14368E-04
   4  Prefactor     1.5607        3.8815       -.27734E-06    .12116E-03
   5  Prefactor     .10000E-03    7.0474       -.48925E-06** at limit **
   6  Prefactor     10.630        8.5726        .90570E-06    .54490E-03
   7  norm          .10000E-03    .98295       -.23474E-06** at limit **
   8  norm          4.0455        1.9522       -.22794E-06    .26523E-03
   9  Prefactor     5.3466        11.817        .36105E-05    .12401E-03
  10  Prefactor     .10000E-03    1.5551       -.41948E-06** at limit **
  11  norm          1.6353        .92141       -.58063E-07    .18703E-03
  12  norm          2.1869        1.4202       -.15166E-06    .29929E-03
  13  Prefactor     1.3006        4.0945       -.27440E-05   -.72223E-04
  14  norm          1.0189        1.9154       -.28035E-06   -.89294E-04
  15  Prefactor     9.0254        18.752        .26124E-05    .20360E-04
  16  norm          6.3665        2.1537       -.11466E-06    .20622E-03
  17  Prefactor     2.4083        6.2610       -.17592E-05    .15267E-04
  18  Prefactor     .29497        2.1548       -.39628E-06    .16938E-03
  19  Prefactor     1.1900        1.0489        .26119E-06   -.13736E-02
  20  Normalizat    1.1760        .14143        .13975E-05    .49759E-03
  21  Prefactor     .75627        .14695        .39175E-06    .38552E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.9586
  norm       = 2.1482
  norm       = 1.6641
  Prefactor  = 1.56068
  Prefactor  = 0.000100005
  Prefactor  = 10.6299
  norm       = 0.0001
  norm       = 4.04546
  Prefactor  = 5.34656
  Prefactor  = 0.0001
  norm       = 1.63528
  norm       = 2.1869
  Prefactor  = 1.30064
  norm       = 1.01892
  Prefactor  = 9.02536
  norm       = 6.36649
  Prefactor  = 2.40833
  Prefactor  = 0.294972
  Prefactor  = 1.18996
  Normalizat = 1.17599
  Prefactor  = 0.75627
 **********
 **   18 **HESSE 
 **********

 FCN=   9321.889     FROM HESSE     STATUS=OK           337 CALLS     2603 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.959        80.420        .48678E-04   -1.4057    
   2  norm          2.1482        5.1617        .28122E-03   -1.5415    
   3  norm          1.6641        1.7697        .12856E-03   -1.5450    
   4  Prefactor     1.5607        3.7639        .28147E-03   -1.5458    
   5  Prefactor     .10000E-03    61.367        .46979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.630        7.7082        .12285E-03   -1.5056    
   7  norm          .10000E-03    1.3172        .16692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.0455        1.9357        .87559E-04   -1.5306    
   9  Prefactor     5.3466        11.696        .17376E-03   -1.5245    
  10  Prefactor     .10000E-03    6.3441        .22003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6353        .91730        .66667E-04   -1.5452    
  12  norm          2.1869        1.4110        .87937E-04   -1.5412    
  13  Prefactor     1.3006        4.1099        .32958E-03   -1.5480    
  14  norm          1.0189        1.8761        .17242E-03   -1.5506    
  15  Prefactor     9.0254        18.740        .13351E-03   -1.5107    
  16  norm          6.3665        2.1585        .78167E-04   -1.5203    
  17  Prefactor     2.4083        6.2207        .26381E-03   -1.5398    
  18  Prefactor     .29497        19.438        .26081E-02   -1.5599    
  19  Prefactor     1.1900        6.3965        .20919E-02   -1.5490    
  20  Normalizat    1.1760        .16611        .21400E-03   -.87348    
  21  Prefactor     .75627        .17095        .29153E-03   -1.0136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13475e-09
Minuit parameter uncertainties:
  1  80.5492
  2  5.16278
  3  1.76978
  4  3.76451
  5  0.00105772
  6  7.70895
  7  3.00965e-05
  8  1.9357
  9  11.7008
  10  0.000101133
  11  0.917309
  12  1.41102
  13  4.11077
  14  1.87619
  15  18.7524
  16  2.1585
  17  6.22236
  18  4.78979
  19  5.51852
  20  0.166185
  21  0.171067
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  2.187e+00  1.411e+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:  7.563e-01  1.711e-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.176e+00  1.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.72
Ra Dec: 24.407 -24.516
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.48e-08 +/- 2.24e-08
Energy Flux (Fixed Index): 9.78e-06 +/- 6.31e-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) = 9321.36512222
delta logL = 0.52357336931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9321.18662186
delta logL = 0.702073734286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1704       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5621       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74150       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=   9321.187     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1645        .91963        .10605E-01    .32938E-03
   2  alpha         1.5585        .40260        .39733       -.61357E-04
   3  Normalizat    1.2002        .13069        .34883E-01    .12542E-03
   4  Prefactor     .74168        .14650        .66492E-01    .15832E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16451
  alpha      = 1.55846
  Normalizat = 1.20019
  Prefactor  = 0.741684
 **********
 **   18 **HESSE 
 **********

 FCN=   9321.187     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1645        1.4141        .74554E-04   -1.5492    
   2  alpha         1.5585        .69856        .15339E-01   -.38614    
   3  Normalizat    1.2002        .15150        .21217E-03   -.86597    
   4  Prefactor     .74168        .16918        .29419E-03   -1.0192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56237e-11
Minuit parameter uncertainties:
  1  1.41419
  2  0.709611
  3  0.151555
  4  0.169296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208162': 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) = 9321.1866092
delta logL = 0.702086394314

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.165e+00  1.414e+00  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  1.558e+00  7.096e-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:  7.417e-01  1.693e-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.200e+00  1.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.11
Ra Dec: 24.407 -24.516
Photon Index (Free Index): 1.56 +/- 0.71
Photon Flux (Free Index): 1.36e-08 +/- 1.66e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.03e-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/208162/cmap_HighResolution_353289601_353894401_4FGL_J0137.6-2430_weekly_bin189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.48e-08', energy_flux2='1.19e-05', photon_flux_error='2.24e-08', dlogl='7.02e-01', energy_flux='9.78e-06', photon_flux2='1.36e-08', job_status='DONE', time_completed='2021-07-03 23:47:55.338970', photon_index_error2='0.71', photon_index2='1.56', ts='6.72', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='1.18', time_epoch_completed='1625381275.34', return_code='0', job_id='208162', GAL2='0.74', EG2='1.20', return_code2='0', energy_flux_error='6.31e-06', photon_flux_error2='1.66e-08', ts2='8.11', photon_index='2.41' WHERE bin_id='189' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:47:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 208162: <4FGL_J0137.6-2430_weekly_bin189> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin189 24.4069 -24.5163 353289601 353894401 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 :                                   696.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            730 sec.

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

