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


Performing analysis on: 4FGL_J0118.3-6008_daily_bin1005
RA = 19.5886, Dec = -60.1426
tmin = 499824001, tmax = 500083201
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='520904', job_status='RUN', time_executed='2021-08-13 21:52:11.608494', time_epoch_executed='1628916731.61' WHERE source_name='4FGL J0118.3-6008' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/520904

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/520904/ft1_4FGL_J0118.3-6008_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/520904/ft2_4FGL_J0118.3-6008_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/520904/ft1_4FGL_J0118.3-6008_daily_bin1005.fits outfile=/scratch/kocevski/520904/ft1_filteredMKT_4FGL_J0118.3-6008_daily_bin1005.fits ra=19.5886 dec=-60.1426 rad=12.0 tmin=499824001.0 tmax=500083201.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 4.28
user 4.04
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/520904/ft2_4FGL_J0118.3-6008_daily_bin1005.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/520904/ft2_4FGL_J0118.3-6008_daily_bin1005.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/520904/ft1_filteredMKT_4FGL_J0118.3-6008_daily_bin1005.fits evtable="EVENTS" outfile="/scratch/kocevski/520904/ft1_filtered_4FGL_J0118.3-6008_daily_bin1005.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.45
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/520904/ft1_filtered_4FGL_J0118.3-6008_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/520904/ft2_4FGL_J0118.3-6008_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/520904/ltcube_499824001_500083201_4FGL_J0118.3-6008_daily_bin1005.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/520904/ft2_4FGL_J0118.3-6008_daily_bin1005.fits
.....................!
real 10.60
user 10.28
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/520904/ft1_filtered_4FGL_J0118.3-6008_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/520904/ft2_4FGL_J0118.3-6008_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/520904/ltcube_499824001_500083201_4FGL_J0118.3-6008_daily_bin1005.fits outfile=/scratch/kocevski/520904/expmap_499824001_500083201_4FGL_J0118.3-6008_daily_bin1005.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/520904/ltcube_499824001_500083201_4FGL_J0118.3-6008_daily_bin1005.fits
.....................!
real 157.68
user 153.08
sys 4.22

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
Extended source SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 186 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0118.3-6008 @ 19.5886 -60.1426

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/520904/ft1_filtered_4FGL_J0118.3-6008_daily_bin1005.fits scfile=/scratch/kocevski/520904/ft2_4FGL_J0118.3-6008_daily_bin1005.fits outfile=/scratch/kocevski/520904/cmap_499824001_500083201_4FGL_J0118.3-6008_daily_bin1005.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.5886 yref=-60.1426 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.47
user 0.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/520904/ft1_filtered_4FGL_J0118.3-6008_daily_bin1005.fits scfile=/scratch/kocevski/520904/ft2_4FGL_J0118.3-6008_daily_bin1005.fits outfile=/scratch/kocevski/520904/cmap_HighResolution_499824001_500083201_4FGL_J0118.3-6008_daily_bin1005.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.5886 yref=-60.1426 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.47
user 0.33
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/520904/ft1_filtered_4FGL_J0118.3-6008_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/520904/ft2_4FGL_J0118.3-6008_daily_bin1005.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/520904/Model_4FGL_J0118.3-6008_daily_bin1005.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
adding source SMC-Galaxy
Working on...
/scratch/kocevski/520904/ft1_filtered_4FGL_J0118.3-6008_daily_bin1005.fits.....................!
real 482.42
user 480.54
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/520904/ft1_filtered_4FGL_J0118.3-6008_daily_bin1005.fits', '/scratch/kocevski/520904/ft2_4FGL_J0118.3-6008_daily_bin1005.fits', expMap='/scratch/kocevski/520904/expmap_499824001_500083201_4FGL_J0118.3-6008_daily_bin1005.fits', expCube='/scratch/kocevski/520904/ltcube_499824001_500083201_4FGL_J0118.3-6008_daily_bin1005.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/520904/Model_4FGL_J0118.3-6008_daily_bin1005.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0118.3-6008'

4FGL J0118.3-6008
   Spectrum: PowerLaw
184    Prefactor:  6.186e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
185        Index:  2.181e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
186        Scale:  1.688e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/520904/ft1_filtered_4FGL_J0118.3-6008_daily_bin1005.fits
Spacecraft file(s): /scratch/kocevski/520904/ft2_4FGL_J0118.3-6008_daily_bin1005.fits
Exposure map: /scratch/kocevski/520904/expmap_499824001_500083201_4FGL_J0118.3-6008_daily_bin1005.fits
Exposure cube: /scratch/kocevski/520904/ltcube_499824001_500083201_4FGL_J0118.3-6008_daily_bin1005.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/520904/Model_4FGL_J0118.3-6008_daily_bin1005.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) = 2318.34270217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3243       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.760       1.0000         .10000E-03   10000.    
     5 'norm      '    49.089       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.123       1.0000         .10000E-03   10000.    
     7 'norm      '    .80580       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10438E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    229.74       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10462E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3089       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5137       1.0000         .10000E-03   10000.    
    20 'norm      '    10.647       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.6543       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.5679       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .18544E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .49893       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0542       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2318.339     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     4176 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.711        .19152E-07** at limit **
   2  Prefactor     6.3250        13.327        .16824E-06   -.17573E-05
   3  Prefactor     .10000E-03    126.35       -.68961E-05** at limit **
   4  Prefactor     10.729        19.282       -.52777E-06    .16188E-04
   5  norm          49.077        48.698       -.19093E-06   -.68683E-05
   6  Prefactor     18.114        9.6296        .53357E-08    .27681E-05
   7  norm          .81315        26.872        .60024E-05   -.57263E-05
   8  Prefactor     .10000E-03    38.200        .59784E-07** at limit **
   9  norm          .10000E-03    7.4742       -.25136E-07** at limit **
  10  Prefactor     .10000E-03    12.193       -.58221E-07** at limit **
  11  Prefactor     229.68        154.58       -.21419E-06   -.31781E-04
  12  Prefactor     .10000E-03    33.064        .15990E-06** at limit **
  13  norm          .10000E-03    7.9612        .12867E-06** at limit **
  14  Prefactor     .10000E-03    2.6331       -.72404E-07** at limit **
  15  Prefactor     .10000E-03    5.8725        .16109E-07** at limit **
  16  norm          .10000E-03    162.08        .12391E-05** at limit **
  17  Prefactor     .10000E-03    1.8001        .61646E-08** at limit **
  18  Prefactor     5.3121        10.614        .34542E-06   -.32487E-05
  19  Prefactor     5.5141        5.7124       -.25933E-07   -.52316E-04
  20  norm          10.647        3.9497        .34616E-07    .77110E-05
  21  Prefactor     .10000E-03    23.766        .10693E-06** at limit **
  22  norm          .10000E-03    5.4707        .46791E-09** at limit **
  23  norm          1.6549        2.3731        .10090E-06    .61893E-05
  24  Prefactor     4.5688        3.6981       -.42580E-07   -.54207E-05
  25  Prefactor     .10000E-03    31.644        .98580E-08** at limit **
  26  Prefactor     .10000E-03    340.19       -.14735E-05** at limit **
  27  Normalizat    .49929        .27097        .21678E-07   -.43703E-05
  28  Prefactor     1.0538        .25510       -.79705E-06    .41812E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.32497
  Prefactor  = 0.0001
  Prefactor  = 10.7291
  norm       = 49.0771
  Prefactor  = 18.1144
  norm       = 0.813146
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 229.678
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.31211
  Prefactor  = 5.51409
  norm       = 10.6475
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.65487
  Prefactor  = 4.56878
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.499292
  Prefactor  = 1.05378
 **********
 **   18 **HESSE 
 **********

 FCN=   2318.339     FROM HESSE     STATUS=OK           513 CALLS     4689 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3250        13.319        .15961E-03   -1.5205    
   3  Prefactor     .10000E-03    126.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.729        19.089        .12214E-03   -1.5053    
   5  norm          49.077        48.700        .57235E-04   -1.4306    
   6  Prefactor     18.114        9.6730        .94083E-04   -1.4856    
   7  norm          .81315        27.587        .48033E-03   -1.5528    
   8  Prefactor     .10000E-03    38.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.5060        .12836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.410        .16410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     229.68        155.34        .13349E-03   -1.2665    
  12  Prefactor     .10000E-03    33.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.0093        .13270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.6345        .76301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9009        .11392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    163.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.8046        .63060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.3121        10.603        .17443E-03   -1.5247    
  19  Prefactor     5.5141        5.7188        .11295E-03   -1.5238    
  20  norm          10.647        3.9505        .55729E-04   -1.5055    
  21  Prefactor     .10000E-03    23.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.4708        .11000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.6549        2.3499        .85744E-04   -1.5451    
  24  Prefactor     4.5688        3.6986        .80304E-04   -1.5280    
  25  Prefactor     .10000E-03    31.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    345.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .49929        .31543        .29542E-03   -1.1245    
  28  Prefactor     1.0538        .29907        .20351E-03   -.90958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60397e-11
Minuit parameter uncertainties:
  1  3.6879e-05
  2  13.3248
  3  0.000331584
  4  19.0998
  5  48.7395
  6  9.6738
  7  9.47674
  8  1.21153e-05
  9  5.12985e-06
  10  1.32246e-05
  11  155.624
  12  3.58864e-05
  13  4.54768e-06
  14  3.86479e-07
  15  2.11718e-06
  16  0.00115713
  17  5.55734e-07
  18  10.6071
  19  5.71939
  20  3.95064
  21  4.05405e-05
  22  8.28548e-08
  23  2.35006
  24  3.69882
  25  6.63928e-06
  26  0.00167778
  27  0.316569
  28  0.299547
Done.

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

Extracting fit parameters...

4FGL J0118.3-6008
   Spectrum: PowerLaw
184    Prefactor:  2.297e+02  1.556e+02  1.000e-04  1.000e+04 ( 1.000e-14)
185        Index:  2.181e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
186        Scale:  1.688e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.054e+00  2.995e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  4.993e-01  3.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.74
Ra Dec: 19.589 -60.143
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 9.25e-08 +/- 6.27e-08
Energy Flux (Fixed Index): 4.30e-05 +/- 2.92e-05

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) = 2318.27055834
delta logL = 0.0685650685846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2318.2602239
delta logL = 0.0788995049097

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    177.41       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4733       1.0000          .0000       10.000    
     3 'Normalizat'    .44751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0829       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+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=   2318.260     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      288 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     177.18        198.32        .15150E-03   -.12318E-03
   2  Index         2.4740        .75764        .32721E-02   -.25677E-04
   3  Normalizat    .44598        .32869        .31107E-03   -.18986E-04
   4  Prefactor     1.0849        .30443        .20067E-03   -.53423E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 177.183
  Index      = 2.47404
  Normalizat = 0.445977
  Prefactor  = 1.08488
 **********
 **   18 **HESSE 
 **********

 FCN=   2318.260     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     177.18        177.94        .30301E-04   -1.3038    
   2  Index         2.4740        .67865        .13089E-03   -.52960    
   3  Normalizat    .44598        .32498        .12443E-04   -1.1499    
   4  Prefactor     1.0849        .30293        .40135E-04   -.89951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53138e-10
Minuit parameter uncertainties:
  1  178.487
  2  0.681479
  3  0.326374
  4  0.303408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/520904': 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) = 2318.26019944
delta logL = 0.0789239667047

Extracting fit parameters...

4FGL J0118.3-6008
   Spectrum: PowerLaw
184    Prefactor:  1.772e+02  1.785e+02  1.000e-04  1.000e+04 ( 1.000e-14)
185        Index:  2.474e+00  6.815e-01  0.000e+00  1.000e+01 (-1.000e+00)
186        Scale:  1.688e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.085e+00  3.034e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  4.460e-01  3.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.01
Ra Dec: 19.589 -60.143
Photon Index (Free Index): 2.47 +/- 0.68
Photon Flux (Free Index): 1.31e-07 +/- 1.12e-07
Energy Flux (Free Index): 3.91e-05 +/- 2.32e-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/520904/cmap_HighResolution_499824001_500083201_4FGL_J0118.3-6008_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.25e-08', energy_flux2='3.91e-05', photon_flux_error='6.27e-08', dlogl='7.89e-02', energy_flux='4.30e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-08-13 22:06:50.881462', photon_index_error2='0.68', photon_index2='2.47', ts='10.74', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.32e-05', EG='0.50', time_epoch_completed='1628917610.88', return_code='0', job_id='520904', GAL2='1.08', EG2='0.45', return_code2='0', energy_flux_error='2.92e-05', photon_flux_error2='1.12e-07', ts2='11.01', photon_index='2.18' WHERE bin_id='1005' AND source_name='4FGL J0118.3-6008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 22:06:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0175>
Subject: Job 520904: <4FGL_J0118.3-6008_daily_bin1005> in cluster <slac> Done

Job <4FGL_J0118.3-6008_daily_bin1005> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Aug 13 21:50:35 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 21:52:02 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:52:02 2021
Terminated at Fri Aug 13 22:06:51 2021
Results reported at Fri Aug 13 22:06:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.3-6008_daily_bin1005 19.5886 -60.1426 499824001 500083201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0118.3-6008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   875.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             472.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            976 sec.

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

