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


Performing analysis on: 4FGL_J0137.6-2430_daily_bin1603
RA = 24.4069, Dec = -24.5163
tmin = 654825601, tmax = 655084801
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='912701', job_status='RUN', time_executed='2021-10-05 00:01:10.501620', time_epoch_executed='1633417270.5' WHERE source_name='4FGL J0137.6-2430' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912701

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912701/ft1_4FGL_J0137.6-2430_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912701/ft2_4FGL_J0137.6-2430_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912701/ft1_4FGL_J0137.6-2430_daily_bin1603.fits outfile=/scratch/kocevski/912701/ft1_filteredMKT_4FGL_J0137.6-2430_daily_bin1603.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=654825601.0 tmax=655084801.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 3.07
user 2.79
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912701/ft1_filtered_4FGL_J0137.6-2430_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/912701/ft2_4FGL_J0137.6-2430_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/912701/ltcube_654825601_655084801_4FGL_J0137.6-2430_daily_bin1603.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/912701/ft2_4FGL_J0137.6-2430_daily_bin1603.fits
.....................!
real 15.28
user 14.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912701/ft1_filtered_4FGL_J0137.6-2430_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/912701/ft2_4FGL_J0137.6-2430_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/912701/ltcube_654825601_655084801_4FGL_J0137.6-2430_daily_bin1603.fits outfile=/scratch/kocevski/912701/expmap_654825601_655084801_4FGL_J0137.6-2430_daily_bin1603.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/912701/ltcube_654825601_655084801_4FGL_J0137.6-2430_daily_bin1603.fits
.....................!
real 192.05
user 186.92
sys 4.69

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/912701/ft1_filtered_4FGL_J0137.6-2430_daily_bin1603.fits scfile=/scratch/kocevski/912701/ft2_4FGL_J0137.6-2430_daily_bin1603.fits outfile=/scratch/kocevski/912701/cmap_654825601_655084801_4FGL_J0137.6-2430_daily_bin1603.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912701/ft1_filtered_4FGL_J0137.6-2430_daily_bin1603.fits scfile=/scratch/kocevski/912701/ft2_4FGL_J0137.6-2430_daily_bin1603.fits outfile=/scratch/kocevski/912701/cmap_HighResolution_654825601_655084801_4FGL_J0137.6-2430_daily_bin1603.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.60
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912701/ft1_filtered_4FGL_J0137.6-2430_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/912701/ft2_4FGL_J0137.6-2430_daily_bin1603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912701/Model_4FGL_J0137.6-2430_daily_bin1603.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/912701/ft1_filtered_4FGL_J0137.6-2430_daily_bin1603.fits.....................!
real 38.04
user 34.67
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.855       1.0000         .10000E-03   10000.    
     2 'norm      '    16.847       1.0000         .10000E-03   10000.    
     3 'norm      '    5.0644       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .73128       1.0000         .10000E-03   10000.    
     8 'norm      '    5.6370       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.573       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.0802       1.0000         .10000E-03   10000.    
    12 'norm      '    .36499       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.540       1.0000         .10000E-03   10000.    
    14 'norm      '    .18524E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.4971       1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.158       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .81271E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8275       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4293       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .50598       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=   3661.461     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2225 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.017        177.14        .23501E-05    .19309E-04
   2  norm          16.848        15.445       -.64850E-07   -.13982E-04
   3  norm          5.0641        4.0929        .11034E-07   -.34356E-04
   4  Prefactor     .10000E-03    2.1052        .93613E-07** at limit **
   5  Prefactor     .10000E-03    9.7162        .31490E-07** at limit **
   6  Prefactor     .10000E-03    5.7459        .13207E-07** at limit **
   7  norm          .72898        1.7678        .11322E-05    .77923E-03
   8  norm          5.6374        3.1639        .16990E-07   -.48550E-04
   9  Prefactor     16.579        16.417       -.40743E-07   -.58129E-04
  10  Prefactor     .10000E-03    1.8970       -.30282E-07** at limit **
  11  norm          2.0805        2.6157        .12082E-06   -.10061E-03
  12  norm          .36533        2.6952        .11982E-05   -.15651E-04
  13  Prefactor     10.542        7.2452        .25063E-06   -.46890E-04
  14  norm          .10004E-03    1.9847       -.18215E-06** at limit **
  15  Prefactor     .10000E-03    45.945       -.15627E-06** at limit **
  16  norm          7.4973        4.4209        .43432E-07   -.77301E-04
  17  Prefactor     32.168        16.910        .59114E-07   -.40457E-04
  18  Prefactor     .55239E-01    5.3799        .85580E-07   -.16115E-04
  19  Prefactor     7.8348        10.286        .34559E-06   -.11738E-04
  20  Normalizat    1.4290        .25920       -.33919E-05    .70591E-04
  21  Prefactor     .50643        .26123        .47383E-05   -.81933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.0174
  norm       = 16.848
  norm       = 5.06413
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.728975
  norm       = 5.63737
  Prefactor  = 16.5787
  Prefactor  = 0.0001
  norm       = 2.08055
  norm       = 0.365328
  Prefactor  = 10.5419
  norm       = 0.000100045
  Prefactor  = 0.0001
  norm       = 7.4973
  Prefactor  = 32.1685
  Prefactor  = 0.0552392
  Prefactor  = 7.83481
  Normalizat = 1.42899
  Prefactor  = 0.506432
 **********
 **   18 **HESSE 
 **********

 FCN=   3661.461     FROM HESSE     STATUS=OK           333 CALLS     2558 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.017        177.18        .25510E-03   -1.4131    
   2  norm          16.848        15.447        .97578E-04   -1.4887    
   3  norm          5.0641        4.0933        .10688E-03   -1.5258    
   4  Prefactor     .10000E-03    2.1053        .85732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.7748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7551        .14162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .72898        1.7403        .14194E-02   -1.5537    
   8  norm          5.6374        3.1641        .77287E-04   -1.5233    
   9  Prefactor     16.579        16.424        .98381E-04   -1.4893    
  10  Prefactor     .10000E-03    1.9003        .81393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0805        2.5938        .10468E-03   -1.5419    
  12  norm          .36533        2.5460        .18496E-03   -1.5587    
  13  Prefactor     10.542        7.2502        .12341E-03   -1.5058    
  14  norm          .10004E-03    41.634        .16147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    45.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.4973        4.4188        .94369E-04   -1.5160    
  17  Prefactor     32.168        16.951        .70659E-04   -1.4573    
  18  Prefactor     .55239E-01    10.649        .45483E-01   -1.5661    
  19  Prefactor     7.8348        10.312        .14332E-03   -1.5148    
  20  Normalizat    1.4290        .27378        .21294E-03   -.79794    
  21  Prefactor     .50643        .27623        .36265E-03   -1.1168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75724e-09
Minuit parameter uncertainties:
  1  178.72
  2  15.4507
  3  4.09352
  4  2.57361e-07
  5  1.18641e-06
  6  1.49236e-05
  7  1.74045
  8  3.16419
  9  16.4287
  10  2.94082e-06
  11  2.59397
  12  1.92871
  13  7.25078
  14  0.00273315
  15  6.41576e-06
  16  4.41897
  17  16.9531
  18  1.53279
  19  10.3146
  20  0.274058
  21  0.276967
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  3.653e-01  1.929e+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:  5.064e-01  2.770e-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.429e+00  2.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 24.407 -24.516
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912701/likelihoodResults_654825601_655084801_4FGL_J0137.6-2430_daily_bin1603.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) = 3661.45777488
delta logL = 0.00329222406799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3661.4576178
delta logL = 0.00344929951734

Fit tolerance = 1e-08

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

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

 FCN=   3661.458     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      250 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39779        2.4278        .17796E-03   -.58582E-04
   2  alpha         2.6524        3.7279        .64418E-01    .30475E-05
   3  Normalizat    1.4271        .25914        .21306E-03    .11472E-05
   4  Prefactor     .50761        .27425        .36225E-03    .78459E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.39779
  alpha      = 2.65243
  Normalizat = 1.42714
  Prefactor  = 0.507609
 **********
 **   18 **HESSE 
 **********

 FCN=   3661.458     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39779        2.3606        .71183E-05   -1.5582    
   2  alpha         2.6524        3.7208        .25767E-02    .61011E-01
   3  Normalizat    1.4271        .25945        .85225E-05   -.79847    
   4  Prefactor     .50761        .27441        .14490E-04   -1.1163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00999e-11
Minuit parameter uncertainties:
  1  1.93795
  2  3.03963
  3  0.259695
  4  0.275133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912701': 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) = 3661.45761765
delta logL = 0.00344945551751

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  3.978e-01  1.938e+00  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  2.652e+00  3.040e+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:  5.076e-01  2.751e-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.427e+00  2.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/912701/cmap_HighResolution_654825601_655084801_4FGL_J0137.6-2430_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-10-05 00:09:12.971470', job_id='912701', GAL2='0.51', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1633417752.97', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='3.45e-03', ts2='0.05', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1603' AND source_name='4FGL J0137.6-2430' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:09:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 912701: <4FGL_J0137.6-2430_daily_bin1603> in cluster <slac> Done

Job <4FGL_J0137.6-2430_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:00:30 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:00:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:00:33 2021
Terminated at Tue Oct  5 00:09:13 2021
Results reported at Tue Oct  5 00:09:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_daily_bin1603 24.4069 -24.5163 654825601 655084801 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 :                                   475.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             379.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   520 sec.
    Turnaround time :                            523 sec.

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

