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


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin340
RA = 24.4069, Dec = -24.5163
tmin = 444614401, tmax = 445219201
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='208346', job_status='RUN', time_executed='2021-07-03 23:36:33.201393', time_epoch_executed='1625380593.2' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='340'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208346

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208346/ft1_4FGL_J0137.6-2430_weekly_bin340.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208346/ft2_4FGL_J0137.6-2430_weekly_bin340.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208346/ft1_4FGL_J0137.6-2430_weekly_bin340.fits outfile=/scratch/kocevski/208346/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin340.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=444614401.0 tmax=445219201.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.46
user 7.11
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/208346/ft2_4FGL_J0137.6-2430_weekly_bin340.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/208346/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin340.fits evtable="EVENTS" outfile="/scratch/kocevski/208346/ft1_filtered_4FGL_J0137.6-2430_weekly_bin340.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.73
user 0.40
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208346/ft1_filtered_4FGL_J0137.6-2430_weekly_bin340.fits" evtable="EVENTS" scfile=/scratch/kocevski/208346/ft2_4FGL_J0137.6-2430_weekly_bin340.fits sctable="SC_DATA" outfile=/scratch/kocevski/208346/ltcube_444614401_445219201_4FGL_J0137.6-2430_weekly_bin340.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/208346/ft2_4FGL_J0137.6-2430_weekly_bin340.fits
.....................!
real 27.67
user 26.99
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208346/ft1_filtered_4FGL_J0137.6-2430_weekly_bin340.fits evtable="EVENTS" scfile=/scratch/kocevski/208346/ft2_4FGL_J0137.6-2430_weekly_bin340.fits sctable="SC_DATA" expcube=/scratch/kocevski/208346/ltcube_444614401_445219201_4FGL_J0137.6-2430_weekly_bin340.fits outfile=/scratch/kocevski/208346/expmap_444614401_445219201_4FGL_J0137.6-2430_weekly_bin340.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/208346/ltcube_444614401_445219201_4FGL_J0137.6-2430_weekly_bin340.fits
.....................!
real 193.28
user 186.21
sys 4.34

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/208346/ft1_filtered_4FGL_J0137.6-2430_weekly_bin340.fits scfile=/scratch/kocevski/208346/ft2_4FGL_J0137.6-2430_weekly_bin340.fits outfile=/scratch/kocevski/208346/cmap_444614401_445219201_4FGL_J0137.6-2430_weekly_bin340.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.63
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208346/ft1_filtered_4FGL_J0137.6-2430_weekly_bin340.fits scfile=/scratch/kocevski/208346/ft2_4FGL_J0137.6-2430_weekly_bin340.fits outfile=/scratch/kocevski/208346/cmap_HighResolution_444614401_445219201_4FGL_J0137.6-2430_weekly_bin340.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.60
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208346/ft1_filtered_4FGL_J0137.6-2430_weekly_bin340.fits evtable="EVENTS" scfile=/scratch/kocevski/208346/ft2_4FGL_J0137.6-2430_weekly_bin340.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208346/Model_4FGL_J0137.6-2430_weekly_bin340.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/208346/ft1_filtered_4FGL_J0137.6-2430_weekly_bin340.fits.....................!
real 66.36
user 64.38
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5519       1.0000         .10000E-03   10000.    
     2 'norm      '    .14622E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .23571E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2306       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.836       1.0000         .10000E-03   10000.    
     7 'norm      '    6.2486       1.0000         .10000E-03   10000.    
     8 'norm      '    .64443       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7307       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3645       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0621       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9954       1.0000         .10000E-03   10000.    
    14 'norm      '    .15928E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3027       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.9879       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .93375       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97989       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=   8250.406     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     1942 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6313        159.49        .55922E-06    .45040E-04
   2  norm          .10000E-03    20.146        .61459E-05** at limit **
   3  norm          .10002E-03    2.1833        .10628E-05** at limit **
   4  Prefactor     2.2316        6.7822        .17226E-05   -.43251E-04
   5  Prefactor     .10000E-03    6.6373       -.35531E-06** at limit **
   6  Prefactor     12.838        16.311       -.15576E-06   -.14949E-03
   7  norm          6.2488        3.9500       -.22943E-06   -.41984E-03
   8  norm          .64468        1.3847        .40015E-06    .53100E-03
   9  Prefactor     .10000E-03    15.054       -.35012E-06** at limit **
  10  Prefactor     1.7295        4.8306        .18359E-05    .30276E-04
  11  norm          1.3645        .92780        .71529E-07   -.51410E-04
  12  norm          3.0627        1.8358        .32114E-07   -.15777E-03
  13  Prefactor     7.9951        5.1293        .17290E-06   -.18728E-04
  14  norm          .10000E-03    1.1526       -.96642E-07** at limit **
  15  Prefactor     .10000E-03    9.9833       -.15068E-06** at limit **
  16  norm          3.3025        1.8871        .48792E-07   -.50180E-04
  17  Prefactor     .10000E-03    3.3832       -.17201E-06** at limit **
  18  Prefactor     8.9863        5.8240        .19860E-05    .14220E-03
  19  Prefactor     .10000E-03    2.1705       -.16276E-06** at limit **
  20  Normalizat    .93381        .14886       -.14447E-05   -.18547E-03
  21  Prefactor     .97987        .15716        .20306E-06   -.28659E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.63126
  norm       = 0.0001
  norm       = 0.000100016
  Prefactor  = 2.23157
  Prefactor  = 0.0001
  Prefactor  = 12.8378
  norm       = 6.24885
  norm       = 0.644679
  Prefactor  = 0.0001
  Prefactor  = 1.7295
  norm       = 1.36446
  norm       = 3.06272
  Prefactor  = 7.99515
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.30249
  Prefactor  = 0.0001
  Prefactor  = 8.98629
  Prefactor  = 0.0001
  Normalizat = 0.933807
  Prefactor  = 0.979867
 **********
 **   18 **HESSE 
 **********

 FCN=   8250.406     FROM HESSE     STATUS=OK           323 CALLS     2265 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6313        154.87        .12966E-03   -1.5087    
   2  norm          .10000E-03    20.457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10002E-03    7.5411        .24915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2316        6.7196        .27526E-03   -1.5409    
   5  Prefactor     .10000E-03    6.6717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.838        16.451        .11180E-03   -1.4991    
   7  norm          6.2488        3.9659        .90039E-04   -1.5208    
   8  norm          .64468        1.1621        .15188E-02   -1.5547    
   9  Prefactor     .10000E-03    15.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7295        4.7060        .27443E-03   -1.5445    
  11  norm          1.3645        .91417        .69064E-04   -1.5474    
  12  norm          3.0627        1.8187        .89291E-04   -1.5358    
  13  Prefactor     7.9951        5.1329        .14180E-03   -1.5142    
  14  norm          .10000E-03    3.9058        .18424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.9856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3025        1.8845        .89831E-04   -1.5344    
  17  Prefactor     .10000E-03    3.3935        .16318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.9863        5.8405        .66846E-03   -1.5108    
  19  Prefactor     .10000E-03    2.1896        .13070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .93381        .17307        .23647E-03   -.95282    
  21  Prefactor     .97987        .18418        .26118E-03   -.93404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55515e-09
Minuit parameter uncertainties:
  1  77.4806
  2  2.07293e-05
  3  0.000687379
  4  6.72191
  5  3.52532e-05
  6  16.4566
  7  3.9661
  8  1.16213
  9  2.54869e-05
  10  4.70698
  11  0.914182
  12  1.81871
  13  5.13316
  14  7.747e-05
  15  3.2719e-05
  16  1.88451
  17  1.08743e-05
  18  5.84085
  19  7.90995e-06
  20  0.173178
  21  0.184299
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  3.063e+00  1.819e+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.799e-01  1.843e-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.338e-01  1.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.36
Ra Dec: 24.407 -24.516
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.87e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 8.14e-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) = 8250.04801002
delta logL = 0.358434447062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8249.70024242
delta logL = 0.706202041076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93586       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3091       1.0000          .0000       5.0000    
     3 'Normalizat'    .97831       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95458       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=   8249.700     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93554        .77746        .12937E-01   -.40017E-03
   2  alpha         1.3090        .40446        .33426       -.55492E-04
   3  Normalizat    .97831        .13759        .45895E-01    .11735E-04
   4  Prefactor     .95462        .15588        .45697E-01    .14439E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.935538
  alpha      = 1.30899
  Normalizat = 0.978314
  Prefactor  = 0.954617
 **********
 **   18 **HESSE 
 **********

 FCN=   8249.700     FROM HESSE     STATUS=OK            35 CALLS      244 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93554        1.4694        .58923E-03   -1.5515    
   2  alpha         1.3090        .78611        .13594E-01   -.49656    
   3  Normalizat    .97831        .16179        .23166E-03   -.93761    
   4  Prefactor     .95462        .18291        .26424E-03   -.94258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74038e-09
Minuit parameter uncertainties:
  1  1.46945
  2  0.803909
  3  0.16187
  4  0.183029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208346': 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) = 8249.70024225
delta logL = 0.706202210838

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  9.355e-01  1.469e+00  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  1.309e+00  8.039e-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:  9.546e-01  1.830e-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.783e-01  1.619e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.75
Ra Dec: 24.407 -24.516
Photon Index (Free Index): 1.31 +/- 0.80
Photon Flux (Free Index): 1.13e-08 +/- 1.52e-08
Energy Flux (Free Index): 1.71e-05 +/- 1.76e-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/208346/cmap_HighResolution_444614401_445219201_4FGL_J0137.6-2430_weekly_bin340.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.87e-08', energy_flux2='1.71e-05', photon_flux_error='2.89e-08', dlogl='7.06e-01', energy_flux='1.37e-05', photon_flux2='1.13e-08', job_status='DONE', time_completed='2021-07-03 23:47:25.792999', photon_index_error2='0.80', photon_index2='1.31', ts='8.36', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.76e-05', EG='0.93', time_epoch_completed='1625381245.79', return_code='0', job_id='208346', GAL2='0.95', EG2='0.98', return_code2='0', energy_flux_error='8.14e-06', photon_flux_error2='1.52e-08', ts2='9.75', photon_index='2.41' WHERE bin_id='340' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:47:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 208346: <4FGL_J0137.6-2430_weekly_bin340> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin340 24.4069 -24.5163 444614401 445219201 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 :                                   615.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             308.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            683 sec.

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

