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


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin439
RA = 24.4069, Dec = -24.5163
tmin = 504489601, tmax = 505094401
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='209666', job_status='RUN', time_executed='2021-07-03 23:41:27.881835', time_epoch_executed='1625380887.88' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209666

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209666/ft1_4FGL_J0137.6-2430_weekly_bin439.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209666/ft2_4FGL_J0137.6-2430_weekly_bin439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209666/ft1_4FGL_J0137.6-2430_weekly_bin439.fits outfile=/scratch/kocevski/209666/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin439.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=504489601.0 tmax=505094401.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 13.96
user 13.29
sys 0.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209666/ft1_filtered_4FGL_J0137.6-2430_weekly_bin439.fits" evtable="EVENTS" scfile=/scratch/kocevski/209666/ft2_4FGL_J0137.6-2430_weekly_bin439.fits sctable="SC_DATA" outfile=/scratch/kocevski/209666/ltcube_504489601_505094401_4FGL_J0137.6-2430_weekly_bin439.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/209666/ft2_4FGL_J0137.6-2430_weekly_bin439.fits
.....................!
real 27.02
user 26.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209666/ft1_filtered_4FGL_J0137.6-2430_weekly_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/209666/ft2_4FGL_J0137.6-2430_weekly_bin439.fits sctable="SC_DATA" expcube=/scratch/kocevski/209666/ltcube_504489601_505094401_4FGL_J0137.6-2430_weekly_bin439.fits outfile=/scratch/kocevski/209666/expmap_504489601_505094401_4FGL_J0137.6-2430_weekly_bin439.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/209666/ltcube_504489601_505094401_4FGL_J0137.6-2430_weekly_bin439.fits
.....................!
real 192.63
user 186.78
sys 4.54

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/209666/ft1_filtered_4FGL_J0137.6-2430_weekly_bin439.fits scfile=/scratch/kocevski/209666/ft2_4FGL_J0137.6-2430_weekly_bin439.fits outfile=/scratch/kocevski/209666/cmap_504489601_505094401_4FGL_J0137.6-2430_weekly_bin439.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.71
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209666/ft1_filtered_4FGL_J0137.6-2430_weekly_bin439.fits scfile=/scratch/kocevski/209666/ft2_4FGL_J0137.6-2430_weekly_bin439.fits outfile=/scratch/kocevski/209666/cmap_HighResolution_504489601_505094401_4FGL_J0137.6-2430_weekly_bin439.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.75
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12886E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.8122       1.0000         .10000E-03   10000.    
     3 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0069       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3388       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2915       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2072       1.0000         .10000E-03   10000.    
     8 'norm      '    .80274       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0317       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .88684       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8066       1.0000         .10000E-03   10000.    
    14 'norm      '    .37350E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.1718       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.211       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6551       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1318       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .86014       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=   11911.70     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     1998 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.432       -.33457E-05** at limit **
   2  norm          5.8019        4.2778        .28775E-07    .25176E-04
   3  norm          .10000E-03    1.0737       -.44331E-07** at limit **
   4  Prefactor     3.0054        1.2688        .12062E-06   -.41250E-02
   5  Prefactor     4.3443        5.9672       -.25066E-06   -.51790E-04
   6  Prefactor     4.3468        5.8816       -.11139E-05   -.11712E-03
   7  norm          1.2012        1.2908        .30631E-06    .82993E-06
   8  norm          .80253        1.1356        .80986E-07    .12605E-03
   9  Prefactor     4.0445        3.9096       -.16187E-05   -.49793E-04
  10  Prefactor     .10000E-03    1.4343       -.18853E-09** at limit **
  11  norm          .88684        .67795        .44017E-07   -.16055E-05
  12  norm          .10000E-03    .46290        .68480E-07** at limit **
  13  Prefactor     1.8077        3.3435        .22800E-05   -.73174E-04
  14  norm          .38749E-01    .63241        .30252E-06   -.10139E-02
  15  Prefactor     .10000E-03    21.375        .27731E-05** at limit **
  16  norm          5.1723        1.8719        .54523E-08   -.10719E-03
  17  Prefactor     12.190        7.9035       -.33911E-05   -.17894E-03
  18  Prefactor     8.6703        4.8743        .22391E-05    .10386E-03
  19  Prefactor     .10000E-03    2.3909        .45648E-07** at limit **
  20  Normalizat    1.1317        .12334       -.98747E-07   -.25112E-03
  21  Prefactor     .86015        .13697       -.33349E-06   -.13444E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.80189
  norm       = 0.0001
  Prefactor  = 3.00536
  Prefactor  = 4.34434
  Prefactor  = 4.34677
  norm       = 1.20124
  norm       = 0.802531
  Prefactor  = 4.04452
  Prefactor  = 0.0001
  norm       = 0.886836
  norm       = 0.0001
  Prefactor  = 1.80772
  norm       = 0.0387487
  Prefactor  = 0.0001
  norm       = 5.17229
  Prefactor  = 12.1897
  Prefactor  = 8.67028
  Prefactor  = 0.0001
  Normalizat = 1.13166
  Prefactor  = 0.860154
 **********
 **   18 **HESSE 
 **********

 FCN=   11911.70     FROM HESSE     STATUS=OK           331 CALLS     2329 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.8019        4.2795        .16659E-03   -1.5226    
   3  norm          .10000E-03    2.7398        .21994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0054        3.9252        .11465E-02   -1.5361    
   5  Prefactor     4.3443        6.0207        .19338E-03   -1.5291    
   6  Prefactor     4.3468        5.8384        .19448E-03   -1.5291    
   7  norm          1.2012        1.2822        .41225E-04   -1.5489    
   8  norm          .80253        .93032        .13277E-02   -1.5529    
   9  Prefactor     4.0445        3.9090        .20083E-03   -1.5306    
  10  Prefactor     .10000E-03    1.4861        .25457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .88684        .65927        .75108E-04   -1.5520    
  12  norm          .10000E-03    .82177        .14329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8077        3.3301        .26305E-03   -1.5439    
  14  norm          .38749E-01    11.590        .16517E-02   -1.5669    
  15  Prefactor     .10000E-03    21.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.1723        1.8754        .85860E-04   -1.5253    
  17  Prefactor     12.190        7.9110        .11463E-03   -1.5010    
  18  Prefactor     8.6703        4.8765        .13625E-03   -1.5119    
  19  Prefactor     .10000E-03    2.4036        .16476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1317        .14495        .21671E-03   -.88742    
  21  Prefactor     .86015        .15987        .27967E-03   -.97548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23578e-08
Minuit parameter uncertainties:
  1  1.33266e-05
  2  4.27974
  3  2.18417e-05
  4  3.92554
  5  6.02158
  6  5.83916
  7  1.28223
  8  0.930333
  9  3.90923
  10  4.70418e-06
  11  0.659279
  12  3.81292e-06
  13  3.33039
  14  1.33881
  15  6.46751e-05
  16  1.8754
  17  7.91165
  18  4.8767
  19  8.1829e-06
  20  0.144997
  21  0.159956
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.000e-04  3.813e-06  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:  8.602e-01  1.600e-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.132e+00  1.450e-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: 3.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.86e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209666/likelihoodResults_504489601_505094401_4FGL_J0137.6-2430_weekly_bin439.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) = 11911.7038836
delta logL = -0.00580644517686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11911.6980596
delta logL = 1.74774850166e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11334E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9755       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86012       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   11911.70     FROM MIGRAD    STATUS=FAILED        97 CALLS      281 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    291.55        .15059E-02** at limit **
   2  alpha         3.2818        2.8827        .16854        .14813E-06
   3  Normalizat    1.1317        .69256E-01    .21671E-03   -.20145E-02
   4  Prefactor     .86015        .77646E-01    .27967E-03   -.16536E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11911.70     FROM SIMPLEX   STATUS=UNCHANGED    187 CALLS      468 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    291.55        .17652E-03** at limit **
   2  alpha         3.2818        2.8827        .16301E-05    .14813E-06
   3  Normalizat    1.1317        .69256E-01    .56394E-07   -.20145E-02
   4  Prefactor     .86015        .77646E-01    .27900E-07   -.16536E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11911.70     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      496 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4546        .30119E-03** at limit **
   2  alpha         3.2797        2.6135        .67414E-02   -.15245E-06
   3  Normalizat    1.1317        .13878        .43341E-04   -.20277E-02
   4  Prefactor     .86015        .15913        .55934E-04   -.16628E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.27972
  Normalizat = 1.13166
  Prefactor  = 0.860153
 **********
 **   18 **HESSE 
 **********

 FCN=   11911.70     FROM HESSE     STATUS=OK            23 CALLS      519 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4552        .60238E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.2797        2.6710        .13483E-02    .31718    
   3  Normalizat    1.1317        .13880        .86682E-05   -.88742    
   4  Prefactor     .86015        .15915        .11187E-04   -.97548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07062e-09
Minuit parameter uncertainties:
  1  2.52735e-05
  2  128.029
  3  0.138843
  4  0.159234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209666': 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) = 11911.6980508
delta logL = 2.63125020865e-05

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.000e-04  2.527e-05  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  3.280e+00  1.280e+02  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.602e-01  1.592e-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.132e+00  1.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 24.407 -24.516

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/209666/cmap_HighResolution_504489601_505094401_4FGL_J0137.6-2430_weekly_bin439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.86e-06', job_status='DONE', photon_flux_upper_limit='3.50e-08', time_completed='2021-07-03 23:56:55.848602', job_id='209666', GAL2='0.86', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1625381815.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.63e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='439' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:56:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 209666: <4FGL_J0137.6-2430_weekly_bin439> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin439 24.4069 -24.5163 504489601 505094401 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 :                                   908.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            955 sec.

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

