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


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin397
RA = 24.4069, Dec = -24.5163
tmin = 479088001, tmax = 479692801
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='209621', job_status='RUN', time_executed='2021-07-03 23:41:24.334600', time_epoch_executed='1625380884.33' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209621

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209621/ft1_4FGL_J0137.6-2430_weekly_bin397.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209621/ft2_4FGL_J0137.6-2430_weekly_bin397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209621/ft1_4FGL_J0137.6-2430_weekly_bin397.fits outfile=/scratch/kocevski/209621/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin397.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=479088001.0 tmax=479692801.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.58
user 7.19
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/209621/ft2_4FGL_J0137.6-2430_weekly_bin397.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/209621/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin397.fits evtable="EVENTS" outfile="/scratch/kocevski/209621/ft1_filtered_4FGL_J0137.6-2430_weekly_bin397.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 1.39
user 0.37
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209621/ft1_filtered_4FGL_J0137.6-2430_weekly_bin397.fits" evtable="EVENTS" scfile=/scratch/kocevski/209621/ft2_4FGL_J0137.6-2430_weekly_bin397.fits sctable="SC_DATA" outfile=/scratch/kocevski/209621/ltcube_479088001_479692801_4FGL_J0137.6-2430_weekly_bin397.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/209621/ft2_4FGL_J0137.6-2430_weekly_bin397.fits
.....................!
real 31.78
user 30.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209621/ft1_filtered_4FGL_J0137.6-2430_weekly_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/209621/ft2_4FGL_J0137.6-2430_weekly_bin397.fits sctable="SC_DATA" expcube=/scratch/kocevski/209621/ltcube_479088001_479692801_4FGL_J0137.6-2430_weekly_bin397.fits outfile=/scratch/kocevski/209621/expmap_479088001_479692801_4FGL_J0137.6-2430_weekly_bin397.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/209621/ltcube_479088001_479692801_4FGL_J0137.6-2430_weekly_bin397.fits
.....................!
real 191.09
user 185.44
sys 5.04

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/209621/ft1_filtered_4FGL_J0137.6-2430_weekly_bin397.fits scfile=/scratch/kocevski/209621/ft2_4FGL_J0137.6-2430_weekly_bin397.fits outfile=/scratch/kocevski/209621/cmap_479088001_479692801_4FGL_J0137.6-2430_weekly_bin397.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.72
user 0.40
sys 0.18

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209621/ft1_filtered_4FGL_J0137.6-2430_weekly_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/209621/ft2_4FGL_J0137.6-2430_weekly_bin397.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209621/Model_4FGL_J0137.6-2430_weekly_bin397.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/209621/ft1_filtered_4FGL_J0137.6-2430_weekly_bin397.fits.....................!
real 105.35
user 102.74
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.041       1.0000         .10000E-03   10000.    
     2 'norm      '    .75697E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.0415       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .52156E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.0211       1.0000         .10000E-03   10000.    
     8 'norm      '    2.8364       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27774       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2022       1.0000         .10000E-03   10000.    
    12 'norm      '    6.4235       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .45907       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .73787       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7146       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0729       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0418       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .65741       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=   14265.94     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     1977 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.019        53.334       -.74516E-05   -.11248E-03
   2  norm          .10003E-03    2.7841        .70765E-07** at limit **
   3  norm          2.0415        1.5522        .66599E-07   -.96132E-04
   4  Prefactor     .10000E-03    1.3784        .21592E-07** at limit **
   5  Prefactor     .10000E-03    1.1270        .63954E-08** at limit **
   6  Prefactor     .10000E-03    3.7458        .31993E-06** at limit **
   7  norm          3.0202        1.4966       -.32524E-07   -.55678E-03
   8  norm          2.8363        1.1802        .16415E-07   -.51136E-04
   9  Prefactor     .10000E-03    4.4597        .74898E-07** at limit **
  10  Prefactor     .28144        1.0320        .74484E-07   -.20637E-04
  11  norm          1.2021        .61570        .38001E-07   -.14065E-03
  12  norm          6.4231        1.4731       -.60303E-07   -.43044E-03
  13  Prefactor     .10000E-03    .73464        .38460E-07** at limit **
  14  norm          .45879        1.0983        .36626E-06   -.72147E-03
  15  Prefactor     .10000E-03    5.3692       -.14882E-07** at limit **
  16  norm          .73748        .93062        .38424E-06    .10119E-03
  17  Prefactor     .10000E-03    4.0650        .22923E-07** at limit **
  18  Prefactor     6.7143        3.2729       -.19576E-06   -.38636E-03
  19  Prefactor     1.0737        3.2674        .20899E-05   -.47422E-03
  20  Normalizat    1.0418        .93169E-01   -.27922E-06   -.52577E-03
  21  Prefactor     .65748        .10306       -.38343E-06   -.26554E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0185
  norm       = 0.000100027
  norm       = 2.04147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.02019
  norm       = 2.83632
  Prefactor  = 0.0001
  Prefactor  = 0.281441
  norm       = 1.20212
  norm       = 6.42314
  Prefactor  = 0.0001
  norm       = 0.458795
  Prefactor  = 0.0001
  norm       = 0.73748
  Prefactor  = 0.0001
  Prefactor  = 6.71425
  Prefactor  = 1.07368
  Normalizat = 1.04178
  Prefactor  = 0.657479
 **********
 **   18 **HESSE 
 **********

 FCN=   14265.94     FROM HESSE     STATUS=OK           337 CALLS     2314 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.019        60.404        .12645E-03   -1.5075    
   2  norm          .10003E-03    21.822        .38613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0415        1.5458        .12626E-03   -1.5422    
   4  Prefactor     .10000E-03    1.4035        .13688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.1288        .12382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3284        .56798E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.0202        1.5514        .83144E-04   -1.5360    
   8  norm          2.8363        1.1797        .81071E-04   -1.5371    
   9  Prefactor     .10000E-03    4.5741        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .28144        6.9201        .19761E-02   -1.5602    
  11  norm          1.2021        .61132        .64239E-04   -1.5489    
  12  norm          6.4231        1.4667        .64517E-04   -1.5201    
  13  Prefactor     .10000E-03    .74139        .99968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .45879        1.3755        .17803E-02   -1.5573    
  15  Prefactor     .10000E-03    5.3739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .73748        .87510        .12707E-02   -1.5536    
  17  Prefactor     .10000E-03    4.1268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.7143        3.2666        .14122E-03   -1.5190    
  19  Prefactor     1.0737        3.3318        .35678E-03   -1.5501    
  20  Normalizat    1.0418        .11070        .18999E-03   -.91644    
  21  Prefactor     .65748        .12147        .27389E-03   -1.0522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29787e-08
Minuit parameter uncertainties:
  1  49.2743
  2  0.00152762
  3  1.54587
  4  4.16985e-06
  5  3.68506e-07
  6  8.20398e-05
  7  1.5514
  8  1.17973
  9  3.8082e-06
  10  2.791
  11  0.611323
  12  1.46669
  13  2.74498e-07
  14  1.37557
  15  1.40557e-06
  16  0.875112
  17  8.22482e-07
  18  3.26669
  19  3.3324
  20  0.11072
  21  0.12152
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  6.423e+00  1.467e+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:  6.575e-01  1.215e-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.042e+00  1.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 45.15
Ra Dec: 24.407 -24.516
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 2.33e-08
Energy Flux (Fixed Index): 2.87e-05 +/- 6.56e-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) = 14265.9191547
delta logL = 0.0230858093237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14265.9178678
delta logL = 0.024372760221

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4819       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3519       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65423       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=   14265.92     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4818        1.8955        .39409E-02    .27906E-02
   2  alpha         2.3519        .30081        .25081       -.52465E-04
   3  Normalizat    1.0454        .88573E-01    .40876E-01   -.55458E-04
   4  Prefactor     .65424        .10331        .62050E-01    .12541E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.48182
  alpha      = 2.35193
  Normalizat = 1.04538
  Prefactor  = 0.654237
 **********
 **   18 **HESSE 
 **********

 FCN=   14265.92     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4818        1.4745        .65082E-04   -1.5199    
   2  alpha         2.3519        .24477        .10608E-01   -.59263E-01
   3  Normalizat    1.0454        .10473        .18971E-03   -.91525    
   4  Prefactor     .65424        .12119        .27450E-03   -1.0535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07171e-10
Minuit parameter uncertainties:
  1  1.47455
  2  0.24516
  3  0.104748
  4  0.121242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209621': 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) = 14265.9178678
delta logL = 0.024372772099

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  6.482e+00  1.475e+00  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  2.352e+00  2.452e-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:  6.542e-01  1.212e-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.045e+00  1.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 45.09
Ra Dec: 24.407 -24.516
Photon Index (Free Index): 2.35 +/- 0.25
Photon Flux (Free Index): 9.97e-08 +/- 2.48e-08
Energy Flux (Free Index): 2.93e-05 +/- 7.21e-06

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/209621/cmap_HighResolution_479088001_479692801_4FGL_J0137.6-2430_weekly_bin397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='2.93e-05', photon_flux_error='2.33e-08', dlogl='2.44e-02', energy_flux='2.87e-05', photon_flux2='9.97e-08', job_status='DONE', time_completed='2021-07-03 23:55:46.987535', photon_index_error2='0.25', photon_index2='2.35', ts='45.15', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='7.21e-06', EG='1.04', time_epoch_completed='1625381746.99', return_code='0', job_id='209621', GAL2='0.65', EG2='1.05', return_code2='0', energy_flux_error='6.56e-06', photon_flux_error2='2.48e-08', ts2='45.09', photon_index='2.41' WHERE bin_id='397' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:55:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 209621: <4FGL_J0137.6-2430_weekly_bin397> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin397 24.4069 -24.5163 479088001 479692801 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 :                                   849.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

