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


Performing analysis on: 4FGL_J0117.8-2109_daily_bin1375
RA = 19.4543, Dec = -21.1578
tmin = 595728001, tmax = 595987201
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='516197', job_status='RUN', time_executed='2021-08-13 21:39:47.812628', time_epoch_executed='1628915987.81' WHERE source_name='4FGL J0117.8-2109' and cadence='daily' and bin_id='1375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516197

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516197/ft1_4FGL_J0117.8-2109_daily_bin1375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516197/ft2_4FGL_J0117.8-2109_daily_bin1375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516197/ft1_4FGL_J0117.8-2109_daily_bin1375.fits outfile=/scratch/kocevski/516197/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1375.fits ra=19.4543 dec=-21.1578 rad=12.0 tmin=595728001.0 tmax=595987201.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 7.83
user 2.35
sys 5.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516197/ft2_4FGL_J0117.8-2109_daily_bin1375.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/516197/ft1_filteredMKT_4FGL_J0117.8-2109_daily_bin1375.fits evtable="EVENTS" outfile="/scratch/kocevski/516197/ft1_filtered_4FGL_J0117.8-2109_daily_bin1375.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 5.73
user 0.34
sys 5.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516197/ft1_filtered_4FGL_J0117.8-2109_daily_bin1375.fits" evtable="EVENTS" scfile=/scratch/kocevski/516197/ft2_4FGL_J0117.8-2109_daily_bin1375.fits sctable="SC_DATA" outfile=/scratch/kocevski/516197/ltcube_595728001_595987201_4FGL_J0117.8-2109_daily_bin1375.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/516197/ft2_4FGL_J0117.8-2109_daily_bin1375.fits
.....................!
real 19.44
user 13.24
sys 6.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516197/ft1_filtered_4FGL_J0117.8-2109_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/516197/ft2_4FGL_J0117.8-2109_daily_bin1375.fits sctable="SC_DATA" expcube=/scratch/kocevski/516197/ltcube_595728001_595987201_4FGL_J0117.8-2109_daily_bin1375.fits outfile=/scratch/kocevski/516197/expmap_595728001_595987201_4FGL_J0117.8-2109_daily_bin1375.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/516197/ltcube_595728001_595987201_4FGL_J0117.8-2109_daily_bin1375.fits
.....................!
real 200.11
user 187.06
sys 11.93

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/516197/ft1_filtered_4FGL_J0117.8-2109_daily_bin1375.fits scfile=/scratch/kocevski/516197/ft2_4FGL_J0117.8-2109_daily_bin1375.fits outfile=/scratch/kocevski/516197/cmap_595728001_595987201_4FGL_J0117.8-2109_daily_bin1375.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 5.56
user 0.38
sys 5.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516197/ft1_filtered_4FGL_J0117.8-2109_daily_bin1375.fits scfile=/scratch/kocevski/516197/ft2_4FGL_J0117.8-2109_daily_bin1375.fits outfile=/scratch/kocevski/516197/cmap_HighResolution_595728001_595987201_4FGL_J0117.8-2109_daily_bin1375.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 5.61
user 0.39
sys 5.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/516197/ft1_filtered_4FGL_J0117.8-2109_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/516197/ft2_4FGL_J0117.8-2109_daily_bin1375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/516197/Model_4FGL_J0117.8-2109_daily_bin1375.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/516197/ft1_filtered_4FGL_J0117.8-2109_daily_bin1375.fits.....................!
real 41.51
user 33.33
sys 7.95

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/516197/ft1_filtered_4FGL_J0117.8-2109_daily_bin1375.fits', '/scratch/kocevski/516197/ft2_4FGL_J0117.8-2109_daily_bin1375.fits', expMap='/scratch/kocevski/516197/expmap_595728001_595987201_4FGL_J0117.8-2109_daily_bin1375.fits', expCube='/scratch/kocevski/516197/ltcube_595728001_595987201_4FGL_J0117.8-2109_daily_bin1375.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/516197/Model_4FGL_J0117.8-2109_daily_bin1375.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/516197/ft1_filtered_4FGL_J0117.8-2109_daily_bin1375.fits
Spacecraft file(s): /scratch/kocevski/516197/ft2_4FGL_J0117.8-2109_daily_bin1375.fits
Exposure map: /scratch/kocevski/516197/expmap_595728001_595987201_4FGL_J0117.8-2109_daily_bin1375.fits
Exposure cube: /scratch/kocevski/516197/ltcube_595728001_595987201_4FGL_J0117.8-2109_daily_bin1375.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/516197/Model_4FGL_J0117.8-2109_daily_bin1375.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3570.43312858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    21.509       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.449       1.0000         .10000E-03   10000.    
     5 'norm      '    15.385       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5201       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6844       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8584       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4194       1.0000         .10000E-03   10000.    
    10 'norm      '    .13599E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2593       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0374       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .36767       1.0000         .10000E-03   10000.    
    17 'norm      '    .12831E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.8331       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6963       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94647       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0367       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=   3570.383     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2100 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.4418       -.16349E-06** at limit **
   2  norm          21.506        10.353       -.25291E-06   -.17780E-04
   3  Prefactor     .10000E-03    68.803       -.11040E-05** at limit **
   4  Prefactor     13.455        25.093        .24220E-05    .10082E-04
   5  norm          15.384        15.221        .24662E-06    .13260E-04
   6  Prefactor     1.5243        16.720       -.18831E-05   -.13917E-03
   7  Prefactor     3.6743        11.101        .31093E-05   -.61674E-03
   8  Prefactor     3.8583        6.5777       -.60400E-07   -.80934E-04
   9  Prefactor     4.4439        10.400        .37506E-05    .29023E-03
  10  norm          .10001E-03    1.9254       -.48273E-06** at limit **
  11  norm          .10000E-03    1.7711        .13337E-06** at limit **
  12  Prefactor     8.2696        19.298        .91924E-06    .10182E-04
  13  Prefactor     3.0415        6.4017        .18809E-06    .35131E-04
  14  norm          .10000E-03    30.505        .99848E-06** at limit **
  15  norm          .10000E-03    .60883        .76449E-07** at limit **
  16  norm          .36990        2.3295        .38971E-07   -.28163E-03
  17  norm          .10000E-03    2.0438        .26602E-07** at limit **
  18  Prefactor     .10000E-03    13.766       -.11454E-06** at limit **
  19  norm          2.8327        4.1375        .73678E-07   -.56882E-04
  20  Prefactor     4.6914        10.755       -.63399E-06   -.28994E-04
  21  Normalizat    .94638        .23278       -.11401E-05    .99961E-04
  22  Prefactor     1.0369        .24513        .16591E-06    .37342E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 21.5059
  Prefactor  = 0.0001
  Prefactor  = 13.4552
  norm       = 15.3836
  Prefactor  = 1.52429
  Prefactor  = 3.67429
  Prefactor  = 3.85827
  Prefactor  = 4.44391
  norm       = 0.000100009
  norm       = 0.0001
  Prefactor  = 8.2696
  Prefactor  = 3.0415
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.369897
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.83266
  Prefactor  = 4.6914
  Normalizat = 0.946377
  Prefactor  = 1.03691
 **********
 **   18 **HESSE 
 **********

 FCN=   3570.383     FROM HESSE     STATUS=OK           354 CALLS     2454 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.4598        .17932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          21.506        10.369        .86366E-04   -1.4780    
   3  Prefactor     .10000E-03    68.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.455        24.713        .10922E-03   -1.4974    
   5  norm          15.384        15.221        .10211E-03   -1.4923    
   6  Prefactor     1.5243        16.287        .34656E-03   -1.5461    
   7  Prefactor     3.6743        16.622        .10521E-02   -1.5325    
   8  Prefactor     3.8583        6.5818        .19221E-03   -1.5315    
   9  Prefactor     4.4439        10.749        .19156E-03   -1.5286    
  10  norm          .10001E-03    3.5503        .16115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.8075        .15462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.2696        19.355        .13950E-03   -1.5133    
  13  Prefactor     3.0415        6.2802        .19475E-03   -1.5359    
  14  norm          .10000E-03    30.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .61753        .45492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .36990        3.5358        .16368E-02   -1.5586    
  17  norm          .10000E-03    7.1935        .16211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.8327        4.1297        .14178E-03   -1.5371    
  20  Prefactor     4.6914        10.734        .18569E-03   -1.5275    
  21  Normalizat    .94638        .27962        .23952E-03   -.94849    
  22  Prefactor     1.0369        .29810        .26034E-03   -.91509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12028e-09
Minuit parameter uncertainties:
  1  1.49311e-06
  2  10.3695
  3  2.05216e-05
  4  24.732
  5  15.2251
  6  9.96846
  7  15.637
  8  6.58304
  9  10.7533
  10  0.000347897
  11  7.69254e-06
  12  19.3695
  13  6.28157
  14  1.59137e-05
  15  5.07651e-07
  16  2.28712
  17  3.21738e-05
  18  8.89546e-07
  19  4.13012
  20  10.7382
  21  0.280051
  22  0.29858
Done.

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

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  4.444e+00  1.075e+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:  1.037e+00  2.986e-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:  9.464e-01  2.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 19.454 -21.158
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/516197/likelihoodResults_595728001_595987201_4FGL_J0117.8-2109_daily_bin1375.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) = 3570.32157573
delta logL = 0.0613254576811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3570.30794627
delta logL = 0.0749549206635

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0237       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8651       1.0000          .0000       10.000    
     3 'Normalizat'    .93264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0454       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=   3570.308     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      226 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0186        253.84        .58344E-02    .23540E-03
   2  Index         2.8653        6.2566        .13661        .58361E-04
   3  Normalizat    .93281        .67995E-01    .45317E-01   -.57131E-04
   4  Prefactor     1.0452        .73937E-01    .58656E-01   -.21520E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.01859
  Index      = 2.86532
  Normalizat = 0.932807
  Prefactor  = 1.04522
 **********
 **   18 **HESSE 
 **********

 FCN=   3570.308     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0186        9.6219        .18042E-03   -1.5360    
   2  Index         2.8653        1.4841        .84840E-02   -.44110    
   3  Normalizat    .93281        .26505        .24105E-03   -.95317    
   4  Prefactor     1.0452        .29704        .25938E-03   -.91237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8835e-09
Minuit parameter uncertainties:
  1  9.62683
  2  1.51215
  3  0.265418
  4  0.297505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516197': 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) = 3570.30794586
delta logL = 0.0749553276896

Extracting fit parameters...

4FGL J0117.8-2109
   Spectrum: PowerLaw
257    Prefactor:  3.019e+00  9.627e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.865e+00  1.512e+00  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  1.045e+00  2.975e-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:  9.328e-01  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
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/516197/cmap_HighResolution_595728001_595987201_4FGL_J0117.8-2109_daily_bin1375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.31e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-08-13 21:49:01.571972', job_id='516197', GAL2='1.05', fit_tolerance='1e-08', EG2='0.93', EG='0.95', time_epoch_completed='1628916541.57', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='7.50e-02', ts2='0.40', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1375' AND source_name='4FGL J0117.8-2109' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 21:49:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 516197: <4FGL_J0117.8-2109_daily_bin1375> in cluster <slac> Done

Job <4FGL_J0117.8-2109_daily_bin1375> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 13 21:35:40 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:37:18 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:37:18 2021
Terminated at Fri Aug 13 21:49:03 2021
Results reported at Fri Aug 13 21:49:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0117.8-2109_daily_bin1375 19.4543 -21.1578 595728001 595987201 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 :                                   630.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            803 sec.

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

