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


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin335
RA = 24.4069, Dec = -24.5163
tmin = 441590401, tmax = 442195201
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='208338', job_status='RUN', time_executed='2021-07-03 23:36:50.782261', time_epoch_executed='1625380610.78' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='335'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208338

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208338/ft1_4FGL_J0137.6-2430_weekly_bin335.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208338/ft2_4FGL_J0137.6-2430_weekly_bin335.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208338/ft1_4FGL_J0137.6-2430_weekly_bin335.fits outfile=/scratch/kocevski/208338/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin335.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=441590401.0 tmax=442195201.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.25
user 6.95
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208338/ft1_filtered_4FGL_J0137.6-2430_weekly_bin335.fits" evtable="EVENTS" scfile=/scratch/kocevski/208338/ft2_4FGL_J0137.6-2430_weekly_bin335.fits sctable="SC_DATA" outfile=/scratch/kocevski/208338/ltcube_441590401_442195201_4FGL_J0137.6-2430_weekly_bin335.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/208338/ft2_4FGL_J0137.6-2430_weekly_bin335.fits
.....................!
real 27.04
user 26.37
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208338/ft1_filtered_4FGL_J0137.6-2430_weekly_bin335.fits evtable="EVENTS" scfile=/scratch/kocevski/208338/ft2_4FGL_J0137.6-2430_weekly_bin335.fits sctable="SC_DATA" expcube=/scratch/kocevski/208338/ltcube_441590401_442195201_4FGL_J0137.6-2430_weekly_bin335.fits outfile=/scratch/kocevski/208338/expmap_441590401_442195201_4FGL_J0137.6-2430_weekly_bin335.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/208338/ltcube_441590401_442195201_4FGL_J0137.6-2430_weekly_bin335.fits
.....................!
real 193.90
user 185.74
sys 5.69

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/208338/ft1_filtered_4FGL_J0137.6-2430_weekly_bin335.fits scfile=/scratch/kocevski/208338/ft2_4FGL_J0137.6-2430_weekly_bin335.fits outfile=/scratch/kocevski/208338/cmap_441590401_442195201_4FGL_J0137.6-2430_weekly_bin335.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/208338/ft1_filtered_4FGL_J0137.6-2430_weekly_bin335.fits scfile=/scratch/kocevski/208338/ft2_4FGL_J0137.6-2430_weekly_bin335.fits outfile=/scratch/kocevski/208338/cmap_HighResolution_441590401_442195201_4FGL_J0137.6-2430_weekly_bin335.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.62
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2826       1.0000         .10000E-03   10000.    
     2 'norm      '    .13413E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8535       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.915       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.345       1.0000         .10000E-03   10000.    
     7 'norm      '    10.155       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4116       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13165E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9072       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4042       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .29978       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11730E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .46938       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .53704E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6045       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .92919       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .66518       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=   12936.05     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     1962 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4398        52.484        .32885E-02   -.92165E-05
   2  norm          .10000E-03    9.2293        .90712E-02** at limit **
   3  norm          1.8534        1.4064        .76548E-02   -.20724E-03
   4  Prefactor     .10000E-03    1.8345        .47551E-01** at limit **
   5  Prefactor     19.909        8.1249        .22438E-02    .33920E-02
   6  Prefactor     11.345        9.9258        .29735E-02    .14769E-02
   7  norm          10.155        2.7072        .31435E-02   -.11514E-03
   8  norm          1.4109        .91376        .91147E-02   -.33643E-03
   9  Prefactor     .10000E-03    3.5141        .10285    ** at limit **
  10  Prefactor     .10000E-03    .77232        .90712E-02** at limit **
  11  norm          1.9072        .75811        .75267E-02    .64168E-03
  12  norm          1.4041        .95139        .91488E-02    .66327E-03
  13  Prefactor     .10000E-03    1.2181        .90712E-02** at limit **
  14  norm          .29970        .90438        .48832E-01    .14337E-02
  15  Prefactor     .10000E-03    12.032        .90712E-02** at limit **
  16  norm          .46950        .90068        .11145E-01    .35139E-02
  17  Prefactor     .10000E-03    2.2267        .57077E-01** at limit **
  18  Prefactor     .10000E-03    .62789        .90712E-02** at limit **
  19  Prefactor     3.6045        2.6603        .53207E-02    .71399E-03
  20  Normalizat    .92918        .96580E-01    .45274E-01    .19182E-04
  21  Prefactor     .66516        .10671        .41936E-01    .54590E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.43983
  norm       = 0.0001
  norm       = 1.85343
  Prefactor  = 0.0001
  Prefactor  = 19.9095
  Prefactor  = 11.3446
  norm       = 10.1549
  norm       = 1.41091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.90723
  norm       = 1.40406
  Prefactor  = 0.0001
  norm       = 0.299701
  Prefactor  = 0.0001
  norm       = 0.469504
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.60453
  Normalizat = 0.929177
  Prefactor  = 0.665157
 **********
 **   18 **HESSE 
 **********

 FCN=   12936.05     FROM HESSE     STATUS=OK           343 CALLS     2305 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4398        52.309        .13154E-03   -1.5093    
   2  norm          .10000E-03    9.5437        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8534        1.4085        .11452E-03   -1.5436    
   4  Prefactor     .10000E-03    4.4397        .29026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.909        7.9542        .89751E-04   -1.4815    
   6  Prefactor     11.345        10.038        .11894E-03   -1.5034    
   7  norm          10.155        2.7352        .69021E-04   -1.5071    
   8  norm          1.4109        .92785        .83472E-04   -1.5470    
   9  Prefactor     .10000E-03    6.6236        .65449E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .78145        .97453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9072        .75519        .59657E-04   -1.5432    
  12  norm          1.4041        .93741        .85987E-04   -1.5471    
  13  Prefactor     .10000E-03    1.2660        .24505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .29970        2.5175        .16842E-02   -1.5598    
  15  Prefactor     .10000E-03    12.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .46950        .89570        .14121E-03   -1.5571    
  17  Prefactor     .10000E-03    2.1895        .58208E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .63343        .87975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6045        2.6561        .15392E-03   -1.5328    
  20  Normalizat    .92918        .11525        .19255E-03   -.95442    
  21  Prefactor     .66516        .12704        .26372E-03   -1.0491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38844e-09
Minuit parameter uncertainties:
  1  44.5025
  2  8.09117e-06
  3  1.40855
  4  6.38058e-07
  5  7.95463
  6  10.0397
  7  2.73523
  8  0.927864
  9  6.07941e-05
  10  1.64516e-08
  11  0.755197
  12  0.937421
  13  2.35835e-07
  14  1.73705
  15  3.42825e-05
  16  0.895728
  17  3.13241e-05
  18  2.91811e-07
  19  2.65622
  20  0.115285
  21  0.127096
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.404e+00  9.374e-01  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.652e-01  1.271e-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.292e-01  1.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.56
Ra Dec: 24.407 -24.516
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.23e-08 +/- 1.49e-08
Energy Flux (Fixed Index): 6.28e-06 +/- 4.19e-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) = 12934.5055389
delta logL = 1.54104929615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12934.4894987
delta logL = 1.55708944093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23813       1.0000         .10000E-03   10000.    
     2 'alpha     '    .91690       1.0000          .0000       5.0000    
     3 'Normalizat'    .95381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64979       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=   12934.49     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      218 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23818        .21398        .91749E-02   -.44714E-02
   2  alpha         .91713        .35552        .40057        .55468E-04
   3  Normalizat    .95380        .88405E-01    .45586E-01    .11395E-03
   4  Prefactor     .64981        .10453        .60313E-01    .94781E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.23818
  alpha      = 0.917131
  Normalizat = 0.953799
  Prefactor  = 0.649807
 **********
 **   18 **HESSE 
 **********

 FCN=   12934.49     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23818        .33694        .40154E-04   -1.5610    
   2  alpha         .91713        .57515        .16924E-01   -.68561    
   3  Normalizat    .95380        .10618        .19030E-03   -.94595    
   4  Prefactor     .64981        .12540        .26679E-03   -1.0553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97296e-10
Minuit parameter uncertainties:
  1  0.336941
  2  0.583972
  3  0.106199
  4  0.125455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208338': 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) = 12934.4894986
delta logL = 1.5570895754

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  2.382e-01  3.369e-01  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  9.171e-01  5.840e-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.498e-01  1.255e-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.538e-01  1.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.67
Ra Dec: 24.407 -24.516
Photon Index (Free Index): 0.92 +/- 0.58
Photon Flux (Free Index): 3.75e-09 +/- 3.54e-09
Energy Flux (Free Index): 1.49e-05 +/- 1.72e-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/208338/cmap_HighResolution_441590401_442195201_4FGL_J0137.6-2430_weekly_bin335.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.23e-08', energy_flux2='1.49e-05', photon_flux_error='1.49e-08', dlogl='1.56e+00', energy_flux='6.28e-06', photon_flux2='3.75e-09', job_status='DONE', time_completed='2021-07-03 23:51:08.984053', photon_index_error2='0.58', photon_index2='0.92', ts='4.56', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='0.93', time_epoch_completed='1625381468.98', return_code='0', job_id='208338', GAL2='0.65', EG2='0.95', return_code2='0', energy_flux_error='4.19e-06', photon_flux_error2='3.54e-09', ts2='7.67', photon_index='2.41' WHERE bin_id='335' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:51:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0136>
Subject: Job 208338: <4FGL_J0137.6-2430_weekly_bin335> in cluster <slac> Done

Job <4FGL_J0137.6-2430_weekly_bin335> 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) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 23:36:05 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:05 2021
Terminated at Sat Jul  3 23:51:11 2021
Results reported at Sat Jul  3 23:51:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin335 24.4069 -24.5163 441590401 442195201 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 :                                   804.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            907 sec.

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

