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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1236
RA = 19.4543, Dec = -21.1578
tmin = 559699201, tmax = 559958401
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='515996', job_status='RUN', time_executed='2021-08-13 21:36:21.392574', time_epoch_executed='1628915781.39' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1236'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515996

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515996/ft1_4FGL_J0117.8-2109_daily_bin1236.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515996/ft2_4FGL_J0117.8-2109_daily_bin1236.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/515996/ft1_4FGL_J0117.8-2109_daily_bin1236.fits outfile=/scratch/kocevski/515996/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1236.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=559699201.0 tmax=559958401.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 3.46
user 2.76
sys 0.65

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/515996/ft2_4FGL_J0117.8-2109_daily_bin1236.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/515996/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1236.fits evtable="EVENTS" outfile="/scratch/kocevski/515996/ft1_filtered_4FGL_J0117.8-2109_daily_bin1236.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 0.88
user 0.29
sys 0.58

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/515996/ft1_filtered_4FGL_J0117.8-2109_daily_bin1236.fits" evtable="EVENTS" scfile=/scratch/kocevski/515996/ft2_4FGL_J0117.8-2109_daily_bin1236.fits sctable="SC_DATA" outfile=/scratch/kocevski/515996/ltcube_559699201_559958401_4FGL_J0117.8-2109_daily_bin1236.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/515996/ft2_4FGL_J0117.8-2109_daily_bin1236.fits
.....................!
real 11.22
user 10.39
sys 0.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515996/ft1_filtered_4FGL_J0117.8-2109_daily_bin1236.fits evtable="EVENTS" scfile=/scratch/kocevski/515996/ft2_4FGL_J0117.8-2109_daily_bin1236.fits sctable="SC_DATA" expcube=/scratch/kocevski/515996/ltcube_559699201_559958401_4FGL_J0117.8-2109_daily_bin1236.fits outfile=/scratch/kocevski/515996/expmap_559699201_559958401_4FGL_J0117.8-2109_daily_bin1236.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/515996/ltcube_559699201_559958401_4FGL_J0117.8-2109_daily_bin1236.fits
.....................!
real 156.34
user 151.06
sys 4.97

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/515996/ft1_filtered_4FGL_J0117.8-2109_daily_bin1236.fits scfile=/scratch/kocevski/515996/ft2_4FGL_J0117.8-2109_daily_bin1236.fits outfile=/scratch/kocevski/515996/cmap_559699201_559958401_4FGL_J0117.8-2109_daily_bin1236.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 0.92
user 0.32
sys 0.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/515996/ft1_filtered_4FGL_J0117.8-2109_daily_bin1236.fits scfile=/scratch/kocevski/515996/ft2_4FGL_J0117.8-2109_daily_bin1236.fits outfile=/scratch/kocevski/515996/cmap_HighResolution_559699201_559958401_4FGL_J0117.8-2109_daily_bin1236.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 0.91
user 0.33
sys 0.57

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/515996/ft1_filtered_4FGL_J0117.8-2109_daily_bin1236.fits evtable="EVENTS" scfile=/scratch/kocevski/515996/ft2_4FGL_J0117.8-2109_daily_bin1236.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/515996/Model_4FGL_J0117.8-2109_daily_bin1236.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/515996/ft1_filtered_4FGL_J0117.8-2109_daily_bin1236.fits.....................!
real 29.14
user 27.46
sys 1.61

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.744       1.0000         .10000E-03   10000.    
     2 'norm      '    107.46       1.0000         .10000E-03   10000.    
     3 'Prefactor '    80.555       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.416       1.0000         .10000E-03   10000.    
     5 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.606       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .46056E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.003       1.0000         .10000E-03   10000.    
    10 'norm      '    3.2030       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    40.336       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2525       1.0000         .10000E-03   10000.    
    16 'norm      '    5.5418       1.0000         .10000E-03   10000.    
    17 'norm      '    12.769       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.3214       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7186       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70617       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94140       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=   3149.395     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2362 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.745        13.555       -.21995E-07    .23814E-06
   2  norm          107.46        21.493        .57377E-07    .11012E-05
   3  Prefactor     80.544        97.212        .14702E-05   -.34252E-06
   4  Prefactor     17.416        19.424        .26896E-06    .16857E-04
   5  norm          .10000E-03    6.3213        .85777E-08** at limit **
   6  Prefactor     18.603        16.103       -.49794E-07    .80143E-05
   7  Prefactor     .10000E-03    10.720        .14399E-06** at limit **
   8  Prefactor     .10000E-03    2.8913       -.32578E-06** at limit **
   9  Prefactor     15.095        39.052        .50541E-05    .15537E-04
  10  norm          3.1764        8.9278       -.32080E-05    .22148E-04
  11  norm          .10000E-03    1.5724       -.16125E-07** at limit **
  12  Prefactor     .10000E-03    53.638        .18533E-05** at limit **
  13  Prefactor     .10000E-03    10.198       -.54606E-06** at limit **
  14  norm          40.313        50.734        .48529E-05    .27890E-04
  15  norm          1.2524        1.7591        .16833E-06    .10143E-03
  16  norm          5.5393        6.4122       -.14236E-06    .34138E-04
  17  norm          12.770        10.159        .55084E-07    .14324E-04
  18  Prefactor     .10000E-03    110.47       -.89058E-05** at limit **
  19  norm          5.3216        4.7715        .21258E-07   -.16689E-05
  20  Prefactor     3.7166        96.685        .28976E-05    .66427E-05
  21  Normalizat    .70615        .25539       -.16266E-05    .11276E-03
  22  Prefactor     .94125        .25897        .63010E-06    .62054E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.7452
  norm       = 107.463
  Prefactor  = 80.5437
  Prefactor  = 17.4156
  norm       = 0.0001
  Prefactor  = 18.6028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.095
  norm       = 3.17642
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 40.3131
  norm       = 1.2524
  norm       = 5.53927
  norm       = 12.7697
  Prefactor  = 0.0001
  norm       = 5.32159
  Prefactor  = 3.71663
  Normalizat = 0.706151
  Prefactor  = 0.941249
 **********
 **   18 **HESSE 
 **********

 FCN=   3149.395     FROM HESSE     STATUS=OK           352 CALLS     2714 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.745        13.557        .97878E-04   -1.4889    
   2  norm          107.46        21.469        .38796E-04   -1.3631    
   3  Prefactor     80.544        97.188        .22374E-03   -1.3911    
   4  Prefactor     17.416        19.436        .95971E-04   -1.4873    
   5  norm          .10000E-03    6.3229        .13781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.603        16.087        .92853E-04   -1.4845    
   7  Prefactor     .10000E-03    10.727        .17946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.079        .17581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.095        38.957        .10341E-03   -1.4931    
  10  norm          3.1764        8.9134        .11897E-03   -1.5351    
  11  norm          .10000E-03    1.5733        .68722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    54.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.301        .17384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          40.313        50.782        .63114E-04   -1.4437    
  15  norm          1.2524        1.7251        .81809E-04   -1.5484    
  16  norm          5.5393        6.3868        .13429E-03   -1.5237    
  17  norm          12.770        10.142        .11210E-03   -1.4993    
  18  Prefactor     .10000E-03    110.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3216        4.7714        .11089E-03   -1.5247    
  20  Prefactor     3.7166        96.564        .20941E-03   -1.5322    
  21  Normalizat    .70615        .29069        .28129E-03   -1.0365    
  22  Prefactor     .94125        .30050        .26878E-03   -.94714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.2457e-11
Minuit parameter uncertainties:
  1  13.5593
  2  21.4701
  3  97.3803
  4  19.4429
  5  2.44278e-07
  6  16.091
  7  7.92844e-06
  8  0.000231021
  9  39.023
  10  8.91711
  11  1.23026e-06
  12  0.000101111
  13  8.70863e-05
  14  50.837
  15  1.72515
  16  6.38763
  17  10.143
  18  0.000117168
  19  4.77176
  20  37.9568
  21  0.291322
  22  0.30103
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  1.509e+01  3.902e+01  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:  9.412e-01  3.010e-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:  7.062e-01  2.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 19.454 -21.158
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 5.40e-08 +/- 1.40e-07
Energy Flux (Fixed Index): 1.83e-05 +/- 4.73e-05

TS (Fixed Index): 1.03
Ra Dec: 19.454 -21.158
Photon Flux Upper Limit: 1.96e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.51e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/515996/likelihoodResults_559699201_559958401_4FGL_J0117.8-2109_daily_bin1236.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) = 3149.34407757
delta logL = 0.0508396227146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3149.34195788
delta logL = 0.0529593131218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.979       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1511       1.0000          .0000       10.000    
     3 'Normalizat'    .71312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93528       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=   3149.342     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      264 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.009        834.17        .22402E-02    .99214E-05
   2  Index         2.1524        5.8788        .17007        .37141E-04
   3  Normalizat    .71327        .10667        .63290E-01    .13351E-04
   4  Prefactor     .93501        .10281        .45453E-01    .59356E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.009
  Index      = 2.15236
  Normalizat = 0.713269
  Prefactor  = 0.935005
 **********
 **   18 **HESSE 
 **********

 FCN=   3149.342     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.009        25.623        .89607E-04   -1.4813    
   2  Index         2.1524        .66630        .61410E-02   -.60593    
   3  Normalizat    .71327        .27317        .28000E-03   -1.0337    
   4  Prefactor     .93501        .29878        .26952E-03   -.94928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00227e-12
Minuit parameter uncertainties:
  1  25.6367
  2  0.669255
  3  0.273692
  4  0.299309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515996': 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) = 3149.34195262
delta logL = 0.0529645715537

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  2.001e+01  2.564e+01  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.152e+00  6.693e-01  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.350e-01  2.993e-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:  7.133e-01  2.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 19.454 -21.158
Photon Index (Free Index): 2.15 +/- 0.67
Photon Flux (Free Index): 4.77e-08 +/- 5.77e-08
Energy Flux (Free Index): 2.35e-05 +/- 3.23e-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/515996/cmap_HighResolution_559699201_559958401_4FGL_J0117.8-2109_daily_bin1236.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', comment='SUCCESS', photon_flux='5.40e-08', energy_flux2='2.35e-05', photon_flux_error='1.40e-07', dlogl='5.30e-02', energy_flux='1.83e-05', photon_flux2='4.77e-08', job_status='DONE', time_completed='2021-08-13 21:42:51.251518', photon_index_error2='0.67', photon_index2='2.15', ts='1.03', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.96e-07', energy_flux_error2='3.23e-05', EG='0.71', time_epoch_completed='1628916171.25', return_code='0', job_id='515996', GAL2='0.94', EG2='0.71', return_code2='0', energy_flux_error='4.73e-05', photon_flux_error2='5.77e-08', ts2='1.16', photon_index='2.38' WHERE bin_id='1236' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:42:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 515996: <4FGL_J0117.8-2109_daily_bin1236> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1236 19.4543 -21.1578 559699201 559958401 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 :                                   394.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   412 sec.
    Turnaround time :                            444 sec.

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

