/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 8 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 = 7406
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0238.1-3905_daily_bin464
RA = 39.5299, Dec = -39.0874
tmin = 359596801, tmax = 359856001
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='575302', job_status='RUN', time_executed='2021-08-16 08:13:54.072960', time_epoch_executed='1629126834.07' WHERE source_name='4FGL J0238.1-3905' and cadence='daily' and bin_id='464'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575302

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575302/ft1_4FGL_J0238.1-3905_daily_bin464.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575302/ft2_4FGL_J0238.1-3905_daily_bin464.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575302/ft1_4FGL_J0238.1-3905_daily_bin464.fits outfile=/scratch/kocevski/575302/ft1_filteredMKT_4FGL_J0238.1-3905_daily_bin464.fits ra=39.5299 dec=-39.0874 rad=12.0 tmin=359596801.0 tmax=359856001.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 6.20
user 3.57
sys 2.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/575302/ft2_4FGL_J0238.1-3905_daily_bin464.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/575302/ft1_filteredMKT_4FGL_J0238.1-3905_daily_bin464.fits evtable="EVENTS" outfile="/scratch/kocevski/575302/ft1_filtered_4FGL_J0238.1-3905_daily_bin464.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 2.91
user 0.35
sys 2.47

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575302/ft1_filtered_4FGL_J0238.1-3905_daily_bin464.fits" evtable="EVENTS" scfile=/scratch/kocevski/575302/ft2_4FGL_J0238.1-3905_daily_bin464.fits sctable="SC_DATA" outfile=/scratch/kocevski/575302/ltcube_359596801_359856001_4FGL_J0238.1-3905_daily_bin464.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/575302/ft2_4FGL_J0238.1-3905_daily_bin464.fits
.....................!
real 17.60
user 14.16
sys 2.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575302/ft1_filtered_4FGL_J0238.1-3905_daily_bin464.fits evtable="EVENTS" scfile=/scratch/kocevski/575302/ft2_4FGL_J0238.1-3905_daily_bin464.fits sctable="SC_DATA" expcube=/scratch/kocevski/575302/ltcube_359596801_359856001_4FGL_J0238.1-3905_daily_bin464.fits outfile=/scratch/kocevski/575302/expmap_359596801_359856001_4FGL_J0238.1-3905_daily_bin464.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/575302/ltcube_359596801_359856001_4FGL_J0238.1-3905_daily_bin464.fits
.....................!
real 196.01
user 186.51
sys 8.01

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/575302/ft1_filtered_4FGL_J0238.1-3905_daily_bin464.fits scfile=/scratch/kocevski/575302/ft2_4FGL_J0238.1-3905_daily_bin464.fits outfile=/scratch/kocevski/575302/cmap_359596801_359856001_4FGL_J0238.1-3905_daily_bin464.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 2.83
user 0.38
sys 2.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575302/ft1_filtered_4FGL_J0238.1-3905_daily_bin464.fits scfile=/scratch/kocevski/575302/ft2_4FGL_J0238.1-3905_daily_bin464.fits outfile=/scratch/kocevski/575302/cmap_HighResolution_359596801_359856001_4FGL_J0238.1-3905_daily_bin464.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 2.85
user 0.40
sys 2.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/575302/ft1_filtered_4FGL_J0238.1-3905_daily_bin464.fits evtable="EVENTS" scfile=/scratch/kocevski/575302/ft2_4FGL_J0238.1-3905_daily_bin464.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/575302/Model_4FGL_J0238.1-3905_daily_bin464.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/575302/ft1_filtered_4FGL_J0238.1-3905_daily_bin464.fits.....................!
real 122.02
user 115.94
sys 4.72

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/575302/ft1_filtered_4FGL_J0238.1-3905_daily_bin464.fits', '/scratch/kocevski/575302/ft2_4FGL_J0238.1-3905_daily_bin464.fits', expMap='/scratch/kocevski/575302/expmap_359596801_359856001_4FGL_J0238.1-3905_daily_bin464.fits', expCube='/scratch/kocevski/575302/ltcube_359596801_359856001_4FGL_J0238.1-3905_daily_bin464.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/575302/Model_4FGL_J0238.1-3905_daily_bin464.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/575302/ft1_filtered_4FGL_J0238.1-3905_daily_bin464.fits
Spacecraft file(s): /scratch/kocevski/575302/ft2_4FGL_J0238.1-3905_daily_bin464.fits
Exposure map: /scratch/kocevski/575302/expmap_359596801_359856001_4FGL_J0238.1-3905_daily_bin464.fits
Exposure cube: /scratch/kocevski/575302/ltcube_359596801_359856001_4FGL_J0238.1-3905_daily_bin464.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/575302/Model_4FGL_J0238.1-3905_daily_bin464.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5731.64542295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4874       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0757       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.152       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.704       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.0367       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3784       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2965       1.0000         .10000E-03   10000.    
    14 'norm      '    3.2443       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10836E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3874       1.0000         .10000E-03   10000.    
    18 'norm      '    .59365       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92074       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .71288       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=   5731.634     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2403 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4870        2.9295       -.64884E-06   -.78585E-03
   2  Prefactor     2.0755        4.9940       -.99425E-05   -.66976E-03
   3  norm          .10000E-03    1.2670        .23429E-06** at limit **
   4  Prefactor     .10000E-03    2.7832       -.70501E-07** at limit **
   5  Prefactor     22.151        19.335       -.85868E-08    .89582E-04
   6  Prefactor     13.693        11.213       -.41340E-05    .63838E-03
   7  Prefactor     .10003E-03    34.228       -.13008E-04** at limit **
   8  Prefactor     .10000E-03    14.526        .62873E-06** at limit **
   9  norm          5.0364        2.8169       -.65972E-06   -.59082E-03
  10  Prefactor     .10000E-03    4.4561        .95317E-07** at limit **
  11  Prefactor     2.3642        62.096        .13595E-04   -.54261E-04
  12  Prefactor     .10000E-03    34.631        .18148E-04** at limit **
  13  Prefactor     2.2963        3.6170       -.56398E-06   -.53146E-03
  14  norm          3.2443        1.1593        .35138E-07    .20024E-03
  15  Prefactor     .10000E-03    154.52       -.11238E-04** at limit **
  16  Prefactor     .10000E-03    5.9191       -.16864E-06** at limit **
  17  norm          1.3873        1.3684       -.22207E-08    .27966E-03
  18  norm          .59363        .46142       -.29898E-07    .88693E-04
  19  Normalizat    .92087        .13985        .14024E-05   -.26177E-04
  20  Prefactor     .71277        .15827       -.47816E-07    .59138E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.48701
  Prefactor  = 2.07546
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1511
  Prefactor  = 13.6934
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  norm       = 5.03643
  Prefactor  = 0.0001
  Prefactor  = 2.36422
  Prefactor  = 0.0001
  Prefactor  = 2.29633
  norm       = 3.24428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.38732
  norm       = 0.593629
  Normalizat = 0.920868
  Prefactor  = 0.712774
 **********
 **   18 **HESSE 
 **********

 FCN=   5731.634     FROM HESSE     STATUS=OK           293 CALLS     2696 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4870        2.9233        .17563E-03   -1.5464    
   2  Prefactor     2.0755        5.1896        .26341E-03   -1.5420    
   3  norm          .10000E-03    1.2709        .83232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7866        .12334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.151        19.313        .85104E-04   -1.4766    
   6  Prefactor     13.693        10.931        .10820E-03   -1.4968    
   7  Prefactor     .10003E-03    33.519        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.0364        2.7871        .82559E-04   -1.5259    
  10  Prefactor     .10000E-03    4.4736        .15603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.3642        60.049        .26563E-03   -1.5400    
  12  Prefactor     .10000E-03    34.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2963        3.6102        .17348E-03   -1.5405    
  14  norm          3.2443        1.1582        .46587E-04   -1.5348    
  15  Prefactor     .10000E-03    154.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9262        .17988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3873        1.3913        .85755E-04   -1.5472    
  18  norm          .59363        .47021        .44033E-04   -1.5554    
  19  Normalizat    .92087        .16570        .19572E-03   -.95731    
  20  Prefactor     .71277        .18679        .25051E-03   -1.0303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48229e-09
Minuit parameter uncertainties:
  1  2.92358
  2  5.19073
  3  2.2484e-05
  4  3.04241e-07
  5  19.3183
  6  10.9328
  7  0.00184554
  8  2.92408e-06
  9  2.78721
  10  2.54414e-05
  11  23.8564
  12  9.7747e-05
  13  3.61057
  14  1.15824
  15  0.000138679
  16  6.65769e-06
  17  1.39134
  18  0.470217
  19  0.16579
  20  0.186957
Done.

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

Extracting fit parameters...

4FGL J0238.1-3905
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  9.775e-05  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:  7.128e-01  1.870e-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:  9.209e-01  1.658e-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: 3.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/575302/likelihoodResults_359596801_359856001_4FGL_J0238.1-3905_daily_bin464.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) = 5731.6342652
delta logL = -0.000137603835356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5731.63412843
delta logL = -8.28713382361e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5731.634     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      280 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10525E-03    5.0635        .18142E-01** at limit **
   2  Index         2.0694        8.9190        .50000        .18160E-04
   3  Normalizat    .92087        .14442E-02    .19572E-03    .53032E-04
   4  Prefactor     .71277        .16536E-02    .25051E-03    .44020E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105245
  Index      = 2.06945
  Normalizat = 0.920869
  Prefactor  = 0.712773
 **********
 **   18 **HESSE 
 **********

 FCN=   5731.634     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10525E-03    62.849        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0694        8.9652        .50000       -.62625    
   3  Normalizat    .92087        .50472E-02    .78289E-05   -.95731    
   4  Prefactor     .71277        .57793E-02    .10020E-04   -1.0303    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.56767e-10
Minuit parameter uncertainties:
  1  0.0363507
  2  143.795
  3  0.00504725
  4  0.00577932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575302': 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) = 5731.63412799
delta logL = -3.89551132685e-07

Extracting fit parameters...

4FGL J0238.1-3905
   Spectrum: PowerLaw
274    Prefactor:  1.052e-04  3.635e-02  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.069e+00  1.438e+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:  7.128e-01  5.779e-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:  9.209e-01  5.047e-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/575302/cmap_HighResolution_359596801_359856001_4FGL_J0238.1-3905_daily_bin464.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-03', job_status='DONE', photon_flux_upper_limit='3.78e-08', time_completed='2021-08-16 08:26:06.993262', job_id='575302', GAL2='0.71', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1629127566.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-3.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='464' AND source_name='4FGL J0238.1-3905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 08:26:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0010>
Subject: Job 575302: <4FGL_J0238.1-3905_daily_bin464> in cluster <slac> Done

Job <4FGL_J0238.1-3905_daily_bin464> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 16 08:10:25 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 08:12:43 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:12:43 2021
Terminated at Mon Aug 16 08:26:08 2021
Results reported at Mon Aug 16 08:26:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.1-3905_daily_bin464 39.5299 -39.0874 359596801 359856001 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 :                                   754.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            943 sec.

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

