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


Performing analysis on: 4FGL_J0118.9-2141_daily_bin482
RA = 19.7254, Dec = -21.6948
tmin = 364262401, tmax = 364521601
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='539520', job_status='RUN', time_executed='2021-08-13 22:59:17.865578', time_epoch_executed='1628920757.87' WHERE source_name='4FGL J0118.9-2141' and cadence='daily' and bin_id='482'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/539520

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/539520/ft1_4FGL_J0118.9-2141_daily_bin482.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/539520/ft2_4FGL_J0118.9-2141_daily_bin482.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/539520/ft1_4FGL_J0118.9-2141_daily_bin482.fits outfile=/scratch/kocevski/539520/ft1_filteredMKT_4FGL_J0118.9-2141_daily_bin482.fits ra=19.7254 dec=-21.6948 rad=12.0 tmin=364262401.0 tmax=364521601.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 12.39
user 3.00
sys 9.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/539520/ft2_4FGL_J0118.9-2141_daily_bin482.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/539520/ft1_filteredMKT_4FGL_J0118.9-2141_daily_bin482.fits evtable="EVENTS" outfile="/scratch/kocevski/539520/ft1_filtered_4FGL_J0118.9-2141_daily_bin482.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 9.70
user 0.32
sys 9.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/539520/ft1_filtered_4FGL_J0118.9-2141_daily_bin482.fits" evtable="EVENTS" scfile=/scratch/kocevski/539520/ft2_4FGL_J0118.9-2141_daily_bin482.fits sctable="SC_DATA" outfile=/scratch/kocevski/539520/ltcube_364262401_364521601_4FGL_J0118.9-2141_daily_bin482.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/539520/ft2_4FGL_J0118.9-2141_daily_bin482.fits
.....................!
real 24.58
user 13.73
sys 10.69

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/539520/ft1_filtered_4FGL_J0118.9-2141_daily_bin482.fits evtable="EVENTS" scfile=/scratch/kocevski/539520/ft2_4FGL_J0118.9-2141_daily_bin482.fits sctable="SC_DATA" expcube=/scratch/kocevski/539520/ltcube_364262401_364521601_4FGL_J0118.9-2141_daily_bin482.fits outfile=/scratch/kocevski/539520/expmap_364262401_364521601_4FGL_J0118.9-2141_daily_bin482.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/539520/ltcube_364262401_364521601_4FGL_J0118.9-2141_daily_bin482.fits
.....................!
real 203.32
user 186.00
sys 16.68

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/539520/ft1_filtered_4FGL_J0118.9-2141_daily_bin482.fits scfile=/scratch/kocevski/539520/ft2_4FGL_J0118.9-2141_daily_bin482.fits outfile=/scratch/kocevski/539520/cmap_364262401_364521601_4FGL_J0118.9-2141_daily_bin482.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 9.47
user 0.37
sys 9.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/539520/ft1_filtered_4FGL_J0118.9-2141_daily_bin482.fits scfile=/scratch/kocevski/539520/ft2_4FGL_J0118.9-2141_daily_bin482.fits outfile=/scratch/kocevski/539520/cmap_HighResolution_364262401_364521601_4FGL_J0118.9-2141_daily_bin482.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 9.53
user 0.38
sys 9.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/539520/ft1_filtered_4FGL_J0118.9-2141_daily_bin482.fits evtable="EVENTS" scfile=/scratch/kocevski/539520/ft2_4FGL_J0118.9-2141_daily_bin482.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/539520/Model_4FGL_J0118.9-2141_daily_bin482.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/539520/ft1_filtered_4FGL_J0118.9-2141_daily_bin482.fits.....................!
real 67.07
user 53.94
sys 12.96

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.850       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0555       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3897       1.0000         .10000E-03   10000.    
     5 'norm      '    6.1733       1.0000         .10000E-03   10000.    
     6 'norm      '    1.2294       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .97333       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .88698       1.0000         .10000E-03   10000.    
    11 'norm      '    6.9719       1.0000         .10000E-03   10000.    
    12 'norm      '    .68826       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.981       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .47129       1.0000         .10000E-03   10000.    
    15 'norm      '    .34753E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    4.0182       1.0000         .10000E-03   10000.    
    17 'norm      '    6.8967       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0850       1.0000         .10000E-03   10000.    
    19 'norm      '    .53652       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7520       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0897       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .57785       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=   6669.755     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2461 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.849        10.540        .65206E-06   -.79870E-04
   2  norm          .10000E-03    1.4401       -.63208E-07** at limit **
   3  Prefactor     .97424        39.424       -.40124E-05    .93089E-04
   4  Prefactor     1.3907        32.324       -.18556E-04   -.43299E-04
   5  norm          6.1737        5.8940       -.23022E-06    .25045E-03
   6  norm          1.2294        1.3896        .14691E-07    .19175E-03
   7  Prefactor     .10000E-03    2.0538       -.85582E-09** at limit **
   8  Prefactor     .10000E-03    4.0786       -.71482E-07** at limit **
   9  Prefactor     .97532        1.9279       -.27380E-06   -.71844E-03
  10  Prefactor     .87821        7.8258       -.11088E-05    .18546E-03
  11  norm          6.9730        3.2056        .25987E-06    .22298E-02
  12  norm          .68819        1.1334        .13306E-07    .32087E-04
  13  Prefactor     10.980        8.2642       -.16702E-05    .40218E-03
  14  Prefactor     .47136        2.3558       -.93339E-06    .48406E-03
  15  norm          .36123E-01    .43209       -.45570E-06    .18078E-02
  16  norm          4.0184        2.1338       -.15028E-07    .56350E-03
  17  norm          6.8969        2.7725       -.85762E-07    .58473E-04
  18  Prefactor     3.0817        35.334        .11922E-04   -.11812E-03
  19  norm          .53629        1.9812       -.87737E-06   -.57176E-03
  20  Prefactor     5.7543        9.8665       -.19388E-05   -.24680E-04
  21  Normalizat    1.0896        .14239        .13918E-05    .11364E-02
  22  Prefactor     .57787        .15543        .51255E-06    .65952E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.8495
  norm       = 0.0001
  Prefactor  = 0.974244
  Prefactor  = 1.39067
  norm       = 6.17366
  norm       = 1.2294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.975324
  Prefactor  = 0.878207
  norm       = 6.97298
  norm       = 0.688194
  Prefactor  = 10.9801
  Prefactor  = 0.471355
  norm       = 0.0361232
  norm       = 4.01841
  norm       = 6.89686
  Prefactor  = 3.08174
  norm       = 0.536288
  Prefactor  = 5.75431
  Normalizat = 1.08964
  Prefactor  = 0.577867
 **********
 **   18 **HESSE 
 **********

 FCN=   6669.755     FROM HESSE     STATUS=OK           364 CALLS     2825 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.849        10.518        .12163E-03   -1.5049    
   2  norm          .10000E-03    1.4555        .95704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .97424        396.32        .98077E-02   -1.5511    
   4  Prefactor     1.3907        35.848        .36868E-03   -1.5472    
   5  norm          6.1737        5.9034        .16158E-03   -1.5211    
   6  norm          1.2294        1.3915        .99919E-04   -1.5486    
   7  Prefactor     .10000E-03    2.0837        .11426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.1205        .16104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .97532        1.5468        .15475E-02   -1.5510    
  10  Prefactor     .87821        40.655        .31415E-02   -1.5521    
  11  norm          6.9730        3.7734        .68378E-04   -1.5180    
  12  norm          .68819        .90508        .10802E-02   -1.5542    
  13  Prefactor     10.980        8.1914        .12090E-03   -1.5045    
  14  Prefactor     .47136        7.3048        .21003E-02   -1.5571    
  15  norm          .36123E-01    4.3182        .10098E-02   -1.5670    
  16  norm          4.0184        2.1133        .79707E-04   -1.5307    
  17  norm          6.8969        2.7793        .81755E-04   -1.5183    
  18  Prefactor     3.0817        33.522        .23091E-03   -1.5357    
  19  norm          .53629        3.4357        .20738E-02   -1.5562    
  20  Prefactor     5.7543        9.8954        .16747E-03   -1.5228    
  21  Normalizat    1.0896        .16800        .19000E-03   -.90085    
  22  Prefactor     .57787        .18197        .29057E-03   -1.0853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.47504e-09
Minuit parameter uncertainties:
  1  10.5199
  2  2.60991e-06
  3  39.564
  4  14.1303
  5  5.90394
  6  1.39154
  7  3.09235e-06
  8  4.16521e-07
  9  1.54691
  10  11.9584
  11  3.77358
  12  0.905095
  13  8.19225
  14  3.71129
  15  0.78887
  16  2.11331
  17  2.77935
  18  20.3421
  19  2.71477
  20  9.89824
  21  0.168078
  22  0.182157
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  5.779e-01  1.822e-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.090e+00  1.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.49
Ra Dec: 19.725 -21.695
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 8.84e-08 +/- 4.78e-08
Energy Flux (Fixed Index): 3.67e-05 +/- 1.99e-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) = 6669.64961715
delta logL = 0.105150946207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6669.64291572
delta logL = 0.11185237468

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1121       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4059       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58651       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=   6669.643     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      262 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1123        2.8975        .62135E-04    .62026E-04
   2  alpha         2.4060        .34616        .68608E-02   -.22587E-04
   3  Normalizat    1.0777        .15859        .19082E-03    .86639E-04
   4  Prefactor     .58652        .17959        .28853E-03    .41609E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.11232
  alpha      = 2.40601
  Normalizat = 1.07774
  Prefactor  = 0.586522
 **********
 **   18 **HESSE 
 **********

 FCN=   6669.643     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1123        2.7896        .24854E-05   -1.5213    
   2  alpha         2.4060        .33318        .27443E-03   -.37606E-01
   3  Normalizat    1.0777        .15861        .38164E-04   -.90470    
   4  Prefactor     .58652        .17965        .11541E-04   -1.0816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54031e-11
Minuit parameter uncertainties:
  1  2.78964
  2  0.334178
  3  0.158679
  4  0.17983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/539520': 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) = 6669.64291503
delta logL = 0.11185306348

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  5.865e-01  1.798e-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.078e+00  1.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.75
Ra Dec: 19.725 -21.695
Photon Index (Free Index): 2.41 +/- 0.33
Photon Flux (Free Index): 9.82e-08 +/- 3.71e-08
Energy Flux (Free Index): 3.37e-05 +/- 1.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/539520/cmap_HighResolution_364262401_364521601_4FGL_J0118.9-2141_daily_bin482.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.84e-08', energy_flux2='3.37e-05', photon_flux_error='4.78e-08', dlogl='1.12e-01', energy_flux='3.67e-05', photon_flux2='9.82e-08', job_status='DONE', time_completed='2021-08-13 23:11:47.464777', photon_index_error2='0.33', photon_index2='2.41', ts='23.49', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='1.09', time_epoch_completed='1628921507.46', return_code='0', job_id='539520', GAL2='0.59', EG2='1.08', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='3.71e-08', ts2='23.75', photon_index='2.25' WHERE bin_id='482' AND source_name='4FGL J0118.9-2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 23:11:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 539520: <4FGL_J0118.9-2141_daily_bin482> in cluster <slac> Done

Job <4FGL_J0118.9-2141_daily_bin482> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 13 22:55:26 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 22:56:38 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:56:38 2021
Terminated at Fri Aug 13 23:11:50 2021
Results reported at Fri Aug 13 23:11:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0118.9-2141_daily_bin482 19.7254 -21.6948 364262401 364521601 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 :                                   885.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            984 sec.

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

