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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1463
RA = 19.4543, Dec = -21.1578
tmin = 618537601, tmax = 618796801
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='516327', job_status='RUN', time_executed='2021-08-13 21:41:12.774029', time_epoch_executed='1628916072.77' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516327

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516327/ft1_4FGL_J0117.8-2109_daily_bin1463.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516327/ft2_4FGL_J0117.8-2109_daily_bin1463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516327/ft1_4FGL_J0117.8-2109_daily_bin1463.fits outfile=/scratch/kocevski/516327/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1463.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=618537601.0 tmax=618796801.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 10.30
user 3.53
sys 6.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516327/ft2_4FGL_J0117.8-2109_daily_bin1463.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/516327/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1463.fits evtable="EVENTS" outfile="/scratch/kocevski/516327/ft1_filtered_4FGL_J0117.8-2109_daily_bin1463.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 6.99
user 0.35
sys 6.62

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516327/ft1_filtered_4FGL_J0117.8-2109_daily_bin1463.fits" evtable="EVENTS" scfile=/scratch/kocevski/516327/ft2_4FGL_J0117.8-2109_daily_bin1463.fits sctable="SC_DATA" outfile=/scratch/kocevski/516327/ltcube_618537601_618796801_4FGL_J0117.8-2109_daily_bin1463.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/516327/ft2_4FGL_J0117.8-2109_daily_bin1463.fits
.....................!
real 19.93
user 12.56
sys 7.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516327/ft1_filtered_4FGL_J0117.8-2109_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/516327/ft2_4FGL_J0117.8-2109_daily_bin1463.fits sctable="SC_DATA" expcube=/scratch/kocevski/516327/ltcube_618537601_618796801_4FGL_J0117.8-2109_daily_bin1463.fits outfile=/scratch/kocevski/516327/expmap_618537601_618796801_4FGL_J0117.8-2109_daily_bin1463.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/516327/ltcube_618537601_618796801_4FGL_J0117.8-2109_daily_bin1463.fits
.....................!
real 199.08
user 185.70
sys 12.85

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/516327/ft1_filtered_4FGL_J0117.8-2109_daily_bin1463.fits scfile=/scratch/kocevski/516327/ft2_4FGL_J0117.8-2109_daily_bin1463.fits outfile=/scratch/kocevski/516327/cmap_618537601_618796801_4FGL_J0117.8-2109_daily_bin1463.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 6.94
user 0.40
sys 6.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516327/ft1_filtered_4FGL_J0117.8-2109_daily_bin1463.fits scfile=/scratch/kocevski/516327/ft2_4FGL_J0117.8-2109_daily_bin1463.fits outfile=/scratch/kocevski/516327/cmap_HighResolution_618537601_618796801_4FGL_J0117.8-2109_daily_bin1463.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 6.89
user 0.38
sys 6.35

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/516327/ft1_filtered_4FGL_J0117.8-2109_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/516327/ft2_4FGL_J0117.8-2109_daily_bin1463.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/516327/Model_4FGL_J0117.8-2109_daily_bin1463.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/516327/ft1_filtered_4FGL_J0117.8-2109_daily_bin1463.fits.....................!
real 46.80
user 36.78
sys 9.73

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76108       1.0000         .10000E-03   10000.    
     2 'norm      '    18.088       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11144E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.690       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3793       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.116       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10520       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8644       1.0000         .10000E-03   10000.    
    10 'norm      '    .11631E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12692       1.0000         .10000E-03   10000.    
    14 'norm      '    83.082       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2829       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.609       1.0000         .10000E-03   10000.    
    19 'norm      '    5.6497       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.389       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2498       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .40527       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=   3667.642     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2509 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77125        42.926       -.75328E-06   -.27671E-03
   2  norm          18.087        8.8614       -.15013E-06    .13860E-04
   3  Prefactor     .10000E-03    274.62        .20462E-05** at limit **
   4  Prefactor     14.709        20.231        .36941E-06    .13080E-03
   5  norm          2.3818        16.037       -.17794E-05   -.45806E-04
   6  Prefactor     .10000E-03    3.2444       -.29619E-06** at limit **
   7  Prefactor     37.112        20.430       -.94561E-07    .82329E-04
   8  Prefactor     .10590        2.7976       -.47724E-06    .73875E-04
   9  Prefactor     1.8857        6.6800        .81886E-06   -.67242E-04
  10  norm          .10000E-03    1.3788        .52934E-07** at limit **
  11  norm          .10000E-03    1.1126       -.23897E-06** at limit **
  12  Prefactor     .10000E-03    13.976       -.44772E-06** at limit **
  13  Prefactor     .13391        18.383        .21539E-05   -.41188E-03
  14  norm          83.083        42.491       -.36770E-06    .24272E-04
  15  norm          1.2826        1.3853       -.15622E-06   -.81799E-04
  16  norm          .10000E-03    1.9158       -.11893E-06** at limit **
  17  norm          .10000E-03    2.1085       -.12468E-06** at limit **
  18  Prefactor     24.607        30.494       -.24890E-07    .21463E-04
  19  norm          5.6488        3.5236       -.10228E-06    .49708E-04
  20  Prefactor     13.390        13.759       -.34942E-08    .43030E-04
  21  Normalizat    1.2501        .22289        .23066E-05    .30576E-03
  22  Prefactor     .40499        .23679       -.93731E-06    .17224E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.771251
  norm       = 18.0874
  Prefactor  = 0.000100001
  Prefactor  = 14.7089
  norm       = 2.38177
  Prefactor  = 0.0001
  Prefactor  = 37.1119
  Prefactor  = 0.105904
  Prefactor  = 1.88567
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.133908
  norm       = 83.0834
  norm       = 1.28255
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 24.6066
  norm       = 5.6488
  Prefactor  = 13.3903
  Normalizat = 1.25008
  Prefactor  = 0.404987
 **********
 **   18 **HESSE 
 **********

 FCN=   3667.642     FROM HESSE     STATUS=OK           356 CALLS     2865 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77125        77.865        .47034E-02   -1.5532    
   2  norm          18.087        8.8734        .94172E-04   -1.4857    
   3  Prefactor     .10000E-03    275.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.709        20.388        .10450E-03   -1.4941    
   5  norm          2.3818        16.317        .26558E-03   -1.5399    
   6  Prefactor     .10000E-03    3.2608        .10664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.112        20.432        .65785E-04   -1.4489    
   8  Prefactor     .10590        29.863        .18650E-02   -1.5643    
   9  Prefactor     1.8857        7.0939        .29772E-03   -1.5433    
  10  norm          .10000E-03    2.1982        .13396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1247        .62456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .13391        30.533        .20114E-02   -1.5635    
  14  norm          83.083        42.400        .44068E-04   -1.3882    
  15  norm          1.2826        1.3712        .70530E-04   -1.5481    
  16  norm          .10000E-03    3.4753        .16048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.804        .16710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.607        30.487        .80750E-04   -1.4715    
  19  norm          5.6488        3.5285        .86712E-04   -1.5233    
  20  Prefactor     13.390        13.761        .10947E-03   -1.4976    
  21  Normalizat    1.2501        .24119        .19194E-03   -.85069    
  22  Prefactor     .40499        .25867        .34831E-03   -1.1655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77704e-09
Minuit parameter uncertainties:
  1  15.5186
  2  8.87402
  3  0.000777904
  4  20.3978
  5  12.4727
  6  1.62039e-05
  7  20.4357
  8  3.55685
  9  7.09707
  10  6.32894e-05
  11  7.14616e-06
  12  6.04182e-05
  13  4.04467
  14  42.4155
  15  1.37122
  16  7.96472e-05
  17  0.000491171
  18  30.5058
  19  3.52865
  20  13.7646
  21  0.241408
  22  0.259418
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.886e+00  7.097e+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:  4.050e-01  2.594e-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.250e+00  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/516327/likelihoodResults_618537601_618796801_4FGL_J0117.8-2109_daily_bin1463.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) = 3667.64194798
delta logL = 0.000200250165562

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3667.6418516
delta logL = 0.000296631989386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9914       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3334       1.0000          .0000       10.000    
     3 'Normalizat'    1.2502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .40503       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3667.642     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      269 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9952        12.229        .14680E-02    .39656E-03
   2  Index         2.3335        1.9337        .13627E-01    .13045E-03
   3  Normalizat    1.2503        .23104        .19192E-03    .20763E-04
   4  Prefactor     .40474        .24951        .34840E-03    .42094E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99517
  Index      = 2.33353
  Normalizat = 1.25033
  Prefactor  = 0.404742
 **********
 **   18 **HESSE 
 **********

 FCN=   3667.642     FROM HESSE     STATUS=OK            27 CALLS      296 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9952        9.4271        .29359E-03   -1.5425    
   2  Index         2.3335        1.7148        .27255E-02   -.56249    
   3  Normalizat    1.2503        .23117        .76768E-05   -.85061    
   4  Prefactor     .40474        .24953        .13936E-04   -1.1657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53144e-12
Minuit parameter uncertainties:
  1  8.67581
  2  1.76563
  3  0.231364
  4  0.250205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516327': 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) = 3667.64184997
delta logL = 0.000298258334169

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.995e+00  8.676e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.334e+00  1.766e+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:  4.047e-01  2.502e-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.250e+00  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/516327/cmap_HighResolution_618537601_618796801_4FGL_J0117.8-2109_daily_bin1463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', job_status='DONE', photon_flux_upper_limit='8.80e-08', time_completed='2021-08-13 21:51:20.066477', job_id='516327', GAL2='0.40', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1628916680.07', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.40', dlogl='2.98e-04', ts2='0.09', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1463' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:51:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 516327: <4FGL_J0117.8-2109_daily_bin1463> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1463 19.4543 -21.1578 618537601 618796801 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 :                                   706.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            933 sec.

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

