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


Performing analysis on: 4FGL_J0118.9-2141_daily_bin1561
RA = 19.7254, Dec = -21.6948
tmin = 643939201, tmax = 644198401
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='544243', job_status='RUN', time_executed='2021-08-13 23:15:16.209913', time_epoch_executed='1628921716.21' WHERE source_name='4FGL J0118.9-2141' and cadence='daily' and bin_id='1561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544243

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544243/ft1_4FGL_J0118.9-2141_daily_bin1561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544243/ft2_4FGL_J0118.9-2141_daily_bin1561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544243/ft1_4FGL_J0118.9-2141_daily_bin1561.fits outfile=/scratch/kocevski/544243/ft1_filteredMKT_4FGL_J0118.9-2141_daily_bin1561.fits ra=19.7254 dec=-21.6948 rad=12.0 tmin=643939201.0 tmax=644198401.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 8.53
user 4.21
sys 4.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/544243/ft2_4FGL_J0118.9-2141_daily_bin1561.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/544243/ft1_filteredMKT_4FGL_J0118.9-2141_daily_bin1561.fits evtable="EVENTS" outfile="/scratch/kocevski/544243/ft1_filtered_4FGL_J0118.9-2141_daily_bin1561.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 4.56
user 0.35
sys 4.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/544243/ft1_filtered_4FGL_J0118.9-2141_daily_bin1561.fits" evtable="EVENTS" scfile=/scratch/kocevski/544243/ft2_4FGL_J0118.9-2141_daily_bin1561.fits sctable="SC_DATA" outfile=/scratch/kocevski/544243/ltcube_643939201_644198401_4FGL_J0118.9-2141_daily_bin1561.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/544243/ft2_4FGL_J0118.9-2141_daily_bin1561.fits
.....................!
real 17.55
user 12.77
sys 4.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544243/ft1_filtered_4FGL_J0118.9-2141_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/544243/ft2_4FGL_J0118.9-2141_daily_bin1561.fits sctable="SC_DATA" expcube=/scratch/kocevski/544243/ltcube_643939201_644198401_4FGL_J0118.9-2141_daily_bin1561.fits outfile=/scratch/kocevski/544243/expmap_643939201_644198401_4FGL_J0118.9-2141_daily_bin1561.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/544243/ltcube_643939201_644198401_4FGL_J0118.9-2141_daily_bin1561.fits
.....................!
real 198.16
user 187.26
sys 10.45

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/544243/ft1_filtered_4FGL_J0118.9-2141_daily_bin1561.fits scfile=/scratch/kocevski/544243/ft2_4FGL_J0118.9-2141_daily_bin1561.fits outfile=/scratch/kocevski/544243/cmap_643939201_644198401_4FGL_J0118.9-2141_daily_bin1561.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 4.49
user 0.37
sys 4.08

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/544243/ft1_filtered_4FGL_J0118.9-2141_daily_bin1561.fits scfile=/scratch/kocevski/544243/ft2_4FGL_J0118.9-2141_daily_bin1561.fits outfile=/scratch/kocevski/544243/cmap_HighResolution_643939201_644198401_4FGL_J0118.9-2141_daily_bin1561.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 4.50
user 0.41
sys 4.06

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/544243/ft1_filtered_4FGL_J0118.9-2141_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/544243/ft2_4FGL_J0118.9-2141_daily_bin1561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/544243/Model_4FGL_J0118.9-2141_daily_bin1561.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/544243/ft1_filtered_4FGL_J0118.9-2141_daily_bin1561.fits.....................!
real 59.86
user 53.08
sys 6.47

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2353       1.0000         .10000E-03   10000.    
     2 'norm      '    9.8329       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    61.454       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8001       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.228       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .74062       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3251       1.0000         .10000E-03   10000.    
    11 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .54995       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9128       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9035       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8328       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8295       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.5012       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.137       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95356       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87916       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=   6474.085     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2000 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2353        8.1283        .34926E-02    .89004E-03
   2  norm          9.8328        4.9057        .31948E-02    .23564E-03
   3  Prefactor     .10000E-03    35.526        .90712E-02** at limit **
   4  Prefactor     61.454        22.676        .12796E-02   -.17347E-03
   5  norm          .10000E-03    7.9596        .90712E-02** at limit **
   6  norm          1.8002        2.2672        .77896E-02   -.13185E-04
   7  Prefactor     .10000E-03    3.4114        .90712E-02** at limit **
   8  Prefactor     13.224        11.885        .27533E-02   -.24967E-03
   9  Prefactor     .74093        3.4161        .12217E-01    .72434E-03
  10  Prefactor     8.3252        8.6053        .34736E-02    .61338E-03
  11  norm          .10000E-03    .90715        .90712E-02** at limit **
  12  norm          .54946        1.2002        .23592E-01    .88361E-03
  13  Prefactor     4.9124        6.3543        .45366E-02    .61790E-04
  14  Prefactor     2.9042        4.9181        .59615E-02    .93987E-03
  15  norm          1.8327        1.1120        .77062E-02    .31631E-03
  16  norm          2.8282        2.1366        .60442E-02    .26254E-03
  17  norm          .10000E-03    1.1136        .90712E-02** at limit **
  18  Prefactor     .10000E-03    10.723        .90712E-02** at limit **
  19  norm          6.5010        3.0845        .39350E-02    .38512E-03
  20  Prefactor     12.137        9.7003        .28746E-02   -.12982E-03
  21  Normalizat    .95370        .15654        .45582E-01    .23328E-03
  22  Prefactor     .87898        .17644        .44739E-01    .13840E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.23528
  norm       = 9.83275
  Prefactor  = 0.0001
  Prefactor  = 61.4542
  norm       = 0.0001
  norm       = 1.80025
  Prefactor  = 0.0001
  Prefactor  = 13.2244
  Prefactor  = 0.740928
  Prefactor  = 8.32515
  norm       = 0.0001
  norm       = 0.549464
  Prefactor  = 4.9124
  Prefactor  = 2.90416
  norm       = 1.83266
  norm       = 2.82817
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.50096
  Prefactor  = 12.1366
  Normalizat = 0.953696
  Prefactor  = 0.878981
 **********
 **   18 **HESSE 
 **********

 FCN=   6474.085     FROM HESSE     STATUS=OK           352 CALLS     2352 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2353        8.1258        .69852E-03   -1.5134    
   2  norm          9.8328        4.9054        .12150E-03   -1.5081    
   3  Prefactor     .10000E-03    35.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     61.454        22.674        .51184E-04   -1.4138    
   5  norm          .10000E-03    8.0544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8002        2.2569        .13237E-03   -1.5440    
   7  Prefactor     .10000E-03    3.4428        .14485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.224        11.849        .11013E-03   -1.4980    
   9  Prefactor     .74093        3.4965        .27954E-03   -1.5536    
  10  Prefactor     8.3252        8.5119        .13894E-03   -1.5131    
  11  norm          .10000E-03    .91013        .74283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .54946        .91538        .12567E-02   -1.5560    
  13  Prefactor     4.9124        6.3382        .18146E-03   -1.5265    
  14  Prefactor     2.9042        4.8565        .20034E-03   -1.5367    
  15  norm          1.8327        1.1031        .63309E-04   -1.5437    
  16  norm          2.8282        2.1252        .95007E-04   -1.5372    
  17  norm          .10000E-03    1.1381        .82802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.5010        3.0880        .93752E-04   -1.5198    
  20  Prefactor     12.137        9.7000        .11498E-03   -1.5011    
  21  Normalizat    .95370        .18474        .10999E-02   -.94598    
  22  Prefactor     .87898        .20725        .26855E-03   -.96879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2419e-09
Minuit parameter uncertainties:
  1  8.12685
  2  4.90563
  3  3.87019e-05
  4  22.6768
  5  5.86956e-06
  6  2.25701
  7  1.10915e-06
  8  11.8507
  9  3.21917
  10  8.51314
  11  3.69935e-09
  12  0.915402
  13  6.33906
  14  4.85718
  15  1.10316
  16  2.12529
  17  1.07802e-06
  18  2.26253e-06
  19  3.08808
  20  9.70121
  21  0.184868
  22  0.207431
Done.

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

Extracting fit parameters...

4FGL J0118.9-2141
   Spectrum: LogParabola
259         norm:  1.000e-04  3.699e-09  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:  8.790e-01  2.074e-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.537e-01  1.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/544243/likelihoodResults_643939201_644198401_4FGL_J0118.9-2141_daily_bin1561.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) = 6474.08983207
delta logL = -0.00521170471347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6474.0845903
delta logL = 3.00697029161e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10232E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5335       1.0000          .0000       5.0000    
     3 'Normalizat'    .95368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87899       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6474.081     FROM MIGRAD    STATUS=FAILED       198 CALLS      396 TOTAL
                     EDM=   .15E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50660E-02    24.767        .33287E-03    .14319E-02
   2  alpha         4.4942        2.7081        .50000        .90334E-03
   3  Normalizat    .94843        .66072E-01    .22052E-03   -.63670E-03
   4  Prefactor     .88276        .74722E-01    .26803E-03   -.72975E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6474.081     FROM SIMPLEX   STATUS=UNCHANGED    105 CALLS      501 TOTAL
                     EDM=   .44E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50660E-02    24.767        .43433E-04    .14319E-02
   2  alpha         4.4942        2.7081        .84646E-02    .90334E-03
   3  Normalizat    .94843        .66072E-01    .95533E-04   -.63670E-03
   4  Prefactor     .88276        .74722E-01    .33649E-04   -.72975E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6474.081     FROM MIGRAD    STATUS=FAILED        45 CALLS      546 TOTAL
                     EDM=   .58E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50650E-02    19.630         .0000        .24872E-02
   2  alpha         4.4943        2.6424         .0000        .90559E-03
   3  Normalizat    .94843        .49391E-01     .0000       -.65557E-03
   4  Prefactor     .88276        .58362E-01     .0000       -.74309E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00506495
  alpha      = 4.49434
  Normalizat = 0.94843
  Prefactor  = 0.882755
 **********
 **   18 **HESSE 
 **********

 FCN=   6474.081     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      573 TOTAL
                     EDM=   .12E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50650E-02    19.430        .53260E-06   -1.5722    
   2  alpha         4.4943        2.7197        .50000        .92353    
   3  Normalizat    .94843        .48966E-01    .88207E-05   -.94779    
   4  Prefactor     .88276        .57868E-01    .10721E-04   -.96746    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.00115469
Minuit parameter uncertainties:
  1  0.621393
  2  56.2042
  3  0.0489685
  4  0.0578721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544243': 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): 1
logL (Free Index) = 6474.08114879
delta logL = 0.00347158312252

Extracting fit parameters...

4FGL J0118.9-2141
   Spectrum: LogParabola
259         norm:  5.065e-03  6.214e-01  1.000e-04  1.000e+04 ( 1.000e-12)
260        alpha:  4.494e+00  5.620e+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:  8.828e-01  5.787e-02  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.484e-01  4.897e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 19.725 -21.695

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/544243/cmap_HighResolution_643939201_644198401_4FGL_J0118.9-2141_daily_bin1561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.99e-05', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2021-08-13 23:27:11.028077', job_id='544243', GAL2='0.88', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1628922431.03', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.47e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1561' AND source_name='4FGL J0118.9-2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:27:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 544243: <4FGL_J0118.9-2141_daily_bin1561> in cluster <slac> Done

Job <4FGL_J0118.9-2141_daily_bin1561> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 13 23:10:38 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:12:33 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:12:33 2021
Terminated at Fri Aug 13 23:27:12 2021
Results reported at Fri Aug 13 23:27:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.9-2141_daily_bin1561 19.7254 -21.6948 643939201 644198401 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 :                                   769.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            994 sec.

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

