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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1270
RA = 19.4543, Dec = -21.1578
tmin = 568512001, tmax = 568771201
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='516045', job_status='RUN', time_executed='2021-08-13 21:37:50.069606', time_epoch_executed='1628915870.07' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516045

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516045/ft1_4FGL_J0117.8-2109_daily_bin1270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516045/ft2_4FGL_J0117.8-2109_daily_bin1270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516045/ft1_4FGL_J0117.8-2109_daily_bin1270.fits outfile=/scratch/kocevski/516045/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1270.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=568512001.0 tmax=568771201.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 4.33
user 3.33
sys 0.97

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/516045/ft2_4FGL_J0117.8-2109_daily_bin1270.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516045/ft2_4FGL_J0117.8-2109_daily_bin1270.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/516045/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1270.fits evtable="EVENTS" outfile="/scratch/kocevski/516045/ft1_filtered_4FGL_J0117.8-2109_daily_bin1270.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.30
user 0.34
sys 0.93

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516045/ft1_filtered_4FGL_J0117.8-2109_daily_bin1270.fits" evtable="EVENTS" scfile=/scratch/kocevski/516045/ft2_4FGL_J0117.8-2109_daily_bin1270.fits sctable="SC_DATA" outfile=/scratch/kocevski/516045/ltcube_568512001_568771201_4FGL_J0117.8-2109_daily_bin1270.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/516045/ft2_4FGL_J0117.8-2109_daily_bin1270.fits
.....................!
real 13.95
user 12.68
sys 1.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516045/ft1_filtered_4FGL_J0117.8-2109_daily_bin1270.fits evtable="EVENTS" scfile=/scratch/kocevski/516045/ft2_4FGL_J0117.8-2109_daily_bin1270.fits sctable="SC_DATA" expcube=/scratch/kocevski/516045/ltcube_568512001_568771201_4FGL_J0117.8-2109_daily_bin1270.fits outfile=/scratch/kocevski/516045/expmap_568512001_568771201_4FGL_J0117.8-2109_daily_bin1270.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/516045/ltcube_568512001_568771201_4FGL_J0117.8-2109_daily_bin1270.fits
.....................!
real 191.60
user 185.77
sys 5.28

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
Added 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J0117.8-2109 @ 19.4543 -21.1578

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/516045/ft1_filtered_4FGL_J0117.8-2109_daily_bin1270.fits scfile=/scratch/kocevski/516045/ft2_4FGL_J0117.8-2109_daily_bin1270.fits outfile=/scratch/kocevski/516045/cmap_568512001_568771201_4FGL_J0117.8-2109_daily_bin1270.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=19.4543 yref=-21.1578 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.29
user 0.38
sys 0.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516045/ft1_filtered_4FGL_J0117.8-2109_daily_bin1270.fits scfile=/scratch/kocevski/516045/ft2_4FGL_J0117.8-2109_daily_bin1270.fits outfile=/scratch/kocevski/516045/cmap_HighResolution_568512001_568771201_4FGL_J0117.8-2109_daily_bin1270.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=19.4543 yref=-21.1578 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.31
user 0.39
sys 0.90

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/516045/ft1_filtered_4FGL_J0117.8-2109_daily_bin1270.fits evtable="EVENTS" scfile=/scratch/kocevski/516045/ft2_4FGL_J0117.8-2109_daily_bin1270.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/516045/Model_4FGL_J0117.8-2109_daily_bin1270.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 GAL_V02
Working on...
/scratch/kocevski/516045/ft1_filtered_4FGL_J0117.8-2109_daily_bin1270.fits.....................!
real 37.32
user 34.90
sys 2.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/516045/ft1_filtered_4FGL_J0117.8-2109_daily_bin1270.fits', '/scratch/kocevski/516045/ft2_4FGL_J0117.8-2109_daily_bin1270.fits', expMap='/scratch/kocevski/516045/expmap_568512001_568771201_4FGL_J0117.8-2109_daily_bin1270.fits', expCube='/scratch/kocevski/516045/ltcube_568512001_568771201_4FGL_J0117.8-2109_daily_bin1270.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/516045/Model_4FGL_J0117.8-2109_daily_bin1270.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0117.8-2109'

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  4.691e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.376e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/516045/ft1_filtered_4FGL_J0117.8-2109_daily_bin1270.fits
Spacecraft file(s): /scratch/kocevski/516045/ft2_4FGL_J0117.8-2109_daily_bin1270.fits
Exposure map: /scratch/kocevski/516045/expmap_568512001_568771201_4FGL_J0117.8-2109_daily_bin1270.fits
Exposure cube: /scratch/kocevski/516045/ltcube_568512001_568771201_4FGL_J0117.8-2109_daily_bin1270.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/516045/Model_4FGL_J0117.8-2109_daily_bin1270.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) = 3451.23147867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.791       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.884       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5870       1.0000         .10000E-03   10000.    
     5 'norm      '    14.687       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.053       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4346       1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10522E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    29.312       1.0000         .10000E-03   10000.    
    15 'norm      '    .80226       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0347       1.0000         .10000E-03   10000.    
    20 'Prefactor '    47.313       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1707       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .64727       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3451.198     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2684 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.799        19.963        .29853E-07    .35741E-04
   2  norm          .10000E-03    3.0557       -.45917E-07** at limit **
   3  Prefactor     43.965        136.37        .43438E-05    .19808E-04
   4  Prefactor     1.5897        70.421        .28875E-05    .18652E-04
   5  norm          14.689        14.016       -.77338E-07   -.23003E-05
   6  Prefactor     .10000E-03    5.3041        .74513E-06** at limit **
   7  Prefactor     17.066        20.607        .40456E-06   -.12007E-04
   8  Prefactor     .10000E-03    2.1035       -.27400E-06** at limit **
   9  Prefactor     3.4320        8.0166        .78810E-06    .63406E-04
  10  norm          .10000E-03    1.4976       -.81815E-07** at limit **
  11  norm          .10000E-03    1.2187        .79877E-07** at limit **
  12  Prefactor     .10000E-03    47.117       -.29788E-06** at limit **
  13  Prefactor     .10000E-03    3.4423       -.49693E-07** at limit **
  14  norm          29.304        44.135        .36683E-06   -.19398E-04
  15  norm          .80232        1.6571        .21336E-06    .92698E-04
  16  norm          .10000E-03    1.1774       -.82900E-07** at limit **
  17  norm          .10000E-03    2.6324       -.12054E-06** at limit **
  18  Prefactor     .10000E-03    46.053        .88725E-06** at limit **
  19  norm          2.0349        5.0996        .12464E-05    .12142E-03
  20  Prefactor     47.328        31.470        .63566E-06    .61675E-04
  21  Normalizat    1.1703        .25881       -.51623E-05    .34555E-04
  22  Prefactor     .64771        .25993        .58590E-05   -.52709E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 32.7994
  norm       = 0.0001
  Prefactor  = 43.9649
  Prefactor  = 1.58972
  norm       = 14.689
  Prefactor  = 0.0001
  Prefactor  = 17.0656
  Prefactor  = 0.0001
  Prefactor  = 3.432
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 29.3041
  norm       = 0.802317
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.03488
  Prefactor  = 47.3275
  Normalizat = 1.17026
  Prefactor  = 0.647714
 **********
 **   18 **HESSE 
 **********

 FCN=   3451.198     FROM HESSE     STATUS=OK           336 CALLS     3020 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.799        19.971        .69976E-04   -1.4562    
   2  norm          .10000E-03    3.0799        .10028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     43.965        136.82        .60519E-04   -1.4381    
   4  Prefactor     1.5897        71.429        .33694E-03   -1.5456    
   5  norm          14.689        14.018        .10451E-03   -1.4941    
   6  Prefactor     .10000E-03    5.3965        .13281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.066        20.581        .96988E-04   -1.4882    
   8  Prefactor     .10000E-03    2.1338        .83260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4320        7.9788        .21825E-03   -1.5337    
  10  norm          .10000E-03    1.5182        .13961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2239        .63331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    47.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.4936        .10635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          29.304        44.162        .74001E-04   -1.4625    
  15  norm          .80232        1.6149        .10107E-03   -1.5529    
  16  norm          .10000E-03    1.1900        .62183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6796        .92941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    46.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0349        5.1074        .19409E-03   -1.5423    
  20  Prefactor     47.328        31.486        .58294E-04   -1.4331    
  21  Normalizat    1.1703        .26030        .20676E-03   -.87527    
  22  Prefactor     .64771        .26151        .29378E-03   -1.0561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44082e-10
Minuit parameter uncertainties:
  1  19.975
  2  6.60203e-07
  3  137.812
  4  21.3387
  5  14.0208
  6  4.05205e-05
  7  20.5895
  8  6.91786e-06
  9  7.98127
  10  6.12189e-06
  11  2.32577e-06
  12  5.75151e-05
  13  2.34265e-06
  14  44.2112
  15  1.61501
  16  5.20824e-07
  17  2.87466e-06
  18  0.000224641
  19  5.10849
  20  31.4969
  21  0.260585
  22  0.262002
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  3.432e+00  7.981e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.376e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  6.477e-01  2.620e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.170e+00  2.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 19.454 -21.158
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/516045/likelihoodResults_568512001_568771201_4FGL_J0117.8-2109_daily_bin1270.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) = 3451.11765535
delta logL = 0.0806191764973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3450.92673178
delta logL = 0.271542740128

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3450.927     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      354 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41275E-03    .11482E-01    .32492E-03** at limit **
   2  Index         7.0642        2.6283        .13657        .84509E-04
   3  Normalizat    1.1004        .41378E-01    .37975E-01    .34615E-05
   4  Prefactor     .70606        .45266E-01    .63880E-01    .12197E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000412754
  Index      = 7.06417
  Normalizat = 1.10038
  Prefactor  = 0.706057
 **********
 **   18 **HESSE 
 **********

 FCN=   3450.927     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      389 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41275E-03    .39561E-01    .16387E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.0642        8.2494        .47045E-02    .42556    
   3  Normalizat    1.1004        .17599        .21230E-03   -.89740    
   4  Prefactor     .70606        .18734        .28261E-03   -1.0329    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25131e-11
Minuit parameter uncertainties:
  1  0.00703503
  2  6.90485
  3  0.176083
  4  0.18751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516045': 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) = 3450.92672935
delta logL = 0.271545175268

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  4.128e-04  7.035e-03  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  7.064e+00  6.905e+00  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  7.061e-01  1.875e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.100e+00  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
Ra Dec: 19.454 -21.158

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/516045/cmap_HighResolution_568512001_568771201_4FGL_J0117.8-2109_daily_bin1270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.08e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-08-13 21:46:21.620020', job_id='516045', GAL2='0.71', fit_tolerance='1e-08', EG2='1.10', EG='1.17', time_epoch_completed='1628916381.62', return_code2='102', ts='0.26', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='2.72e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1270' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:46:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 516045: <4FGL_J0117.8-2109_daily_bin1270> in cluster <slac> Done

Job <4FGL_J0117.8-2109_daily_bin1270> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 13 21:35:30 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:36:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 21:36:24 2021
Terminated at Fri Aug 13 21:46:22 2021
Results reported at Fri Aug 13 21:46:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1270 19.4543 -21.1578 568512001 568771201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0117.8-2109 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   520.58 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            652 sec.

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

