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


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin628
RA = 24.4069, Dec = -24.5163
tmin = 618796801, tmax = 619401601
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='210035', job_status='RUN', time_executed='2021-07-03 23:41:54.966345', time_epoch_executed='1625380914.97' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='628'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210035

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210035/ft1_4FGL_J0137.6-2430_weekly_bin628.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210035/ft2_4FGL_J0137.6-2430_weekly_bin628.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210035/ft1_4FGL_J0137.6-2430_weekly_bin628.fits outfile=/scratch/kocevski/210035/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin628.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=618796801.0 tmax=619401601.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.84
user 7.43
sys 0.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210035/ft1_filtered_4FGL_J0137.6-2430_weekly_bin628.fits" evtable="EVENTS" scfile=/scratch/kocevski/210035/ft2_4FGL_J0137.6-2430_weekly_bin628.fits sctable="SC_DATA" outfile=/scratch/kocevski/210035/ltcube_618796801_619401601_4FGL_J0137.6-2430_weekly_bin628.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/210035/ft2_4FGL_J0137.6-2430_weekly_bin628.fits
.....................!
real 26.84
user 26.39
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210035/ft1_filtered_4FGL_J0137.6-2430_weekly_bin628.fits evtable="EVENTS" scfile=/scratch/kocevski/210035/ft2_4FGL_J0137.6-2430_weekly_bin628.fits sctable="SC_DATA" expcube=/scratch/kocevski/210035/ltcube_618796801_619401601_4FGL_J0137.6-2430_weekly_bin628.fits outfile=/scratch/kocevski/210035/expmap_618796801_619401601_4FGL_J0137.6-2430_weekly_bin628.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/210035/ltcube_618796801_619401601_4FGL_J0137.6-2430_weekly_bin628.fits
.....................!
real 190.90
user 185.30
sys 4.83

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/210035/ft1_filtered_4FGL_J0137.6-2430_weekly_bin628.fits scfile=/scratch/kocevski/210035/ft2_4FGL_J0137.6-2430_weekly_bin628.fits outfile=/scratch/kocevski/210035/cmap_618796801_619401601_4FGL_J0137.6-2430_weekly_bin628.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.71
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210035/ft1_filtered_4FGL_J0137.6-2430_weekly_bin628.fits scfile=/scratch/kocevski/210035/ft2_4FGL_J0137.6-2430_weekly_bin628.fits outfile=/scratch/kocevski/210035/cmap_HighResolution_618796801_619401601_4FGL_J0137.6-2430_weekly_bin628.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/210035/ft1_filtered_4FGL_J0137.6-2430_weekly_bin628.fits evtable="EVENTS" scfile=/scratch/kocevski/210035/ft2_4FGL_J0137.6-2430_weekly_bin628.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210035/Model_4FGL_J0137.6-2430_weekly_bin628.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/210035/ft1_filtered_4FGL_J0137.6-2430_weekly_bin628.fits....................!
real 79.26
user 76.56
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .24288E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5156       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7734       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.127       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.6091       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2472       1.0000         .10000E-03   10000.    
    11 'norm      '    .32015       1.0000         .10000E-03   10000.    
    12 'norm      '    .71367       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.6982       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4184       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1008       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.4475       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1782       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0609       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90898       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=   10227.51     FROM MIGRAD    STATUS=CONVERGED     83 CALLS     1580 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    35.224        .80457E-06** at limit **
   2  norm          .10000E-03    5.6495       -.18895E-05** at limit **
   3  norm          .10000E-03    11.233       -.11295E-05** at limit **
   4  Prefactor     1.5094        1.6876        .30545E-05   -.93558E-03
   5  Prefactor     2.7760        3.6578        .19137E-05   -.53066E-02
   6  Prefactor     14.127        1.1863       -.47459E-06   -.77674E-03
   7  norm          .10000E-03    .86979        .12376E-05** at limit **
   8  norm          2.6088        1.5291        .35651E-07    .13096E-03
   9  Prefactor     .10000E-03    2.9904        .48721E-06** at limit **
  10  Prefactor     5.2469        3.4117       -.42190E-05   -.52460E-02
  11  norm          .32060        .55482        .79319E-07   -.80188E-05
  12  norm          .71321        1.1704        .12654E-05    .70424E-04
  13  Prefactor     .10000E-03    1.1307        .19439E-05** at limit **
  14  norm          5.6982        2.6965       -.60017E-07   -.42108E-03
  15  Prefactor     5.3616        21.079       -.85737E-05    .11238E-02
  16  norm          1.1010        1.1897       -.41139E-06   -.12739E-03
  17  Prefactor     9.4476        1.5190       -.11369E-06    .24388E-02
  18  Prefactor     2.1782        3.3227        .77762E-06   -.25125E-04
  19  Prefactor     .10000E-03    3.1474       -.56812E-06** at limit **
  20  Normalizat    1.0609        .14794       -.11972E-05   -.34930E-04
  21  Prefactor     .90899        .16624        .21644E-05   -.66654E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.5094
  Prefactor  = 2.77598
  Prefactor  = 14.1274
  norm       = 0.0001
  norm       = 2.60877
  Prefactor  = 0.0001
  Prefactor  = 5.24693
  norm       = 0.320598
  norm       = 0.713212
  Prefactor  = 0.0001
  norm       = 5.69822
  Prefactor  = 5.36156
  norm       = 1.10099
  Prefactor  = 9.44764
  Prefactor  = 2.17817
  Prefactor  = 0.0001
  Normalizat = 1.06085
  Prefactor  = 0.908985
 **********
 **   18 **HESSE 
 **********

 FCN=   10227.51     FROM HESSE     STATUS=OK           371 CALLS     1951 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    35.319        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.5972        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.0749        .45990E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5094        7.2643        .86811E-02   -1.5462    
   5  Prefactor     2.7760        9.6941        .61093E-02   -1.5375    
   6  Prefactor     14.127        7.2376        .26642E-02   -1.4956    
   7  norm          .10000E-03    .84981        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.6088        1.5470        .63135E-02   -1.5385    
   9  Prefactor     .10000E-03    2.9875        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.2469        3.8552        .43869E-02   -1.5250    
  11  norm          .32060        .60915        .22947E-01   -1.5595    
  12  norm          .71321        1.3344        .31396E-01   -1.5539    
  13  Prefactor     .10000E-03    1.1268        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.6982        2.7379        .42068E-02   -1.5231    
  15  Prefactor     5.3616        23.055        .43158E-02   -1.5245    
  16  norm          1.1010        1.1928        .11321E-02   -1.5498    
  17  Prefactor     9.4476        7.7433        .32596E-02   -1.5093    
  18  Prefactor     2.1782        3.3854        .69740E-02   -1.5413    
  19  Prefactor     .10000E-03    3.0764        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0609        .13042        .39879E-01   -.91019    
  21  Prefactor     .90899        .14297        .45119E-01   -.95828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29126e-06
Minuit parameter uncertainties:
  1  0.00129612
  2  1.281e-05
  3  1.89833e-05
  4  6.62367
  5  9.69958
  6  7.23803
  7  3.42798e-06
  8  1.54707
  9  1.7463e-05
  10  3.85542
  11  0.609164
  12  1.33443
  13  2.66233e-06
  14  2.73799
  15  22.2506
  16  1.19283
  17  7.74413
  18  3.38572
  19  3.15056e-05
  20  0.130461
  21  0.14303
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  7.132e-01  1.334e+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:  9.090e-01  1.430e-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.061e+00  1.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/210035/likelihoodResults_618796801_619401601_4FGL_J0137.6-2430_weekly_bin628.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): 0
logL (Free Index) = 10226.8870665
delta logL = 0.62222536208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10226.8561816
delta logL = 0.65311027232

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49172       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3778       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0706       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89948       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=   10226.86     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49153        .75802        .18494E-01    .37998E-03
   2  alpha         1.3776        .48055        .48249       -.63540E-04
   3  Normalizat    1.0706        .12340        .39345E-01   -.38643E-03
   4  Prefactor     .89949        .14222        .44998E-01   -.29562E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.491528
  alpha      = 1.37762
  Normalizat = 1.07064
  Prefactor  = 0.899489
 **********
 **   18 **HESSE 
 **********

 FCN=   10226.86     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49153        .84758        .97007E-03   -1.5568    
   2  alpha         1.3776        .80917        .19556E-01   -.46559    
   3  Normalizat    1.0706        .14376        .21815E-03   -.90700    
   4  Prefactor     .89949        .16559        .27022E-03   -.96159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92724e-09
Minuit parameter uncertainties:
  1  0.847599
  2  0.828
  3  0.143816
  4  0.165684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210035': 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) = 10226.8561816
delta logL = 0.653110300133

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  4.915e-01  8.476e-01  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  1.378e+00  8.280e-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.995e-01  1.657e-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.071e+00  1.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 24.407 -24.516
Photon Index (Free Index): 1.38 +/- 0.83
Photon Flux (Free Index): 5.84e-09 +/- 9.29e-09
Energy Flux (Free Index): 7.55e-06 +/- 1.02e-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/210035/cmap_HighResolution_618796801_619401601_4FGL_J0137.6-2430_weekly_bin628.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-05', comment='SUCCESS', energy_flux2='7.55e-06', dlogl='6.53e-01', photon_flux2='5.84e-09', job_status='DONE', time_completed='2021-07-03 23:54:26.416837', photon_index_error2='0.83', photon_index2='1.38', ts='0.52', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='5.89e-08', energy_flux_error2='1.02e-05', EG='1.06', time_epoch_completed='1625381666.42', return_code='0', job_id='210035', GAL2='0.90', EG2='1.07', return_code2='0', photon_flux_error2='9.29e-09', ts2='1.83', photon_index='2.41' WHERE bin_id='628' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:54:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 210035: <4FGL_J0137.6-2430_weekly_bin628> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin628 24.4069 -24.5163 618796801 619401601 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 :                                   741.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            767 sec.

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

