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


Performing analysis on: 4FGL_J0238.1-3905_daily_bin381
RA = 39.5299, Dec = -39.0874
tmin = 338083201, tmax = 338342401
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='574054', job_status='RUN', time_executed='2021-08-16 08:12:03.678577', time_epoch_executed='1629126723.68' WHERE source_name='4FGL J0238.1-3905' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574054

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574054/ft1_4FGL_J0238.1-3905_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574054/ft2_4FGL_J0238.1-3905_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574054/ft1_4FGL_J0238.1-3905_daily_bin381.fits outfile=/scratch/kocevski/574054/ft1_filteredMKT_4FGL_J0238.1-3905_daily_bin381.fits ra=39.5299 dec=-39.0874 rad=12.0 tmin=338083201.0 tmax=338342401.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 7.99
user 6.35
sys 1.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574054/ft1_filtered_4FGL_J0238.1-3905_daily_bin381.fits" evtable="EVENTS" scfile=/scratch/kocevski/574054/ft2_4FGL_J0238.1-3905_daily_bin381.fits sctable="SC_DATA" outfile=/scratch/kocevski/574054/ltcube_338083201_338342401_4FGL_J0238.1-3905_daily_bin381.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/574054/ft2_4FGL_J0238.1-3905_daily_bin381.fits
.....................!
real 14.33
user 12.48
sys 1.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574054/ft1_filtered_4FGL_J0238.1-3905_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/574054/ft2_4FGL_J0238.1-3905_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/574054/ltcube_338083201_338342401_4FGL_J0238.1-3905_daily_bin381.fits outfile=/scratch/kocevski/574054/expmap_338083201_338342401_4FGL_J0238.1-3905_daily_bin381.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/574054/ltcube_338083201_338342401_4FGL_J0238.1-3905_daily_bin381.fits
.....................!
real 194.15
user 186.39
sys 5.66

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/574054/ft1_filtered_4FGL_J0238.1-3905_daily_bin381.fits scfile=/scratch/kocevski/574054/ft2_4FGL_J0238.1-3905_daily_bin381.fits outfile=/scratch/kocevski/574054/cmap_338083201_338342401_4FGL_J0238.1-3905_daily_bin381.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.61
user 0.38
sys 1.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574054/ft1_filtered_4FGL_J0238.1-3905_daily_bin381.fits scfile=/scratch/kocevski/574054/ft2_4FGL_J0238.1-3905_daily_bin381.fits outfile=/scratch/kocevski/574054/cmap_HighResolution_338083201_338342401_4FGL_J0238.1-3905_daily_bin381.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.65
user 0.38
sys 1.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574054/ft1_filtered_4FGL_J0238.1-3905_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/574054/ft2_4FGL_J0238.1-3905_daily_bin381.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574054/Model_4FGL_J0238.1-3905_daily_bin381.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/574054/ft1_filtered_4FGL_J0238.1-3905_daily_bin381.fits.....................!
real 87.38
user 83.46
sys 2.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/574054/ft1_filtered_4FGL_J0238.1-3905_daily_bin381.fits', '/scratch/kocevski/574054/ft2_4FGL_J0238.1-3905_daily_bin381.fits', expMap='/scratch/kocevski/574054/expmap_338083201_338342401_4FGL_J0238.1-3905_daily_bin381.fits', expCube='/scratch/kocevski/574054/ltcube_338083201_338342401_4FGL_J0238.1-3905_daily_bin381.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/574054/Model_4FGL_J0238.1-3905_daily_bin381.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/574054/ft1_filtered_4FGL_J0238.1-3905_daily_bin381.fits
Spacecraft file(s): /scratch/kocevski/574054/ft2_4FGL_J0238.1-3905_daily_bin381.fits
Exposure map: /scratch/kocevski/574054/expmap_338083201_338342401_4FGL_J0238.1-3905_daily_bin381.fits
Exposure cube: /scratch/kocevski/574054/ltcube_338083201_338342401_4FGL_J0238.1-3905_daily_bin381.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/574054/Model_4FGL_J0238.1-3905_daily_bin381.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) = 4074.80831669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0757       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1252       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14657E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.384       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.919       1.0000         .10000E-03   10000.    
     9 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.724       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.642       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1634       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1038       1.0000         .10000E-03   10000.    
    15 'Prefactor '    81.014       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1975       1.0000         .10000E-03   10000.    
    18 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0834       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75762       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=   4074.687     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     2043 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5533       -.87549E-07** at limit **
   2  Prefactor     .10000E-03    2.1379       -.32097E-07** at limit **
   3  norm          1.0763        6.1306        .13835E-05   -.51779E-03
   4  Prefactor     .10000E-03    9.7784       -.29192E-06** at limit **
   5  Prefactor     7.1209        59.848       -.14830E-04   -.33015E-04
   6  Prefactor     .10000E-03    14.635        .96374E-06** at limit **
   7  Prefactor     12.386        17.108        .41337E-05   -.19798E-04
   8  Prefactor     36.919        37.134       -.29757E-06    .27587E-05
   9  norm          .10000E-03    .73798        .25793E-06** at limit **
  10  Prefactor     29.726        16.146        .75637E-06    .14645E-04
  11  Prefactor     .10000E-03    12.172       -.87736E-06** at limit **
  12  Prefactor     38.592        52.870       -.73582E-04    .17746E-04
  13  Prefactor     2.1626        4.8707        .21672E-05   -.42181E-03
  14  norm          2.1036        1.4831       -.52913E-06   -.17204E-03
  15  Prefactor     80.776        134.66       -.26177E-03    .84357E-05
  16  Prefactor     .10000E-03    15.077        .21359E-07** at limit **
  17  norm          1.1972        2.5500       -.62892E-06   -.40374E-03
  18  norm          .10000E-03    .58825       -.37658E-06** at limit **
  19  Normalizat    1.0832        .18897        .21291E-05    .15987E-03
  20  Prefactor     .75787        .20933        .10805E-04    .16301E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07633
  Prefactor  = 0.0001
  Prefactor  = 7.12089
  Prefactor  = 0.000100001
  Prefactor  = 12.3861
  Prefactor  = 36.9186
  norm       = 0.0001
  Prefactor  = 29.7262
  Prefactor  = 0.0001
  Prefactor  = 38.592
  Prefactor  = 2.16259
  norm       = 2.10365
  Prefactor  = 80.7762
  Prefactor  = 0.0001
  norm       = 1.19717
  norm       = 0.0001
  Normalizat = 1.0832
  Prefactor  = 0.757869
 **********
 **   18 **HESSE 
 **********

 FCN=   4074.687     FROM HESSE     STATUS=OK           295 CALLS     2338 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5606        .77688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.1384        .91147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0763        5.2437        .20587E-03   -1.5500    
   4  Prefactor     .10000E-03    9.8598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.1209        53.432        .15028E-03   -1.5174    
   6  Prefactor     .10000E-03    14.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.386        17.037        .11383E-03   -1.5004    
   8  Prefactor     36.919        37.123        .65960E-04   -1.4492    
   9  norm          .10000E-03    .74079        .53542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.726        16.134        .73487E-04   -1.4617    
  11  Prefactor     .10000E-03    12.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     38.592        52.897        .64478E-04   -1.4465    
  13  Prefactor     2.1626        4.8506        .20114E-03   -1.5414    
  14  norm          2.1036        1.4732        .60511E-04   -1.5418    
  15  Prefactor     80.776        134.72        .22311E-03   -1.3908    
  16  Prefactor     .10000E-03    15.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1972        2.4932        .14448E-03   -1.5489    
  18  norm          .10000E-03    1.2520        .94944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0832        .21944        .20681E-03   -.90293    
  20  Prefactor     .75787        .24197        .26901E-03   -1.0130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39377e-09
Minuit parameter uncertainties:
  1  9.98803e-06
  2  1.66755e-06
  3  4.75188
  4  7.77708e-05
  5  39.0603
  6  0.000276425
  7  17.0432
  8  37.146
  9  1.8406e-05
  10  16.1362
  11  0.000145487
  12  52.9617
  13  4.85148
  14  1.47325
  15  135.229
  16  2.32839e-05
  17  2.49346
  18  4.48792e-05
  19  0.219623
  20  0.242312
Done.

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

Extracting fit parameters...

4FGL J0238.1-3905
   Spectrum: PowerLaw
274    Prefactor:  3.859e+01  5.296e+01  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.579e-01  2.423e-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.083e+00  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/574054/likelihoodResults_338083201_338342401_4FGL_J0238.1-3905_daily_bin381.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) = 4074.63019961
delta logL = 0.0563462029386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4074.6285643
delta logL = 0.0579815101137

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.707       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2879       1.0000          .0000       10.000    
     3 'Normalizat'    1.0761       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76206       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=   4074.629     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      281 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.695        61.753        .77519E-04    .21237E-03
   2  Index         2.2877        1.0636        .70322E-02    .10762E-03
   3  Normalizat    1.0759        .21549        .20741E-03   -.69989E-03
   4  Prefactor     .76237        .23875        .26826E-03   -.70963E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.6946
  Index      = 2.28774
  Normalizat = 1.07595
  Prefactor  = 0.762372
 **********
 **   18 **HESSE 
 **********

 FCN=   4074.629     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.695        53.322        .15504E-04   -1.4674    
   2  Index         2.2877        .92001        .28129E-03   -.57335    
   3  Normalizat    1.0759        .21516        .41482E-04   -.90528    
   4  Prefactor     .76237        .23845        .53652E-04   -1.0113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37488e-09
Minuit parameter uncertainties:
  1  53.4178
  2  0.927531
  3  0.215334
  4  0.238767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574054': 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) = 4074.62856284
delta logL = 0.0579829639987

Extracting fit parameters...

4FGL J0238.1-3905
   Spectrum: PowerLaw
274    Prefactor:  2.669e+01  5.342e+01  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.288e+00  9.275e-01  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.624e-01  2.388e-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.076e+00  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.73
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/574054/cmap_HighResolution_338083201_338342401_4FGL_J0238.1-3905_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-03', job_status='DONE', photon_flux_upper_limit='8.37e-08', time_completed='2021-08-16 08:21:57.694659', job_id='574054', GAL2='0.76', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1629127317.69', return_code2='0', ts='0.73', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='5.80e-02', ts2='0.84', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='381' AND source_name='4FGL J0238.1-3905' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 08:21:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 574054: <4FGL_J0238.1-3905_daily_bin381> in cluster <slac> Done

Job <4FGL_J0238.1-3905_daily_bin381> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 16 08:06:40 2021
Job was executed on host(s) <bullet0028>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 08:11:35 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:11:35 2021
Terminated at Mon Aug 16 08:21:58 2021
Results reported at Mon Aug 16 08:21:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0238.1-3905_daily_bin381 39.5299 -39.0874 338083201 338342401 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 :                                   598.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             374.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   623 sec.
    Turnaround time :                            918 sec.

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

