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


Performing analysis on: 4FGL_J0238.4-3116_daily_bin194
RA = 39.6209, Dec = -31.2828
tmin = 289612801, tmax = 289872001
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='598131', job_status='RUN', time_executed='2021-08-16 09:14:36.866566', time_epoch_executed='1629130476.87' WHERE source_name='4FGL J0238.4-3116' and cadence='daily' and bin_id='194'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598131

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598131/ft1_4FGL_J0238.4-3116_daily_bin194.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598131/ft2_4FGL_J0238.4-3116_daily_bin194.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598131/ft1_4FGL_J0238.4-3116_daily_bin194.fits outfile=/scratch/kocevski/598131/ft1_filteredMKT_4FGL_J0238.4-3116_daily_bin194.fits ra=39.6209 dec=-31.2828 rad=12.0 tmin=289612801.0 tmax=289872001.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.37
user 3.26
sys 5.58

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598131/ft1_filtered_4FGL_J0238.4-3116_daily_bin194.fits" evtable="EVENTS" scfile=/scratch/kocevski/598131/ft2_4FGL_J0238.4-3116_daily_bin194.fits sctable="SC_DATA" outfile=/scratch/kocevski/598131/ltcube_289612801_289872001_4FGL_J0238.4-3116_daily_bin194.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/598131/ft2_4FGL_J0238.4-3116_daily_bin194.fits
.....................!
real 20.26
user 12.81
sys 6.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598131/ft1_filtered_4FGL_J0238.4-3116_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/598131/ft2_4FGL_J0238.4-3116_daily_bin194.fits sctable="SC_DATA" expcube=/scratch/kocevski/598131/ltcube_289612801_289872001_4FGL_J0238.4-3116_daily_bin194.fits outfile=/scratch/kocevski/598131/expmap_289612801_289872001_4FGL_J0238.4-3116_daily_bin194.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/598131/ltcube_289612801_289872001_4FGL_J0238.4-3116_daily_bin194.fits
.....................!
real 201.43
user 186.68
sys 11.86

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/598131/ft1_filtered_4FGL_J0238.4-3116_daily_bin194.fits scfile=/scratch/kocevski/598131/ft2_4FGL_J0238.4-3116_daily_bin194.fits outfile=/scratch/kocevski/598131/cmap_289612801_289872001_4FGL_J0238.4-3116_daily_bin194.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 6.07
user 0.39
sys 5.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598131/ft1_filtered_4FGL_J0238.4-3116_daily_bin194.fits scfile=/scratch/kocevski/598131/ft2_4FGL_J0238.4-3116_daily_bin194.fits outfile=/scratch/kocevski/598131/cmap_HighResolution_289612801_289872001_4FGL_J0238.4-3116_daily_bin194.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 6.09
user 0.39
sys 5.45

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/598131/ft1_filtered_4FGL_J0238.4-3116_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/598131/ft2_4FGL_J0238.4-3116_daily_bin194.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/598131/Model_4FGL_J0238.4-3116_daily_bin194.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/598131/ft1_filtered_4FGL_J0238.4-3116_daily_bin194.fits.....................!
real 127.23
user 114.86
sys 8.00

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    13.214       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2880       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8886       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .13359E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.122       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.114       1.0000         .10000E-03   10000.    
    10 'Prefactor '    51.646       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6723       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.178       1.0000         .10000E-03   10000.    
    14 'norm      '    16.302       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.813       1.0000         .10000E-03   10000.    
    16 'norm      '    8.7143       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .74859       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97064       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=   5820.328     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2051 TOTAL
                     EDM=   .65E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.449        .12603E-06** at limit **
   2  Prefactor     13.214        11.325       -.95035E-07    .23687E-05
   3  Prefactor     3.2884        10.531       -.32752E-06   -.98939E-05
   4  Prefactor     .10000E-03    3.1383        .42274E-07** at limit **
   5  Prefactor     2.8871        .96818       -.84023E-08   -.58509E-03
   6  Prefactor     .10000E-03    8.3694        .15082E-06** at limit **
   7  norm          .10000E-03    .86622       -.45691E-07** at limit **
   8  Prefactor     15.124        15.308       -.29960E-06    .87745E-05
   9  Prefactor     16.107        25.266       -.11678E-05    .28150E-05
  10  Prefactor     51.646        36.618        .37659E-06    .45798E-05
  11  Prefactor     4.6723        2.8175        .12353E-07    .16358E-04
  12  Prefactor     .10000E-03    84.510        .89579E-06** at limit **
  13  Prefactor     61.171        40.512       -.35724E-05    .30649E-06
  14  norm          16.302        3.1787        .72226E-07    .10330E-04
  15  Prefactor     12.813        12.438        .43386E-06   -.35175E-04
  16  norm          8.7143        3.5002        .21732E-07    .90159E-05
  17  Prefactor     .10000E-03    9.9575       -.20977E-06** at limit **
  18  Prefactor     .10000E-03    40.026        .90534E-07** at limit **
  19  Normalizat    .74867        .15179        .62248E-06    .50209E-05
  20  Prefactor     .97056        .17366        .81892E-07    .35578E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.2136
  Prefactor  = 3.28837
  Prefactor  = 0.0001
  Prefactor  = 2.8871
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.1237
  Prefactor  = 16.1069
  Prefactor  = 51.6462
  Prefactor  = 4.67231
  Prefactor  = 0.0001
  Prefactor  = 61.1713
  norm       = 16.3021
  Prefactor  = 12.8132
  norm       = 8.71431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.748669
  Prefactor  = 0.970564
 **********
 **   18 **HESSE 
 **********

 FCN=   5820.328     FROM HESSE     STATUS=OK           299 CALLS     2350 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.214        11.332        .11019E-03   -1.4981    
   3  Prefactor     3.2884        10.521        .22329E-03   -1.5345    
   4  Prefactor     .10000E-03    3.1999        .13186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8871        5.1219        .10900E-02   -1.5368    
   6  Prefactor     .10000E-03    8.3703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.0008        .13620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.124        15.221        .10300E-03   -1.4930    
   9  Prefactor     16.107        25.495        .99775E-04   -1.4905    
  10  Prefactor     51.646        36.604        .27903E-03   -1.4269    
  11  Prefactor     4.6723        2.8191        .96844E-04   -1.5276    
  12  Prefactor     .10000E-03    84.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     61.171        40.514        .51299E-04   -1.4142    
  14  norm          16.302        3.1795        .57178E-04   -1.4900    
  15  Prefactor     12.813        12.490        .55951E-03   -1.4992    
  16  norm          8.7143        3.5001        .87347E-04   -1.5117    
  17  Prefactor     .10000E-03    10.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    40.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .74867        .17698        .23466E-03   -1.0200    
  20  Prefactor     .97056        .20245        .24542E-03   -.93717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02103e-10
Minuit parameter uncertainties:
  1  1.48683e-06
  2  11.3339
  3  10.5273
  4  7.76335e-08
  5  5.12264
  6  6.94763e-07
  7  2.82859e-05
  8  15.2251
  9  25.5122
  10  36.6195
  11  2.8192
  12  8.68497e-06
  13  40.5325
  14  3.17954
  15  12.4923
  16  3.50014
  17  4.72778e-06
  18  1.59093e-05
  19  0.177119
  20  0.202605
Done.

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

Extracting fit parameters...

4FGL J0238.4-3116
   Spectrum: PowerLaw
285    Prefactor:  4.672e+00  2.819e+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:  9.706e-01  2.026e-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.487e-01  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.64
Ra Dec: 39.621 -31.283
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.37e-08 +/- 1.43e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 1.61e-05

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) = 5819.73755256
delta logL = 0.590474140502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5819.56457414
delta logL = 0.763452563161

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6860       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3709       1.0000          .0000       10.000    
     3 'Normalizat'    .75609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96671       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=   5819.565     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      203 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6957        9.1240        .38796E-02   -.10788E-03
   2  Index         1.3714        .70145        .16733        .26109E-04
   3  Normalizat    .75610        .14747        .43034E-01    .15326E-04
   4  Prefactor     .96661        .17356        .45850E-01    .82216E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.69566
  Index      = 1.37141
  Normalizat = 0.756104
  Prefactor  = 0.966614
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.565     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6957        4.0500        .11574E-03   -1.5190    
   2  Index         1.3714        .34442        .67145E-02   -.81208    
   3  Normalizat    .75610        .17024        .23358E-03   -1.0172    
   4  Prefactor     .96661        .20168        .24580E-03   -.93851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13514e-10
Minuit parameter uncertainties:
  1  4.05018
  2  0.344994
  3  0.170364
  4  0.20184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598131': 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) = 5819.56456955
delta logL = 0.763457149686

Extracting fit parameters...

4FGL J0238.4-3116
   Spectrum: PowerLaw
285    Prefactor:  6.696e+00  4.050e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  1.371e+00  3.450e-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:  9.666e-01  2.018e-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.561e-01  1.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.16
Ra Dec: 39.621 -31.283
Photon Index (Free Index): 1.37 +/- 0.34
Photon Flux (Free Index): 1.57e-08 +/- 1.09e-08
Energy Flux (Free Index): 7.62e-05 +/- 7.55e-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/598131/cmap_HighResolution_289612801_289872001_4FGL_J0238.4-3116_daily_bin194.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.37e-08', energy_flux2='7.62e-05', photon_flux_error='1.43e-08', dlogl='7.63e-01', energy_flux='2.67e-05', photon_flux2='1.57e-08', job_status='DONE', time_completed='2021-08-16 09:26:09.538916', photon_index_error2='0.34', photon_index2='1.37', ts='11.64', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='7.55e-05', EG='0.75', time_epoch_completed='1629131169.54', return_code='0', job_id='598131', GAL2='0.97', EG2='0.76', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='1.09e-08', ts2='13.16', photon_index='1.82' WHERE bin_id='194' AND source_name='4FGL J0238.4-3116' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 09:26:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 598131: <4FGL_J0238.4-3116_daily_bin194> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.4-3116_daily_bin194 39.6209 -31.2828 289612801 289872001 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 :                                   764.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            921 sec.

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

