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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin1365
RA = 319.505, Dec = 0.3295
tmin = 593136001, tmax = 593395201
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='431423', job_status='RUN', time_executed='2021-09-26 10:11:41.585888', time_epoch_executed='1632676301.59' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='1365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/431423

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/431423/ft1_4FGL_J2118.0+0019_daily_bin1365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/431423/ft2_4FGL_J2118.0+0019_daily_bin1365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/431423/ft1_4FGL_J2118.0+0019_daily_bin1365.fits outfile=/scratch/kocevski/431423/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin1365.fits ra=319.505 dec=0.3295 rad=12.0 tmin=593136001.0 tmax=593395201.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 5.20
user 4.93
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/431423/ft2_4FGL_J2118.0+0019_daily_bin1365.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/431423/ft2_4FGL_J2118.0+0019_daily_bin1365.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/431423/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin1365.fits evtable="EVENTS" outfile="/scratch/kocevski/431423/ft1_filtered_4FGL_J2118.0+0019_daily_bin1365.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 0.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/431423/ft1_filtered_4FGL_J2118.0+0019_daily_bin1365.fits" evtable="EVENTS" scfile=/scratch/kocevski/431423/ft2_4FGL_J2118.0+0019_daily_bin1365.fits sctable="SC_DATA" outfile=/scratch/kocevski/431423/ltcube_593136001_593395201_4FGL_J2118.0+0019_daily_bin1365.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/431423/ft2_4FGL_J2118.0+0019_daily_bin1365.fits
.....................!
real 13.09
user 12.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/431423/ft1_filtered_4FGL_J2118.0+0019_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/431423/ft2_4FGL_J2118.0+0019_daily_bin1365.fits sctable="SC_DATA" expcube=/scratch/kocevski/431423/ltcube_593136001_593395201_4FGL_J2118.0+0019_daily_bin1365.fits outfile=/scratch/kocevski/431423/expmap_593136001_593395201_4FGL_J2118.0+0019_daily_bin1365.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/431423/ltcube_593136001_593395201_4FGL_J2118.0+0019_daily_bin1365.fits
.....................!
real 191.10
user 185.58
sys 4.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 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J2118.0+0019 @ 319.505 0.3295

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/431423/ft1_filtered_4FGL_J2118.0+0019_daily_bin1365.fits scfile=/scratch/kocevski/431423/ft2_4FGL_J2118.0+0019_daily_bin1365.fits outfile=/scratch/kocevski/431423/cmap_593136001_593395201_4FGL_J2118.0+0019_daily_bin1365.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=319.505 yref=0.3295 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 0.75
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/431423/ft1_filtered_4FGL_J2118.0+0019_daily_bin1365.fits scfile=/scratch/kocevski/431423/ft2_4FGL_J2118.0+0019_daily_bin1365.fits outfile=/scratch/kocevski/431423/cmap_HighResolution_593136001_593395201_4FGL_J2118.0+0019_daily_bin1365.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=319.505 yref=0.3295 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 0.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/431423/ft1_filtered_4FGL_J2118.0+0019_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/431423/ft2_4FGL_J2118.0+0019_daily_bin1365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/431423/Model_4FGL_J2118.0+0019_daily_bin1365.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/431423/ft1_filtered_4FGL_J2118.0+0019_daily_bin1365.fits.....................!
real 61.85
user 60.06
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/431423/ft1_filtered_4FGL_J2118.0+0019_daily_bin1365.fits', '/scratch/kocevski/431423/ft2_4FGL_J2118.0+0019_daily_bin1365.fits', expMap='/scratch/kocevski/431423/expmap_593136001_593395201_4FGL_J2118.0+0019_daily_bin1365.fits', expCube='/scratch/kocevski/431423/ltcube_593136001_593395201_4FGL_J2118.0+0019_daily_bin1365.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/431423/Model_4FGL_J2118.0+0019_daily_bin1365.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2118.0+0019'

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  7.605e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.572e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/431423/ft1_filtered_4FGL_J2118.0+0019_daily_bin1365.fits
Spacecraft file(s): /scratch/kocevski/431423/ft2_4FGL_J2118.0+0019_daily_bin1365.fits
Exposure map: /scratch/kocevski/431423/expmap_593136001_593395201_4FGL_J2118.0+0019_daily_bin1365.fits
Exposure cube: /scratch/kocevski/431423/ltcube_593136001_593395201_4FGL_J2118.0+0019_daily_bin1365.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/431423/Model_4FGL_J2118.0+0019_daily_bin1365.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) = 5967.59131741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.047       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1756       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.760       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10822E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.157       1.0000         .10000E-03   10000.    
     8 'Prefactor '    51.128       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1170       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3108       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7810       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    86.047       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.322       1.0000         .10000E-03   10000.    
    16 'Prefactor '    76.594       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.292       1.0000         .10000E-03   10000.    
    18 'norm      '    8.4191       1.0000         .10000E-03   10000.    
    19 'norm      '    10.293       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.628       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .81207       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87802       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5967.515     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2570 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.028        23.535        .17164E-04    .55042E-05
   2  Prefactor     .10000E-03    3.1694       -.36095E-07** at limit **
   3  Prefactor     7.1697        16.431       -.13078E-04   -.12627E-04
   4  Prefactor     .10000E-03    15.414       -.31310E-06** at limit **
   5  Prefactor     37.780        28.270       -.17094E-04   -.55588E-04
   6  Prefactor     .10000E-03    19.182        .17027E-05** at limit **
   7  Prefactor     15.984        59.569       -.52395E-04   -.20504E-05
   8  Prefactor     51.120        69.184       -.79527E-05   -.72008E-06
   9  Prefactor     4.1132        14.162       -.33385E-04   -.67325E-04
  10  Prefactor     1.2988        116.52        .24528E-04   -.77117E-04
  11  Prefactor     .10000E-03    13.107        .81949E-07** at limit **
  12  Prefactor     6.7803        6.0661       -.10318E-06   -.25507E-04
  13  Prefactor     .10000E-03    1.3289       -.22341E-06** at limit **
  14  Prefactor     86.028        45.782        .41176E-05    .14611E-04
  15  Prefactor     30.304        46.463        .35010E-05    .21249E-04
  16  Prefactor     76.583        110.56       -.96246E-05    .15185E-06
  17  Prefactor     21.286        39.034        .31865E-05   -.28277E-06
  18  norm          8.4194        4.2970        .33098E-06   -.97418E-04
  19  norm          10.291        16.418       -.74963E-05   -.33194E-04
  20  Prefactor     .10000E-03    2.4822       -.94934E-07** at limit **
  21  Prefactor     12.626        12.798       -.63326E-05   -.14697E-04
  22  Normalizat    .81242        .26680        .66468E-05   -.25607E-04
  23  Prefactor     .87793        .11231        .13804E-05   -.86559E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.0278
  Prefactor  = 0.0001
  Prefactor  = 7.1697
  Prefactor  = 0.0001
  Prefactor  = 37.7801
  Prefactor  = 0.000100004
  Prefactor  = 15.9839
  Prefactor  = 51.1198
  Prefactor  = 4.11321
  Prefactor  = 1.29879
  Prefactor  = 0.0001
  Prefactor  = 6.7803
  Prefactor  = 0.0001
  Prefactor  = 86.0278
  Prefactor  = 30.3045
  Prefactor  = 76.5827
  Prefactor  = 21.286
  norm       = 8.41937
  norm       = 10.2914
  Prefactor  = 0.0001
  Prefactor  = 12.6256
  Normalizat = 0.812425
  Prefactor  = 0.877928
 **********
 **   18 **HESSE 
 **********

 FCN=   5967.515     FROM HESSE     STATUS=OK           370 CALLS     2940 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.028        23.514        .12054E-03   -1.5044    
   2  Prefactor     .10000E-03    3.1975        .13422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1697        16.490        .14974E-03   -1.5172    
   4  Prefactor     .10000E-03    15.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     37.780        28.247        .65224E-04   -1.4478    
   6  Prefactor     .10000E-03    19.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.984        59.631        .99641E-04   -1.4908    
   8  Prefactor     51.120        69.242        .56087E-04   -1.4277    
   9  Prefactor     4.1132        14.197        .19867E-03   -1.5302    
  10  Prefactor     1.2988        117.11        .38511E-03   -1.5480    
  11  Prefactor     .10000E-03    13.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7803        6.0633        .15408E-03   -1.5187    
  13  Prefactor     .10000E-03    1.3481        .86734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     86.028        46.158        .43309E-04   -1.3850    
  15  Prefactor     30.304        46.601        .72761E-04   -1.4606    
  16  Prefactor     76.583        110.75        .45882E-04   -1.3955    
  17  Prefactor     21.286        39.008        .86803E-04   -1.4785    
  18  norm          8.4194        4.3029        .10562E-03   -1.5128    
  19  norm          10.291        16.407        .12489E-03   -1.5066    
  20  Prefactor     .10000E-03    2.4852        .11878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.626        12.798        .11272E-03   -1.4997    
  22  Normalizat    .81242        .31383        .37233E-03   -.99609    
  23  Prefactor     .87793        .13420        .16655E-03   -.96917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1195e-10
Minuit parameter uncertainties:
  1  23.5336
  2  1.08887e-05
  3  16.5006
  4  1.15148e-05
  5  28.2567
  6  0.000530799
  7  59.8543
  8  69.3514
  9  14.2084
  10  24.7152
  11  3.68683e-05
  12  6.06387
  13  2.78774e-05
  14  46.1772
  15  46.6568
  16  111.053
  17  39.0547
  18  4.30305
  19  16.4143
  20  1.01729e-05
  21  12.8003
  22  0.314533
  23  0.134248
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  5.112e+01  6.935e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.572e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
310        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  8.779e-01  1.342e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  8.124e-01  3.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.70
Ra Dec: 319.505 0.330
Photon Flux Upper Limit: 1.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/431423/likelihoodResults_593136001_593395201_4FGL_J2118.0+0019_daily_bin1365.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) = 5967.50244788
delta logL = 0.0121226014126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5967.500887
delta logL = 0.0136834839104

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.833       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4066       1.0000          .0000       10.000    
     3 'Normalizat'    .81866       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87606       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+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=   5967.501     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      231 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.834        75.136        .54169E-04   -.20148E-04
   2  Index         2.4066        .98752        .12346E-01   -.27103E-04
   3  Normalizat    .81861        .28170        .37103E-03    .40813E-04
   4  Prefactor     .87609        .13033        .16670E-03    .10586E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.8342
  Index      = 2.40659
  Normalizat = 0.818611
  Prefactor  = 0.876086
 **********
 **   18 **HESSE 
 **********

 FCN=   5967.501     FROM HESSE     STATUS=OK            25 CALLS      256 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.834        74.334        .10834E-04   -1.4226    
   2  Index         2.4066        .97676        .49382E-03   -.54531    
   3  Normalizat    .81861        .28187        .14841E-04   -.99382    
   4  Prefactor     .87609        .13037        .33340E-04   -.96982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19729e-11
Minuit parameter uncertainties:
  1  74.4603
  2  0.985462
  3  0.282371
  4  0.130419
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/431423': 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) = 5967.50088698
delta logL = 0.0136835021258

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  5.483e+01  7.446e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.407e+00  9.855e-01  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  8.761e-01  1.304e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  8.186e-01  2.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.70
Ra Dec: 319.505 0.330

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/431423/cmap_HighResolution_593136001_593395201_4FGL_J2118.0+0019_daily_bin1365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', job_status='DONE', photon_flux_upper_limit='1.68e-07', time_completed='2021-09-26 10:22:52.311072', job_id='431423', GAL2='0.88', fit_tolerance='1e-08', EG2='0.82', EG='0.81', time_epoch_completed='1632676972.31', return_code2='0', ts='0.70', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.37e-02', ts2='0.73', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1365' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:22:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 431423: <4FGL_J2118.0+0019_daily_bin1365> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin1365> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 10:10:24 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 10:11:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 10:11:25 2021
Terminated at Sun Sep 26 10:22:53 2021
Results reported at Sun Sep 26 10:22:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin1365 319.505 0.3295 593136001 593395201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2118.0+0019 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   664.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            749 sec.

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

