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


Performing analysis on: 4FGL_J0118.9-2141_daily_bin1003
RA = 19.7254, Dec = -21.6948
tmin = 499305601, tmax = 499564801
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='541353', job_status='RUN', time_executed='2021-08-13 23:07:53.997963', time_epoch_executed='1628921274.0' WHERE source_name='4FGL J0118.9-2141' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/541353

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/541353/ft1_4FGL_J0118.9-2141_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/541353/ft2_4FGL_J0118.9-2141_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/541353/ft1_4FGL_J0118.9-2141_daily_bin1003.fits outfile=/scratch/kocevski/541353/ft1_filteredMKT_4FGL_J0118.9-2141_daily_bin1003.fits ra=19.7254 dec=-21.6948 rad=12.0 tmin=499305601.0 tmax=499564801.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.99
user 5.16
sys 5.63

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/541353/ft2_4FGL_J0118.9-2141_daily_bin1003.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/541353/ft2_4FGL_J0118.9-2141_daily_bin1003.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/541353/ft1_filteredMKT_4FGL_J0118.9-2141_daily_bin1003.fits evtable="EVENTS" outfile="/scratch/kocevski/541353/ft1_filtered_4FGL_J0118.9-2141_daily_bin1003.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.06
user 0.34
sys 5.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/541353/ft1_filtered_4FGL_J0118.9-2141_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/541353/ft2_4FGL_J0118.9-2141_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/541353/ltcube_499305601_499564801_4FGL_J0118.9-2141_daily_bin1003.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/541353/ft2_4FGL_J0118.9-2141_daily_bin1003.fits
.....................!
real 20.27
user 13.42
sys 6.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/541353/ft1_filtered_4FGL_J0118.9-2141_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/541353/ft2_4FGL_J0118.9-2141_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/541353/ltcube_499305601_499564801_4FGL_J0118.9-2141_daily_bin1003.fits outfile=/scratch/kocevski/541353/expmap_499305601_499564801_4FGL_J0118.9-2141_daily_bin1003.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/541353/ltcube_499305601_499564801_4FGL_J0118.9-2141_daily_bin1003.fits
.....................!
real 197.46
user 185.59
sys 11.21

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J0118.9-2141 @ 19.7254 -21.6948

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/541353/ft1_filtered_4FGL_J0118.9-2141_daily_bin1003.fits scfile=/scratch/kocevski/541353/ft2_4FGL_J0118.9-2141_daily_bin1003.fits outfile=/scratch/kocevski/541353/cmap_499305601_499564801_4FGL_J0118.9-2141_daily_bin1003.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.7254 yref=-21.6948 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.94
user 0.38
sys 5.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/541353/ft1_filtered_4FGL_J0118.9-2141_daily_bin1003.fits scfile=/scratch/kocevski/541353/ft2_4FGL_J0118.9-2141_daily_bin1003.fits outfile=/scratch/kocevski/541353/cmap_HighResolution_499305601_499564801_4FGL_J0118.9-2141_daily_bin1003.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.7254 yref=-21.6948 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.91
user 0.38
sys 5.50

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/541353/ft1_filtered_4FGL_J0118.9-2141_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/541353/ft2_4FGL_J0118.9-2141_daily_bin1003.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/541353/Model_4FGL_J0118.9-2141_daily_bin1003.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/541353/ft1_filtered_4FGL_J0118.9-2141_daily_bin1003.fits......................!
real 34.61
user 26.19
sys 8.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/541353/ft1_filtered_4FGL_J0118.9-2141_daily_bin1003.fits', '/scratch/kocevski/541353/ft2_4FGL_J0118.9-2141_daily_bin1003.fits', expMap='/scratch/kocevski/541353/expmap_499305601_499564801_4FGL_J0118.9-2141_daily_bin1003.fits', expCube='/scratch/kocevski/541353/ltcube_499305601_499564801_4FGL_J0118.9-2141_daily_bin1003.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/541353/Model_4FGL_J0118.9-2141_daily_bin1003.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0118.9-2141'

4FGL J0118.9-2141
   Spectrum: LogParabola
259         norm:  3.573e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        alpha:  2.251e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
261         beta:  9.012e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
262           Eb:  1.069e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/541353/ft1_filtered_4FGL_J0118.9-2141_daily_bin1003.fits
Spacecraft file(s): /scratch/kocevski/541353/ft2_4FGL_J0118.9-2141_daily_bin1003.fits
Exposure map: /scratch/kocevski/541353/expmap_499305601_499564801_4FGL_J0118.9-2141_daily_bin1003.fits
Exposure cube: /scratch/kocevski/541353/ltcube_499305601_499564801_4FGL_J0118.9-2141_daily_bin1003.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/541353/Model_4FGL_J0118.9-2141_daily_bin1003.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) = 2223.59011073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    167.59       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.196       1.0000         .10000E-03   10000.    
     5 'norm      '    37.301       1.0000         .10000E-03   10000.    
     6 'norm      '    8.4556       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1160       1.0000         .10000E-03   10000.    
    12 'norm      '    8.7851       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .75726       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0770       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4526       1.0000         .10000E-03   10000.    
    19 'norm      '    .41089E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3761       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5999       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .58791       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2223.578     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2727 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    17.623        .10024E-04** at limit **
   2  norm          .10000E-03    5.9835       -.15186E-06** at limit **
   3  Prefactor     167.45        285.99       -.10883E-03    .15046E-04
   4  Prefactor     30.179        42.043       -.19486E-04    .63964E-05
   5  norm          37.352        36.358        .33704E-04    .34406E-04
   6  norm          8.4549        8.2618       -.61248E-06   -.11853E-03
   7  Prefactor     .10000E-03    19.691       -.13937E-04** at limit **
   8  Prefactor     .10000E-03    9.8833       -.10930E-05** at limit **
   9  Prefactor     .10000E-03    4.7901       -.25022E-07** at limit **
  10  Prefactor     .10000E-03    24.193        .23073E-05** at limit **
  11  norm          4.1150        4.0437       -.21757E-06    .10558E-03
  12  norm          8.7846        5.5215       -.49651E-06    .67677E-04
  13  Prefactor     .10000E-03    8.0735        .57820E-06** at limit **
  14  Prefactor     .10000E-03    4.2006       -.43368E-07** at limit **
  15  norm          .10000E-03    .89641       -.62367E-07** at limit **
  16  norm          .75876        2.4598        .50677E-06    .31597E-03
  17  norm          4.0776        5.0354       -.14162E-06   -.20212E-04
  18  Prefactor     3.3825        555.11       -.31152E-03   -.29889E-04
  19  norm          .10119E-03    3.0826        .10279E-05** at limit **
  20  Prefactor     1.3036        123.63        .60758E-04    .97900E-04
  21  Normalizat    1.6001        .33033        .51869E-05   -.10700E-03
  22  Prefactor     .58772        .35458        .74833E-05    .62733E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 167.454
  Prefactor  = 30.179
  norm       = 37.3515
  norm       = 8.4549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.11504
  norm       = 8.78464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.758755
  norm       = 4.07756
  Prefactor  = 3.38253
  norm       = 0.000101194
  Prefactor  = 1.30363
  Normalizat = 1.6001
  Prefactor  = 0.587718
 **********
 **   18 **HESSE 
 **********

 FCN=   2223.578     FROM HESSE     STATUS=OK           342 CALLS     3069 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.0023        .11266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     167.45        286.31        .15580E-03   -1.3113    
   4  Prefactor     30.179        42.004        .72912E-04   -1.4609    
   5  norm          37.352        36.259        .65622E-04   -1.4485    
   6  norm          8.4549        8.2600        .65030E-03   -1.5126    
   7  Prefactor     .10000E-03    19.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.8887        .14480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8148        .10077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1150        4.0420        .90401E-04   -1.5302    
  12  norm          8.7846        5.5175        .84769E-04   -1.5115    
  13  Prefactor     .10000E-03    8.0742        .13087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2232        .94348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .91020        .43581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .75876        2.1774        .12749E-02   -1.5534    
  17  norm          4.0776        5.0313        .11219E-03   -1.5304    
  18  Prefactor     3.3825        560.94        .21766E-03   -1.5340    
  19  norm          .10119E-03    41.945        .16031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3036        122.48        .37132E-03   -1.5480    
  21  Normalizat    1.6001        .38717        .21947E-03   -.75003    
  22  Prefactor     .58772        .41156        .37045E-03   -1.0811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82491e-08
Minuit parameter uncertainties:
  1  7.41323e-06
  2  1.60854e-05
  3  288.736
  4  42.0451
  5  36.2804
  6  8.26113
  7  5.74973e-06
  8  7.20604e-06
  9  1.88529e-05
  10  1.88398e-05
  11  4.04231
  12  5.51779
  13  6.89876e-07
  14  6.14256e-06
  15  7.04332e-06
  16  2.17764
  17  5.0318
  18  87.968
  19  0.014164
  20  25.3246
  21  0.387901
  22  0.413687
Done.

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

Extracting fit parameters...

4FGL J0118.9-2141
   Spectrum: LogParabola
259         norm:  4.115e+00  4.042e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        alpha:  2.251e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
261         beta:  9.012e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
262           Eb:  1.069e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  5.877e-01  4.137e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.600e+00  3.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.22
Ra Dec: 19.725 -21.695
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 5.22e-08 +/- 5.12e-08
Energy Flux (Fixed Index): 2.17e-05 +/- 2.13e-05

TS (Fixed Index): 3.22
Ra Dec: 19.725 -21.695
Photon Flux Upper Limit: 1.93e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/541353/likelihoodResults_499305601_499564801_4FGL_J0118.9-2141_daily_bin1003.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) = 2223.55677357
delta logL = 0.0212134497074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2223.55155947
delta logL = 0.0264275498225

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7550       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4701       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59719       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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=   2223.552     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      240 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7552        4.1865        .82353E-04   -.50960E-03
   2  alpha         2.4702        .94150        .11366E-01   -.42410E-04
   3  Normalizat    1.5841        .38451        .22032E-03    .75049E-04
   4  Prefactor     .59725        .40762        .36762E-03    .59886E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.75522
  alpha      = 2.47021
  Normalizat = 1.5841
  Prefactor  = 0.597247
 **********
 **   18 **HESSE 
 **********

 FCN=   2223.552     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7552        4.0862        .16471E-04   -1.5320    
   2  alpha         2.4702        .91884        .45463E-03   -.11915E-01
   3  Normalizat    1.5841        .38439        .44064E-04   -.75442    
   4  Prefactor     .59725        .40770        .14705E-04   -1.0770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61905e-10
Minuit parameter uncertainties:
  1  4.08649
  2  0.940896
  3  0.385105
  4  0.409742
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/541353': 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) = 2223.55155942
delta logL = 0.0264275967893

Extracting fit parameters...

4FGL J0118.9-2141
   Spectrum: LogParabola
259         norm:  3.755e+00  4.086e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        alpha:  2.470e+00  9.409e-01  0.000e+00  5.000e+00 ( 1.000e+00)
261         beta:  9.012e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
262           Eb:  1.069e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  5.972e-01  4.097e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.584e+00  3.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.27
Ra Dec: 19.725 -21.695
Photon Index (Free Index): 2.47 +/- 0.94
Photon Flux (Free Index): 6.68e-08 +/- 8.96e-08
Energy Flux (Free Index): 2.15e-05 +/- 2.02e-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/541353/cmap_HighResolution_499305601_499564801_4FGL_J0118.9-2141_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.04e-05', comment='SUCCESS', photon_flux='5.22e-08', energy_flux2='2.15e-05', photon_flux_error='5.12e-08', dlogl='2.64e-02', energy_flux='2.17e-05', photon_flux2='6.68e-08', job_status='DONE', time_completed='2021-08-13 23:16:46.936228', photon_index_error2='0.94', photon_index2='2.47', ts='3.22', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', photon_flux_upper_limit='1.93e-07', energy_flux_error2='2.02e-05', EG='1.60', time_epoch_completed='1628921806.94', return_code='0', job_id='541353', GAL2='0.60', EG2='1.58', return_code2='0', energy_flux_error='2.13e-05', photon_flux_error2='8.96e-08', ts2='3.27', photon_index='2.25' WHERE bin_id='1003' AND source_name='4FGL J0118.9-2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:16:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 541353: <4FGL_J0118.9-2141_daily_bin1003> in cluster <slac> Done

Job <4FGL_J0118.9-2141_daily_bin1003> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 13 23:00:51 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:04:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 23:04:36 2021
Terminated at Fri Aug 13 23:16:48 2021
Results reported at Fri Aug 13 23:16:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.9-2141_daily_bin1003 19.7254 -21.6948 499305601 499564801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0118.9-2141 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   611.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            957 sec.

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

