/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 12 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_bin1409
RA = 39.6209, Dec = -31.2828
tmin = 604540801, tmax = 604800001
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='607706', job_status='RUN', time_executed='2021-08-16 09:46:55.998797', time_epoch_executed='1629132416.0' WHERE source_name='4FGL J0238.4-3116' and cadence='daily' and bin_id='1409'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607706

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607706/ft1_4FGL_J0238.4-3116_daily_bin1409.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607706/ft2_4FGL_J0238.4-3116_daily_bin1409.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607706/ft1_4FGL_J0238.4-3116_daily_bin1409.fits outfile=/scratch/kocevski/607706/ft1_filteredMKT_4FGL_J0238.4-3116_daily_bin1409.fits ra=39.6209 dec=-31.2828 rad=12.0 tmin=604540801.0 tmax=604800001.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 11.37
user 3.37
sys 5.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607706/ft1_filtered_4FGL_J0238.4-3116_daily_bin1409.fits" evtable="EVENTS" scfile=/scratch/kocevski/607706/ft2_4FGL_J0238.4-3116_daily_bin1409.fits sctable="SC_DATA" outfile=/scratch/kocevski/607706/ltcube_604540801_604800001_4FGL_J0238.4-3116_daily_bin1409.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/607706/ft2_4FGL_J0238.4-3116_daily_bin1409.fits
.....................!
real 19.37
user 12.75
sys 6.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607706/ft1_filtered_4FGL_J0238.4-3116_daily_bin1409.fits evtable="EVENTS" scfile=/scratch/kocevski/607706/ft2_4FGL_J0238.4-3116_daily_bin1409.fits sctable="SC_DATA" expcube=/scratch/kocevski/607706/ltcube_604540801_604800001_4FGL_J0238.4-3116_daily_bin1409.fits outfile=/scratch/kocevski/607706/expmap_604540801_604800001_4FGL_J0238.4-3116_daily_bin1409.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/607706/ltcube_604540801_604800001_4FGL_J0238.4-3116_daily_bin1409.fits
.....................!
real 198.98
user 185.74
sys 11.00

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/607706/ft1_filtered_4FGL_J0238.4-3116_daily_bin1409.fits scfile=/scratch/kocevski/607706/ft2_4FGL_J0238.4-3116_daily_bin1409.fits outfile=/scratch/kocevski/607706/cmap_604540801_604800001_4FGL_J0238.4-3116_daily_bin1409.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 5.43
user 0.37
sys 5.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607706/ft1_filtered_4FGL_J0238.4-3116_daily_bin1409.fits scfile=/scratch/kocevski/607706/ft2_4FGL_J0238.4-3116_daily_bin1409.fits outfile=/scratch/kocevski/607706/cmap_HighResolution_604540801_604800001_4FGL_J0238.4-3116_daily_bin1409.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 5.57
user 0.38
sys 5.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/607706/ft1_filtered_4FGL_J0238.4-3116_daily_bin1409.fits evtable="EVENTS" scfile=/scratch/kocevski/607706/ft2_4FGL_J0238.4-3116_daily_bin1409.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/607706/Model_4FGL_J0238.4-3116_daily_bin1409.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/607706/ft1_filtered_4FGL_J0238.4-3116_daily_bin1409.fits.....................!
real 81.17
user 72.87
sys 7.78

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    17.331       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6783       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5958       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2718       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3529       1.0000         .10000E-03   10000.    
     7 'norm      '    5.0622       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.490       1.0000         .10000E-03   10000.    
    10 'Prefactor '    87.238       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    278.34       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11160E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.0132       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4403       1.0000         .10000E-03   10000.    
    16 'norm      '    3.9262       1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.156       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2535       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .65438       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=   3549.316     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2058 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.855        .29824E-07** at limit **
   2  Prefactor     17.316        19.489        .48781E-06    .26653E-04
   3  Prefactor     7.6750        10.101       -.49007E-07   -.19443E-04
   4  Prefactor     1.5877        6.4625        .20240E-05    .10657E-04
   5  Prefactor     6.2680        9.3298       -.24560E-07   -.22262E-04
   6  Prefactor     1.0888        1107.6       -.90979E-05    .24352E-05
   7  norm          5.0597        4.6920        .23740E-06   -.51762E-05
   8  Prefactor     .10000E-03    21.469       -.44419E-06** at limit **
   9  Prefactor     40.345        53.169       -.84820E-06    .32146E-04
  10  Prefactor     87.240        85.431        .72278E-06   -.11476E-04
  11  Prefactor     .10000E-03    4.0592       -.98297E-06** at limit **
  12  Prefactor     277.91        300.68       -.27660E-06   -.48153E-04
  13  Prefactor     .10000E-03    49.593        .59612E-06** at limit **
  14  norm          7.0113        3.7481        .13253E-06   -.67523E-04
  15  Prefactor     4.4349        15.274        .81702E-05   -.28069E-04
  16  norm          3.9251        4.2831        .47578E-07   -.28404E-04
  17  Prefactor     53.134        36.498        .59524E-06    .13087E-04
  18  Prefactor     .10000E-03    36.780        .23882E-06** at limit **
  19  Normalizat    1.2550        .24225       -.28140E-05    .38366E-04
  20  Prefactor     .65306        .25291       -.31258E-06   -.54491E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.3158
  Prefactor  = 7.67502
  Prefactor  = 1.58775
  Prefactor  = 6.26803
  Prefactor  = 1.08882
  norm       = 5.05969
  Prefactor  = 0.0001
  Prefactor  = 40.3448
  Prefactor  = 87.2397
  Prefactor  = 0.0001
  Prefactor  = 277.909
  Prefactor  = 0.0001
  norm       = 7.01128
  Prefactor  = 4.43495
  norm       = 3.92512
  Prefactor  = 53.1341
  Prefactor  = 0.0001
  Normalizat = 1.25501
  Prefactor  = 0.653063
 **********
 **   18 **HESSE 
 **********

 FCN=   3549.316     FROM HESSE     STATUS=OK           295 CALLS     2353 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.316        19.493        .96206E-04   -1.4875    
   3  Prefactor     7.6750        10.087        .14472E-03   -1.5154    
   4  Prefactor     1.5877        6.4282        .28743E-03   -1.5456    
   5  Prefactor     6.2680        9.2980        .16029E-03   -1.5207    
   6  Prefactor     1.0888        1199.8        .37598E-02   -1.5499    
   7  norm          5.0597        4.6942        .11426E-03   -1.5258    
   8  Prefactor     .10000E-03    21.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.345        53.490        .62994E-04   -1.4437    
  10  Prefactor     87.240        85.488        .43015E-04   -1.3837    
  11  Prefactor     .10000E-03    4.0952        .11667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     277.91        300.78        .12158E-03   -1.2358    
  13  Prefactor     .10000E-03    49.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.0113        3.7459        .79261E-04   -1.5178    
  15  Prefactor     4.4349        15.315        .95551E-03   -1.5287    
  16  norm          3.9251        4.2782        .12339E-03   -1.5312    
  17  Prefactor     53.134        36.523        .55012E-04   -1.4249    
  18  Prefactor     .10000E-03    36.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2550        .28812        .22111E-03   -.84919    
  20  Prefactor     .65306        .29925        .31996E-03   -1.0540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96422e-10
Minuit parameter uncertainties:
  1  6.50862e-06
  2  19.5001
  3  10.0889
  4  6.39046
  5  9.30017
  6  73.8181
  7  4.69456
  8  1.63574e-05
  9  53.5535
  10  85.6084
  11  2.65629e-05
  12  302.485
  13  9.49041e-05
  14  3.746
  15  15.329
  16  4.27857
  17  36.5385
  18  3.31465e-05
  19  0.288487
  20  0.299986
Done.

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

Extracting fit parameters...

4FGL J0238.4-3116
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  2.656e-05  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:  6.531e-01  3.000e-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.255e+00  2.885e-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: 6.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/607706/likelihoodResults_604540801_604800001_4FGL_J0238.4-3116_daily_bin1409.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) = 3549.31683043
delta logL = -0.0011591131456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3549.31567142
delta logL = -1.0613757695e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8486       1.0000          .0000       10.000    
     3 'Normalizat'    1.2551       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65296       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=   3549.316     FROM MIGRAD    STATUS=FAILED        93 CALLS      236 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10438E-03    5.2812        .24116E-02** at limit **
   2  Index         1.9371        5.9435        .20000       -.65748E-04
   3  Normalizat    1.2550        .26945        .22111E-03   -.15903E-03
   4  Prefactor     .65306        .29086        .31995E-03   -.13208E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3549.316     FROM SIMPLEX   STATUS=UNCHANGED    102 CALLS      338 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10438E-03    5.2812        .20626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9371        5.9435        .35979E-02   -.65932    
   3  Normalizat    1.2550        .26945        .20051E-03   -.84919    
   4  Prefactor     .65306        .29086        .14945E-03   -1.0540    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3549.307     FROM MIGRAD    STATUS=CONVERGED    160 CALLS      498 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92800E-01    1.0282        .16822E-01    .13841E-02
   2  Index         2.8739        .13227        .50000        .37805E-04
   3  Normalizat    1.2497        .67950E-02    .44223E-04    .69179E-04
   4  Prefactor     .65410        .73493E-02    .12798E-04   -.17322E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0927999
  Index      = 2.87393
  Normalizat = 1.2497
  Prefactor  = 0.654103
 **********
 **   18 **HESSE 
 **********

 FCN=   3549.307     FROM HESSE     STATUS=OK            31 CALLS      529 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .92800E-01    14.786        .97401E-03   -1.5647    
   2  Index         2.8739        6.2325        .14039E-02   -.43920    
   3  Normalizat    1.2497        .27614        .88446E-05   -.85080    
   4  Prefactor     .65410        .29400        .25596E-05   -1.0535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57096e-09
Minuit parameter uncertainties:
  1  2.34213
  2  6.96386
  3  0.276468
  4  0.2947
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607706': 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) = 3549.30688071
delta logL = 0.00879060132229

Extracting fit parameters...

4FGL J0238.4-3116
   Spectrum: PowerLaw
285    Prefactor:  9.280e-02  2.342e+00  1.000e-04  1.000e+04 ( 1.000e-13)
286        Index:  2.874e+00  6.964e+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:  6.541e-01  2.947e-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.250e+00  2.765e-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/607706/cmap_HighResolution_604540801_604800001_4FGL_J0238.4-3116_daily_bin1409.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.83e-03', job_status='DONE', photon_flux_upper_limit='6.54e-08', time_completed='2021-08-16 09:57:03.541862', job_id='607706', GAL2='0.65', fit_tolerance='1e-08', EG2='1.25', EG='1.26', time_epoch_completed='1629133023.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='8.79e-03', ts2='0.02', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='1409' AND source_name='4FGL J0238.4-3116' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 09:57:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 607706: <4FGL_J0238.4-3116_daily_bin1409> in cluster <slac> Done

Job <4FGL_J0238.4-3116_daily_bin1409> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug 16 09:40:54 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 09:44:39 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:44:39 2021
Terminated at Mon Aug 16 09:57:05 2021
Results reported at Mon Aug 16 09:57:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.4-3116_daily_bin1409 39.6209 -31.2828 604540801 604800001 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 :                                   674.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            971 sec.

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

