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


Performing analysis on: 4FGL_J0137.6-2430_weekly_bin151
RA = 24.4069, Dec = -24.5163
tmin = 330307201, tmax = 330912001
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='208101', job_status='RUN', time_executed='2021-07-03 23:36:15.010158', time_epoch_executed='1625380575.01' WHERE source_name='4FGL J0137.6-2430' and cadence='weekly' and bin_id='151'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208101

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208101/ft1_4FGL_J0137.6-2430_weekly_bin151.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208101/ft2_4FGL_J0137.6-2430_weekly_bin151.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208101/ft1_4FGL_J0137.6-2430_weekly_bin151.fits outfile=/scratch/kocevski/208101/ft1_filteredMKT_4FGL_J0137.6-2430_weekly_bin151.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=330307201.0 tmax=330912001.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.65
user 7.95
sys 0.30

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208101/ft1_filtered_4FGL_J0137.6-2430_weekly_bin151.fits" evtable="EVENTS" scfile=/scratch/kocevski/208101/ft2_4FGL_J0137.6-2430_weekly_bin151.fits sctable="SC_DATA" outfile=/scratch/kocevski/208101/ltcube_330307201_330912001_4FGL_J0137.6-2430_weekly_bin151.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/208101/ft2_4FGL_J0137.6-2430_weekly_bin151.fits
.....................!
real 26.62
user 25.72
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208101/ft1_filtered_4FGL_J0137.6-2430_weekly_bin151.fits evtable="EVENTS" scfile=/scratch/kocevski/208101/ft2_4FGL_J0137.6-2430_weekly_bin151.fits sctable="SC_DATA" expcube=/scratch/kocevski/208101/ltcube_330307201_330912001_4FGL_J0137.6-2430_weekly_bin151.fits outfile=/scratch/kocevski/208101/expmap_330307201_330912001_4FGL_J0137.6-2430_weekly_bin151.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/208101/ltcube_330307201_330912001_4FGL_J0137.6-2430_weekly_bin151.fits
.....................!
real 194.24
user 186.13
sys 5.14

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/208101/ft1_filtered_4FGL_J0137.6-2430_weekly_bin151.fits scfile=/scratch/kocevski/208101/ft2_4FGL_J0137.6-2430_weekly_bin151.fits outfile=/scratch/kocevski/208101/cmap_330307201_330912001_4FGL_J0137.6-2430_weekly_bin151.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.58
user 0.43
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208101/ft1_filtered_4FGL_J0137.6-2430_weekly_bin151.fits evtable="EVENTS" scfile=/scratch/kocevski/208101/ft2_4FGL_J0137.6-2430_weekly_bin151.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208101/Model_4FGL_J0137.6-2430_weekly_bin151.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/208101/ft1_filtered_4FGL_J0137.6-2430_weekly_bin151.fits.....................!
real 75.64
user 73.53
sys 1.52

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1803       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.5100       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0088       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.1523       1.0000         .10000E-03   10000.    
     8 'norm      '    3.5860       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.3048       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3395       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8481       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13382E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.639       1.0000         .10000E-03   10000.    
    16 'norm      '    6.4001       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .63344E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2457       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5064       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0685       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81049       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.

 FCN=   9682.412     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     1962 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1759        42.544         .0000        .75306E-03
   2  norm          .10000E-03    2.0774         .0000    ** at limit **
   3  norm          2.5097        2.2441         .0000       -.85469E-03
   4  Prefactor     2.0106        4.6849         .0000        .27226E-01
   5  Prefactor     .10000E-03    14.155         .0000    ** at limit **
   6  Prefactor     .10000E-03    2.5266         .0000    ** at limit **
   7  norm          2.1531        1.5006         .0000        .43099E-03
   8  norm          3.5860        1.8798         .0000        .12822E-03
   9  Prefactor     8.3107        11.338         .0000        .56229E-02
  10  Prefactor     1.3367        3.7296         .0000        .17414E-02
  11  norm          .10000E-03    .28340         .0000    ** at limit **
  12  norm          1.8485        1.5820         .0000        .48755E-03
  13  Prefactor     .10000E-03    2.7071         .0000    ** at limit **
  14  norm          .10000E-03    .85930         .0000    ** at limit **
  15  Prefactor     14.640        15.044         .0000       -.17958E-02
  16  norm          6.3999        1.9990         .0000        .60405E-03
  17  Prefactor     .40468E-01    3.5376         .0000        .19637E-03
  18  Prefactor     4.2481        4.8409         .0000        .17302E-01
  19  Prefactor     1.5062        3.2429         .0000        .19113E-02
  20  Normalizat    1.0685        .13038         .0000        .70800E-05
  21  Prefactor     .81060        .14092         .0000        .71802E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.17588
  norm       = 0.0001
  norm       = 2.50974
  Prefactor  = 2.01059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.15307
  norm       = 3.586
  Prefactor  = 8.3107
  Prefactor  = 1.33672
  norm       = 0.0001
  norm       = 1.84848
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.6399
  norm       = 6.39987
  Prefactor  = 0.0404679
  Prefactor  = 4.24813
  Prefactor  = 1.50615
  Normalizat = 1.06847
  Prefactor  = 0.810598
 **********
 **   18 **HESSE 
 **********

 FCN=   9682.412     FROM HESSE     STATUS=OK           333 CALLS     2295 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1759        42.535        .14970E-03   -1.5172    
   2  norm          .10000E-03    2.0784        .13850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5097        2.2511        .13566E-03   -1.5391    
   4  Prefactor     2.0106        4.6597        .14606E-02   -1.5424    
   5  Prefactor     .10000E-03    14.545        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5325        .15257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.1531        1.4731        .91610E-04   -1.5414    
   8  norm          3.5860        1.8768        .91459E-04   -1.5329    
   9  Prefactor     8.3107        11.276        .13911E-03   -1.5131    
  10  Prefactor     1.3367        3.6253        .26979E-03   -1.5477    
  11  norm          .10000E-03    .60676        .10170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8485        1.5529        .10486E-03   -1.5436    
  13  Prefactor     .10000E-03    10.919        .31031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4496        .17532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.640        15.043        .10468E-03   -1.4943    
  16  norm          6.3999        1.9994        .73807E-04   -1.5202    
  17  Prefactor     .40468E-01    5.7328        .61967E-01   -1.5668    
  18  Prefactor     4.2481        4.8181        .97776E-03   -1.5296    
  19  Prefactor     1.5062        3.1997        .24920E-03   -1.5463    
  20  Normalizat    1.0685        .15038        .21054E-03   -.90771    
  21  Prefactor     .81060        .16387        .27341E-03   -.99339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69701e-08
Minuit parameter uncertainties:
  1  34.9788
  2  9.55131e-06
  3  2.25121
  4  4.66059
  5  5.91675e-05
  6  3.41873e-06
  7  1.47315
  8  1.87685
  9  11.2794
  10  3.62588
  11  5.7981e-06
  12  1.55293
  13  3.88797e-05
  14  2.51749e-05
  15  15.0472
  16  1.99938
  17  0.962221
  18  4.81852
  19  3.20002
  20  0.150439
  21  0.163969
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.848e+00  1.553e+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

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


TS (Fixed Index): 2.61
Ra Dec: 24.407 -24.516
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 2.47e-08
Energy Flux (Fixed Index): 8.27e-06 +/- 6.95e-06

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

Saving results to:
/scratch/kocevski/208101/likelihoodResults_330307201_330912001_4FGL_J0137.6-2430_weekly_bin151.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) = 9682.3247801
delta logL = 0.0870242662022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9682.32406149
delta logL = 0.0877428765507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9044       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9030       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82685       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=   9682.324     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9042        33.384        .75332E-02    .77507E-03
   2  alpha         2.9034        3.1487        .41848        .43867E-04
   3  Normalizat    1.0484        .49600E-01    .40666E-01    .38652E-04
   4  Prefactor     .82685        .56971E-01    .44066E-01    .32385E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.9042
  alpha      = 2.9034
  Normalizat = 1.04837
  Prefactor  = 0.826853
 **********
 **   18 **HESSE 
 **********

 FCN=   9682.324     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9042        1.5460        .93395E-04   -1.5432    
   2  alpha         2.9034        1.1121        .32691E-01    .16207    
   3  Normalizat    1.0484        .14919        .21227E-03   -.91427    
   4  Prefactor     .82685        .16673        .27101E-03   -.98746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.99863e-09
Minuit parameter uncertainties:
  1  1.546
  2  1.15369
  3  0.149252
  4  0.166836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208101': 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) = 9682.32406143
delta logL = 0.0877429350676

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.904e+00  1.546e+00  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  2.903e+00  1.154e+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.269e-01  1.668e-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.048e+00  1.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 24.407 -24.516
Photon Index (Free Index): 2.90 +/- 1.15
Photon Flux (Free Index): 4.31e-08 +/- 3.94e-08
Energy Flux (Free Index): 8.96e-06 +/- 6.54e-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/208101/cmap_HighResolution_330307201_330912001_4FGL_J0137.6-2430_weekly_bin151.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.28e-05', comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='8.96e-06', photon_flux_error='2.47e-08', dlogl='8.77e-02', energy_flux='8.27e-06', photon_flux2='4.31e-08', job_status='DONE', time_completed='2021-07-03 23:49:13.573015', photon_index_error2='1.15', photon_index2='2.90', ts='2.61', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='8.12e-08', energy_flux_error2='6.54e-06', EG='1.07', time_epoch_completed='1625381353.57', return_code='0', job_id='208101', GAL2='0.83', EG2='1.05', return_code2='0', energy_flux_error='6.95e-06', photon_flux_error2='3.94e-08', ts2='2.82', photon_index='2.41' WHERE bin_id='151' AND source_name='4FGL J0137.6-2430' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 23:49:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 208101: <4FGL_J0137.6-2430_weekly_bin151> in cluster <slac> Done

Job <4FGL_J0137.6-2430_weekly_bin151> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Jul  3 23:35:42 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 23:35:44 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:44 2021
Terminated at Sat Jul  3 23:49:14 2021
Results reported at Sat Jul  3 23:49:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_weekly_bin151 24.4069 -24.5163 330307201 330912001 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 :                                   757.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

