/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 160 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2118.0+0019_daily_bin15
RA = 319.505, Dec = 0.3295
tmin = 243216001, tmax = 243475201
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='421537', job_status='RUN', time_executed='2021-09-26 09:38:42.545162', time_epoch_executed='1632674322.55' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/421537

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/421537/ft1_4FGL_J2118.0+0019_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/421537/ft2_4FGL_J2118.0+0019_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/421537/ft1_4FGL_J2118.0+0019_daily_bin15.fits outfile=/scratch/kocevski/421537/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin15.fits ra=319.505 dec=0.3295 rad=12.0 tmin=243216001.0 tmax=243475201.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 1.40
user 1.21
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/421537/ft2_4FGL_J2118.0+0019_daily_bin15.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/421537/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin15.fits evtable="EVENTS" outfile="/scratch/kocevski/421537/ft1_filtered_4FGL_J2118.0+0019_daily_bin15.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.52
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/421537/ft1_filtered_4FGL_J2118.0+0019_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/421537/ft2_4FGL_J2118.0+0019_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/421537/ltcube_243216001_243475201_4FGL_J2118.0+0019_daily_bin15.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/421537/ft2_4FGL_J2118.0+0019_daily_bin15.fits
.....................!
real 17.59
user 17.14
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/421537/ft1_filtered_4FGL_J2118.0+0019_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/421537/ft2_4FGL_J2118.0+0019_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/421537/ltcube_243216001_243475201_4FGL_J2118.0+0019_daily_bin15.fits outfile=/scratch/kocevski/421537/expmap_243216001_243475201_4FGL_J2118.0+0019_daily_bin15.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/421537/ltcube_243216001_243475201_4FGL_J2118.0+0019_daily_bin15.fits
.....................!
real 193.51
user 186.08
sys 6.42

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/421537/ft1_filtered_4FGL_J2118.0+0019_daily_bin15.fits scfile=/scratch/kocevski/421537/ft2_4FGL_J2118.0+0019_daily_bin15.fits outfile=/scratch/kocevski/421537/cmap_243216001_243475201_4FGL_J2118.0+0019_daily_bin15.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/421537/ft1_filtered_4FGL_J2118.0+0019_daily_bin15.fits scfile=/scratch/kocevski/421537/ft2_4FGL_J2118.0+0019_daily_bin15.fits outfile=/scratch/kocevski/421537/cmap_HighResolution_243216001_243475201_4FGL_J2118.0+0019_daily_bin15.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.62
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/421537/ft1_filtered_4FGL_J2118.0+0019_daily_bin15.fits', '/scratch/kocevski/421537/ft2_4FGL_J2118.0+0019_daily_bin15.fits', expMap='/scratch/kocevski/421537/expmap_243216001_243475201_4FGL_J2118.0+0019_daily_bin15.fits', expCube='/scratch/kocevski/421537/ltcube_243216001_243475201_4FGL_J2118.0+0019_daily_bin15.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/421537/Model_4FGL_J2118.0+0019_daily_bin15.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/421537/ft1_filtered_4FGL_J2118.0+0019_daily_bin15.fits
Spacecraft file(s): /scratch/kocevski/421537/ft2_4FGL_J2118.0+0019_daily_bin15.fits
Exposure map: /scratch/kocevski/421537/expmap_243216001_243475201_4FGL_J2118.0+0019_daily_bin15.fits
Exposure cube: /scratch/kocevski/421537/ltcube_243216001_243475201_4FGL_J2118.0+0019_daily_bin15.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/421537/Model_4FGL_J2118.0+0019_daily_bin15.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) = 7726.79514721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4184       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1938       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.861       1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.627       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.143       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.821       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8761       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7375       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.775       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.1459       1.0000         .10000E-03   10000.    
    19 'norm      '    16.426       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .79159       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99358       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=   7726.754     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2532 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9022       -.57480E-08** at limit **
   2  Prefactor     3.4186        2.5352        .10912E-05   -.41965E-02
   3  Prefactor     4.1926        13.133       -.38971E-06   -.38616E-04
   4  Prefactor     14.848        32.090       -.77042E-05   -.13991E-03
   5  Prefactor     28.628        20.179       -.38632E-07    .56307E-06
   6  Prefactor     .10000E-03    7.6051       -.57357E-06** at limit **
   7  Prefactor     .10000E-03    32.854        .73512E-05** at limit **
   8  Prefactor     .10001E-03    37.192       -.14553E-04** at limit **
   9  Prefactor     24.142        18.566       -.85632E-07   -.95596E-05
  10  Prefactor     34.821        22.480       -.38907E-07   -.14167E-05
  11  Prefactor     .10000E-03    54.815        .77284E-05** at limit **
  12  Prefactor     5.8761        4.5347       -.28203E-06   -.14589E-03
  13  Prefactor     1.7383        1.9693        .45522E-07   -.28004E-03
  14  Prefactor     15.773        34.213       -.11810E-05   -.32357E-04
  15  Prefactor     .10000E-03    9.3413       -.74537E-07** at limit **
  16  Prefactor     .10000E-03    81.893       -.92568E-05** at limit **
  17  Prefactor     .10000E-03    54.430        .72126E-05** at limit **
  18  norm          9.1458        3.8554       -.11115E-07   -.25713E-04
  19  norm          16.424        15.640       -.55103E-07   -.26641E-04
  20  Prefactor     .10000E-03    7.4425        .60729E-06** at limit **
  21  Prefactor     .10000E-03    3.6142        .75508E-08** at limit **
  22  Normalizat    .79170        .23004        .18876E-06   -.37444E-04
  23  Prefactor     .99355        .10294        .10030E-06   -.74190E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.41858
  Prefactor  = 4.19264
  Prefactor  = 14.848
  Prefactor  = 28.6275
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100009
  Prefactor  = 24.1425
  Prefactor  = 34.8205
  Prefactor  = 0.000100002
  Prefactor  = 5.87613
  Prefactor  = 1.7383
  Prefactor  = 15.7726
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100002
  norm       = 9.1458
  norm       = 16.4238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.791696
  Prefactor  = 0.993545
 **********
 **   18 **HESSE 
 **********

 FCN=   7726.754     FROM HESSE     STATUS=OK           368 CALLS     2900 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9074        .16958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4186        4.4356        .10057E-02   -1.5338    
   3  Prefactor     4.1926        13.135        .19679E-03   -1.5298    
   4  Prefactor     14.848        32.146        .10390E-03   -1.4937    
   5  Prefactor     28.628        20.179        .74879E-04   -1.4637    
   6  Prefactor     .10000E-03    7.6077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    37.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.142        18.571        .81524E-04   -1.4725    
  10  Prefactor     34.821        22.501        .67911E-04   -1.4527    
  11  Prefactor     .10000E-03    55.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.8761        4.5388        .15919E-03   -1.5223    
  13  Prefactor     1.7383        1.9458        .12283E-03   -1.5444    
  14  Prefactor     15.773        34.378        .10084E-03   -1.4913    
  15  Prefactor     .10000E-03    9.3438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    82.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    54.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.1458        3.8571        .10587E-03   -1.5103    
  19  norm          16.424        15.641        .98822E-04   -1.4897    
  20  Prefactor     .10000E-03    7.6930        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.6319        .16319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .79170        .27278        .38109E-03   -1.0038    
  23  Prefactor     .99355        .12307        .16478E-03   -.92945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05119e-08
Minuit parameter uncertainties:
  1  1.05905e-06
  2  4.43603
  3  13.144
  4  32.1834
  5  20.1834
  6  2.11754e-05
  7  0.000547272
  8  0.00115663
  9  18.5757
  10  22.5065
  11  0.000737838
  12  4.53902
  13  1.94583
  14  34.4215
  15  4.19448e-06
  16  0.00112117
  17  0.000648833
  18  3.85717
  19  15.6446
  20  3.76005e-06
  21  8.47923e-07
  22  0.273248
  23  0.12311
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.157e-03  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:  9.935e-01  1.231e-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:  7.917e-01  2.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 319.505 0.330
Photon Flux Upper Limit: 8.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/421537/likelihoodResults_243216001_243475201_4FGL_J2118.0+0019_daily_bin15.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) = 7726.75436761
delta logL = -0.000125961834783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7726.7542417
delta logL = -5.2021277952e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5025       1.0000          .0000       10.000    
     3 'Normalizat'    .79171       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99354       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=   7726.754     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      271 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.519        .18142E-02** at limit **
   2  Index         2.5149        6.2570        .50000       -.30826E-05
   3  Normalizat    .79170        .24879        .38109E-03   -.97699E-04
   4  Prefactor     .99354        .12045        .16478E-03   -.32106E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.51492
  Normalizat = 0.791697
  Prefactor  = 0.993545
 **********
 **   18 **HESSE 
 **********

 FCN=   7726.754     FROM HESSE     STATUS=OK            29 CALLS      300 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5149        6.2544        .50000       -.52016    
   3  Normalizat    .79170        .24896        .15244E-04   -1.0038    
   4  Prefactor     .99354        .12053        .32956E-04   -.92945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.10152e-11
Minuit parameter uncertainties:
  1  0.000223196
  2  4.34416
  3  0.249318
  4  0.120567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/421537': 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) = 7726.75424169
delta logL = -4.07653715229e-08

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  2.232e-04  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.515e+00  4.344e+00  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:  9.935e-01  1.206e-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:  7.917e-01  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 319.505 0.330

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/421537/cmap_HighResolution_243216001_243475201_4FGL_J2118.0+0019_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-03', job_status='DONE', photon_flux_upper_limit='8.78e-08', time_completed='2021-09-26 09:51:38.043658', job_id='421537', GAL2='0.99', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632675098.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-4.08e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='15' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 09:51:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0028>
Subject: Job 421537: <4FGL_J2118.0+0019_daily_bin15> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin15> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 09:35:14 2021
Job was executed on host(s) <bullet0028>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 09:35:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 09:35:53 2021
Terminated at Sun Sep 26 09:51:39 2021
Results reported at Sun Sep 26 09:51:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin15 319.505 0.3295 243216001 243475201 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 :                                   773.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            985 sec.

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

