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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1220
RA = 19.4543, Dec = -21.1578
tmin = 555552001, tmax = 555811201
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='514944', job_status='RUN', time_executed='2021-08-13 21:38:27.016215', time_epoch_executed='1628915907.02' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1220'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514944

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514944/ft1_4FGL_J0117.8-2109_daily_bin1220.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514944/ft2_4FGL_J0117.8-2109_daily_bin1220.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514944/ft1_4FGL_J0117.8-2109_daily_bin1220.fits outfile=/scratch/kocevski/514944/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1220.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=555552001.0 tmax=555811201.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 11.52
user 3.41
sys 8.06

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514944/ft1_filtered_4FGL_J0117.8-2109_daily_bin1220.fits" evtable="EVENTS" scfile=/scratch/kocevski/514944/ft2_4FGL_J0117.8-2109_daily_bin1220.fits sctable="SC_DATA" outfile=/scratch/kocevski/514944/ltcube_555552001_555811201_4FGL_J0117.8-2109_daily_bin1220.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/514944/ft2_4FGL_J0117.8-2109_daily_bin1220.fits
.....................!
real 21.62
user 12.43
sys 9.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514944/ft1_filtered_4FGL_J0117.8-2109_daily_bin1220.fits evtable="EVENTS" scfile=/scratch/kocevski/514944/ft2_4FGL_J0117.8-2109_daily_bin1220.fits sctable="SC_DATA" expcube=/scratch/kocevski/514944/ltcube_555552001_555811201_4FGL_J0117.8-2109_daily_bin1220.fits outfile=/scratch/kocevski/514944/expmap_555552001_555811201_4FGL_J0117.8-2109_daily_bin1220.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/514944/ltcube_555552001_555811201_4FGL_J0117.8-2109_daily_bin1220.fits
.....................!
real 202.42
user 186.55
sys 15.48

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/514944/ft1_filtered_4FGL_J0117.8-2109_daily_bin1220.fits scfile=/scratch/kocevski/514944/ft2_4FGL_J0117.8-2109_daily_bin1220.fits outfile=/scratch/kocevski/514944/cmap_555552001_555811201_4FGL_J0117.8-2109_daily_bin1220.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 8.19
user 0.39
sys 7.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514944/ft1_filtered_4FGL_J0117.8-2109_daily_bin1220.fits scfile=/scratch/kocevski/514944/ft2_4FGL_J0117.8-2109_daily_bin1220.fits outfile=/scratch/kocevski/514944/cmap_HighResolution_555552001_555811201_4FGL_J0117.8-2109_daily_bin1220.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 8.17
user 0.38
sys 7.75

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514944/ft1_filtered_4FGL_J0117.8-2109_daily_bin1220.fits evtable="EVENTS" scfile=/scratch/kocevski/514944/ft2_4FGL_J0117.8-2109_daily_bin1220.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514944/Model_4FGL_J0117.8-2109_daily_bin1220.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/514944/ft1_filtered_4FGL_J0117.8-2109_daily_bin1220.fits.....................!
real 31.73
user 20.37
sys 11.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.638       1.0000         .10000E-03   10000.    
     2 'norm      '    27.903       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.321       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.075       1.0000         .10000E-03   10000.    
     5 'norm      '    .11395E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3159       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4184       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.0160       1.0000         .10000E-03   10000.    
    11 'norm      '    .10269E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.164       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.4332       1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .49631E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    283.14       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .29734       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1195       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=   1045.404     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2713 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.661        26.305        .39918E-06    .14603E-04
   2  norm          27.893        25.080        .71595E-06    .38022E-04
   3  Prefactor     32.718        440.19        .37701E-06   -.64644E-05
   4  Prefactor     20.084        42.670        .18204E-05    .43930E-04
   5  norm          .10000E-03    39.818       -.14982E-04** at limit **
   6  Prefactor     8.2769        32.159        .18144E-05   -.70392E-05
   7  Prefactor     .10000E-03    248.70        .17319E-04** at limit **
   8  Prefactor     8.4184        9.3164        .10309E-05    .11052E-03
   9  Prefactor     .10000E-03    29.670        .46265E-06** at limit **
  10  norm          3.0159        5.1616        .23084E-06   -.29922E-04
  11  norm          .10000E-03    13.300        .37174E-05** at limit **
  12  Prefactor     14.282        122.99       -.90537E-06   -.26856E-04
  13  Prefactor     .10000E-03    11.376        .18421E-05** at limit **
  14  norm          .10000E-03    77.388        .19198E-05** at limit **
  15  norm          3.4332        2.7367        .13849E-06    .44707E-04
  16  norm          .10000E-03    12.263        .61157E-05** at limit **
  17  norm          .10000E-03    22.772        .17658E-05** at limit **
  18  Prefactor     .10000E-03    236.54        .15685E-05** at limit **
  19  norm          .10000E-03    8.5921        .19384E-05** at limit **
  20  Prefactor     283.37        293.64        .14723E-05    .15873E-04
  21  Normalizat    .29741        .48594       -.21027E-04   -.29675E-04
  22  Prefactor     1.1194        .48185        .88336E-05   -.56633E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.6607
  norm       = 27.8931
  Prefactor  = 32.7176
  Prefactor  = 20.0841
  norm       = 0.0001
  Prefactor  = 8.27694
  Prefactor  = 0.0001
  Prefactor  = 8.41837
  Prefactor  = 0.0001
  norm       = 3.01591
  norm       = 0.0001
  Prefactor  = 14.2817
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.43316
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 283.368
  Normalizat = 0.297413
  Prefactor  = 1.11943
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.661        26.294        .79115E-04   -1.4694    
   2  norm          27.893        25.020        .75843E-04   -1.4651    
   3  Prefactor     32.718        444.14        .34709E-03   -1.4563    
   4  Prefactor     20.084        42.872        .89393E-04   -1.4811    
   5  norm          .10000E-03    39.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.2769        32.071        .13902E-03   -1.5132    
   7  Prefactor     .10000E-03    249.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.4184        9.2225        .87756E-04   -1.5128    
   9  Prefactor     .10000E-03    29.701        .17190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0159        5.1382        .92201E-04   -1.5361    
  11  norm          .10000E-03    13.292        .11504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.282        120.69        .10642E-03   -1.4952    
  13  Prefactor     .10000E-03    11.389        .10649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    77.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.4332        2.7361        .45797E-04   -1.5337    
  16  norm          .10000E-03    12.289        .11046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    22.765        .15075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    236.48        .21161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.6385        .92594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     283.37        293.67        .12058E-03   -1.2325    
  21  Normalizat    .29741        .49054        .37168E-03   -1.2299    
  22  Prefactor     1.1194        .51020        .21031E-03   -.88848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37454e-10
Minuit parameter uncertainties:
  1  26.3063
  2  25.0296
  3  243.322
  4  42.9381
  5  0.000181262
  6  32.1383
  7  0.000273486
  8  9.22402
  9  9.20753e-07
  10  5.13893
  11  1.92718e-05
  12  83.2622
  13  1.29906e-06
  14  1.72393e-05
  15  2.73615
  16  8.43535e-06
  17  2.57492e-06
  18  0.000302316
  19  7.14434e-06
  20  295.228
  21  0.497879
  22  0.512457
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  9.208e-07  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.119e+00  5.125e-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:  2.974e-01  4.979e-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: 2.91e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514944/likelihoodResults_555552001_555811201_4FGL_J0117.8-2109_daily_bin1220.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) = 1045.40397183
delta logL = -0.000159802486223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1045.4038156
delta logL = -3.5752095755e-06

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 'Index     '    2.6927       1.0000          .0000       10.000    
     3 'Normalizat'    .29729       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1191       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.

 FCN=   1045.404     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      277 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10464E-03    10.062        .14216E-01** at limit **
   2  Index         2.5929        5.6399        .50000        .15160E-04
   3  Normalizat    .29741        .59114E-02    .37159E-03   -.19221E-04
   4  Prefactor     1.1194        .63321E-02    .21031E-03   -.38151E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104643
  Index      = 2.59295
  Normalizat = 0.297413
  Prefactor  = 1.11943
 **********
 **   18 **HESSE 
 **********

 FCN=   1045.404     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10464E-03    185.66        .14848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5929        5.9588        .50000       -.50226    
   3  Normalizat    .29741        .25529E-01    .14863E-04   -1.2299    
   4  Prefactor     1.1194        .27347E-01    .42061E-04   -.88848    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.18703e-09
Minuit parameter uncertainties:
  1  0.0589039
  2  387.881
  3  0.0255305
  4  0.027347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514944': 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) = 1045.40381269
delta logL = -6.58551925881e-07

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.046e-04  5.890e-02  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.593e+00  3.879e+02  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.119e+00  2.735e-02  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:  2.974e-01  2.553e-02  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/514944/cmap_HighResolution_555552001_555811201_4FGL_J0117.8-2109_daily_bin1220.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.24e-02', job_status='DONE', photon_flux_upper_limit='2.91e-07', time_completed='2021-08-13 21:46:41.261266', job_id='514944', GAL2='1.12', fit_tolerance='1e-08', EG2='0.30', EG='0.30', time_epoch_completed='1628916401.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='-6.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1220' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:46:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0284>
Subject: Job 514944: <4FGL_J0117.8-2109_daily_bin1220> in cluster <slac> Done

Job <4FGL_J0117.8-2109_daily_bin1220> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 21:31:04 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:35: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:35:51 2021
Terminated at Fri Aug 13 21:46:43 2021
Results reported at Fri Aug 13 21:46:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1220 19.4543 -21.1578 555552001 555811201 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 :                                   615.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             234.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            939 sec.

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

