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


Performing analysis on: 4FGL_J0118.9-2141_daily_bin1090
RA = 19.7254, Dec = -21.6948
tmin = 521856001, tmax = 522115201
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='542491', job_status='RUN', time_executed='2021-08-13 23:09:30.707819', time_epoch_executed='1628921370.71' WHERE source_name='4FGL J0118.9-2141' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542491

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542491/ft1_4FGL_J0118.9-2141_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542491/ft2_4FGL_J0118.9-2141_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542491/ft1_4FGL_J0118.9-2141_daily_bin1090.fits outfile=/scratch/kocevski/542491/ft1_filteredMKT_4FGL_J0118.9-2141_daily_bin1090.fits ra=19.7254 dec=-21.6948 rad=12.0 tmin=521856001.0 tmax=522115201.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 13.30
user 3.51
sys 9.54

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/542491/ft1_filtered_4FGL_J0118.9-2141_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/542491/ft2_4FGL_J0118.9-2141_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/542491/ltcube_521856001_522115201_4FGL_J0118.9-2141_daily_bin1090.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/542491/ft2_4FGL_J0118.9-2141_daily_bin1090.fits
.....................!
real 26.87
user 14.61
sys 12.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542491/ft1_filtered_4FGL_J0118.9-2141_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/542491/ft2_4FGL_J0118.9-2141_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/542491/ltcube_521856001_522115201_4FGL_J0118.9-2141_daily_bin1090.fits outfile=/scratch/kocevski/542491/expmap_521856001_522115201_4FGL_J0118.9-2141_daily_bin1090.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/542491/ltcube_521856001_522115201_4FGL_J0118.9-2141_daily_bin1090.fits
.....................!
real 206.31
user 185.95
sys 19.43

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/542491/ft1_filtered_4FGL_J0118.9-2141_daily_bin1090.fits scfile=/scratch/kocevski/542491/ft2_4FGL_J0118.9-2141_daily_bin1090.fits outfile=/scratch/kocevski/542491/cmap_521856001_522115201_4FGL_J0118.9-2141_daily_bin1090.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 10.71
user 0.36
sys 10.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542491/ft1_filtered_4FGL_J0118.9-2141_daily_bin1090.fits scfile=/scratch/kocevski/542491/ft2_4FGL_J0118.9-2141_daily_bin1090.fits outfile=/scratch/kocevski/542491/cmap_HighResolution_521856001_522115201_4FGL_J0118.9-2141_daily_bin1090.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 10.67
user 0.38
sys 10.21

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/542491/ft1_filtered_4FGL_J0118.9-2141_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/542491/ft2_4FGL_J0118.9-2141_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/542491/Model_4FGL_J0118.9-2141_daily_bin1090.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/542491/ft1_filtered_4FGL_J0118.9-2141_daily_bin1090.fits.....................!
real 52.79
user 37.52
sys 14.90

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.259       1.0000         .10000E-03   10000.    
     2 'norm      '    31.008       1.0000         .10000E-03   10000.    
     3 'Prefactor '    199.61       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22269E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    3.5681       1.0000         .10000E-03   10000.    
     6 'norm      '    .11511E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18302E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4339       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.101       1.0000         .10000E-03   10000.    
    12 'norm      '    3.4703       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25682E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1673       1.0000         .10000E-03   10000.    
    15 'norm      '    .48500       1.0000         .10000E-03   10000.    
    16 'norm      '    .66771       1.0000         .10000E-03   10000.    
    17 'norm      '    .15028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .97371E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10374E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.535       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92656       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .68704       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3983.816     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1746 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.151        12.781       -.99196E-05    .57071E-02
   2  norm          30.970        10.028       -.21194E-04   -.46132E-02
   3  Prefactor     191.59        166.69       -.18355E-04   -.99080E-03
   4  Prefactor     .10001E-03    14.946       -.14956E-05** at limit **
   5  norm          3.7986        10.407        .31144E-04   -.40551E-02
   6  norm          .10000E-03    5.6213        .53440E-05** at limit **
   7  Prefactor     .10000E-03    3.6283       -.34039E-06** at limit **
   8  Prefactor     .10000E-03    4.0008       -.68104E-06** at limit **
   9  Prefactor     3.4217        4.4922       -.31656E-05    .17458E-03
  10  Prefactor     .10000E-03    7.4298       -.18467E-06** at limit **
  11  norm          10.109        3.7023        .97147E-06   -.55403E-03
  12  norm          3.4639        2.2401        .66794E-07    .13534E-02
  13  Prefactor     .10000E-03    9.3307        .30141E-05** at limit **
  14  Prefactor     2.1690        4.4716       -.62867E-05   -.39902E-03
  15  norm          .48216        1.2709       -.58072E-06   -.10219E-02
  16  norm          .65649        1.9466        .13143E-05   -.22957E-03
  17  norm          .10000E-03    2.5861        .74597E-06** at limit **
  18  Prefactor     .10015E-03    28.930        .96801E-04** at limit **
  19  norm          .10000E-03    .88954        .11191E-06** at limit **
  20  Prefactor     12.435        16.132        .12312E-04   -.39483E-04
  21  Normalizat    .92872        .22057        .93458E-05    .13184E-03
  22  Prefactor     .68663        .23927       -.49483E-05    .23551E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 24.1509
  norm       = 30.9702
  Prefactor  = 191.593
  Prefactor  = 0.000100006
  norm       = 3.79863
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.42166
  Prefactor  = 0.0001
  norm       = 10.109
  norm       = 3.46386
  Prefactor  = 0.0001
  Prefactor  = 2.16902
  norm       = 0.482162
  norm       = 0.656488
  norm       = 0.0001
  Prefactor  = 0.000100151
  norm       = 0.0001
  Prefactor  = 12.435
  Normalizat = 0.928721
  Prefactor  = 0.686632
 **********
 **   18 **HESSE 
 **********

 FCN=   3983.816     FROM HESSE     STATUS=OK           388 CALLS     2134 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.151        14.481        .20332E-02   -1.4725    
   2  norm          30.970        10.375        .17988E-02   -1.4594    
   3  Prefactor     191.59        167.60        .71497E-03   -1.2931    
   4  Prefactor     .10001E-03    14.784        .10065E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7986        16.550        .53489E-02   -1.5318    
   6  norm          .10000E-03    5.5271        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6143        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.9969        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4217        4.5043        .54568E-02   -1.5338    
  10  Prefactor     .10000E-03    7.4265        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.109        3.7242        .31519E-02   -1.5072    
  12  norm          3.4639        2.2377        .54269E-02   -1.5336    
  13  Prefactor     .10000E-03    9.2238        .10727E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1690        4.5199        .69936E-02   -1.5413    
  15  norm          .48216        1.3059        .11209E-01   -1.5569    
  16  norm          .65649        2.0073        .11937E-01   -1.5546    
  17  norm          .10000E-03    2.4732        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10015E-03    29.901        .10390E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .88647        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.435        16.113        .28286E-02   -1.5003    
  21  Normalizat    .92872        .18521        .45240E-01   -.95458    
  22  Prefactor     .68663        .20161        .61817E-01   -1.0405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20152e-07
Minuit parameter uncertainties:
  1  14.4833
  2  10.376
  3  168.016
  4  0.000580992
  5  15.865
  6  0.000239571
  7  1.53023e-05
  8  5.0089e-05
  9  4.50473
  10  9.45318e-05
  11  3.72428
  12  2.23779
  13  5.19787e-05
  14  4.52058
  15  1.30594
  16  2.00748
  17  1.12814e-05
  18  0.00425614
  19  1.27476e-05
  20  16.1191
  21  0.185337
  22  0.201826
Done.

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

Extracting fit parameters...

4FGL J0118.9-2141
   Spectrum: LogParabola
259         norm:  1.011e+01  3.724e+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:  6.866e-01  2.018e-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.287e-01  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.38
Ra Dec: 19.725 -21.695
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 4.72e-08
Energy Flux (Fixed Index): 5.32e-05 +/- 1.96e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3983.81523273
delta logL = 0.0010614629482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3983.81461321
delta logL = 0.0016809851727

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.252       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2316       1.0000          .0000       5.0000    
     3 'Normalizat'    .93044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68546       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=   3983.815     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      232 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.253        4.4075        .67832E-04   -.30270E-03
   2  alpha         2.2316        .33010        .62540E-02   -.53570E-04
   3  Normalizat    .93054        .21376        .21206E-03    .15386E-04
   4  Prefactor     .68538        .23810        .27369E-03    .16470E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2525
  alpha      = 2.23162
  Normalizat = 0.930536
  Prefactor  = 0.685377
 **********
 **   18 **HESSE 
 **********

 FCN=   3983.815     FROM HESSE     STATUS=OK            25 CALLS      257 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.253        4.3412        .13566E-04   -1.5067    
   2  alpha         2.2316        .32503        .25016E-03   -.10756    
   3  Normalizat    .93054        .21389        .84825E-05   -.95395    
   4  Prefactor     .68538        .23828        .10948E-04   -1.0410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30075e-11
Minuit parameter uncertainties:
  1  4.34137
  2  0.325967
  3  0.214085
  4  0.238631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542491': 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) = 3983.81461307
delta logL = 0.00168112244228

Extracting fit parameters...

4FGL J0118.9-2141
   Spectrum: LogParabola
259         norm:  1.025e+01  4.341e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        alpha:  2.232e+00  3.260e-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:  6.854e-01  2.386e-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.305e-01  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.32
Ra Dec: 19.725 -21.695
Photon Index (Free Index): 2.23 +/- 0.33
Photon Flux (Free Index): 1.26e-07 +/- 5.34e-08
Energy Flux (Free Index): 5.39e-05 +/- 2.19e-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/542491/cmap_HighResolution_521856001_522115201_4FGL_J0118.9-2141_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='5.39e-05', photon_flux_error='4.72e-08', dlogl='1.68e-03', energy_flux='5.32e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-08-13 23:20:12.414875', photon_index_error2='0.33', photon_index2='2.23', ts='24.38', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='0.93', time_epoch_completed='1628922012.41', return_code='0', job_id='542491', GAL2='0.69', EG2='0.93', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='5.34e-08', ts2='24.32', photon_index='2.25' WHERE bin_id='1090' AND source_name='4FGL J0118.9-2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:20:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 542491: <4FGL_J0118.9-2141_daily_bin1090> in cluster <slac> Done

Job <4FGL_J0118.9-2141_daily_bin1090> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 13 23:05:22 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 23:05:50 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:05:50 2021
Terminated at Fri Aug 13 23:20:15 2021
Results reported at Fri Aug 13 23:20:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.9-2141_daily_bin1090 19.7254 -21.6948 521856001 522115201 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 :                                   779.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             215.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            893 sec.

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

