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


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin577
RA = 24.4069, Dec = -24.5163
tmin = 587952001, tmax = 588556801
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='209934', job_status='RUN', time_executed='2021-07-03 23:41:53.275554', time_epoch_executed='1625380913.28' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209934

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209934/ft1_4FGL_J0137.6-2430_weekly_bin577.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209934/ft2_4FGL_J0137.6-2430_weekly_bin577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209934/ft1_4FGL_J0137.6-2430_weekly_bin577.fits outfile=/scratch/kocevski/209934/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin577.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=587952001.0 tmax=588556801.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.25
user 7.90
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209934/ft1_filtered_4FGL_J0137.6-2430_weekly_bin577.fits" evtable="EVENTS" scfile=/scratch/kocevski/209934/ft2_4FGL_J0137.6-2430_weekly_bin577.fits sctable="SC_DATA" outfile=/scratch/kocevski/209934/ltcube_587952001_588556801_4FGL_J0137.6-2430_weekly_bin577.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/209934/ft2_4FGL_J0137.6-2430_weekly_bin577.fits
.....................!
real 26.46
user 25.97
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209934/ft1_filtered_4FGL_J0137.6-2430_weekly_bin577.fits evtable="EVENTS" scfile=/scratch/kocevski/209934/ft2_4FGL_J0137.6-2430_weekly_bin577.fits sctable="SC_DATA" expcube=/scratch/kocevski/209934/ltcube_587952001_588556801_4FGL_J0137.6-2430_weekly_bin577.fits outfile=/scratch/kocevski/209934/expmap_587952001_588556801_4FGL_J0137.6-2430_weekly_bin577.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/209934/ltcube_587952001_588556801_4FGL_J0137.6-2430_weekly_bin577.fits
.....................!
real 191.67
user 185.80
sys 5.07

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/209934/ft1_filtered_4FGL_J0137.6-2430_weekly_bin577.fits scfile=/scratch/kocevski/209934/ft2_4FGL_J0137.6-2430_weekly_bin577.fits outfile=/scratch/kocevski/209934/cmap_587952001_588556801_4FGL_J0137.6-2430_weekly_bin577.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.78
user 0.42
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209934/ft1_filtered_4FGL_J0137.6-2430_weekly_bin577.fits scfile=/scratch/kocevski/209934/ft2_4FGL_J0137.6-2430_weekly_bin577.fits outfile=/scratch/kocevski/209934/cmap_HighResolution_587952001_588556801_4FGL_J0137.6-2430_weekly_bin577.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=24.4069 yref=-24.5163 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.65
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209934/ft1_filtered_4FGL_J0137.6-2430_weekly_bin577.fits evtable="EVENTS" scfile=/scratch/kocevski/209934/ft2_4FGL_J0137.6-2430_weekly_bin577.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209934/Model_4FGL_J0137.6-2430_weekly_bin577.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/209934/ft1_filtered_4FGL_J0137.6-2430_weekly_bin577.fits....................!
real 94.02
user 91.97
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.401       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7634       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .31838E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .73622       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7127       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3519       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4446       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3271       1.0000         .10000E-03   10000.    
    12 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4278       1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7566       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3462       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6912       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0047       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91131       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81150       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=   13281.67     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     1947 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.409        38.150        .99918E-05   -.29483E-03
   2  norm          .10000E-03    2.2536       -.10741E-07** at limit **
   3  norm          1.7632        1.7001       -.83140E-07   -.51599E-03
   4  Prefactor     .10000E-03    1.2872       -.12475E-06** at limit **
   5  Prefactor     .10000E-03    4.9909        .29444E-07** at limit **
   6  Prefactor     .10000E-03    1.1315        .27742E-08** at limit **
   7  norm          .73653        .84826       -.10592E-06   -.11899E-02
   8  norm          1.7129        .97406        .79753E-08    .13791E-03
   9  Prefactor     9.3537        6.1670       -.24381E-06    .78570E-04
  10  Prefactor     9.4446        2.8236        .59496E-07   -.17470E-03
  11  norm          1.3268        .70353       -.39838E-07   -.93905E-03
  12  norm          .10000E-03    .44602        .11443E-07** at limit **
  13  Prefactor     1.4270        2.2068       -.56439E-06   -.15155E-02
  14  norm          .10000E-03    .61829        .68287E-08** at limit **
  15  Prefactor     .10000E-03    9.0605       -.10498E-06** at limit **
  16  norm          2.7560        1.0866       -.72204E-08   -.38671E-03
  17  Prefactor     3.3450        3.6521        .18899E-06   -.91694E-04
  18  Prefactor     1.6903        2.1795       -.34268E-06   -.12664E-02
  19  Prefactor     2.0025        3.2275       -.10360E-05   -.15630E-02
  20  Normalizat    .91151        .95080E-01    .14358E-06    .11915E-03
  21  Prefactor     .81144        .10796       -.16395E-06    .93301E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.4089
  norm       = 0.0001
  norm       = 1.76319
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.736526
  norm       = 1.71285
  Prefactor  = 9.35368
  Prefactor  = 9.44464
  norm       = 1.32677
  norm       = 0.0001
  Prefactor  = 1.42702
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.75604
  Prefactor  = 3.34501
  Prefactor  = 1.69032
  Prefactor  = 2.00248
  Normalizat = 0.911515
  Prefactor  = 0.811445
 **********
 **   18 **HESSE 
 **********

 FCN=   13281.67     FROM HESSE     STATUS=OK           337 CALLS     2284 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.409        35.473        .71503E-04   -1.4587    
   2  norm          .10000E-03    2.2598        .16895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7632        1.6913        .14391E-03   -1.5442    
   4  Prefactor     .10000E-03    2.9007        .41865E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.1343        .11961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .73653        .70226        .10808E-02   -1.5536    
   8  norm          1.7129        .97387        .82974E-04   -1.5446    
   9  Prefactor     9.3537        6.1531        .13105E-03   -1.5096    
  10  Prefactor     9.4446        2.7790        .97712E-04   -1.5093    
  11  norm          1.3268        .69902        .67257E-04   -1.5478    
  12  norm          .10000E-03    .83806        .14698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4270        2.2752        .21397E-03   -1.5469    
  14  norm          .10000E-03    1.8255        .17444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.0738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7560        1.0863        .72410E-04   -1.5376    
  17  Prefactor     3.3450        3.6479        .22125E-03   -1.5342    
  18  Prefactor     1.6903        2.1899        .18680E-03   -1.5448    
  19  Prefactor     2.0025        3.4478        .26585E-03   -1.5425    
  20  Normalizat    .91151        .11196        .20083E-03   -.96057    
  21  Prefactor     .81144        .12735        .25079E-03   -.99308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41581e-09
Minuit parameter uncertainties:
  1  35.4966
  2  9.08029e-06
  3  1.69133
  4  9.31744e-05
  5  2.85192e-07
  6  4.5259e-08
  7  0.702263
  8  0.973875
  9  6.15355
  10  2.77903
  11  0.699025
  12  2.1622e-07
  13  2.27531
  14  4.27568e-06
  15  4.45309e-06
  16  1.0863
  17  3.64813
  18  2.19005
  19  3.44813
  20  0.11199
  21  0.127397
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.000e-04  2.162e-07  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.114e-01  1.274e-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.115e-01  1.120e-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.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.05e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209934/likelihoodResults_587952001_588556801_4FGL_J0137.6-2430_weekly_bin577.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) = 13281.6259749
delta logL = 0.0409493615043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13281.6169431
delta logL = 0.049981068365

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10581       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2019       1.0000          .0000       5.0000    
     3 'Normalizat'    .90134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81865       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   13281.62     FROM MIGRAD    STATUS=FAILED       104 CALLS      419 TOTAL
                     EDM=   .29E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10340        35.682        .84855E-03    .86847E-03
   2  alpha         4.2186        2.8479        .50000        .95585E-03
   3  Normalizat    .90130        .38307E-01    .20184E-03   -.25909E-05
   4  Prefactor     .81869        .44285E-01    .24979E-03   -.13654E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13281.62     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      507 TOTAL
                     EDM=   .76E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10340        35.682        .60773E-04    .86847E-03
   2  alpha         4.2186        2.8479        .61157E-02    .95585E-03
   3  Normalizat    .90130        .38307E-01    .69490E-04   -.25909E-05
   4  Prefactor     .81869        .44285E-01    .57506E-04   -.13654E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   13281.62     FROM MIGRAD    STATUS=FAILED        78 CALLS      585 TOTAL
                     EDM=   .33E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10340        40.575        .13577E-05    .24385E-04
   2  alpha         4.2187        2.5805        .50000        .95653E-03
   3  Normalizat    .90130        .43605E-01    .16147E-05   -.56325E-05
   4  Prefactor     .81869        .51270E-01    .19983E-05   -.22757E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.103402
  alpha      = 4.21865
  Normalizat = 0.901302
  Prefactor  = 0.818688
 **********
 **   18 **HESSE 
 **********

 FCN=   13281.62     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      612 TOTAL
                     EDM=   .33E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10340        40.564        .37297E-06   -1.5644    
   2  alpha         4.2187        2.5708        .50000        .75799    
   3  Normalizat    .90130        .44276E-01    .32295E-06   -.96414    
   4  Prefactor     .81869        .51169E-01    .39966E-06   -.99043    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.00032758
Minuit parameter uncertainties:
  1  4.09683
  2  34.3592
  3  0.044278
  4  0.0511717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209934': 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): 1
logL (Free Index) = 13281.6169325
delta logL = 0.0499917429024

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.034e-01  4.097e+00  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  4.219e+00  3.436e+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:  8.187e-01  5.117e-02  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.013e-01  4.428e-02  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/209934/cmap_HighResolution_587952001_588556801_4FGL_J0137.6-2430_weekly_bin577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.05e-06', job_status='DONE', photon_flux_upper_limit='3.22e-08', time_completed='2021-07-03 23:58:00.723247', job_id='209934', GAL2='0.82', fit_tolerance='1e-08', EG2='0.90', EG='0.91', time_epoch_completed='1625381880.72', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='5.00e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='577' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:58:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0116>
Subject: Job 209934: <4FGL_J0137.6-2430_weekly_bin577> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin577 24.4069 -24.5163 587952001 588556801 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 :                                   956.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             301.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

