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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1320
RA = 19.4543, Dec = -21.1578
tmin = 581472001, tmax = 581731201
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='516117', job_status='RUN', time_executed='2021-08-13 21:38:39.907171', time_epoch_executed='1628915919.91' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516117

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516117/ft1_4FGL_J0117.8-2109_daily_bin1320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516117/ft2_4FGL_J0117.8-2109_daily_bin1320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516117/ft1_4FGL_J0117.8-2109_daily_bin1320.fits outfile=/scratch/kocevski/516117/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1320.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=581472001.0 tmax=581731201.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.09
user 2.05
sys 3.85

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516117/ft2_4FGL_J0117.8-2109_daily_bin1320.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/516117/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1320.fits evtable="EVENTS" outfile="/scratch/kocevski/516117/ft1_filtered_4FGL_J0117.8-2109_daily_bin1320.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 4.21
user 0.26
sys 3.75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516117/ft1_filtered_4FGL_J0117.8-2109_daily_bin1320.fits" evtable="EVENTS" scfile=/scratch/kocevski/516117/ft2_4FGL_J0117.8-2109_daily_bin1320.fits sctable="SC_DATA" outfile=/scratch/kocevski/516117/ltcube_581472001_581731201_4FGL_J0117.8-2109_daily_bin1320.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/516117/ft2_4FGL_J0117.8-2109_daily_bin1320.fits
.....................!
real 14.43
user 9.76
sys 4.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516117/ft1_filtered_4FGL_J0117.8-2109_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/516117/ft2_4FGL_J0117.8-2109_daily_bin1320.fits sctable="SC_DATA" expcube=/scratch/kocevski/516117/ltcube_581472001_581731201_4FGL_J0117.8-2109_daily_bin1320.fits outfile=/scratch/kocevski/516117/expmap_581472001_581731201_4FGL_J0117.8-2109_daily_bin1320.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/516117/ltcube_581472001_581731201_4FGL_J0117.8-2109_daily_bin1320.fits
.....................!
real 160.41
user 150.82
sys 9.06

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/516117/ft1_filtered_4FGL_J0117.8-2109_daily_bin1320.fits scfile=/scratch/kocevski/516117/ft2_4FGL_J0117.8-2109_daily_bin1320.fits outfile=/scratch/kocevski/516117/cmap_581472001_581731201_4FGL_J0117.8-2109_daily_bin1320.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 4.14
user 0.30
sys 3.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516117/ft1_filtered_4FGL_J0117.8-2109_daily_bin1320.fits scfile=/scratch/kocevski/516117/ft2_4FGL_J0117.8-2109_daily_bin1320.fits outfile=/scratch/kocevski/516117/cmap_HighResolution_581472001_581731201_4FGL_J0117.8-2109_daily_bin1320.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 4.17
user 0.30
sys 3.68

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/516117/ft1_filtered_4FGL_J0117.8-2109_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/516117/ft2_4FGL_J0117.8-2109_daily_bin1320.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/516117/Model_4FGL_J0117.8-2109_daily_bin1320.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/516117/ft1_filtered_4FGL_J0117.8-2109_daily_bin1320.fits.....................!
real 43.20
user 37.02
sys 5.87

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    20.589       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.437       1.0000         .10000E-03   10000.    
     5 'norm      '    .65991       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12275E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6988       1.0000         .10000E-03   10000.    
    11 'norm      '    4.7859       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .98710       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.426       1.0000         .10000E-03   10000.    
    19 'norm      '    7.0660       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.3269       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1412       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85935       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=   5238.548     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2432 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.9810        .90712E-02** at limit **
   2  norm          20.589        8.3299        .22068E-02   -.33901E-03
   3  Prefactor     .10000E-03    118.80        .90712E-02** at limit **
   4  Prefactor     23.431        26.078        .20685E-02   -.12153E-03
   5  norm          .68527        8.5472        .77645E-01    .47705E-03
   6  Prefactor     .10000E-03    2.3932        .90712E-02** at limit **
   7  Prefactor     .10000E-03    4.3330        .90712E-02** at limit **
   8  Prefactor     .10000E-03    2.0717        .90712E-02** at limit **
   9  Prefactor     .10001E-03    9.3970        .90843E-01** at limit **
  10  norm          2.7002        2.5733        .61993E-02    .60427E-03
  11  norm          4.7866        2.6186        .45977E-02    .22721E-04
  12  Prefactor     .10000E-03    12.768        .90712E-02** at limit **
  13  Prefactor     .10000E-03    3.3952        .41289E-01** at limit **
  14  norm          .10000E-03    9.8406        .90712E-02** at limit **
  15  norm          .10000E-03    .49179        .25411E-01** at limit **
  16  norm          .10000E-03    .72056        .90712E-02** at limit **
  17  norm          .98568        3.5509        .13120E-01    .10792E-02
  18  Prefactor     16.428        25.527        .24705E-02   -.12338E-03
  19  norm          7.0658        4.4127        .37728E-02    .16370E-03
  20  Prefactor     6.3261        16.936        .39895E-02   -.91523E-03
  21  Normalizat    1.1413        .18896        .36525E-01    .83599E-04
  22  Prefactor     .85934        .19926        .44485E-01    .55092E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 20.5885
  Prefactor  = 0.0001
  Prefactor  = 23.4307
  norm       = 0.685272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 2.70022
  norm       = 4.7866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.985681
  Prefactor  = 16.4278
  norm       = 7.06577
  Prefactor  = 6.32613
  Normalizat = 1.14131
  Prefactor  = 0.859345
 **********
 **   18 **HESSE 
 **********

 FCN=   5238.548     FROM HESSE     STATUS=OK           352 CALLS     2784 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          20.589        8.3249        .88271E-04   -1.4800    
   3  Prefactor     .10000E-03    119.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.431        26.085        .82741E-04   -1.4739    
   5  norm          .68527        25.109        .41030E-02   -1.5542    
   6  Prefactor     .10000E-03    2.4010        .10932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.3406        .14712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1387        .20336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    21.380        .55947E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7002        2.6421        .94184E-04   -1.5379    
  11  norm          4.7866        2.6162        .83702E-04   -1.5270    
  12  Prefactor     .10000E-03    12.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.2600        .24563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.8492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .67004        .98290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .72779        .59932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .98568        3.5682        .23382E-03   -1.5509    
  18  Prefactor     16.428        25.511        .98821E-04   -1.4897    
  19  norm          7.0658        4.4223        .11434E-03   -1.5176    
  20  Prefactor     6.3261        16.952        .15958E-03   -1.5205    
  21  Normalizat    1.1413        .21637        .21534E-03   -.88436    
  22  Prefactor     .85934        .22997        .27830E-03   -.97577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50952e-09
Minuit parameter uncertainties:
  1  1.71102e-05
  2  8.32537
  3  4.08131e-05
  4  26.0978
  5  8.29935
  6  6.56151e-06
  7  3.66157e-06
  8  5.86103e-06
  9  0.00066396
  10  2.64226
  11  2.61622
  12  3.13018e-05
  13  1.44816e-05
  14  2.4193e-06
  15  1.35586e-06
  16  9.55648e-07
  17  3.56896
  18  25.5276
  19  4.42254
  20  16.9652
  21  0.216535
  22  0.230233
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  6.640e-04  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:  8.593e-01  2.302e-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.141e+00  2.165e-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: 8.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/516117/likelihoodResults_581472001_581731201_4FGL_J0117.8-2109_daily_bin1320.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) = 5238.54804924
delta logL = -2.26129695875e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5237.83359499
delta logL = 0.714431640783

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27360       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3175       1.0000          .0000       10.000    
     3 'Normalizat'    1.0603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91595       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=   5237.834     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      292 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27464        3.9853        .72459E-02   -.13330E-02
   2  Index         4.3161        2.5681        .90793E-01    .99806E-04
   3  Normalizat    1.0607        .40830E-01    .39913E-01   -.28590E-03
   4  Prefactor     .91544        .46683E-01    .45208E-01   -.68807E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.274637
  Index      = 4.31605
  Normalizat = 1.06071
  Prefactor  = 0.915444
 **********
 **   18 **HESSE 
 **********

 FCN=   5237.834     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      323 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27464        10.587        .32803E-04   -1.5603    
   2  Index         4.3161        7.0112        .44774E-02   -.13722    
   3  Normalizat    1.0607        .18026        .22205E-03   -.91023    
   4  Prefactor     .91544        .20162        .27047E-03   -.95604    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.25524e-08
Minuit parameter uncertainties:
  1  3.41036
  2  5.3945
  3  0.180366
  4  0.201782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516117': 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) = 5237.83359181
delta logL = 0.714434820758

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  2.746e-01  3.410e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  4.316e+00  5.394e+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:  9.154e-01  2.018e-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.061e+00  1.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 19.454 -21.158
Photon Index (Free Index): 4.32 +/- 5.39
Photon Flux (Free Index): 6.46e-08 +/- 5.73e-08
Energy Flux (Free Index): 9.23e-06 +/- 1.01e-05

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/516117/cmap_HighResolution_581472001_581731201_4FGL_J0117.8-2109_daily_bin1320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.91e-03', comment='SUCCESS', energy_flux2='9.23e-06', dlogl='7.14e-01', photon_flux2='6.46e-08', job_status='DONE', time_completed='2021-08-13 21:47:31.474118', photon_index_error2='5.39', photon_index2='4.32', ts='-0.00', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='8.95e-08', energy_flux_error2='1.01e-05', EG='1.14', time_epoch_completed='1628916451.47', return_code='0', job_id='516117', GAL2='0.92', EG2='1.06', return_code2='102', photon_flux_error2='5.73e-08', ts2='1.54', photon_index='2.38' WHERE bin_id='1320' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:47:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 516117: <4FGL_J0117.8-2109_daily_bin1320> in cluster <slac> Done

Job <4FGL_J0117.8-2109_daily_bin1320> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 13 21:35:34 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:36:51 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:51 2021
Terminated at Fri Aug 13 21:47:32 2021
Results reported at Fri Aug 13 21:47:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1320 19.4543 -21.1578 581472001 581731201 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 :                                   584.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             304.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            718 sec.

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

