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


Performing analysis on: 4FGL_J0137.6-2430_daily_bin1618
RA = 24.4069, Dec = -24.5163
tmin = 658713601, tmax = 658972801
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='140962', job_status='RUN', time_executed='2021-12-07 12:13:34.068184', time_epoch_executed='1638908014.07' WHERE source_name='4FGL J0137.6-2430' and cadence='daily' and bin_id='1618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/140962

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/140962/ft1_4FGL_J0137.6-2430_daily_bin1618.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/140962/ft2_4FGL_J0137.6-2430_daily_bin1618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/140962/ft1_4FGL_J0137.6-2430_daily_bin1618.fits outfile=/scratch/kocevski/140962/ft1_filteredMKT_4FGL_J0137.6-2430_daily_bin1618.fits ra=24.4069 dec=-24.5163 rad=12.0 tmin=658713601.0 tmax=658972801.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.00
user 2.78
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/140962/ft1_filtered_4FGL_J0137.6-2430_daily_bin1618.fits" evtable="EVENTS" scfile=/scratch/kocevski/140962/ft2_4FGL_J0137.6-2430_daily_bin1618.fits sctable="SC_DATA" outfile=/scratch/kocevski/140962/ltcube_658713601_658972801_4FGL_J0137.6-2430_daily_bin1618.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/140962/ft2_4FGL_J0137.6-2430_daily_bin1618.fits
.....................!
real 13.60
user 13.26
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/140962/ft1_filtered_4FGL_J0137.6-2430_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/140962/ft2_4FGL_J0137.6-2430_daily_bin1618.fits sctable="SC_DATA" expcube=/scratch/kocevski/140962/ltcube_658713601_658972801_4FGL_J0137.6-2430_daily_bin1618.fits outfile=/scratch/kocevski/140962/expmap_658713601_658972801_4FGL_J0137.6-2430_daily_bin1618.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/140962/ltcube_658713601_658972801_4FGL_J0137.6-2430_daily_bin1618.fits
.....................!
real 193.76
user 188.47
sys 4.78

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/140962/ft1_filtered_4FGL_J0137.6-2430_daily_bin1618.fits scfile=/scratch/kocevski/140962/ft2_4FGL_J0137.6-2430_daily_bin1618.fits outfile=/scratch/kocevski/140962/cmap_658713601_658972801_4FGL_J0137.6-2430_daily_bin1618.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/140962/ft1_filtered_4FGL_J0137.6-2430_daily_bin1618.fits scfile=/scratch/kocevski/140962/ft2_4FGL_J0137.6-2430_daily_bin1618.fits outfile=/scratch/kocevski/140962/cmap_HighResolution_658713601_658972801_4FGL_J0137.6-2430_daily_bin1618.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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/140962/ft1_filtered_4FGL_J0137.6-2430_daily_bin1618.fits evtable="EVENTS" scfile=/scratch/kocevski/140962/ft2_4FGL_J0137.6-2430_daily_bin1618.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/140962/Model_4FGL_J0137.6-2430_daily_bin1618.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/140962/ft1_filtered_4FGL_J0137.6-2430_daily_bin1618.fits.....................!
real 48.95
user 47.72
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.5406       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.133       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10371E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0928       1.0000         .10000E-03   10000.    
     7 'norm      '    .78696       1.0000         .10000E-03   10000.    
     8 'norm      '    5.0497       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .91123       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8622       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8212       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.321       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .67359       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2100       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0523       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .80317       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=   5637.344     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     1906 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.521       -.46055E-05** at limit **
   2  norm          .10000E-03    4.9216       -.26132E-06** at limit **
   3  norm          2.5408        2.5012        .70261E-07   -.14152E-03
   4  Prefactor     15.131        8.4249        .10430E-06    .52067E-03
   5  Prefactor     .10000E-03    12.184       -.17836E-04** at limit **
   6  Prefactor     8.0845        9.4160       -.18425E-05   -.19150E-02
   7  norm          .78924        1.9585        .16838E-06   -.68033E-03
   8  norm          5.0495        2.2745       -.35496E-07   -.80664E-04
   9  Prefactor     .10000E-03    11.608        .14817E-04** at limit **
  10  Prefactor     .10000E-03    2.0473        .10271E-06** at limit **
  11  norm          .91114        .90816        .27052E-07    .48820E-04
  12  norm          1.8618        1.6277       -.69835E-07   -.42608E-03
  13  Prefactor     .10000E-03    3.0641       -.29324E-06** at limit **
  14  norm          .10000E-03    .90978       -.52400E-07** at limit **
  15  Prefactor     .10000E-03    18.016        .47066E-05** at limit **
  16  norm          3.8215        3.3841       -.15507E-05   -.38999E-03
  17  Prefactor     19.326        13.730       -.14268E-05    .21852E-04
  18  Prefactor     .67342        3.6805       -.22943E-06   -.60356E-04
  19  Prefactor     4.2111        6.8361       -.14059E-05   -.23556E-03
  20  Normalizat    1.0522        .16656        .83778E-06    .12050E-03
  21  Prefactor     .80327        .18642        .88579E-06    .80898E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.54076
  Prefactor  = 15.1309
  Prefactor  = 0.0001
  Prefactor  = 8.08449
  norm       = 0.78924
  norm       = 5.04951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.911142
  norm       = 1.86184
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.82146
  Prefactor  = 19.3256
  Prefactor  = 0.673424
  Prefactor  = 4.2111
  Normalizat = 1.05216
  Prefactor  = 0.803273
 **********
 **   18 **HESSE 
 **********

 FCN=   5637.344     FROM HESSE     STATUS=OK           321 CALLS     2227 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    63.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.9440        .16268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5408        2.4918        .11461E-03   -1.5389    
   4  Prefactor     15.131        8.4355        .10296E-03   -1.4930    
   5  Prefactor     .10000E-03    11.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.0845        9.3060        .70468E-03   -1.5139    
   7  norm          .78924        1.5651        .13631E-02   -1.5530    
   8  norm          5.0495        2.2742        .73556E-04   -1.5259    
   9  Prefactor     .10000E-03    11.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0690        .10478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .91114        .91099        .69131E-04   -1.5517    
  12  norm          1.8618        1.6177        .86224E-04   -1.5435    
  13  Prefactor     .10000E-03    3.1172        .12828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .92557        .69901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8215        3.3921        .12401E-03   -1.5317    
  17  Prefactor     19.326        13.709        .91119E-04   -1.4828    
  18  Prefactor     .67342        12.832        .26658E-02   -1.5544    
  19  Prefactor     4.2111        6.8259        .19640E-03   -1.5298    
  20  Normalizat    1.0522        .19737        .21576E-03   -.91303    
  21  Prefactor     .80327        .22095        .27866E-03   -.99608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81567e-08
Minuit parameter uncertainties:
  1  1.90924e-05
  2  2.3954e-06
  3  2.49189
  4  8.43613
  5  5.14293e-05
  6  9.30762
  7  1.56518
  8  2.27423
  9  5.82618e-05
  10  2.59028e-06
  11  0.911006
  12  1.61776
  13  8.03898e-06
  14  1.77917e-06
  15  3.99049e-07
  16  3.39226
  17  13.7108
  18  5.88031
  19  6.82712
  20  0.197506
  21  0.221199
Done.

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

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.862e+00  1.618e+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.033e-01  2.212e-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.052e+00  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.50
Ra Dec: 24.407 -24.516
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.96e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 8.33e-06 +/- 7.24e-06

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

Saving results to:
/scratch/kocevski/140962/likelihoodResults_658713601_658972801_4FGL_J0137.6-2430_daily_bin1618.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) = 5637.30463751
delta logL = 0.0397621936381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5637.30430558
delta logL = 0.040094123483

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8769       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1992       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79984       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=   5637.304     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      190 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8769        2.0245        .75980E-02    .91794E-04
   2  alpha         2.1992        .77198        .41534       -.25048E-04
   3  Normalizat    1.0562        .16170        .40164E-01    .52381E-05
   4  Prefactor     .79979        .18562        .63119E-01    .15092E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.87692
  alpha      = 2.19925
  Normalizat = 1.05617
  Prefactor  = 0.799793
 **********
 **   18 **HESSE 
 **********

 FCN=   5637.304     FROM HESSE     STATUS=OK            33 CALLS      223 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8769        1.6270        .86432E-04   -1.5434    
   2  alpha         2.1992        .70133        .18635E-01   -.12059    
   3  Normalizat    1.0562        .19186        .21539E-03   -.91172    
   4  Prefactor     .79979        .21943        .27919E-03   -.99736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66328e-11
Minuit parameter uncertainties:
  1  1.62706
  2  0.711021
  3  0.19199
  4  0.219667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/140962': 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) = 5637.30430556
delta logL = 0.0400941451071

Extracting fit parameters...

4FGL J0137.6-2430
   Spectrum: LogParabola
274         norm:  1.877e+00  1.627e+00  1.000e-04  1.000e+04 ( 1.000e-11)
275        alpha:  2.199e+00  7.110e-01  0.000e+00  5.000e+00 ( 1.000e+00)
276         beta:  1.159e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  3.788e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
522    Prefactor:  7.998e-01  2.197e-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.056e+00  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.57
Ra Dec: 24.407 -24.516
Photon Index (Free Index): 2.20 +/- 0.71
Photon Flux (Free Index): 2.65e-08 +/- 2.56e-08
Energy Flux (Free Index): 8.99e-06 +/- 8.23e-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/140962/cmap_HighResolution_658713601_658972801_4FGL_J0137.6-2430_daily_bin1618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-05', comment='SUCCESS', photon_flux='2.96e-08', energy_flux2='8.99e-06', photon_flux_error='2.57e-08', dlogl='4.01e-02', energy_flux='8.33e-06', photon_flux2='2.65e-08', job_status='DONE', time_completed='2021-12-07 12:22:32.608718', photon_index_error2='0.71', photon_index2='2.20', ts='2.50', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='9.21e-08', energy_flux_error2='8.23e-06', EG='1.05', time_epoch_completed='1638908552.61', return_code='0', job_id='140962', GAL2='0.80', EG2='1.06', return_code2='0', energy_flux_error='7.24e-06', photon_flux_error2='2.56e-08', ts2='2.57', photon_index='2.41' WHERE bin_id='1618' AND source_name='4FGL J0137.6-2430' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:22:32 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 140962: <4FGL_J0137.6-2430_daily_bin1618> in cluster <slac> Done

Job <4FGL_J0137.6-2430_daily_bin1618> 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) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:12:09 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:09 2021
Terminated at Tue Dec  7 12:22:33 2021
Results reported at Tue Dec  7 12:22:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.6-2430_daily_bin1618 24.4069 -24.5163 658713601 658972801 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 :                                   537.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   623 sec.
    Turnaround time :                            727 sec.

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

