/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 2 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 = 7420
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0238.4-3116_daily_bin17
RA = 39.6209, Dec = -31.2828
tmin = 243734401, tmax = 243993601
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='597876', job_status='RUN', time_executed='2021-08-16 09:13:34.548814', time_epoch_executed='1629130414.55' WHERE source_name='4FGL J0238.4-3116' and cadence='daily' and bin_id='17'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597876

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597876/ft1_4FGL_J0238.4-3116_daily_bin17.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597876/ft2_4FGL_J0238.4-3116_daily_bin17.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597876/ft1_4FGL_J0238.4-3116_daily_bin17.fits outfile=/scratch/kocevski/597876/ft1_filteredMKT_4FGL_J0238.4-3116_daily_bin17.fits ra=39.6209 dec=-31.2828 rad=12.0 tmin=243734401.0 tmax=243993601.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 9.73
user 1.23
sys 8.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597876/ft2_4FGL_J0238.4-3116_daily_bin17.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/597876/ft1_filteredMKT_4FGL_J0238.4-3116_daily_bin17.fits evtable="EVENTS" outfile="/scratch/kocevski/597876/ft1_filtered_4FGL_J0238.4-3116_daily_bin17.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 9.25
user 0.35
sys 8.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597876/ft1_filtered_4FGL_J0238.4-3116_daily_bin17.fits" evtable="EVENTS" scfile=/scratch/kocevski/597876/ft2_4FGL_J0238.4-3116_daily_bin17.fits sctable="SC_DATA" outfile=/scratch/kocevski/597876/ltcube_243734401_243993601_4FGL_J0238.4-3116_daily_bin17.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/597876/ft2_4FGL_J0238.4-3116_daily_bin17.fits
.....................!
real 23.64
user 13.53
sys 9.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597876/ft1_filtered_4FGL_J0238.4-3116_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/597876/ft2_4FGL_J0238.4-3116_daily_bin17.fits sctable="SC_DATA" expcube=/scratch/kocevski/597876/ltcube_243734401_243993601_4FGL_J0238.4-3116_daily_bin17.fits outfile=/scratch/kocevski/597876/expmap_243734401_243993601_4FGL_J0238.4-3116_daily_bin17.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/597876/ltcube_243734401_243993601_4FGL_J0238.4-3116_daily_bin17.fits
.....................!
real 206.67
user 185.68
sys 15.55

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/597876/ft1_filtered_4FGL_J0238.4-3116_daily_bin17.fits scfile=/scratch/kocevski/597876/ft2_4FGL_J0238.4-3116_daily_bin17.fits outfile=/scratch/kocevski/597876/cmap_243734401_243993601_4FGL_J0238.4-3116_daily_bin17.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 8.93
user 0.38
sys 8.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597876/ft1_filtered_4FGL_J0238.4-3116_daily_bin17.fits scfile=/scratch/kocevski/597876/ft2_4FGL_J0238.4-3116_daily_bin17.fits outfile=/scratch/kocevski/597876/cmap_HighResolution_243734401_243993601_4FGL_J0238.4-3116_daily_bin17.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 10.15
user 0.39
sys 8.01

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/597876/ft1_filtered_4FGL_J0238.4-3116_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/597876/ft2_4FGL_J0238.4-3116_daily_bin17.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/597876/Model_4FGL_J0238.4-3116_daily_bin17.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/597876/ft1_filtered_4FGL_J0238.4-3116_daily_bin17.fits.....................!
real 129.24
user 110.23
sys 11.70

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.773       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3538       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27306E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.286       1.0000         .10000E-03   10000.    
     7 'norm      '    11.802       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.388       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .37590E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0390       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12017       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.028       1.0000         .10000E-03   10000.    
    14 'norm      '    2.6436       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.525       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1715       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11446E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .86365       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86711       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.

 FCN=   5609.648     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     2768 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.789        32.725        .64369E-04    .42035E-05
   2  Prefactor     .10000E-03    4.9037        .16178E-02** at limit **
   3  Prefactor     .10000E-03    8.1446        .18142E-02** at limit **
   4  Prefactor     4.3414        4.7001        .15640E-03   -.71672E-04
   5  Prefactor     .60115E-01    10.938        .41791E-01    .24435E-03
   6  Prefactor     15.265        38.586        .10244E-03   -.27744E-05
   7  norm          11.804        3.4311        .69886E-04   -.40506E-04
   8  Prefactor     30.389        22.367        .72682E-04    .15642E-06
   9  Prefactor     .10000E-03    8.6533        .18142E-02** at limit **
  10  Prefactor     .10000E-03    304.89        .84834E-02** at limit **
  11  Prefactor     4.0395        3.5389        .12697E-03   -.18893E-04
  12  Prefactor     .10003E-03    130.66        .29646    ** at limit **
  13  Prefactor     36.001        36.955        .66767E-04    .18730E-05
  14  norm          2.6439        1.5150        .67355E-04   -.27006E-05
  15  Prefactor     10.543        14.636        .12350E-03   -.66277E-05
  16  norm          3.1720        2.8156        .11412E-03   -.81092E-04
  17  Prefactor     .10000E-03    10.410        .18142E-02** at limit **
  18  Prefactor     .10000E-03    62.934        .18142E-02** at limit **
  19  Normalizat    .86322        .18781        .21605E-03   -.11787E-04
  20  Prefactor     .86717        .20789        .25049E-03   -.60362E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.7895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.34139
  Prefactor  = 0.0601145
  Prefactor  = 15.2652
  norm       = 11.8037
  Prefactor  = 30.389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.03955
  Prefactor  = 0.000100028
  Prefactor  = 36.0009
  norm       = 2.64392
  Prefactor  = 10.5431
  norm       = 3.17204
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.86322
  Prefactor  = 0.867172
 **********
 **   18 **HESSE 
 **********

 FCN=   5609.648     FROM HESSE     STATUS=OK           291 CALLS     3059 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.789        32.725        .12874E-04   -1.4462    
   2  Prefactor     .10000E-03    4.9041        .32357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.1501        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.3414        4.6782        .62560E-05   -1.5291    
   5  Prefactor     .60115E-01    7.1550        .53394E-01   -1.5659    
   6  Prefactor     15.265        38.589        .40977E-05   -1.4926    
   7  norm          11.804        3.4299        .27954E-05   -1.5021    
   8  Prefactor     30.389        22.367        .14536E-04   -1.4605    
   9  Prefactor     .10000E-03    8.6535        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    317.23        .33934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0395        3.5388        .50787E-05   -1.5306    
  12  Prefactor     .10003E-03    130.65        .29646       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     36.001        36.946        .26707E-05   -1.4507    
  14  norm          2.6439        1.5149        .26942E-05   -1.5383    
  15  Prefactor     10.543        14.630        .49402E-05   -1.5058    
  16  norm          3.1720        2.8154        .45648E-05   -1.5352    
  17  Prefactor     .10000E-03    10.413        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    62.965        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .86322        .18712        .86421E-05   -.97765    
  20  Prefactor     .86717        .20789        .10020E-04   -.97298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.58976e-11
Minuit parameter uncertainties:
  1  32.7398
  2  8.90035e-07
  3  1.56487e-05
  4  4.67856
  5  1.31074
  6  38.6522
  7  3.42995
  8  22.3728
  9  3.15724e-06
  10  0.000228921
  11  3.539
  12  0.00383501
  13  36.9694
  14  1.51491
  15  14.6354
  16  2.81555
  17  2.21996e-06
  18  1.92778e-06
  19  0.187265
  20  0.208076
Done.

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

Extracting fit parameters...

4FGL J0238.4-3116
   Spectrum: PowerLaw
285    Prefactor:  4.040e+00  3.539e+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:  8.672e-01  2.081e-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:  8.632e-01  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.53
Ra Dec: 39.621 -31.283
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.05e-08 +/- 1.79e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 2.02e-05

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

Saving results to:
/scratch/kocevski/597876/likelihoodResults_243734401_243993601_4FGL_J0238.4-3116_daily_bin17.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) = 5609.64628242
delta logL = 0.00185433316619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5609.64587774
delta logL = 0.00225900840087

Fit tolerance = 1e-08

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

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

 FCN=   5609.646     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      248 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9393        3.8674        .12398E-03    .20081E-04
   2  Index         1.8563        .55177        .73984E-02    .38698E-03
   3  Normalizat    .86254        .17447        .21612E-03   -.37664E-04
   4  Prefactor     .86714        .20381        .25049E-03   -.17474E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.93927
  Index      = 1.8563
  Normalizat = 0.862544
  Prefactor  = 0.867142
 **********
 **   18 **HESSE 
 **********

 FCN=   5609.646     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9393        3.7764        .49593E-05   -1.5311    
   2  Index         1.8563        .53884        .14797E-02   -.67993    
   3  Normalizat    .86254        .17461        .86449E-05   -.97789    
   4  Prefactor     .86714        .20403        .10019E-04   -.97299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10336e-12
Minuit parameter uncertainties:
  1  3.77667
  2  0.540583
  3  0.174727
  4  0.20421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597876': 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) = 5609.64587772
delta logL = 0.00225902641159

Extracting fit parameters...

4FGL J0238.4-3116
   Spectrum: PowerLaw
285    Prefactor:  3.939e+00  3.777e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.856e+00  5.406e-01  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:  8.671e-01  2.042e-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:  8.625e-01  1.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.53
Ra Dec: 39.621 -31.283
Photon Index (Free Index): 1.86 +/- 0.54
Photon Flux (Free Index): 2.16e-08 +/- 2.47e-08
Energy Flux (Free Index): 2.19e-05 +/- 2.57e-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/597876/cmap_HighResolution_243734401_243993601_4FGL_J0238.4-3116_daily_bin17.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-03', comment='SUCCESS', photon_flux='2.05e-08', energy_flux2='2.19e-05', photon_flux_error='1.79e-08', dlogl='2.26e-03', energy_flux='2.31e-05', photon_flux2='2.16e-08', job_status='DONE', time_completed='2021-08-16 09:27:08.178541', photon_index_error2='0.54', photon_index2='1.86', ts='3.53', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='6.64e-08', energy_flux_error2='2.57e-05', EG='0.86', time_epoch_completed='1629131228.18', return_code='0', job_id='597876', GAL2='0.87', EG2='0.86', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='2.47e-08', ts2='3.53', photon_index='1.82' WHERE bin_id='17' AND source_name='4FGL J0238.4-3116' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 09:27:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 597876: <4FGL_J0238.4-3116_daily_bin17> in cluster <slac> Done

Job <4FGL_J0238.4-3116_daily_bin17> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 16 09:10:31 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 09:10:38 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:10:38 2021
Terminated at Mon Aug 16 09:27:10 2021
Results reported at Mon Aug 16 09:27:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.4-3116_daily_bin17 39.6209 -31.2828 243734401 243993601 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 :                                   916.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            999 sec.

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

