/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 = 7450
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0118.9-2141_daily_bin50
RA = 19.7254, Dec = -21.6948
tmin = 252288001, tmax = 252547201
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='537861', job_status='RUN', time_executed='2021-08-13 22:51:12.194524', time_epoch_executed='1628920272.19' WHERE source_name='4FGL J0118.9-2141' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/537861

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/537861/ft1_4FGL_J0118.9-2141_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/537861/ft2_4FGL_J0118.9-2141_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/537861/ft1_4FGL_J0118.9-2141_daily_bin50.fits outfile=/scratch/kocevski/537861/ft1_filteredMKT_4FGL_J0118.9-2141_daily_bin50.fits ra=19.7254 dec=-21.6948 rad=12.0 tmin=252288001.0 tmax=252547201.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.34
sys 1.06

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/537861/ft2_4FGL_J0118.9-2141_daily_bin50.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/537861/ft1_filteredMKT_4FGL_J0118.9-2141_daily_bin50.fits evtable="EVENTS" outfile="/scratch/kocevski/537861/ft1_filtered_4FGL_J0118.9-2141_daily_bin50.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 1.38
user 0.33
sys 1.03

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/537861/ft1_filtered_4FGL_J0118.9-2141_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/537861/ft2_4FGL_J0118.9-2141_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/537861/ltcube_252288001_252547201_4FGL_J0118.9-2141_daily_bin50.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/537861/ft2_4FGL_J0118.9-2141_daily_bin50.fits
.....................!
real 13.90
user 12.50
sys 1.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/537861/ft1_filtered_4FGL_J0118.9-2141_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/537861/ft2_4FGL_J0118.9-2141_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/537861/ltcube_252288001_252547201_4FGL_J0118.9-2141_daily_bin50.fits outfile=/scratch/kocevski/537861/expmap_252288001_252547201_4FGL_J0118.9-2141_daily_bin50.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/537861/ltcube_252288001_252547201_4FGL_J0118.9-2141_daily_bin50.fits
.....................!
real 191.99
user 185.37
sys 5.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 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/537861/ft1_filtered_4FGL_J0118.9-2141_daily_bin50.fits scfile=/scratch/kocevski/537861/ft2_4FGL_J0118.9-2141_daily_bin50.fits outfile=/scratch/kocevski/537861/cmap_252288001_252547201_4FGL_J0118.9-2141_daily_bin50.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 1.40
user 0.36
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/537861/ft1_filtered_4FGL_J0118.9-2141_daily_bin50.fits scfile=/scratch/kocevski/537861/ft2_4FGL_J0118.9-2141_daily_bin50.fits outfile=/scratch/kocevski/537861/cmap_HighResolution_252288001_252547201_4FGL_J0118.9-2141_daily_bin50.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 1.41
user 0.38
sys 1.03

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/537861/ft1_filtered_4FGL_J0118.9-2141_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/537861/ft2_4FGL_J0118.9-2141_daily_bin50.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/537861/Model_4FGL_J0118.9-2141_daily_bin50.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/537861/ft1_filtered_4FGL_J0118.9-2141_daily_bin50.fits.....................!
real 51.14
user 48.60
sys 2.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/537861/ft1_filtered_4FGL_J0118.9-2141_daily_bin50.fits', '/scratch/kocevski/537861/ft2_4FGL_J0118.9-2141_daily_bin50.fits', expMap='/scratch/kocevski/537861/expmap_252288001_252547201_4FGL_J0118.9-2141_daily_bin50.fits', expCube='/scratch/kocevski/537861/ltcube_252288001_252547201_4FGL_J0118.9-2141_daily_bin50.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/537861/Model_4FGL_J0118.9-2141_daily_bin50.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/537861/ft1_filtered_4FGL_J0118.9-2141_daily_bin50.fits
Spacecraft file(s): /scratch/kocevski/537861/ft2_4FGL_J0118.9-2141_daily_bin50.fits
Exposure map: /scratch/kocevski/537861/expmap_252288001_252547201_4FGL_J0118.9-2141_daily_bin50.fits
Exposure cube: /scratch/kocevski/537861/ltcube_252288001_252547201_4FGL_J0118.9-2141_daily_bin50.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/537861/Model_4FGL_J0118.9-2141_daily_bin50.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) = 5751.14771599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11259E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.9726       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3331       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12808E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10189E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.5230       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0196       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18743E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8188       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7536       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.420       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4036       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5490       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2165       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8117       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5448       1.0000         .10000E-03   10000.    
    19 'norm      '    3.0163       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0064       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93400       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=   5751.010     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2002 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    26.439        .12190E-05** at limit **
   2  norm          7.9707        5.1568       -.25747E-06   -.58844E-04
   3  Prefactor     5.8508        449.65       -.11382E-03   -.56997E-04
   4  Prefactor     .10000E-03    8.1816        .42371E-06** at limit **
   5  norm          .10000E-03    4.8743       -.33760E-05** at limit **
   6  norm          2.5232        4.5612        .92542E-06    .10438E-03
   7  Prefactor     .10000E-03    3.8892       -.74512E-06** at limit **
   8  Prefactor     .10000E-03    3.9661        .27219E-06** at limit **
   9  Prefactor     6.0200        3.9694       -.87021E-07   -.60577E-04
  10  Prefactor     .10000E-03    15.903       -.45303E-06** at limit **
  11  norm          1.8232        1.6639       -.30630E-06   -.36513E-03
  12  norm          2.7535        1.9287       -.45254E-07   -.86752E-04
  13  Prefactor     10.408        11.108       -.58242E-06   -.38709E-04
  14  Prefactor     5.4040        4.0305       -.74501E-06   -.16334E-03
  15  norm          1.5487        1.1347        .79715E-06    .18267E-02
  16  norm          1.2176        1.9738        .43235E-06    .27657E-03
  17  norm          2.8086        3.1641       -.48826E-06    .10925E-04
  18  Prefactor     4.5536        32.737        .66648E-06    .26468E-05
  19  norm          3.0163        2.9040       -.36091E-06    .61835E-04
  20  Prefactor     .10000E-03    4.2330        .55698E-06** at limit **
  21  Normalizat    1.0068        .18760        .11927E-04   -.69199E-03
  22  Prefactor     .93371        .20260       -.14313E-04    .64431E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 7.9707
  Prefactor  = 5.85075
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.52323
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.01998
  Prefactor  = 0.0001
  norm       = 1.82317
  norm       = 2.75353
  Prefactor  = 10.4078
  Prefactor  = 5.40402
  norm       = 1.54866
  norm       = 1.21756
  norm       = 2.80864
  Prefactor  = 4.55361
  norm       = 3.01632
  Prefactor  = 0.0001
  Normalizat = 1.0068
  Prefactor  = 0.933708
 **********
 **   18 **HESSE 
 **********

 FCN=   5751.010     FROM HESSE     STATUS=OK           350 CALLS     2352 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    27.199        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.9707        5.1576        .13410E-03   -1.5143    
   3  Prefactor     5.8508        472.76        .15950E-02   -1.5224    
   4  Prefactor     .10000E-03    8.2029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.8968        .16376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.5232        4.5494        .20968E-03   -1.5390    
   7  Prefactor     .10000E-03    3.9456        .14596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.9753        .14749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.0200        3.9677        .11725E-03   -1.5217    
  10  Prefactor     .10000E-03    16.233        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8232        1.6391        .88955E-04   -1.5438    
  12  norm          2.7535        1.9259        .84867E-04   -1.5376    
  13  Prefactor     10.408        11.087        .12412E-03   -1.5063    
  14  Prefactor     5.4040        4.0163        .12320E-03   -1.5243    
  15  norm          1.5487        1.1375        .33379E-03   -1.5459    
  16  norm          1.2176        1.9236        .12590E-03   -1.5487    
  17  norm          2.8086        3.1461        .13296E-03   -1.5373    
  18  Prefactor     4.5536        32.668        .18884E-03   -1.5281    
  19  norm          3.0163        2.9026        .12046E-03   -1.5361    
  20  Prefactor     .10000E-03    4.2434        .15239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0068        .20276        .22315E-03   -.92803    
  22  Prefactor     .93371        .21971        .26554E-03   -.94973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28605e-09
Minuit parameter uncertainties:
  1  0.000332485
  2  5.15793
  3  106.064
  4  2.8122e-05
  5  7.12008e-05
  6  4.55003
  7  9.61791e-06
  8  7.24099e-06
  9  3.9679
  10  0.000119734
  11  1.63909
  12  1.92598
  13  11.0895
  14  4.0165
  15  1.13756
  16  1.92367
  17  3.14624
  18  24.412
  19  2.90276
  20  1.0323e-05
  21  0.202918
  22  0.219918
Done.

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

Extracting fit parameters...

4FGL J0118.9-2141
   Spectrum: LogParabola
259         norm:  1.823e+00  1.639e+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:  9.337e-01  2.199e-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.007e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.45
Ra Dec: 19.725 -21.695
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 2.31e-08 +/- 2.08e-08
Energy Flux (Fixed Index): 9.60e-06 +/- 8.63e-06

TS (Fixed Index): 2.45
Ra Dec: 19.725 -21.695
Photon Flux Upper Limit: 7.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/537861/likelihoodResults_252288001_252547201_4FGL_J0118.9-2141_daily_bin50.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) = 5750.92592957
delta logL = 0.0845377116093

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5750.92275721
delta logL = 0.0877100685884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1856       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8997       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0157       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92647       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.

 FCN=   5750.923     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      226 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1856        70.953        .69607E-02   -.13794E-03
   2  alpha         1.8997        3.1986        .42761        .33783E-04
   3  Normalizat    1.0157        .10696        .44078E-01   -.11134E-04
   4  Prefactor     .92647        .84010E-01    .45341E-01    .44123E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.18557
  alpha      = 1.8997
  Normalizat = 1.01566
  Prefactor  = 0.926472
 **********
 **   18 **HESSE 
 **********

 FCN=   5750.923     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1856        1.9954        .96741E-04   -1.5412    
   2  alpha         1.8997        .77228        .18393E-01   -.24249    
   3  Normalizat    1.0157        .18791        .22226E-03   -.92508    
   4  Prefactor     .92647        .21672        .26643E-03   -.95222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47364e-10
Minuit parameter uncertainties:
  1  1.9955
  2  0.785949
  3  0.188032
  4  0.216927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/537861': 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) = 5750.92275721
delta logL = 0.0877100694634

Extracting fit parameters...

4FGL J0118.9-2141
   Spectrum: LogParabola
259         norm:  2.186e+00  1.996e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        alpha:  1.900e+00  7.859e-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:  9.265e-01  2.169e-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.016e+00  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.63
Ra Dec: 19.725 -21.695
Photon Index (Free Index): 1.90 +/- 0.79
Photon Flux (Free Index): 1.73e-08 +/- 1.96e-08
Energy Flux (Free Index): 1.29e-05 +/- 1.58e-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/537861/cmap_HighResolution_252288001_252547201_4FGL_J0118.9-2141_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-05', comment='SUCCESS', photon_flux='2.31e-08', energy_flux2='1.29e-05', photon_flux_error='2.08e-08', dlogl='8.77e-02', energy_flux='9.60e-06', photon_flux2='1.73e-08', job_status='DONE', time_completed='2021-08-13 23:00:58.208630', photon_index_error2='0.79', photon_index2='1.90', ts='2.45', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='7.55e-08', energy_flux_error2='1.58e-05', EG='1.01', time_epoch_completed='1628920858.21', return_code='0', job_id='537861', GAL2='0.93', EG2='1.02', return_code2='0', energy_flux_error='8.63e-06', photon_flux_error2='1.96e-08', ts2='2.63', photon_index='2.25' WHERE bin_id='50' AND source_name='4FGL J0118.9-2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:00:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 537861: <4FGL_J0118.9-2141_daily_bin50> in cluster <slac> Done

Job <4FGL_J0118.9-2141_daily_bin50> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Aug 13 22:50:22 2021
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 22:50:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 22:50:45 2021
Terminated at Fri Aug 13 23:00:59 2021
Results reported at Fri Aug 13 23:00:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.9-2141_daily_bin50 19.7254 -21.6948 252288001 252547201 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 :                                   598.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            637 sec.

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

