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


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin447
RA = 24.4069, Dec = -24.5163
tmin = 509328001, tmax = 509932801
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='209681', job_status='RUN', time_executed='2021-07-03 23:42:09.770383', time_epoch_executed='1625380929.77' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209681

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209681/ft1_4FGL_J0137.6-2430_weekly_bin447.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209681/ft2_4FGL_J0137.6-2430_weekly_bin447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209681/ft1_4FGL_J0137.6-2430_weekly_bin447.fits outfile=/scratch/kocevski/209681/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin447.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=509328001.0 tmax=509932801.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 9.58
user 7.38
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/209681/ft2_4FGL_J0137.6-2430_weekly_bin447.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/209681/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin447.fits evtable="EVENTS" outfile="/scratch/kocevski/209681/ft1_filtered_4FGL_J0137.6-2430_weekly_bin447.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209681/ft1_filtered_4FGL_J0137.6-2430_weekly_bin447.fits" evtable="EVENTS" scfile=/scratch/kocevski/209681/ft2_4FGL_J0137.6-2430_weekly_bin447.fits sctable="SC_DATA" outfile=/scratch/kocevski/209681/ltcube_509328001_509932801_4FGL_J0137.6-2430_weekly_bin447.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/209681/ft2_4FGL_J0137.6-2430_weekly_bin447.fits
.....................!
real 27.72
user 26.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209681/ft1_filtered_4FGL_J0137.6-2430_weekly_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/209681/ft2_4FGL_J0137.6-2430_weekly_bin447.fits sctable="SC_DATA" expcube=/scratch/kocevski/209681/ltcube_509328001_509932801_4FGL_J0137.6-2430_weekly_bin447.fits outfile=/scratch/kocevski/209681/expmap_509328001_509932801_4FGL_J0137.6-2430_weekly_bin447.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/209681/ltcube_509328001_509932801_4FGL_J0137.6-2430_weekly_bin447.fits
.....................!
real 193.33
user 185.53
sys 5.66

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/209681/ft1_filtered_4FGL_J0137.6-2430_weekly_bin447.fits scfile=/scratch/kocevski/209681/ft2_4FGL_J0137.6-2430_weekly_bin447.fits outfile=/scratch/kocevski/209681/cmap_509328001_509932801_4FGL_J0137.6-2430_weekly_bin447.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.59
user 0.41
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.308       1.0000         .10000E-03   10000.    
     3 'norm      '    .96196       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3601       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3438       1.0000         .10000E-03   10000.    
     7 'norm      '    .10353E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1916       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .45126E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4930       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11319E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9473       1.0000         .10000E-03   10000.    
    14 'norm      '    .23816       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4381       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .93991E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.4882       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1154       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0902       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89159       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=   10578.66     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     1993 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.924       -.15960E-07** at limit **
   2  norm          14.306        10.002       -.13536E-05   -.90954E-04
   3  norm          .96168        3.7286        .10997E-06   -.25019E-03
   4  Prefactor     1.3613        5.8409        .66394E-05   -.14583E-03
   5  Prefactor     .10000E-03    2.6411       -.15165E-06** at limit **
   6  Prefactor     4.3479        4.6650       -.61616E-06   -.29537E-03
   7  norm          .10000E-03    .46790        .10705E-06** at limit **
   8  norm          1.1924        1.1659       -.36769E-07    .95063E-05
   9  Prefactor     .10000E-03    3.9920       -.37424E-06** at limit **
  10  Prefactor     1.4930        2.0709       -.82309E-07   -.26609E-03
  11  norm          .10000E-03    .27891        .60553E-07** at limit **
  12  norm          .10000E-03    .59416        .55906E-07** at limit **
  13  Prefactor     8.9470        4.6214        .15250E-05   -.77336E-05
  14  norm          .24433        1.0116        .74234E-07   -.21730E-03
  15  Prefactor     .10000E-03    9.0922       -.26974E-07** at limit **
  16  norm          3.4379        1.5603        .85899E-07   -.95077E-04
  17  Prefactor     .69112E-01    3.1289        .15833E-06    .28352E-03
  18  Prefactor     9.4905        4.7609       -.73447E-06   -.12201E-03
  19  Prefactor     3.1151        1.2037       -.33668E-06   -.24716E-02
  20  Normalizat    1.0902        .12603       -.97587E-06   -.27212E-03
  21  Prefactor     .89159        .13961        .13637E-06   -.28956E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 14.3061
  norm       = 0.96168
  Prefactor  = 1.36133
  Prefactor  = 0.0001
  Prefactor  = 4.34789
  norm       = 0.0001
  norm       = 1.19236
  Prefactor  = 0.000100001
  Prefactor  = 1.49303
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.94702
  norm       = 0.244325
  Prefactor  = 0.0001
  norm       = 3.43791
  Prefactor  = 0.0691115
  Prefactor  = 9.49045
  Prefactor  = 3.11511
  Normalizat = 1.09025
  Prefactor  = 0.891589
 **********
 **   18 **HESSE 
 **********

 FCN=   10578.66     FROM HESSE     STATUS=OK           339 CALLS     2332 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.306        10.005        .10589E-03   -1.4951    
   3  norm          .96168        3.8335        .37772E-03   -1.5512    
   4  Prefactor     1.3613        5.9728        .37452E-03   -1.5475    
   5  Prefactor     .10000E-03    2.6484        .16327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3479        4.4246        .19327E-03   -1.5291    
   7  norm          .10000E-03    .68645        .12881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1924        1.1550        .41712E-04   -1.5490    
   9  Prefactor     .10000E-03    15.792        .39057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4930        2.0350        .16636E-03   -1.5464    
  11  norm          .10000E-03    .50940        .10523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.5464        .15253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.9470        4.6231        .13400E-03   -1.5110    
  14  norm          .24433        2.1475        .19603E-02   -1.5609    
  15  Prefactor     .10000E-03    9.1246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4379        1.5590        .82614E-04   -1.5337    
  17  Prefactor     .69112E-01    5.1967        .62163E-01   -1.5655    
  18  Prefactor     9.4905        4.8000        .13010E-03   -1.5092    
  19  Prefactor     3.1151        4.4389        .11486E-02   -1.5355    
  20  Normalizat    1.0902        .14522        .21591E-03   -.90065    
  21  Prefactor     .89159        .16155        .27072E-03   -.96436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.26098e-08
Minuit parameter uncertainties:
  1  4.3577e-06
  2  10.0062
  3  3.83444
  4  5.70371
  5  1.84574e-05
  6  4.4249
  7  6.05965e-07
  8  1.15504
  9  0.000229613
  10  2.0351
  11  2.12076e-06
  12  5.38748e-06
  13  4.62331
  14  1.44849
  15  5.0317e-06
  16  1.55903
  17  1.19783
  18  4.8002
  19  4.43941
  20  0.145274
  21  0.161636
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.000e-04  5.387e-06  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.916e-01  1.616e-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.090e+00  1.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/209681/likelihoodResults_509328001_509932801_4FGL_J0137.6-2430_weekly_bin447.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10578.6640244
delta logL = -0.00309825948716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10578.6609276
delta logL = -1.38285213325e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3905       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0902       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89181       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=   10578.66     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      270 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    324.79        .15245E-02** at limit **
   2  alpha         1.9972        3.8098        .50000       -.16680E-06
   3  Normalizat    1.0903        .57367E-01    .21591E-03    .25681E-02
   4  Prefactor     .89159        .66167E-01    .27072E-03    .20935E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.99724
  Normalizat = 1.09025
  Prefactor  = 0.891591
 **********
 **   18 **HESSE 
 **********

 FCN=   10578.66     FROM HESSE     STATUS=OK            29 CALLS      299 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1408        .30490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9972        3.0160        .50000       -.20248    
   3  Normalizat    1.0903        .13898        .43182E-04   -.90065    
   4  Prefactor     .89159        .15999        .54143E-04   -.96436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34243e-09
Minuit parameter uncertainties:
  1  2.37508e-06
  2  75.9171
  3  0.139025
  4  0.16007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209681': 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) = 10578.660921
delta logL = 5.19637615071e-06

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.000e-04  2.375e-06  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  1.997e+00  7.592e+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.916e-01  1.601e-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.090e+00  1.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 24.407 -24.516

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/209681/cmap_HighResolution_509328001_509932801_4FGL_J0137.6-2430_weekly_bin447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-05', job_status='DONE', photon_flux_upper_limit='3.82e-08', time_completed='2021-07-03 23:55:51.382601', job_id='209681', GAL2='0.89', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1625381751.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='5.20e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='447' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:55:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 209681: <4FGL_J0137.6-2430_weekly_bin447> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin447 24.4069 -24.5163 509328001 509932801 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 :                                   806.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            888 sec.

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

