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


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin433
RA = 24.4069, Dec = -24.5163
tmin = 500860801, tmax = 501465601
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='209660', job_status='RUN', time_executed='2021-07-03 23:41:20.223191', time_epoch_executed='1625380880.22' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209660

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209660/ft1_4FGL_J0137.6-2430_weekly_bin433.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209660/ft2_4FGL_J0137.6-2430_weekly_bin433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209660/ft1_4FGL_J0137.6-2430_weekly_bin433.fits outfile=/scratch/kocevski/209660/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin433.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=500860801.0 tmax=501465601.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 8.52
user 8.11
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209660/ft1_filtered_4FGL_J0137.6-2430_weekly_bin433.fits" evtable="EVENTS" scfile=/scratch/kocevski/209660/ft2_4FGL_J0137.6-2430_weekly_bin433.fits sctable="SC_DATA" outfile=/scratch/kocevski/209660/ltcube_500860801_501465601_4FGL_J0137.6-2430_weekly_bin433.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/209660/ft2_4FGL_J0137.6-2430_weekly_bin433.fits
.....................!
real 27.21
user 26.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209660/ft1_filtered_4FGL_J0137.6-2430_weekly_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/209660/ft2_4FGL_J0137.6-2430_weekly_bin433.fits sctable="SC_DATA" expcube=/scratch/kocevski/209660/ltcube_500860801_501465601_4FGL_J0137.6-2430_weekly_bin433.fits outfile=/scratch/kocevski/209660/expmap_500860801_501465601_4FGL_J0137.6-2430_weekly_bin433.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/209660/ltcube_500860801_501465601_4FGL_J0137.6-2430_weekly_bin433.fits
.....................!
real 192.73
user 185.42
sys 5.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/209660/ft1_filtered_4FGL_J0137.6-2430_weekly_bin433.fits scfile=/scratch/kocevski/209660/ft2_4FGL_J0137.6-2430_weekly_bin433.fits outfile=/scratch/kocevski/209660/cmap_500860801_501465601_4FGL_J0137.6-2430_weekly_bin433.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/209660/ft1_filtered_4FGL_J0137.6-2430_weekly_bin433.fits scfile=/scratch/kocevski/209660/ft2_4FGL_J0137.6-2430_weekly_bin433.fits outfile=/scratch/kocevski/209660/cmap_HighResolution_500860801_501465601_4FGL_J0137.6-2430_weekly_bin433.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/209660/ft1_filtered_4FGL_J0137.6-2430_weekly_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/209660/ft2_4FGL_J0137.6-2430_weekly_bin433.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209660/Model_4FGL_J0137.6-2430_weekly_bin433.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/209660/ft1_filtered_4FGL_J0137.6-2430_weekly_bin433.fits.....................!
real 80.24
user 78.43
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.348       1.0000         .10000E-03   10000.    
     2 'norm      '    .31181E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6286       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7577       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .63115       1.0000         .10000E-03   10000.    
     8 'norm      '    .93252       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .36296       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3954       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2756       1.0000         .10000E-03   10000.    
    14 'norm      '    .38331       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8128       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15959       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0600       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .70801       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=   10569.24     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2351 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.339        65.773       -.18608E-05    .15825E-03
   2  norm          .10000E-03    4.4585        .11049E-06** at limit **
   3  norm          1.6286        1.5268       -.14569E-07    .91136E-04
   4  Prefactor     .10000E-03    1.0711       -.29673E-07** at limit **
   5  Prefactor     1.7578        4.6668       -.22357E-05    .82275E-03
   6  Prefactor     .10000E-03    3.0865        .48984E-07** at limit **
   7  norm          .63139        1.0006       -.19339E-06   -.10637E-02
   8  norm          .93217        1.2654        .47793E-08   -.19695E-03
   9  Prefactor     .10000E-03    2.8949        .62823E-07** at limit **
  10  Prefactor     .10000E-03    .72416        .61920E-11** at limit **
  11  norm          .36291        .60486       -.17602E-06   -.16796E-02
  12  norm          2.3957        1.5569       -.16437E-07   -.27417E-03
  13  Prefactor     1.2756        2.6619       -.50839E-06   -.11398E-02
  14  norm          .38328        1.0188       -.54432E-06   -.16219E-02
  15  Prefactor     .10000E-03    8.9133       -.58301E-07** at limit **
  16  norm          1.8129        1.1210       -.53865E-07   -.32384E-03
  17  Prefactor     .10000E-03    7.1792       -.86782E-07** at limit **
  18  Prefactor     .15849        1.0793       -.78979E-07   -.81431E-03
  19  Prefactor     .10000E-03    2.0400        .45823E-07** at limit **
  20  Normalizat    1.0600        .10482        .52435E-06    .14202E-03
  21  Prefactor     .70800        .11956        .10566E-06    .10854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.3393
  norm       = 0.000100001
  norm       = 1.62861
  Prefactor  = 0.0001
  Prefactor  = 1.75779
  Prefactor  = 0.0001
  norm       = 0.631394
  norm       = 0.932166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.362911
  norm       = 2.39569
  Prefactor  = 1.27561
  norm       = 0.383284
  Prefactor  = 0.0001
  norm       = 1.81288
  Prefactor  = 0.0001
  Prefactor  = 0.15849
  Prefactor  = 0.0001
  Normalizat = 1.06001
  Prefactor  = 0.708
 **********
 **   18 **HESSE 
 **********

 FCN=   10569.24     FROM HESSE     STATUS=OK           337 CALLS     2688 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.339        65.532        .62340E-04   -1.4421    
   2  norm          .10000E-03    6.1402        .74441E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6286        1.5294        .11991E-03   -1.5453    
   4  Prefactor     .10000E-03    1.0750        .10387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7578        4.6394        .31610E-03   -1.5443    
   6  Prefactor     .10000E-03    3.1168        .17572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .63139        .89624        .12766E-02   -1.5549    
   8  norm          .93217        1.0439        .12887E-02   -1.5515    
   9  Prefactor     .10000E-03    2.9006        .17077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .73082        .85334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .36291        .57247        .10199E-02   -1.5587    
  12  norm          2.3957        1.5444        .96062E-04   -1.5398    
  13  Prefactor     1.2756        2.8773        .25194E-03   -1.5482    
  14  norm          .38328        1.1168        .18128E-03   -1.5584    
  15  Prefactor     .10000E-03    8.9234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8129        1.1209        .82434E-04   -1.5439    
  17  Prefactor     .10000E-03    7.4705        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .15849        8.8256        .20573E-02   -1.5628    
  19  Prefactor     .10000E-03    2.0727        .14323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0600        .12330        .18739E-03   -.91046    
  21  Prefactor     .70800        .13890        .26348E-03   -1.0321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03074e-09
Minuit parameter uncertainties:
  1  65.6469
  2  0.00018142
  3  1.52939
  4  6.35237e-06
  5  4.64037
  6  7.55992e-06
  7  0.896262
  8  1.04393
  9  4.71141e-06
  10  1.96906e-06
  11  0.572478
  12  1.54444
  13  2.87759
  14  1.11683
  15  1.44925e-05
  16  1.12093
  17  2.52137e-06
  18  2.36501
  19  1.28832e-05
  20  0.123336
  21  0.138971
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  2.396e+00  1.544e+00  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  2.406e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
276         beta:  1.159e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  3.788e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  7.080e-01  1.390e-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.060e+00  1.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.19
Ra Dec: 24.407 -24.516
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.81e-08 +/- 2.45e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 6.91e-06

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

Saving results to:
/scratch/kocevski/209660/likelihoodResults_500860801_501465601_4FGL_J0137.6-2430_weekly_bin433.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) = 10569.0726329
delta logL = 0.167325303515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10569.0667955
delta logL = 0.173162719939

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2203       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8898       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72595       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=   10569.07     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      229 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2220        25.421        .68994E-02    .10665E-02
   2  alpha         2.8915        3.1805        .41802        .42817E-04
   3  Normalizat    1.0398        .40832E-01    .41297E-01    .25411E-05
   4  Prefactor     .72598        .52183E-01    .42746E-01    .33296E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22197
  alpha      = 2.89155
  Normalizat = 1.03977
  Prefactor  = 0.725978
 **********
 **   18 **HESSE 
 **********

 FCN=   10569.07     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2220        1.7103        .85134E-04   -1.5410    
   2  alpha         2.8915        .94853        .24487E-01    .15727    
   3  Normalizat    1.0398        .12502        .18898E-03   -.91710    
   4  Prefactor     .72598        .14289        .26056E-03   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93555e-12
Minuit parameter uncertainties:
  1  1.71033
  2  0.973563
  3  0.125057
  4  0.142963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209660': 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) = 10569.0667897
delta logL = 0.173168458417

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  2.222e+00  1.710e+00  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  2.892e+00  9.736e-01  0.000e+00  5.000e+00 ( 1.000e+00)
276         beta:  1.159e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  3.788e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  7.260e-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.040e+00  1.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.60
Ra Dec: 24.407 -24.516
Photon Index (Free Index): 2.89 +/- 0.97
Photon Flux (Free Index): 4.98e-08 +/- 3.28e-08
Energy Flux (Free Index): 1.04e-05 +/- 6.47e-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/209660/cmap_HighResolution_500860801_501465601_4FGL_J0137.6-2430_weekly_bin433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', comment='SUCCESS', photon_flux='3.81e-08', energy_flux2='1.04e-05', photon_flux_error='2.45e-08', dlogl='1.73e-01', energy_flux='1.07e-05', photon_flux2='4.98e-08', job_status='DONE', time_completed='2021-07-03 23:55:56.226179', photon_index_error2='0.97', photon_index2='2.89', ts='3.19', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='8.42e-08', energy_flux_error2='6.47e-06', EG='1.06', time_epoch_completed='1625381756.23', return_code='0', job_id='209660', GAL2='0.73', EG2='1.04', return_code2='0', energy_flux_error='6.91e-06', photon_flux_error2='3.28e-08', ts2='3.60', photon_index='2.41' WHERE bin_id='433' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:55:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 209660: <4FGL_J0137.6-2430_weekly_bin433> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin433 24.4069 -24.5163 500860801 501465601 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 :                                   855.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            896 sec.

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

