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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1040
RA = 19.4543, Dec = -21.1578
tmin = 508896001, tmax = 509155201
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='514716', job_status='RUN', time_executed='2021-08-13 21:36:59.872424', time_epoch_executed='1628915819.87' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514716

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514716/ft1_4FGL_J0117.8-2109_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514716/ft2_4FGL_J0117.8-2109_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514716/ft1_4FGL_J0117.8-2109_daily_bin1040.fits outfile=/scratch/kocevski/514716/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1040.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=508896001.0 tmax=509155201.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.32
user 3.46
sys 0.84

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514716/ft2_4FGL_J0117.8-2109_daily_bin1040.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/514716/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1040.fits evtable="EVENTS" outfile="/scratch/kocevski/514716/ft1_filtered_4FGL_J0117.8-2109_daily_bin1040.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.11
user 0.32
sys 0.79

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514716/ft1_filtered_4FGL_J0117.8-2109_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/514716/ft2_4FGL_J0117.8-2109_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/514716/ltcube_508896001_509155201_4FGL_J0117.8-2109_daily_bin1040.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/514716/ft2_4FGL_J0117.8-2109_daily_bin1040.fits
.....................!
real 14.10
user 12.98
sys 1.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514716/ft1_filtered_4FGL_J0117.8-2109_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/514716/ft2_4FGL_J0117.8-2109_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/514716/ltcube_508896001_509155201_4FGL_J0117.8-2109_daily_bin1040.fits outfile=/scratch/kocevski/514716/expmap_508896001_509155201_4FGL_J0117.8-2109_daily_bin1040.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/514716/ltcube_508896001_509155201_4FGL_J0117.8-2109_daily_bin1040.fits
.....................!
real 192.77
user 186.19
sys 5.86

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/514716/ft1_filtered_4FGL_J0117.8-2109_daily_bin1040.fits scfile=/scratch/kocevski/514716/ft2_4FGL_J0117.8-2109_daily_bin1040.fits outfile=/scratch/kocevski/514716/cmap_508896001_509155201_4FGL_J0117.8-2109_daily_bin1040.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.14
user 0.36
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514716/ft1_filtered_4FGL_J0117.8-2109_daily_bin1040.fits scfile=/scratch/kocevski/514716/ft2_4FGL_J0117.8-2109_daily_bin1040.fits outfile=/scratch/kocevski/514716/cmap_HighResolution_508896001_509155201_4FGL_J0117.8-2109_daily_bin1040.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.16
user 0.35
sys 0.78

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514716/ft1_filtered_4FGL_J0117.8-2109_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/514716/ft2_4FGL_J0117.8-2109_daily_bin1040.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514716/Model_4FGL_J0117.8-2109_daily_bin1040.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/514716/ft1_filtered_4FGL_J0117.8-2109_daily_bin1040.fits.....................!
real 40.38
user 38.22
sys 2.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/514716/ft1_filtered_4FGL_J0117.8-2109_daily_bin1040.fits', '/scratch/kocevski/514716/ft2_4FGL_J0117.8-2109_daily_bin1040.fits', expMap='/scratch/kocevski/514716/expmap_508896001_509155201_4FGL_J0117.8-2109_daily_bin1040.fits', expCube='/scratch/kocevski/514716/ltcube_508896001_509155201_4FGL_J0117.8-2109_daily_bin1040.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/514716/Model_4FGL_J0117.8-2109_daily_bin1040.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/514716/ft1_filtered_4FGL_J0117.8-2109_daily_bin1040.fits
Spacecraft file(s): /scratch/kocevski/514716/ft2_4FGL_J0117.8-2109_daily_bin1040.fits
Exposure map: /scratch/kocevski/514716/expmap_508896001_509155201_4FGL_J0117.8-2109_daily_bin1040.fits
Exposure cube: /scratch/kocevski/514716/ltcube_508896001_509155201_4FGL_J0117.8-2109_daily_bin1040.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/514716/Model_4FGL_J0117.8-2109_daily_bin1040.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) = 4131.88082781

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    51.279       1.0000         .10000E-03   10000.    
     3 'Prefactor '    86.440       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5843       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3545       1.0000         .10000E-03   10000.    
    11 'norm      '    .96817       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.381       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10292E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .68537       1.0000         .10000E-03   10000.    
    16 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.870       1.0000         .10000E-03   10000.    
    19 'norm      '    5.8931       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10730E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .85148       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0593       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=   4131.879     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2392 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6095        .17296E-05** at limit **
   2  norm          51.280        13.903       -.12319E-05    .47882E-04
   3  Prefactor     86.434        123.14       -.64052E-05    .78126E-05
   4  Prefactor     .10000E-03    6.6137        .37284E-06** at limit **
   5  norm          .10000E-03    11.405        .76198E-05** at limit **
   6  Prefactor     .10000E-03    2.0905       -.57242E-07** at limit **
   7  Prefactor     .10000E-03    5.9361       -.26741E-05** at limit **
   8  Prefactor     6.5832        4.9325       -.85813E-06   -.51186E-04
   9  Prefactor     .10000E-03    12.355       -.94553E-05** at limit **
  10  norm          2.3529        2.1739       -.15158E-06    .80772E-03
  11  norm          .96865        3.0824       -.13997E-05   -.84460E-03
  12  Prefactor     33.382        24.007       -.10582E-07    .16144E-03
  13  Prefactor     .10000E-03    2.3046       -.50489E-07** at limit **
  14  norm          .10000E-03    87.917        .42373E-05** at limit **
  15  norm          .68537        1.7630       -.16976E-05   -.12348E-02
  16  norm          .10000E-03    1.9505        .27111E-06** at limit **
  17  norm          .10000E-03    3.4908        .30956E-06** at limit **
  18  Prefactor     11.808        45.858       -.12374E-03    .80308E-05
  19  norm          5.8930        3.4832        .16938E-05    .10596E-03
  20  Prefactor     .10000E-03    16.693        .34867E-05** at limit **
  21  Normalizat    .85145        .21290        .76502E-05    .13778E-03
  22  Prefactor     1.0592        .22708        .12697E-05    .29332E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 51.2796
  Prefactor  = 86.4342
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.58316
  Prefactor  = 0.0001
  norm       = 2.35289
  norm       = 0.968651
  Prefactor  = 33.3818
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.685373
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8084
  norm       = 5.89303
  Prefactor  = 0.000100004
  Normalizat = 0.851451
  Prefactor  = 1.05925
 **********
 **   18 **HESSE 
 **********

 FCN=   4131.879     FROM HESSE     STATUS=OK           336 CALLS     2728 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6125        .14869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          51.280        13.910        .56005E-04   -1.4275    
   3  Prefactor     86.434        123.23        .43211E-04   -1.3846    
   4  Prefactor     .10000E-03    6.6169        .16146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0925        .90762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9459        .15294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5832        4.9315        .11780E-03   -1.5195    
   9  Prefactor     .10000E-03    12.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3529        2.1685        .87587E-04   -1.5401    
  11  norm          .96865        2.9758        .17817E-03   -1.5511    
  12  Prefactor     33.382        23.617        .69356E-04   -1.4552    
  13  Prefactor     .10000E-03    2.3161        .95207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    89.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .68537        1.7523        .12369E-03   -1.5542    
  16  norm          .10000E-03    2.0178        .17483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.6125        .23403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.808        45.912        .11627E-03   -1.5021    
  19  norm          5.8930        3.4831        .89177E-04   -1.5222    
  20  Prefactor     .10000E-03    16.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .85145        .25299        .24997E-03   -.98188    
  22  Prefactor     1.0592        .27235        .25759E-03   -.90780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54256e-09
Minuit parameter uncertainties:
  1  8.78382e-06
  2  13.9107
  3  123.6
  4  1.32502e-05
  5  3.6738e-05
  6  4.97253e-06
  7  9.9086e-06
  8  4.9318
  9  2.68936e-05
  10  2.16862
  11  2.97628
  12  23.6236
  13  3.36031e-06
  14  0.000705486
  15  1.75245
  16  4.27397e-05
  17  8.04522e-05
  18  46.0498
  19  3.48326
  20  0.000546618
  21  0.253343
  22  0.272703
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  2.689e-05  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:  1.059e+00  2.727e-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:  8.515e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 19.454 -21.158
Photon Flux Upper Limit: 9.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514716/likelihoodResults_508896001_509155201_4FGL_J0117.8-2109_daily_bin1040.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) = 4131.87968316
delta logL = -0.00038216543544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4131.87930116
delta logL = -1.65208803082e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4131.879     FROM MIGRAD    STATUS=FAILED        90 CALLS      244 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    584.74        .18142E-02** at limit **
   2  Index         2.4158        5.9086        .50000       -.15937E-04
   3  Normalizat    .85145        .35422E-01    .24996E-03    .56715E-04
   4  Prefactor     1.0592        .40471E-01    .25759E-03    .42723E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4131.879     FROM SIMPLEX   STATUS=UNCHANGED    180 CALLS      424 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    584.74        .74647E-03** at limit **
   2  Index         2.4158        5.9086        .72475E-06   -.15937E-04
   3  Normalizat    .85145        .35422E-01    .23300E-07    .56715E-04
   4  Prefactor     1.0592        .40471E-01    .46131E-08    .42723E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4131.879     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      458 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1909.4        .36285E-03** at limit **
   2  Index         2.4159        5.1050        .50000       -.15947E-04
   3  Normalizat    .85145        .82599E-01    .99986E-05    .55487E-04
   4  Prefactor     1.0592        .94368E-01    .10303E-04    .41708E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.41589
  Normalizat = 0.851454
  Prefactor  = 1.05924
 **********
 **   18 **HESSE 
 **********

 FCN=   4131.879     FROM HESSE     STATUS=OK            29 CALLS      487 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.939        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4159        6.1986        .50000       -.54313    
   3  Normalizat    .85145        .23508        .19997E-05   -.98188    
   4  Prefactor     1.0592        .26856        .20607E-05   -.90780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5067e-10
Minuit parameter uncertainties:
  1  0.000448967
  2  4.76876
  3  0.235357
  4  0.268899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514716': 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) = 4131.87930086
delta logL = 1.33539288072e-07

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  4.490e-04  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.416e+00  4.769e+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:  1.059e+00  2.689e-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:  8.515e-01  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/514716/cmap_HighResolution_508896001_509155201_4FGL_J0117.8-2109_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.10e-03', job_status='DONE', photon_flux_upper_limit='9.20e-08', time_completed='2021-08-13 21:46:01.123273', job_id='514716', GAL2='1.06', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1628916361.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1040' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:46:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 514716: <4FGL_J0117.8-2109_daily_bin1040> in cluster <slac> Done

Job <4FGL_J0117.8-2109_daily_bin1040> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 21:30:42 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:33:48 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:33:48 2021
Terminated at Fri Aug 13 21:46:01 2021
Results reported at Fri Aug 13 21:46:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1040 19.4543 -21.1578 508896001 509155201 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 :                                   549.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            919 sec.

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

