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


Performing analysis on: 4FGL_J0118.9-2141_daily_bin1462
RA = 19.7254, Dec = -21.6948
tmin = 618278401, tmax = 618537601
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='544097', job_status='RUN', time_executed='2021-08-13 23:13:10.262614', time_epoch_executed='1628921590.26' WHERE source_name='4FGL J0118.9-2141' and cadence='daily' and bin_id='1462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544097

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544097/ft1_4FGL_J0118.9-2141_daily_bin1462.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544097/ft2_4FGL_J0118.9-2141_daily_bin1462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544097/ft1_4FGL_J0118.9-2141_daily_bin1462.fits outfile=/scratch/kocevski/544097/ft1_filteredMKT_4FGL_J0118.9-2141_daily_bin1462.fits ra=19.7254 dec=-21.6948 rad=12.0 tmin=618278401.0 tmax=618537601.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.04
user 2.90
sys 1.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/544097/ft2_4FGL_J0118.9-2141_daily_bin1462.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/544097/ft1_filteredMKT_4FGL_J0118.9-2141_daily_bin1462.fits evtable="EVENTS" outfile="/scratch/kocevski/544097/ft1_filtered_4FGL_J0118.9-2141_daily_bin1462.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.39
user 0.28
sys 1.08

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/544097/ft1_filtered_4FGL_J0118.9-2141_daily_bin1462.fits" evtable="EVENTS" scfile=/scratch/kocevski/544097/ft2_4FGL_J0118.9-2141_daily_bin1462.fits sctable="SC_DATA" outfile=/scratch/kocevski/544097/ltcube_618278401_618537601_4FGL_J0118.9-2141_daily_bin1462.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/544097/ft2_4FGL_J0118.9-2141_daily_bin1462.fits
.....................!
real 11.85
user 10.45
sys 1.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544097/ft1_filtered_4FGL_J0118.9-2141_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/544097/ft2_4FGL_J0118.9-2141_daily_bin1462.fits sctable="SC_DATA" expcube=/scratch/kocevski/544097/ltcube_618278401_618537601_4FGL_J0118.9-2141_daily_bin1462.fits outfile=/scratch/kocevski/544097/expmap_618278401_618537601_4FGL_J0118.9-2141_daily_bin1462.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/544097/ltcube_618278401_618537601_4FGL_J0118.9-2141_daily_bin1462.fits
.....................!
real 157.29
user 150.97
sys 5.85

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/544097/ft1_filtered_4FGL_J0118.9-2141_daily_bin1462.fits scfile=/scratch/kocevski/544097/ft2_4FGL_J0118.9-2141_daily_bin1462.fits outfile=/scratch/kocevski/544097/cmap_618278401_618537601_4FGL_J0118.9-2141_daily_bin1462.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.43
user 0.31
sys 1.08

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/544097/ft1_filtered_4FGL_J0118.9-2141_daily_bin1462.fits scfile=/scratch/kocevski/544097/ft2_4FGL_J0118.9-2141_daily_bin1462.fits outfile=/scratch/kocevski/544097/cmap_HighResolution_618278401_618537601_4FGL_J0118.9-2141_daily_bin1462.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.40
user 0.32
sys 1.06

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/544097/ft1_filtered_4FGL_J0118.9-2141_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/544097/ft2_4FGL_J0118.9-2141_daily_bin1462.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/544097/Model_4FGL_J0118.9-2141_daily_bin1462.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/544097/ft1_filtered_4FGL_J0118.9-2141_daily_bin1462.fits.....................!
real 32.20
user 29.84
sys 2.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.336       1.0000         .10000E-03   10000.    
     2 'norm      '    22.757       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.481       1.0000         .10000E-03   10000.    
     5 'norm      '    13.871       1.0000         .10000E-03   10000.    
     6 'norm      '    2.1215       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1568       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.395       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11198E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6438       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .77114E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .62556       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7872       1.0000         .10000E-03   10000.    
    17 'norm      '    .10620E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.4636       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97139       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75425       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=   3793.193     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2086 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.337        16.514       -.18801E-06    .36497E-05
   2  norm          22.756        10.827       -.39412E-07    .80396E-05
   3  Prefactor     .10000E-03    38.709        .12897E-04** at limit **
   4  Prefactor     17.481        20.430        .42169E-06   -.72643E-05
   5  norm          13.874        12.523        .25950E-08    .85928E-05
   6  norm          2.1216        3.5325       -.64394E-06   -.19070E-03
   7  Prefactor     5.1567        8.1686       -.11421E-04   -.26669E-03
   8  Prefactor     10.391        14.563       -.98513E-06   -.13996E-04
   9  Prefactor     .10000E-03    2.3877       -.12118E-06** at limit **
  10  Prefactor     .10000E-03    25.761        .13218E-04** at limit **
  11  norm          1.6441        2.4034       -.26446E-07   -.12682E-02
  12  norm          .10000E-03    .81677        .19939E-07** at limit **
  13  Prefactor     .10070E-03    21.085        .31440E-06** at limit **
  14  Prefactor     .10000E-03    2.5473        .53376E-07** at limit **
  15  norm          .62578        .94375       -.15861E-06   -.51575E-03
  16  norm          2.7848        3.0612       -.27926E-06   -.30478E-03
  17  norm          .10000E-03    2.6138       -.12541E-06** at limit **
  18  Prefactor     .10000E-03    29.586       -.23436E-04** at limit **
  19  norm          3.4637        3.2446       -.27801E-06   -.12295E-03
  20  Prefactor     .10000E-03    5.7359        .18159E-06** at limit **
  21  Normalizat    .97142        .19827        .13528E-05   -.10011E-03
  22  Prefactor     .75413        .21621        .21302E-05   -.52743E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.3367
  norm       = 22.7562
  Prefactor  = 0.0001
  Prefactor  = 17.4808
  norm       = 13.874
  norm       = 2.12164
  Prefactor  = 5.15672
  Prefactor  = 10.3915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.64406
  norm       = 0.0001
  Prefactor  = 0.000100699
  Prefactor  = 0.0001
  norm       = 0.625777
  norm       = 2.78477
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.46367
  Prefactor  = 0.0001
  Normalizat = 0.971415
  Prefactor  = 0.754129
 **********
 **   18 **HESSE 
 **********

 FCN=   3793.193     FROM HESSE     STATUS=OK           352 CALLS     2438 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.337        16.513        .79585E-04   -1.4701    
   2  norm          22.756        10.833        .83965E-04   -1.4754    
   3  Prefactor     .10000E-03    38.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.481        20.424        .95793E-04   -1.4872    
   5  norm          13.874        12.523        .10755E-03   -1.4963    
   6  norm          2.1216        3.5151        .14516E-03   -1.5417    
   7  Prefactor     5.1567        8.2055        .17703E-03   -1.5254    
   8  Prefactor     10.391        14.435        .12427E-03   -1.5063    
   9  Prefactor     .10000E-03    2.4581        .18579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.221        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6441        2.3504        .10896E-03   -1.5452    
  12  norm          .10000E-03    .81800        .54333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10070E-03    213.55        .51904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.5600        .95839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .62578        .88712        .70744E-03   -1.5550    
  16  norm          2.7848        2.9703        .10240E-03   -1.5374    
  17  norm          .10000E-03    5.5961        .19018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.4637        3.2411        .10321E-03   -1.5336    
  20  Prefactor     .10000E-03    5.7409        .14406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97142        .23252        .21326E-03   -.93994    
  22  Prefactor     .75413        .25483        .26954E-03   -1.0144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76298e-09
Minuit parameter uncertainties:
  1  16.5161
  2  10.8339
  3  1.32875e-05
  4  20.432
  5  12.5251
  6  3.5154
  7  8.20729
  8  14.4402
  9  1.11846e-05
  10  1.49065e-05
  11  2.35055
  12  3.04746e-06
  13  0.0245271
  14  7.47642e-06
  15  0.887143
  16  2.97045
  17  3.22983e-05
  18  1.44362e-05
  19  3.24128
  20  3.81246e-06
  21  0.232765
  22  0.255225
Done.

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

Extracting fit parameters...

4FGL J0118.9-2141
   Spectrum: LogParabola
259         norm:  1.644e+00  2.351e+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:  7.541e-01  2.552e-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:  9.714e-01  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/544097/likelihoodResults_618278401_618537601_4FGL_J0118.9-2141_daily_bin1462.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) = 3792.84500212
delta logL = 0.347913943384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3792.83759431
delta logL = 0.355321754478

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94948       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1177       1.0000          .0000       5.0000    
     3 'Normalizat'    .93420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77829       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=   3792.838     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      235 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94879        18.517        .12796E-01    .48527E-03
   2  alpha         3.1184        4.0506        .31463        .36955E-04
   3  Normalizat    .93437        .46372E-01    .45337E-01   -.23080E-04
   4  Prefactor     .77846        .51795E-01    .43434E-01   -.10947E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.948787
  alpha      = 3.11837
  Normalizat = 0.934371
  Prefactor  = 0.778464
 **********
 **   18 **HESSE 
 **********

 FCN=   3792.838     FROM HESSE     STATUS=OK            35 CALLS      270 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94879        2.5889        .58635E-03   -1.5513    
   2  alpha         3.1184        1.4877        .11596E-01    .24994    
   3  Normalizat    .93437        .23158        .21685E-03   -.95263    
   4  Prefactor     .77846        .25740        .26558E-03   -1.0053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33127e-09
Minuit parameter uncertainties:
  1  2.58921
  2  1.60191
  3  0.231831
  4  0.257796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544097': 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) = 3792.8375891
delta logL = 0.355326959101

Extracting fit parameters...

4FGL J0118.9-2141
   Spectrum: LogParabola
259         norm:  9.488e-01  2.589e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        alpha:  3.118e+00  1.602e+00  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:  7.785e-01  2.578e-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:  9.344e-01  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 19.725 -21.695
Photon Index (Free Index): 3.12 +/- 1.60
Photon Flux (Free Index): 5.18e-08 +/- 5.61e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.12e-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/544097/cmap_HighResolution_618278401_618537601_4FGL_J0118.9-2141_daily_bin1462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-05', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='3.55e-01', photon_flux2='5.18e-08', job_status='DONE', time_completed='2021-08-13 23:20:20.043866', photon_index_error2='1.60', photon_index2='3.12', ts='0.68', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='9.67e-08', energy_flux_error2='1.12e-05', EG='0.97', time_epoch_completed='1628922020.04', return_code='0', job_id='544097', GAL2='0.78', EG2='0.93', return_code2='0', photon_flux_error2='5.61e-08', ts2='1.41', photon_index='2.25' WHERE bin_id='1462' AND source_name='4FGL J0118.9-2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:20:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 544097: <4FGL_J0118.9-2141_daily_bin1462> in cluster <slac> Done

Job <4FGL_J0118.9-2141_daily_bin1462> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 23:10:28 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:11: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 23:11:18 2021
Terminated at Fri Aug 13 23:20:20 2021
Results reported at Fri Aug 13 23:20:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.9-2141_daily_bin1462 19.7254 -21.6948 618278401 618537601 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 :                                   434.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   542 sec.
    Turnaround time :                            592 sec.

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

