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


Performing analysis on: 4FGL_J0238.4-3116_daily_bin1512
RA = 39.6209, Dec = -31.2828
tmin = 631238401, tmax = 631497601
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='604758', job_status='RUN', time_executed='2021-08-16 09:39:21.570979', time_epoch_executed='1629131961.57' WHERE source_name='4FGL J0238.4-3116' and cadence='daily' and bin_id='1512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604758

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604758/ft1_4FGL_J0238.4-3116_daily_bin1512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604758/ft2_4FGL_J0238.4-3116_daily_bin1512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604758/ft1_4FGL_J0238.4-3116_daily_bin1512.fits outfile=/scratch/kocevski/604758/ft1_filteredMKT_4FGL_J0238.4-3116_daily_bin1512.fits ra=39.6209 dec=-31.2828 rad=12.0 tmin=631238401.0 tmax=631497601.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.84
user 2.06
sys 0.75

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/604758/ft2_4FGL_J0238.4-3116_daily_bin1512.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/604758/ft2_4FGL_J0238.4-3116_daily_bin1512.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/604758/ft1_filteredMKT_4FGL_J0238.4-3116_daily_bin1512.fits evtable="EVENTS" outfile="/scratch/kocevski/604758/ft1_filtered_4FGL_J0238.4-3116_daily_bin1512.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 1.11
user 0.29
sys 0.70

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604758/ft1_filtered_4FGL_J0238.4-3116_daily_bin1512.fits" evtable="EVENTS" scfile=/scratch/kocevski/604758/ft2_4FGL_J0238.4-3116_daily_bin1512.fits sctable="SC_DATA" outfile=/scratch/kocevski/604758/ltcube_631238401_631497601_4FGL_J0238.4-3116_daily_bin1512.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/604758/ft2_4FGL_J0238.4-3116_daily_bin1512.fits
.....................!
real 12.40
user 11.36
sys 0.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604758/ft1_filtered_4FGL_J0238.4-3116_daily_bin1512.fits evtable="EVENTS" scfile=/scratch/kocevski/604758/ft2_4FGL_J0238.4-3116_daily_bin1512.fits sctable="SC_DATA" expcube=/scratch/kocevski/604758/ltcube_631238401_631497601_4FGL_J0238.4-3116_daily_bin1512.fits outfile=/scratch/kocevski/604758/expmap_631238401_631497601_4FGL_J0238.4-3116_daily_bin1512.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/604758/ltcube_631238401_631497601_4FGL_J0238.4-3116_daily_bin1512.fits
.....................!
real 153.21
user 147.12
sys 4.93

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 173 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0238.4-3116 @ 39.6209 -31.2828

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/604758/ft1_filtered_4FGL_J0238.4-3116_daily_bin1512.fits scfile=/scratch/kocevski/604758/ft2_4FGL_J0238.4-3116_daily_bin1512.fits outfile=/scratch/kocevski/604758/cmap_631238401_631497601_4FGL_J0238.4-3116_daily_bin1512.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=39.6209 yref=-31.2828 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 1.00
user 0.32
sys 0.65

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604758/ft1_filtered_4FGL_J0238.4-3116_daily_bin1512.fits scfile=/scratch/kocevski/604758/ft2_4FGL_J0238.4-3116_daily_bin1512.fits outfile=/scratch/kocevski/604758/cmap_HighResolution_631238401_631497601_4FGL_J0238.4-3116_daily_bin1512.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=39.6209 yref=-31.2828 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 1.00
user 0.33
sys 0.63

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/604758/ft1_filtered_4FGL_J0238.4-3116_daily_bin1512.fits evtable="EVENTS" scfile=/scratch/kocevski/604758/ft2_4FGL_J0238.4-3116_daily_bin1512.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/604758/Model_4FGL_J0238.4-3116_daily_bin1512.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/604758/ft1_filtered_4FGL_J0238.4-3116_daily_bin1512.fits.....................!
real 102.32
user 99.66
sys 1.62

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/604758/ft1_filtered_4FGL_J0238.4-3116_daily_bin1512.fits', '/scratch/kocevski/604758/ft2_4FGL_J0238.4-3116_daily_bin1512.fits', expMap='/scratch/kocevski/604758/expmap_631238401_631497601_4FGL_J0238.4-3116_daily_bin1512.fits', expCube='/scratch/kocevski/604758/ltcube_631238401_631497601_4FGL_J0238.4-3116_daily_bin1512.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/604758/Model_4FGL_J0238.4-3116_daily_bin1512.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0238.4-3116'

4FGL J0238.4-3116
   Spectrum: PowerLaw
285    Prefactor:  1.261e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.820e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.751e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/604758/ft1_filtered_4FGL_J0238.4-3116_daily_bin1512.fits
Spacecraft file(s): /scratch/kocevski/604758/ft2_4FGL_J0238.4-3116_daily_bin1512.fits
Exposure map: /scratch/kocevski/604758/expmap_631238401_631497601_4FGL_J0238.4-3116_daily_bin1512.fits
Exposure cube: /scratch/kocevski/604758/ltcube_631238401_631497601_4FGL_J0238.4-3116_daily_bin1512.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/604758/Model_4FGL_J0238.4-3116_daily_bin1512.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) = 6476.06202022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3649       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.3029       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .74481       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3835       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4652       1.0000         .10000E-03   10000.    
    12 'Prefactor '    395.76       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.361       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1310       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.750       1.0000         .10000E-03   10000.    
    16 'norm      '    5.8830       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.3846       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0070       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2349       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6476.041     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     2017 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.758        .94859E-05** at limit **
   2  Prefactor     .10000E-03    3.1346       -.13389E-07** at limit **
   3  Prefactor     4.3655        8.7694       -.75325E-06   -.16717E-03
   4  Prefactor     .10000E-03    1.8270        .38107E-08** at limit **
   5  Prefactor     8.3031        6.1385       -.10395E-05   -.81891E-04
   6  Prefactor     .10000E-03    21.777       -.14546E-04** at limit **
   7  norm          .74664        2.6893        .13947E-05   -.63811E-03
   8  Prefactor     .10000E-03    8.3321        .14826E-06** at limit **
   9  Prefactor     .10000E-03    39.941        .18288E-06** at limit **
  10  Prefactor     2.3502        109.74       -.12115E-03   -.36994E-05
  11  Prefactor     2.4652        3.6543       -.43683E-07   -.45388E-03
  12  Prefactor     395.76        249.20        .16531E-05    .19843E-04
  13  Prefactor     18.365        39.650        .54966E-05    .37263E-05
  14  norm          2.1311        1.7609       -.19526E-06   -.38608E-03
  15  Prefactor     11.751        16.213       -.11898E-05   -.26852E-04
  16  norm          5.8832        3.1747        .99159E-07    .11446E-02
  17  Prefactor     9.4017        18.928        .76058E-05   -.12534E-04
  18  Prefactor     .10000E-03    19.872        .96208E-05** at limit **
  19  Normalizat    1.0069        .17130       -.34536E-06    .21797E-03
  20  Prefactor     1.2349        .19461        .24833E-05    .22841E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.3655
  Prefactor  = 0.0001
  Prefactor  = 8.30309
  Prefactor  = 0.0001
  norm       = 0.746639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.3502
  Prefactor  = 2.46521
  Prefactor  = 395.764
  Prefactor  = 18.365
  norm       = 2.13112
  Prefactor  = 11.7513
  norm       = 5.88319
  Prefactor  = 9.40168
  Prefactor  = 0.0001
  Normalizat = 1.00689
  Prefactor  = 1.23488
 **********
 **   18 **HESSE 
 **********

 FCN=   6476.041     FROM HESSE     STATUS=OK           293 CALLS     2310 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.1367        .13915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.3655        8.7667        .19279E-03   -1.5290    
   4  Prefactor     .10000E-03    1.8360        .10620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.3031        6.1415        .13913E-03   -1.5132    
   6  Prefactor     .10000E-03    21.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .74664        2.6731        .22728E-03   -1.5535    
   8  Prefactor     .10000E-03    8.3371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    40.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3502        109.73        .26532E-03   -1.5401    
  11  Prefactor     2.4652        3.6405        .18071E-03   -1.5394    
  12  Prefactor     395.76        249.25        .20517E-04   -1.1702    
  13  Prefactor     18.365        39.625        .93469E-04   -1.4851    
  14  norm          2.1311        1.7507        .93530E-04   -1.5416    
  15  Prefactor     11.751        16.178        .11687E-03   -1.5022    
  16  norm          5.8832        3.1756        .51064E-03   -1.5223    
  17  Prefactor     9.4017        18.903        .13082E-03   -1.5095    
  18  Prefactor     .10000E-03    19.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0069        .20392        .24515E-03   -.92800    
  20  Prefactor     1.2349        .23267        .26058E-03   -.85265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10876e-09
Minuit parameter uncertainties:
  1  1.84014e-05
  2  6.06471e-07
  3  8.76932
  4  1.15617e-07
  5  6.14196
  6  7.49026e-06
  7  2.67351
  8  1.94732e-05
  9  9.42565e-05
  10  32.1794
  11  3.64085
  12  249.936
  13  39.6813
  14  1.75071
  15  16.184
  16  3.17571
  17  18.9147
  18  1.38675e-05
  19  0.204083
  20  0.232863
Done.

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

Extracting fit parameters...

4FGL J0238.4-3116
   Spectrum: PowerLaw
285    Prefactor:  2.465e+00  3.641e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.820e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  2.751e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.235e+00  2.329e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.007e+00  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.64
Ra Dec: 39.621 -31.283
Photon Flux Upper Limit: 6.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604758/likelihoodResults_631238401_631497601_4FGL_J0238.4-3116_daily_bin1512.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) = 6475.79928986
delta logL = 0.241485598644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6475.78746414
delta logL = 0.253311319061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1256       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5896       1.0000          .0000       10.000    
     3 'Normalizat'    .97759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2513       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6475.787     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      258 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1234        32.789        .11037E-02    .28137E-03
   2  Index         2.5906        3.1996        .10743        .17142E-03
   3  Normalizat    .97763        .64970E-01    .45886E-01    .30212E-03
   4  Prefactor     1.2511        .61996E-01    .58580E-01   -.10785E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.12343
  Index      = 2.59058
  Normalizat = 0.97763
  Prefactor  = 1.25114
 **********
 **   18 **HESSE 
 **********

 FCN=   6475.787     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1234        31.950        .44148E-04   -1.5496    
   2  Index         2.5906        6.2897        .61230E-02   -.50280    
   3  Normalizat    .97763        .29257        .12418E-02   -.93784    
   4  Prefactor     1.2511        .29757        .25905E-03   -.84772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4099e-10
Minuit parameter uncertainties:
  1  11.9888
  2  4.97206
  3  0.293046
  4  0.297969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604758': 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) = 6475.7874635
delta logL = 0.253311964389

Extracting fit parameters...

4FGL J0238.4-3116
   Spectrum: PowerLaw
285    Prefactor:  1.123e+00  1.199e+01  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.591e+00  4.972e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  2.751e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  1.251e+00  2.980e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  9.776e-01  2.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 39.621 -31.283
Photon Index (Free Index): 2.59 +/- 4.97
Photon Flux (Free Index): 3.79e-08 +/- 1.11e-07
Energy Flux (Free Index): 1.00e-05 +/- 2.24e-05

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/604758/cmap_HighResolution_631238401_631497601_4FGL_J0238.4-3116_daily_bin1512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-03', comment='SUCCESS', energy_flux2='1.00e-05', dlogl='2.53e-01', photon_flux2='3.79e-08', job_status='DONE', time_completed='2021-08-16 09:49:00.090661', photon_index_error2='4.97', photon_index2='2.59', ts='0.64', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='6.11e-08', energy_flux_error2='2.24e-05', EG='1.01', time_epoch_completed='1629132540.09', return_code='0', job_id='604758', GAL2='1.25', EG2='0.98', return_code2='0', photon_flux_error2='1.11e-07', ts2='1.14', photon_index='1.82' WHERE bin_id='1512' AND source_name='4FGL J0238.4-3116' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 09:49:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 604758: <4FGL_J0238.4-3116_daily_bin1512> in cluster <slac> Done

Job <4FGL_J0238.4-3116_daily_bin1512> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 16 09:31:34 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 09:38:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 09:38:52 2021
Terminated at Mon Aug 16 09:49:00 2021
Results reported at Mon Aug 16 09:49:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.4-3116_daily_bin1512 39.6209 -31.2828 631238401 631497601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0238.4-3116 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   554.25 sec.
    Max Memory :                                 617 MB
    Average Memory :                             316.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            1046 sec.

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

