/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 56 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 = 7442
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0137.6-2430_daily_bin1622
RA = 24.4069, Dec = -24.5163
tmin = 659750401, tmax = 660009601
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='140969', job_status='RUN', time_executed='2021-12-07 12:13:12.367100', time_epoch_executed='1638907992.37' WHERE source_name='4FGL J0137.6-2430' and cadence='daily' and bin_id='1622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/140969

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/140969/ft1_4FGL_J0137.6-2430_daily_bin1622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/140969/ft2_4FGL_J0137.6-2430_daily_bin1622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/140969/ft1_4FGL_J0137.6-2430_daily_bin1622.fits outfile=/scratch/kocevski/140969/ft1_filteredMKT_4FGL_J0137.6-2430_daily_bin1622.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=659750401.0 tmax=660009601.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 2.38
user 2.17
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/140969/ft2_4FGL_J0137.6-2430_daily_bin1622.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/140969/ft1_filteredMKT_4FGL_J0137.6-2430_daily_bin1622.fits evtable="EVENTS" outfile="/scratch/kocevski/140969/ft1_filtered_4FGL_J0137.6-2430_daily_bin1622.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.50
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/140969/ft1_filtered_4FGL_J0137.6-2430_daily_bin1622.fits" evtable="EVENTS" scfile=/scratch/kocevski/140969/ft2_4FGL_J0137.6-2430_daily_bin1622.fits sctable="SC_DATA" outfile=/scratch/kocevski/140969/ltcube_659750401_660009601_4FGL_J0137.6-2430_daily_bin1622.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/140969/ft2_4FGL_J0137.6-2430_daily_bin1622.fits
.....................!
real 14.17
user 13.80
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/140969/ft1_filtered_4FGL_J0137.6-2430_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/140969/ft2_4FGL_J0137.6-2430_daily_bin1622.fits sctable="SC_DATA" expcube=/scratch/kocevski/140969/ltcube_659750401_660009601_4FGL_J0137.6-2430_daily_bin1622.fits outfile=/scratch/kocevski/140969/expmap_659750401_660009601_4FGL_J0137.6-2430_daily_bin1622.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/140969/ltcube_659750401_660009601_4FGL_J0137.6-2430_daily_bin1622.fits
.....................!
real 191.66
user 186.83
sys 4.50

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/140969/ft1_filtered_4FGL_J0137.6-2430_daily_bin1622.fits scfile=/scratch/kocevski/140969/ft2_4FGL_J0137.6-2430_daily_bin1622.fits outfile=/scratch/kocevski/140969/cmap_659750401_660009601_4FGL_J0137.6-2430_daily_bin1622.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/140969/ft1_filtered_4FGL_J0137.6-2430_daily_bin1622.fits scfile=/scratch/kocevski/140969/ft2_4FGL_J0137.6-2430_daily_bin1622.fits outfile=/scratch/kocevski/140969/cmap_HighResolution_659750401_660009601_4FGL_J0137.6-2430_daily_bin1622.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/140969/ft1_filtered_4FGL_J0137.6-2430_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/140969/ft2_4FGL_J0137.6-2430_daily_bin1622.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/140969/Model_4FGL_J0137.6-2430_daily_bin1622.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/140969/ft1_filtered_4FGL_J0137.6-2430_daily_bin1622.fits.....................!
real 39.54
user 38.23
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    160.71       1.0000         .10000E-03   10000.    
     2 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.5214       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7153       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.623       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.4748       1.0000         .10000E-03   10000.    
     8 'norm      '    .35143       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.559       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6191       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5792       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0316       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.1489       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8518       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.676       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1430       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .49825       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=   4222.906     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     2191 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     160.68        137.82       -.91301E-05   -.21135E-03
   2  norm          .10000E-03    6.4307       -.47998E-07** at limit **
   3  norm          4.5209        4.7113        .20694E-06    .52629E-04
   4  Prefactor     5.7091        9.7858        .30557E-05    .43402E-03
   5  Prefactor     14.613        18.917       -.22457E-05   -.14537E-03
   6  Prefactor     .10000E-03    10.767       -.31647E-06** at limit **
   7  norm          5.4738        3.2320       -.31677E-06    .10724E-03
   8  norm          .35041        2.0266        .67096E-06   -.30451E-03
   9  Prefactor     14.556        19.177       -.10655E-05   -.88580E-04
  10  Prefactor     5.6179        5.2107        .18463E-05   -.17236E-02
  11  norm          1.5791        1.4651       -.46724E-08   -.60019E-04
  12  norm          1.0321        1.2712       -.53505E-07   -.12233E-04
  13  Prefactor     .10000E-03    3.8256        .85814E-08** at limit **
  14  norm          .10000E-03    2.0044        .11370E-07** at limit **
  15  Prefactor     .10000E-03    39.235       -.10513E-06** at limit **
  16  norm          6.1486        2.8535       -.24757E-08   -.19783E-04
  17  Prefactor     6.8531        12.402       -.21456E-06   -.55396E-04
  18  Prefactor     .10000E-03    1.9444       -.47830E-07** at limit **
  19  Prefactor     11.676        7.8178        .14361E-06    .65900E-04
  20  Normalizat    1.1431        .19615        .22637E-06   -.38979E-04
  21  Prefactor     .49826        .20990       -.62818E-06   -.49741E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 160.679
  norm       = 0.0001
  norm       = 4.52091
  Prefactor  = 5.70912
  Prefactor  = 14.6133
  Prefactor  = 0.0001
  norm       = 5.47378
  norm       = 0.350411
  Prefactor  = 14.5564
  Prefactor  = 5.61794
  norm       = 1.57905
  norm       = 1.03212
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.14862
  Prefactor  = 6.85306
  Prefactor  = 0.0001
  Prefactor  = 11.676
  Normalizat = 1.14307
  Prefactor  = 0.498258
 **********
 **   18 **HESSE 
 **********

 FCN=   4222.906     FROM HESSE     STATUS=OK           321 CALLS     2512 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     160.68        144.79        .15905E-03   -1.3166    
   2  norm          .10000E-03    6.4344        .16093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.5209        4.7055        .13877E-03   -1.5283    
   4  Prefactor     5.7091        10.081        .16802E-03   -1.5230    
   5  Prefactor     14.613        19.061        .10474E-03   -1.4943    
   6  Prefactor     .10000E-03    10.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.4738        3.2858        .81682E-04   -1.5240    
   8  norm          .35041        1.9721        .17300E-03   -1.5590    
   9  Prefactor     14.556        19.046        .10497E-03   -1.4945    
  10  Prefactor     5.6179        6.1912        .74170E-03   -1.5234    
  11  norm          1.5791        1.4513        .72613E-04   -1.5457    
  12  norm          1.0321        1.2713        .49912E-04   -1.5505    
  13  Prefactor     .10000E-03    3.8784        .12406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.0641        .17943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.1486        2.8534        .72182E-04   -1.5212    
  17  Prefactor     6.8531        12.429        .15328E-03   -1.5184    
  18  Prefactor     .10000E-03    1.9513        .88470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.676        7.8309        .11724E-03   -1.5024    
  20  Normalizat    1.1431        .22937        .19832E-03   -.88381    
  21  Prefactor     .49826        .24083        .32094E-03   -1.1206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26616e-09
Minuit parameter uncertainties:
  1  145.108
  2  2.29998e-05
  3  4.70587
  4  10.0842
  5  19.069
  6  4.66528e-05
  7  3.28591
  8  1.66242
  9  19.0538
  10  6.19194
  11  1.45132
  12  1.27132
  13  3.20522e-06
  14  1.00801e-06
  15  2.10741e-05
  16  2.85346
  17  12.4337
  18  2.5251e-06
  19  7.83161
  20  0.229569
  21  0.24132
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.032e+00  1.271e+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:  4.983e-01  2.413e-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.143e+00  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 24.407 -24.516
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.64e-08 +/- 2.02e-08
Energy Flux (Fixed Index): 4.62e-06 +/- 5.69e-06

TS (Fixed Index): 1.55
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/140969/likelihoodResults_659750401_660009601_4FGL_J0137.6-2430_daily_bin1622.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) = 4222.79583017
delta logL = 0.110611539574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4222.79208813
delta logL = 0.114353584276

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92680       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9029       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49382       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=   4222.792     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      198 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92689        1.1493        .12904E-01    .13223E-03
   2  alpha         1.9028        .78960        .42743       -.12249E-04
   3  Normalizat    1.1488        .18765        .36288E-01    .95599E-06
   4  Prefactor     .49390        .20817        .72773E-01    .23752E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.926893
  alpha      = 1.90281
  Normalizat = 1.14876
  Prefactor  = 0.493901
 **********
 **   18 **HESSE 
 **********

 FCN=   4222.792     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92689        1.2165        .75022E-04   -1.5515    
   2  alpha         1.9028        .97948        .20877E-01   -.24121    
   3  Normalizat    1.1488        .21492        .19788E-03   -.88201    
   4  Prefactor     .49390        .23771        .32222E-03   -1.1226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67784e-10
Minuit parameter uncertainties:
  1  1.21657
  2  1.00821
  3  0.215089
  4  0.238188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/140969': 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) = 4222.79208804
delta logL = 0.114353670489

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  9.269e-01  1.217e+00  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  1.903e+00  1.008e+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:  4.939e-01  2.382e-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.149e+00  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.78
Ra Dec: 24.407 -24.516
Photon Index (Free Index): 1.90 +/- 1.01
Photon Flux (Free Index): 1.15e-08 +/- 1.70e-08
Energy Flux (Free Index): 5.61e-06 +/- 7.48e-06

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/140969/cmap_HighResolution_659750401_660009601_4FGL_J0137.6-2430_daily_bin1622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.28e-05', comment='SUCCESS', photon_flux='1.64e-08', energy_flux2='5.61e-06', photon_flux_error='2.02e-08', dlogl='1.14e-01', energy_flux='4.62e-06', photon_flux2='1.15e-08', job_status='DONE', time_completed='2021-12-07 12:21:24.940669', photon_index_error2='1.01', photon_index2='1.90', ts='1.55', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', photon_flux_upper_limit='8.12e-08', energy_flux_error2='7.48e-06', EG='1.14', time_epoch_completed='1638908484.94', return_code='0', job_id='140969', GAL2='0.49', EG2='1.15', return_code2='0', energy_flux_error='5.69e-06', photon_flux_error2='1.70e-08', ts2='1.78', photon_index='2.41' WHERE bin_id='1622' AND source_name='4FGL J0137.6-2430' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:21:24 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 140969: <4FGL_J0137.6-2430_daily_bin1622> in cluster <slac> Done

Job <4FGL_J0137.6-2430_daily_bin1622> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 12:10:26 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:12:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:12:12 2021
Terminated at Tue Dec  7 12:21:25 2021
Results reported at Tue Dec  7 12:21:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_daily_bin1622 24.4069 -24.5163 659750401 660009601 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 :                                   492.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   553 sec.
    Turnaround time :                            659 sec.

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

