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


Performing analysis on: 4FGL_J0238.1-3905_daily_bin94
RA = 39.5299, Dec = -39.0874
tmin = 263692801, tmax = 263952001
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='573532', job_status='RUN', time_executed='2021-08-16 08:07:52.467661', time_epoch_executed='1629126472.47' WHERE source_name='4FGL J0238.1-3905' and cadence='daily' and bin_id='94'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573532

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573532/ft1_4FGL_J0238.1-3905_daily_bin94.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573532/ft2_4FGL_J0238.1-3905_daily_bin94.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573532/ft1_4FGL_J0238.1-3905_daily_bin94.fits outfile=/scratch/kocevski/573532/ft1_filteredMKT_4FGL_J0238.1-3905_daily_bin94.fits ra=39.5299 dec=-39.0874 rad=12.0 tmin=263692801.0 tmax=263952001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.80
user 1.47
sys 1.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/573532/ft2_4FGL_J0238.1-3905_daily_bin94.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/573532/ft2_4FGL_J0238.1-3905_daily_bin94.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/573532/ft1_filteredMKT_4FGL_J0238.1-3905_daily_bin94.fits evtable="EVENTS" outfile="/scratch/kocevski/573532/ft1_filtered_4FGL_J0238.1-3905_daily_bin94.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.75
user 0.33
sys 1.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573532/ft1_filtered_4FGL_J0238.1-3905_daily_bin94.fits" evtable="EVENTS" scfile=/scratch/kocevski/573532/ft2_4FGL_J0238.1-3905_daily_bin94.fits sctable="SC_DATA" outfile=/scratch/kocevski/573532/ltcube_263692801_263952001_4FGL_J0238.1-3905_daily_bin94.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/573532/ft2_4FGL_J0238.1-3905_daily_bin94.fits
.....................!
real 16.63
user 14.73
sys 1.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573532/ft1_filtered_4FGL_J0238.1-3905_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/573532/ft2_4FGL_J0238.1-3905_daily_bin94.fits sctable="SC_DATA" expcube=/scratch/kocevski/573532/ltcube_263692801_263952001_4FGL_J0238.1-3905_daily_bin94.fits outfile=/scratch/kocevski/573532/expmap_263692801_263952001_4FGL_J0238.1-3905_daily_bin94.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/573532/ltcube_263692801_263952001_4FGL_J0238.1-3905_daily_bin94.fits
.....................!
real 194.26
user 186.96
sys 6.52

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 176 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.1-3905 @ 39.5299 -39.0874

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/573532/ft1_filtered_4FGL_J0238.1-3905_daily_bin94.fits scfile=/scratch/kocevski/573532/ft2_4FGL_J0238.1-3905_daily_bin94.fits outfile=/scratch/kocevski/573532/cmap_263692801_263952001_4FGL_J0238.1-3905_daily_bin94.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.5299 yref=-39.0874 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.79
user 0.38
sys 1.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573532/ft1_filtered_4FGL_J0238.1-3905_daily_bin94.fits scfile=/scratch/kocevski/573532/ft2_4FGL_J0238.1-3905_daily_bin94.fits outfile=/scratch/kocevski/573532/cmap_HighResolution_263692801_263952001_4FGL_J0238.1-3905_daily_bin94.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.5299 yref=-39.0874 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.78
user 0.39
sys 1.35

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/573532/ft1_filtered_4FGL_J0238.1-3905_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/573532/ft2_4FGL_J0238.1-3905_daily_bin94.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/573532/Model_4FGL_J0238.1-3905_daily_bin94.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/573532/ft1_filtered_4FGL_J0238.1-3905_daily_bin94.fits.....................!
real 106.12
user 101.99
sys 2.83

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/573532/ft1_filtered_4FGL_J0238.1-3905_daily_bin94.fits', '/scratch/kocevski/573532/ft2_4FGL_J0238.1-3905_daily_bin94.fits', expMap='/scratch/kocevski/573532/expmap_263692801_263952001_4FGL_J0238.1-3905_daily_bin94.fits', expCube='/scratch/kocevski/573532/ltcube_263692801_263952001_4FGL_J0238.1-3905_daily_bin94.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/573532/Model_4FGL_J0238.1-3905_daily_bin94.xml', optimizer='MINUIT')

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

4FGL J0238.1-3905
   Spectrum: PowerLaw
274    Prefactor:  7.176e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  1.990e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  2.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/573532/ft1_filtered_4FGL_J0238.1-3905_daily_bin94.fits
Spacecraft file(s): /scratch/kocevski/573532/ft2_4FGL_J0238.1-3905_daily_bin94.fits
Exposure map: /scratch/kocevski/573532/expmap_263692801_263952001_4FGL_J0238.1-3905_daily_bin94.fits
Exposure cube: /scratch/kocevski/573532/ltcube_263692801_263952001_4FGL_J0238.1-3905_daily_bin94.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/573532/Model_4FGL_J0238.1-3905_daily_bin94.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) = 4993.50616993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8279       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    46.841       1.0000         .10000E-03   10000.    
     9 'norm      '    6.6226       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8137       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30386E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .57140       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.0822       1.0000         .10000E-03   10000.    
    17 'norm      '    .76056       1.0000         .10000E-03   10000.    
    18 'norm      '    1.8366       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0293       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81399       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4993.464     FROM MIGRAD    STATUS=CONVERGED    418 CALLS     2025 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7960        .18177E-07** at limit **
   2  Prefactor     .10000E-03    3.0075        .74123E-09** at limit **
   3  norm          .10000E-03    1.6771       -.13679E-07** at limit **
   4  Prefactor     8.8282        9.2833        .12166E-05   -.90315E-04
   5  Prefactor     .10000E-03    23.318       -.59432E-06** at limit **
   6  Prefactor     .10000E-03    7.1181        .23078E-07** at limit **
   7  Prefactor     .10000E-03    8.6711       -.21827E-07** at limit **
   8  Prefactor     46.838        61.899        .28921E-06    .36134E-04
   9  norm          6.6228        2.8474       -.18756E-08   -.29082E-05
  10  Prefactor     .10000E-03    12.111       -.88864E-09** at limit **
  11  Prefactor     9.8142        18.727        .18767E-05   -.32776E-04
  12  Prefactor     .10000E-03    29.820        .99415E-06** at limit **
  13  Prefactor     .10008E-03    2.5553       -.61747E-06** at limit **
  14  norm          .57139        1.0750        .34003E-06    .19079E-03
  15  Prefactor     .10000E-03    48.410       -.53300E-06** at limit **
  16  Prefactor     9.0812        27.370       -.12826E-06   -.35499E-04
  17  norm          .75935        2.1163        .77281E-06    .27339E-03
  18  norm          1.8370        1.0268       -.15523E-07   -.20801E-03
  19  Normalizat    1.0292        .16814       -.31970E-06    .13876E-04
  20  Prefactor     .81418        .18517       -.43089E-06    .27244E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.8282
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.838
  norm       = 6.62276
  Prefactor  = 0.0001
  Prefactor  = 9.81417
  Prefactor  = 0.000100002
  Prefactor  = 0.000100079
  norm       = 0.571386
  Prefactor  = 0.000100001
  Prefactor  = 9.08116
  norm       = 0.759355
  norm       = 1.83695
  Normalizat = 1.02921
  Prefactor  = 0.814184
 **********
 **   18 **HESSE 
 **********

 FCN=   4993.464     FROM HESSE     STATUS=OK           295 CALLS     2320 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8215        .92458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0181        .11968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.6888        .89357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.8282        9.1613        .67452E-03   -1.5114    
   5  Prefactor     .10000E-03    23.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.1631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.6926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     46.838        61.062        .58586E-04   -1.4338    
   9  norm          6.6228        2.8494        .74333E-04   -1.5193    
  10  Prefactor     .10000E-03    12.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.8142        18.573        .63958E-03   -1.5081    
  12  Prefactor     .10000E-03    30.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10008E-03    20.039        .20561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .57139        1.0158        .95148E-03   -1.5557    
  15  Prefactor     .10000E-03    48.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.0812        27.256        .13299E-03   -1.5105    
  17  norm          .75935        1.9672        .17445E-02   -1.5534    
  18  norm          1.8370        1.0196        .50859E-04   -1.5437    
  19  Normalizat    1.0292        .19678        .20556E-03   -.92058    
  20  Prefactor     .81418        .21676        .25919E-03   -.99208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03116e-09
Minuit parameter uncertainties:
  1  8.57949e-07
  2  1.23423e-06
  3  8.40805e-07
  4  9.16277
  5  0.000242463
  6  4.64277e-06
  7  8.16513e-06
  8  61.1435
  9  2.84943
  10  2.08163e-06
  11  18.5841
  12  0.000487554
  13  0.00251012
  14  1.01579
  15  0.000371825
  16  27.2935
  17  1.96737
  18  1.01962
  19  0.196921
  20  0.216989
Done.

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

Extracting fit parameters...

4FGL J0238.1-3905
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  4.876e-04  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  1.990e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  2.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  8.142e-01  2.170e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.029e+00  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 39.530 -39.087
Photon Flux Upper Limit: 4.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573532/likelihoodResults_263692801_263952001_4FGL_J0238.1-3905_daily_bin94.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) = 4993.46388581
delta logL = -0.000157176743414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4993.46372861
delta logL = 2.14431565837e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4993.464     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      234 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.742        .90712E-02** at limit **
   2  Index         2.3032        5.6740        .50000       -.64695E-06
   3  Normalizat    1.0292        .23425E-02    .42244E-01    .52385E-05
   4  Prefactor     .81418        .26713E-02    .43902E-01    .13080E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.30315
  Normalizat = 1.02921
  Prefactor  = 0.814184
 **********
 **   18 **HESSE 
 **********

 FCN=   4993.464     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    137.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3032        5.5934        .50000       -.56969    
   3  Normalizat    1.0292        .83757E-02    .20556E-03   -.92058    
   4  Prefactor     .81418        .95494E-02    .25919E-03   -.99208    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09934e-09
Minuit parameter uncertainties:
  1  2.76928e-05
  2  212.981
  3  0.00837572
  4  0.00954939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573532': 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): 102
logL (Free Index) = 4993.46372854
delta logL = 9.36479409575e-08

Extracting fit parameters...

4FGL J0238.1-3905
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  2.769e-05  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.303e+00  2.130e+02  0.000e+00  1.000e+01 (-1.000e+00)
276        Scale:  2.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  8.142e-01  9.549e-03  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.029e+00  8.376e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 39.530 -39.087

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/573532/cmap_HighResolution_263692801_263952001_4FGL_J0238.1-3905_daily_bin94.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-03', job_status='DONE', photon_flux_upper_limit='4.41e-08', time_completed='2021-08-16 08:18:14.727210', job_id='573532', GAL2='0.81', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1629127094.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='9.36e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='94' AND source_name='4FGL J0238.1-3905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 08:18:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 573532: <4FGL_J0238.1-3905_daily_bin94> in cluster <slac> Done

Job <4FGL_J0238.1-3905_daily_bin94> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 16 08:06:02 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 08:07:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 08:07:03 2021
Terminated at Mon Aug 16 08:18:15 2021
Results reported at Mon Aug 16 08:18:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.1-3905_daily_bin94 39.5299 -39.0874 263692801 263952001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0238.1-3905 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   637.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             340.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            733 sec.

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

