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 54 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 = 16892
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin135
RA = 24.4069, Dec = -24.5163
tmin = 320630401, tmax = 321235201
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='208077', job_status='RUN', time_executed='2021-07-03 23:37:16.864122', time_epoch_executed='1625380636.86' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208077

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

Retrieving the FT1 file...

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

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

Retrieving 105 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208077/ft1_4FGL_J0137.6-2430_weekly_bin135.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208077/ft2_4FGL_J0137.6-2430_weekly_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208077/ft1_4FGL_J0137.6-2430_weekly_bin135.fits outfile=/scratch/kocevski/208077/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin135.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=320630401.0 tmax=321235201.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.86
user 7.32
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208077/ft1_filtered_4FGL_J0137.6-2430_weekly_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/208077/ft2_4FGL_J0137.6-2430_weekly_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/208077/ltcube_320630401_321235201_4FGL_J0137.6-2430_weekly_bin135.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/208077/ft2_4FGL_J0137.6-2430_weekly_bin135.fits
.....................!
real 25.77
user 25.28
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208077/ft1_filtered_4FGL_J0137.6-2430_weekly_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/208077/ft2_4FGL_J0137.6-2430_weekly_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/208077/ltcube_320630401_321235201_4FGL_J0137.6-2430_weekly_bin135.fits outfile=/scratch/kocevski/208077/expmap_320630401_321235201_4FGL_J0137.6-2430_weekly_bin135.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/208077/ltcube_320630401_321235201_4FGL_J0137.6-2430_weekly_bin135.fits
.....................!
real 192.02
user 185.47
sys 4.84

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/208077/ft1_filtered_4FGL_J0137.6-2430_weekly_bin135.fits scfile=/scratch/kocevski/208077/ft2_4FGL_J0137.6-2430_weekly_bin135.fits outfile=/scratch/kocevski/208077/cmap_320630401_321235201_4FGL_J0137.6-2430_weekly_bin135.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.60
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208077/ft1_filtered_4FGL_J0137.6-2430_weekly_bin135.fits scfile=/scratch/kocevski/208077/ft2_4FGL_J0137.6-2430_weekly_bin135.fits outfile=/scratch/kocevski/208077/cmap_HighResolution_320630401_321235201_4FGL_J0137.6-2430_weekly_bin135.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.71
user 0.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208077/ft1_filtered_4FGL_J0137.6-2430_weekly_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/208077/ft2_4FGL_J0137.6-2430_weekly_bin135.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208077/Model_4FGL_J0137.6-2430_weekly_bin135.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/208077/ft1_filtered_4FGL_J0137.6-2430_weekly_bin135.fits.....................!
real 71.37
user 68.74
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    219.63       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6664       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.323       1.0000         .10000E-03   10000.    
     7 'norm      '    5.1127       1.0000         .10000E-03   10000.    
     8 'norm      '    .91452       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1180       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9929       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1759       1.0000         .10000E-03   10000.    
    12 'norm      '    .28640E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .32819       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0357       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .94166       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10711E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3811       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4626       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1971       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .75474       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=   8915.982     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2316 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     219.58        90.076       -.58056E-05   -.50938E-03
   2  norm          .10000E-03    3.7709       -.48674E-06** at limit **
   3  norm          .10000E-03    1.9342        .85364E-06** at limit **
   4  Prefactor     .10000E-03    6.5518       -.46445E-06** at limit **
   5  Prefactor     6.6670        12.798       -.24233E-05   -.49310E-03
   6  Prefactor     25.315        14.225        .30961E-06    .31602E-04
   7  norm          5.1131        2.9251        .14963E-07    .24532E-04
   8  norm          .91434        1.0539        .14273E-07    .23243E-03
   9  Prefactor     8.1395        11.133       -.93943E-06   -.32257E-03
  10  Prefactor     3.0026        4.3026        .38761E-06   -.15148E-03
  11  norm          2.1753        1.1049        .45024E-07   -.57429E-04
  12  norm          .10020E-03    .71355       -.17708E-07** at limit **
  13  Prefactor     .31622        2.2093        .35230E-06   -.29000E-03
  14  norm          1.0357        1.9515        .71013E-06    .28802E-03
  15  Prefactor     .10000E-03    8.1188       -.26337E-06** at limit **
  16  norm          .94225        1.3936        .51094E-06    .35671E-03
  17  Prefactor     .10000E-03    4.9632       -.41666E-06** at limit **
  18  Prefactor     1.3795        4.3394        .49923E-07   -.43408E-03
  19  Prefactor     5.4604        5.6904        .31975E-05   -.12554E-02
  20  Normalizat    1.1978        .14801       -.36487E-06   -.29398E-03
  21  Prefactor     .75431        .15190       -.76378E-06   -.13740E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 219.581
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 6.66698
  Prefactor  = 25.315
  norm       = 5.11313
  norm       = 0.914343
  Prefactor  = 8.13948
  Prefactor  = 3.00255
  norm       = 2.17528
  norm       = 0.000100198
  Prefactor  = 0.316222
  norm       = 1.0357
  Prefactor  = 0.0001
  norm       = 0.94225
  Prefactor  = 0.0001
  Prefactor  = 1.37954
  Prefactor  = 5.46042
  Normalizat = 1.19779
  Prefactor  = 0.75431
 **********
 **   18 **HESSE 
 **********

 FCN=   8915.982     FROM HESSE     STATUS=OK           339 CALLS     2655 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     219.58        94.099        .13646E-03   -1.2733    
   2  norm          .10000E-03    3.7831        .17898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.8732        .25292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.6661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6670        13.053        .15541E-03   -1.5191    
   6  Prefactor     25.315        14.280        .79605E-04   -1.4701    
   7  norm          5.1131        2.9306        .95685E-04   -1.5256    
   8  norm          .91434        1.0342        .10004E-03   -1.5517    
   9  Prefactor     8.1395        11.158        .14072E-03   -1.5137    
  10  Prefactor     3.0026        4.2719        .20796E-03   -1.5361    
  11  norm          2.1753        1.1020        .67438E-04   -1.5413    
  12  norm          .10020E-03    2.8882        .24711E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .31622        11.827        .26784E-02   -1.5596    
  14  norm          1.0357        1.7463        .17014E-02   -1.5504    
  15  Prefactor     .10000E-03    8.1250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .94225        1.2277        .13008E-02   -1.5514    
  17  Prefactor     .10000E-03    5.0378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3795        4.3067        .32391E-03   -1.5473    
  19  Prefactor     5.4604        5.9335        .85960E-03   -1.5241    
  20  Normalizat    1.1978        .17106        .21857E-03   -.86671    
  21  Prefactor     .75431        .17582        .29754E-03   -1.0144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55456e-09
Minuit parameter uncertainties:
  1  94.1635
  2  1.01914e-05
  3  0.000124923
  4  0.000129577
  5  13.0588
  6  14.2822
  7  2.93071
  8  1.03426
  9  11.1607
  10  4.2723
  11  1.10206
  12  0.00151426
  13  3.86802
  14  1.74642
  15  2.95913e-05
  16  1.2277
  17  3.83081e-05
  18  4.30768
  19  5.93415
  20  0.171139
  21  0.175947
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.002e-04  1.514e-03  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.543e-01  1.759e-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.198e+00  1.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/208077/likelihoodResults_320630401_321235201_4FGL_J0137.6-2430_weekly_bin135.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): 102
logL (Free Index) = 8915.98158364
delta logL = -4.04817092203e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8914.96475047
delta logL = 1.01679269234

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99540       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2173       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1132       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81051       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=   8914.965     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      262 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99773        14.160        .13149E-01    .13868E-02
   2  alpha         4.2162        2.8963        .50000        .23406E-04
   3  Normalizat    1.1131        .44295E-01    .37487E-01   -.21770E-04
   4  Prefactor     .81063        .48212E-01    .65070E-01   -.53493E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.997731
  alpha      = 4.21624
  Normalizat = 1.11306
  Prefactor  = 0.810629
 **********
 **   18 **HESSE 
 **********

 FCN=   8914.965     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99773        1.8463        .66735E-04   -1.5508    
   2  alpha         4.2162        1.4722        .38000E-01    .75666    
   3  Normalizat    1.1131        .16744        .22530E-03   -.89334    
   4  Prefactor     .81063        .17955        .28785E-03   -.99338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.74194e-09
Minuit parameter uncertainties:
  1  1.84637
  2  1.71583
  3  0.167521
  4  0.179676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208077': 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) = 8914.96474842
delta logL = 1.01679473873

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  8.106e-01  1.797e-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.113e+00  1.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.21
Ra Dec: 24.407 -24.516
Photon Index (Free Index): 4.22 +/- 1.72
Photon Flux (Free Index): 7.50e-08 +/- 5.75e-08
Energy Flux (Free Index): 1.11e-05 +/- 8.81e-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/208077/cmap_HighResolution_320630401_321235201_4FGL_J0137.6-2430_weekly_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-05', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='1.02e+00', photon_flux2='7.50e-08', job_status='DONE', time_completed='2021-07-03 23:50:53.861330', photon_index_error2='1.72', photon_index2='4.22', ts='-0.00', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='7.01e-08', energy_flux_error2='8.81e-06', EG='1.20', time_epoch_completed='1625381453.86', return_code='0', job_id='208077', GAL2='0.81', EG2='1.11', return_code2='0', photon_flux_error2='5.75e-08', ts2='2.21', photon_index='2.41' WHERE bin_id='135' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:50:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 208077: <4FGL_J0137.6-2430_weekly_bin135> in cluster <slac> Done

Job <4FGL_J0137.6-2430_weekly_bin135> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Jul  3 23:35:40 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 23:35:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 23:35:42 2021
Terminated at Sat Jul  3 23:50:54 2021
Results reported at Sat Jul  3 23:50:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin135 24.4069 -24.5163 320630401 321235201 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 :                                   753.09 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             289.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

