/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 95 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 = 7431
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0238.4-3116_daily_bin1055
RA = 39.6209, Dec = -31.2828
tmin = 512784001, tmax = 513043201
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='602885', job_status='RUN', time_executed='2021-08-16 09:32:05.962796', time_epoch_executed='1629131525.96' WHERE source_name='4FGL J0238.4-3116' and cadence='daily' and bin_id='1055'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/602885

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/602885/ft1_4FGL_J0238.4-3116_daily_bin1055.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/602885/ft2_4FGL_J0238.4-3116_daily_bin1055.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/602885/ft1_4FGL_J0238.4-3116_daily_bin1055.fits outfile=/scratch/kocevski/602885/ft1_filteredMKT_4FGL_J0238.4-3116_daily_bin1055.fits ra=39.6209 dec=-31.2828 rad=12.0 tmin=512784001.0 tmax=513043201.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 4.81
user 4.18
sys 0.43

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/602885/ft2_4FGL_J0238.4-3116_daily_bin1055.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/602885/ft1_filteredMKT_4FGL_J0238.4-3116_daily_bin1055.fits evtable="EVENTS" outfile="/scratch/kocevski/602885/ft1_filtered_4FGL_J0238.4-3116_daily_bin1055.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.05
user 0.33
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/602885/ft1_filtered_4FGL_J0238.4-3116_daily_bin1055.fits" evtable="EVENTS" scfile=/scratch/kocevski/602885/ft2_4FGL_J0238.4-3116_daily_bin1055.fits sctable="SC_DATA" outfile=/scratch/kocevski/602885/ltcube_512784001_513043201_4FGL_J0238.4-3116_daily_bin1055.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/602885/ft2_4FGL_J0238.4-3116_daily_bin1055.fits
.....................!
real 13.24
user 12.57
sys 0.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/602885/ft1_filtered_4FGL_J0238.4-3116_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/602885/ft2_4FGL_J0238.4-3116_daily_bin1055.fits sctable="SC_DATA" expcube=/scratch/kocevski/602885/ltcube_512784001_513043201_4FGL_J0238.4-3116_daily_bin1055.fits outfile=/scratch/kocevski/602885/expmap_512784001_513043201_4FGL_J0238.4-3116_daily_bin1055.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/602885/ltcube_512784001_513043201_4FGL_J0238.4-3116_daily_bin1055.fits
.....................!
real 193.23
user 186.73
sys 5.11

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/602885/ft1_filtered_4FGL_J0238.4-3116_daily_bin1055.fits scfile=/scratch/kocevski/602885/ft2_4FGL_J0238.4-3116_daily_bin1055.fits outfile=/scratch/kocevski/602885/cmap_512784001_513043201_4FGL_J0238.4-3116_daily_bin1055.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 0.78
user 0.40
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/602885/ft1_filtered_4FGL_J0238.4-3116_daily_bin1055.fits scfile=/scratch/kocevski/602885/ft2_4FGL_J0238.4-3116_daily_bin1055.fits outfile=/scratch/kocevski/602885/cmap_HighResolution_512784001_513043201_4FGL_J0238.4-3116_daily_bin1055.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 0.82
user 0.39
sys 0.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/602885/ft1_filtered_4FGL_J0238.4-3116_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/602885/ft2_4FGL_J0238.4-3116_daily_bin1055.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/602885/Model_4FGL_J0238.4-3116_daily_bin1055.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/602885/ft1_filtered_4FGL_J0238.4-3116_daily_bin1055.fits.....................!
real 74.56
user 71.44
sys 1.90

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/602885/ft1_filtered_4FGL_J0238.4-3116_daily_bin1055.fits', '/scratch/kocevski/602885/ft2_4FGL_J0238.4-3116_daily_bin1055.fits', expMap='/scratch/kocevski/602885/expmap_512784001_513043201_4FGL_J0238.4-3116_daily_bin1055.fits', expCube='/scratch/kocevski/602885/ltcube_512784001_513043201_4FGL_J0238.4-3116_daily_bin1055.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/602885/Model_4FGL_J0238.4-3116_daily_bin1055.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/602885/ft1_filtered_4FGL_J0238.4-3116_daily_bin1055.fits
Spacecraft file(s): /scratch/kocevski/602885/ft2_4FGL_J0238.4-3116_daily_bin1055.fits
Exposure map: /scratch/kocevski/602885/expmap_512784001_513043201_4FGL_J0238.4-3116_daily_bin1055.fits
Exposure cube: /scratch/kocevski/602885/ltcube_512784001_513043201_4FGL_J0238.4-3116_daily_bin1055.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/602885/Model_4FGL_J0238.4-3116_daily_bin1055.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) = 3543.74267453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.654       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1194       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.479       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3500       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.544       1.0000         .10000E-03   10000.    
    10 'Prefactor '    162.43       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.049       1.0000         .10000E-03   10000.    
    14 'norm      '    .17579E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.984       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .73077       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3234       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=   3543.736     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2087 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.751        .14938E-06** at limit **
   2  Prefactor     12.653        17.509       -.10938E-06    .11262E-05
   3  Prefactor     .10000E-03    10.239       -.99790E-07** at limit **
   4  Prefactor     2.1189        2.3595        .23844E-06   -.10112E-02
   5  Prefactor     11.480        11.036        .62667E-06   -.11882E-03
   6  Prefactor     .10000E-03    31.831       -.22275E-05** at limit **
   7  norm          1.3489        3.9782       -.89380E-06   -.15130E-03
   8  Prefactor     .10000E-03    20.007       -.49768E-07** at limit **
   9  Prefactor     36.533        46.183       -.67891E-05   -.15904E-04
  10  Prefactor     162.44        102.96        .59009E-05    .21562E-04
  11  Prefactor     .10000E-03    1.6076        .15736E-07** at limit **
  12  Prefactor     .10000E-03    128.04        .76806E-06** at limit **
  13  Prefactor     31.038        62.560       -.11124E-04   -.27336E-04
  14  norm          .10000E-03    1.2931        .13072E-06** at limit **
  15  Prefactor     .10000E-03    29.943        .27307E-05** at limit **
  16  norm          .10000E-03    2.7817        .17433E-06** at limit **
  17  Prefactor     .10000E-03    12.692        .81141E-08** at limit **
  18  Prefactor     37.981        61.603       -.23128E-05   -.27154E-05
  19  Normalizat    .73071        .23328        .25503E-05   -.55688E-04
  20  Prefactor     1.3235        .25313       -.80894E-06    .35601E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.6534
  Prefactor  = 0.0001
  Prefactor  = 2.11887
  Prefactor  = 11.4804
  Prefactor  = 0.0001
  norm       = 1.34889
  Prefactor  = 0.0001
  Prefactor  = 36.5332
  Prefactor  = 162.444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.0377
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.9815
  Normalizat = 0.730714
  Prefactor  = 1.32351
 **********
 **   18 **HESSE 
 **********

 FCN=   3543.736     FROM HESSE     STATUS=OK           291 CALLS     2378 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.653        17.514        .11261E-03   -1.4996    
   3  Prefactor     .10000E-03    10.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1189        7.4497        .14165E-02   -1.5417    
   5  Prefactor     11.480        11.067        .59121E-03   -1.5030    
   6  Prefactor     .10000E-03    31.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3489        3.9449        .18514E-03   -1.5476    
   8  Prefactor     .10000E-03    20.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.533        46.040        .66296E-04   -1.4498    
  10  Prefactor     162.44        102.79        .31643E-04   -1.3152    
  11  Prefactor     .10000E-03    1.6088        .73712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    128.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.038        63.136        .71906E-04   -1.4593    
  14  norm          .10000E-03    9.0826        .13099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    30.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.2479        .19257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     37.981        61.626        .65032E-04   -1.4475    
  19  Normalizat    .73071        .27921        .26873E-03   -1.0269    
  20  Prefactor     1.3235        .30363        .23574E-03   -.82611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65483e-09
Minuit parameter uncertainties:
  1  1.2188e-05
  2  17.5209
  3  8.6927e-06
  4  7.45292
  5  11.0686
  6  5.65253e-06
  7  3.94563
  8  1.06192e-06
  9  46.0851
  10  102.905
  11  2.73853e-06
  12  3.93204e-05
  13  63.2723
  14  3.94916e-05
  15  0.000390738
  16  3.70926e-05
  17  8.53558e-06
  18  61.73
  19  0.27976
  20  0.304041
Done.

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

Extracting fit parameters...

4FGL J0238.4-3116
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.739e-06  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.324e+00  3.040e-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:  7.307e-01  2.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/602885/likelihoodResults_512784001_513043201_4FGL_J0238.4-3116_daily_bin1055.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): 102
logL (Free Index) = 3543.73869405
delta logL = -0.00256732708567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3543.73612646
delta logL = 2.61672539636e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8051       1.0000          .0000       10.000    
     3 'Normalizat'    .73068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3235       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3543.736     FROM MIGRAD    STATUS=FAILED        83 CALLS      234 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    4.4017        .74528E-03** at limit **
   2  Index         1.7877        5.1999        .50000        .77169E-04
   3  Normalizat    .73072        .25773        .26872E-03    .81143E-04
   4  Prefactor     1.3235        .29667        .23574E-03    .81533E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3543.736     FROM SIMPLEX   STATUS=UNCHANGED    131 CALLS      365 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    4.4017        .22953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7877        5.1999        .29401E-03   -.69770    
   3  Normalizat    .73072        .25773        .74475E-04   -1.0269    
   4  Prefactor     1.3235        .29667        .42815E-04   -.82611    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3543.736     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      414 TOTAL
                     EDM=   .39E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    220.41        .14906E-02** at limit **
   2  Index         1.4080        8.7296        .50000        .76170E-09
   3  Normalizat    .73072        .69254E-01    .10749E-04    .14173E-04
   4  Prefactor     1.3235        .79300E-01    .47149E-04    .40509E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.40802
  Normalizat = 0.730717
  Prefactor  = 1.3235
 **********
 **   18 **HESSE 
 **********

 FCN=   3543.736     FROM HESSE     STATUS=OK            29 CALLS      443 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1043        .29811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4080        5.1256        .50000       -.80149    
   3  Normalizat    .73072        .26000        .21498E-05   -1.0269    
   4  Prefactor     1.3235        .29921        .94298E-05   -.82611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.294e-12
Minuit parameter uncertainties:
  1  7.046e-08
  2  158.572
  3  0.260445
  4  0.299599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/602885': 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) = 3543.7361222
delta logL = 4.52103222415e-06

Extracting fit parameters...

4FGL J0238.4-3116
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  7.046e-08  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.408e+00  1.586e+02  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.324e+00  2.996e-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:  7.307e-01  2.604e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 39.621 -31.283

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/602885/cmap_HighResolution_512784001_513043201_4FGL_J0238.4-3116_daily_bin1055.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.42e-03', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2021-08-16 09:41:00.763405', job_id='602885', GAL2='1.32', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1629132060.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='4.52e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1055' AND source_name='4FGL J0238.4-3116' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 09:41:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 602885: <4FGL_J0238.4-3116_daily_bin1055> in cluster <slac> Done

Job <4FGL_J0238.4-3116_daily_bin1055> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Aug 16 09:25:22 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 09:29:20 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:29:20 2021
Terminated at Mon Aug 16 09:41:02 2021
Results reported at Mon Aug 16 09:41:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.4-3116_daily_bin1055 39.6209 -31.2828 512784001 513043201 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 :                                   525.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            940 sec.

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

