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


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin317
RA = 24.4069, Dec = -24.5163
tmin = 430704001, tmax = 431308801
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='208311', job_status='RUN', time_executed='2021-07-03 23:36:36.545454', time_epoch_executed='1625380596.55' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208311

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208311/ft1_4FGL_J0137.6-2430_weekly_bin317.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208311/ft2_4FGL_J0137.6-2430_weekly_bin317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208311/ft1_4FGL_J0137.6-2430_weekly_bin317.fits outfile=/scratch/kocevski/208311/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin317.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=430704001.0 tmax=431308801.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 12.08
user 11.43
sys 0.38

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208311/ft1_filtered_4FGL_J0137.6-2430_weekly_bin317.fits" evtable="EVENTS" scfile=/scratch/kocevski/208311/ft2_4FGL_J0137.6-2430_weekly_bin317.fits sctable="SC_DATA" outfile=/scratch/kocevski/208311/ltcube_430704001_431308801_4FGL_J0137.6-2430_weekly_bin317.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/208311/ft2_4FGL_J0137.6-2430_weekly_bin317.fits
.....................!
real 28.45
user 27.96
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208311/ft1_filtered_4FGL_J0137.6-2430_weekly_bin317.fits evtable="EVENTS" scfile=/scratch/kocevski/208311/ft2_4FGL_J0137.6-2430_weekly_bin317.fits sctable="SC_DATA" expcube=/scratch/kocevski/208311/ltcube_430704001_431308801_4FGL_J0137.6-2430_weekly_bin317.fits outfile=/scratch/kocevski/208311/expmap_430704001_431308801_4FGL_J0137.6-2430_weekly_bin317.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/208311/ltcube_430704001_431308801_4FGL_J0137.6-2430_weekly_bin317.fits
.....................!
real 194.90
user 186.86
sys 4.86

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/208311/ft1_filtered_4FGL_J0137.6-2430_weekly_bin317.fits scfile=/scratch/kocevski/208311/ft2_4FGL_J0137.6-2430_weekly_bin317.fits outfile=/scratch/kocevski/208311/cmap_430704001_431308801_4FGL_J0137.6-2430_weekly_bin317.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.61
user 0.39
sys 0.17

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

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

This is gtbin version HEAD
real 0.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208311/ft1_filtered_4FGL_J0137.6-2430_weekly_bin317.fits evtable="EVENTS" scfile=/scratch/kocevski/208311/ft2_4FGL_J0137.6-2430_weekly_bin317.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208311/Model_4FGL_J0137.6-2430_weekly_bin317.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/208311/ft1_filtered_4FGL_J0137.6-2430_weekly_bin317.fits.....................!
real 41.30
user 39.12
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    17.542       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.184       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22377       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.3820       1.0000         .10000E-03   10000.    
     8 'norm      '    4.4307       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8813       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .96924       1.0000         .10000E-03   10000.    
    15 'Prefactor '    58.821       1.0000         .10000E-03   10000.    
    16 'norm      '    .84770       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11149E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0130       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0696       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92743       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=   4343.370     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2203 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.840        .19917E-05** at limit **
   2  norm          17.540        14.465        .21046E-05    .11142E-03
   3  norm          .10000E-03    2.9164       -.15585E-07** at limit **
   4  Prefactor     12.223        9.7505        .14635E-05    .33704E-03
   5  Prefactor     .10304E-03    12.888       -.13229E-05** at limit **
   6  Prefactor     .10000E-03    11.911       -.29205E-06** at limit **
   7  norm          6.3800        3.7471       -.54684E-06    .68843E-04
   8  norm          4.4340        3.1687       -.14874E-06    .12610E-03
   9  Prefactor     .10000E-03    10.465       -.43168E-07** at limit **
  10  Prefactor     2.8794        3.4028        .14060E-05   -.27588E-02
  11  norm          .10000E-03    .78617       -.36783E-07** at limit **
  12  norm          .10000E-03    .97416       -.70858E-07** at limit **
  13  Prefactor     .10000E-03    5.7488        .76644E-08** at limit **
  14  norm          .96818        3.7338        .39729E-06   -.96820E-04
  15  Prefactor     58.783        60.993       -.18626E-04   -.16246E-03
  16  norm          .84737        2.7660       -.21425E-06   -.24368E-03
  17  Prefactor     .10000E-03    23.524        .39572E-06** at limit **
  18  Prefactor     .10000E-03    3.1574        .89600E-07** at limit **
  19  Prefactor     5.0113        7.2251       -.27151E-05   -.19148E-03
  20  Normalizat    1.0696        .21800        .98255E-06    .71683E-04
  21  Prefactor     .92750        .23178        .95613E-06    .86554E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 17.5402
  norm       = 0.0001
  Prefactor  = 12.2235
  Prefactor  = 0.000103037
  Prefactor  = 0.0001
  norm       = 6.37995
  norm       = 4.43399
  Prefactor  = 0.0001
  Prefactor  = 2.87941
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.968177
  Prefactor  = 58.7835
  norm       = 0.84737
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.01126
  Normalizat = 1.06962
  Prefactor  = 0.927502
 **********
 **   18 **HESSE 
 **********

 FCN=   4343.370     FROM HESSE     STATUS=OK           323 CALLS     2526 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          17.540        14.464        .95628E-04   -1.4870    
   3  norm          .10000E-03    2.9436        .10991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.223        9.8281        .11476E-03   -1.5009    
   5  Prefactor     .10304E-03    20.376        .72101E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.3800        4.0213        .90145E-04   -1.5203    
   8  norm          4.4340        3.1654        .95338E-04   -1.5287    
   9  Prefactor     .10000E-03    10.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8794        7.4970        .11972E-02   -1.5369    
  11  norm          .10000E-03    .81576        .11394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .98327        .63479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.8064        .15426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .96818        3.7347        .22908E-03   -1.5511    
  15  Prefactor     58.783        61.231        .52311E-04   -1.4173    
  16  norm          .84737        2.7918        .17905E-03   -1.5524    
  17  Prefactor     .10000E-03    24.279        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.1886        .11432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.0113        7.2406        .17960E-03   -1.5260    
  20  Normalizat    1.0696        .26297        .22780E-03   -.90733    
  21  Prefactor     .92750        .27778        .27395E-03   -.95187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56221e-08
Minuit parameter uncertainties:
  1  2.64808e-05
  2  14.4666
  3  4.72825e-06
  4  9.82937
  5  0.0157378
  6  3.87102e-06
  7  4.02143
  8  3.16548
  9  6.36061e-06
  10  7.49939
  11  3.74961e-06
  12  1.97975e-06
  13  1.65059e-05
  14  3.73561
  15  61.2971
  16  2.79223
  17  0.000437234
  18  1.43435e-05
  19  7.24187
  20  0.263292
  21  0.278206
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.000e-04  1.980e-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:  9.275e-01  2.782e-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.070e+00  2.633e-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.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/208311/likelihoodResults_430704001_431308801_4FGL_J0137.6-2430_weekly_bin317.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) = 4343.37443129
delta logL = -0.00475235850899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4343.36967554
delta logL = 3.39762573276e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7718       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92748       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=   4343.370     FROM MIGRAD    STATUS=FAILED        78 CALLS      251 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1.2088        .65601E-03** at limit **
   2  alpha         2.7914        3.5962        .16585       -.19487E-05
   3  Normalizat    1.0696        .24062        .22780E-03    .12164E-03
   4  Prefactor     .92750        .27267        .27395E-03    .12421E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4343.370     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      378 TOTAL
                     EDM=   .60E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    1.2088        .14079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7914        3.5962        .58497E-03    .11682    
   3  Normalizat    1.0696        .24062        .67001E-04   -.90733    
   4  Prefactor     .92750        .27267        .89516E-04   -.95187    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4343.370     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      405 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0567        .13120E-03** at limit **
   2  alpha         2.8114        3.8873        .66341E-02    .10625E-07
   3  Normalizat    1.0696        .24088        .45560E-04   -.56494E-04
   4  Prefactor     .92750        .27297        .10958E-04   -.52497E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.81136
  Normalizat = 1.06962
  Prefactor  = 0.927501
 **********
 **   18 **HESSE 
 **********

 FCN=   4343.370     FROM HESSE     STATUS=OK            23 CALLS      428 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0567        .26240E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8114        3.8766        .13268E-02    .12487    
   3  Normalizat    1.0696        .24077        .91121E-05   -.90733    
   4  Prefactor     .92750        .27282        .21916E-05   -.95187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.21112e-12
Minuit parameter uncertainties:
  1  2.91357e-06
  2  159.527
  3  0.241012
  4  0.273224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208311': 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) = 4343.36967541
delta logL = 3.52975530404e-06

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.000e-04  2.914e-06  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  2.811e+00  1.595e+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:  9.275e-01  2.732e-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.070e+00  2.410e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/208311/cmap_HighResolution_430704001_431308801_4FGL_J0137.6-2430_weekly_bin317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-05', job_status='DONE', photon_flux_upper_limit='7.20e-08', time_completed='2021-07-03 23:46:49.553820', job_id='208311', GAL2='0.93', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1625381209.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='317' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:46:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 208311: <4FGL_J0137.6-2430_weekly_bin317> in cluster <slac> Done

Job <4FGL_J0137.6-2430_weekly_bin317> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Jul  3 23:36:02 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 23:36: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:36:03 2021
Terminated at Sat Jul  3 23:46:50 2021
Results reported at Sat Jul  3 23:46:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin317 24.4069 -24.5163 430704001 431308801 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 :                                   568.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   646 sec.
    Turnaround time :                            648 sec.

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

