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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin545
RA = 319.505, Dec = 0.3295
tmin = 380592001, tmax = 380851201
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='425790', job_status='RUN', time_executed='2021-09-26 09:54:17.625902', time_epoch_executed='1632675257.63' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='545'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425790/ft1_4FGL_J2118.0+0019_daily_bin545.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425790/ft2_4FGL_J2118.0+0019_daily_bin545.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425790/ft1_4FGL_J2118.0+0019_daily_bin545.fits outfile=/scratch/kocevski/425790/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin545.fits ra=319.505 dec=0.3295 rad=12.0 tmin=380592001.0 tmax=380851201.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 4.02
user 3.81
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/425790/ft2_4FGL_J2118.0+0019_daily_bin545.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/425790/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin545.fits evtable="EVENTS" outfile="/scratch/kocevski/425790/ft1_filtered_4FGL_J2118.0+0019_daily_bin545.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.47
user 0.29
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425790/ft1_filtered_4FGL_J2118.0+0019_daily_bin545.fits evtable="EVENTS" scfile=/scratch/kocevski/425790/ft2_4FGL_J2118.0+0019_daily_bin545.fits sctable="SC_DATA" expcube=/scratch/kocevski/425790/ltcube_380592001_380851201_4FGL_J2118.0+0019_daily_bin545.fits outfile=/scratch/kocevski/425790/expmap_380592001_380851201_4FGL_J2118.0+0019_daily_bin545.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/425790/ltcube_380592001_380851201_4FGL_J2118.0+0019_daily_bin545.fits
.....................!
real 159.91
user 154.82
sys 4.52

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/425790/ft1_filtered_4FGL_J2118.0+0019_daily_bin545.fits scfile=/scratch/kocevski/425790/ft2_4FGL_J2118.0+0019_daily_bin545.fits outfile=/scratch/kocevski/425790/cmap_380592001_380851201_4FGL_J2118.0+0019_daily_bin545.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425790/ft1_filtered_4FGL_J2118.0+0019_daily_bin545.fits scfile=/scratch/kocevski/425790/ft2_4FGL_J2118.0+0019_daily_bin545.fits outfile=/scratch/kocevski/425790/cmap_HighResolution_380592001_380851201_4FGL_J2118.0+0019_daily_bin545.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.48
user 0.34
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/425790/ft1_filtered_4FGL_J2118.0+0019_daily_bin545.fits', '/scratch/kocevski/425790/ft2_4FGL_J2118.0+0019_daily_bin545.fits', expMap='/scratch/kocevski/425790/expmap_380592001_380851201_4FGL_J2118.0+0019_daily_bin545.fits', expCube='/scratch/kocevski/425790/ltcube_380592001_380851201_4FGL_J2118.0+0019_daily_bin545.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/425790/Model_4FGL_J2118.0+0019_daily_bin545.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/425790/ft1_filtered_4FGL_J2118.0+0019_daily_bin545.fits
Spacecraft file(s): /scratch/kocevski/425790/ft2_4FGL_J2118.0+0019_daily_bin545.fits
Exposure map: /scratch/kocevski/425790/expmap_380592001_380851201_4FGL_J2118.0+0019_daily_bin545.fits
Exposure cube: /scratch/kocevski/425790/ltcube_380592001_380851201_4FGL_J2118.0+0019_daily_bin545.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/425790/Model_4FGL_J2118.0+0019_daily_bin545.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5983.36610575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.954       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.539       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1214       1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.325       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0113       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.806       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4108       1.0000         .10000E-03   10000.    
    18 'norm      '    .86832       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.094       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .47734       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2155       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=   5983.361     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     3018 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.1967        .10942E-06** at limit **
   2  Prefactor     .10000E-03    5.2763        .16949E-06** at limit **
   3  Prefactor     25.954        19.742        .43164E-06    .93653E-05
   4  Prefactor     .10000E-03    87.234       -.65762E-05** at limit **
   5  Prefactor     11.537        18.875        .92560E-06   -.54032E-04
   6  Prefactor     .10000E-03    12.462        .22179E-06** at limit **
   7  Prefactor     .10000E-03    27.559        .12365E-05** at limit **
   8  Prefactor     .10000E-03    44.618        .11028E-05** at limit **
   9  Prefactor     .10000E-03    8.5248        .41221E-08** at limit **
  10  Prefactor     7.1208        33.190        .35258E-06   -.13283E-04
  11  Prefactor     61.318        45.147       -.39519E-06   -.73209E-04
  12  Prefactor     6.0113        5.4292        .94622E-07    .24968E-04
  13  Prefactor     .10000E-03    .94544       -.16308E-07** at limit **
  14  Prefactor     .10000E-03    65.801        .72026E-05** at limit **
  15  Prefactor     .10000E-03    36.498       -.33277E-05** at limit **
  16  Prefactor     22.839        560.51       -.24198E-04    .86630E-05
  17  Prefactor     8.4154        35.896        .47957E-06    .78488E-06
  18  norm          .86647        11.354        .40814E-05   -.15135E-03
  19  norm          .10000E-03    13.257       -.89665E-06** at limit **
  20  Prefactor     .10000E-03    3.1928        .48238E-07** at limit **
  21  Prefactor     14.093        15.581        .10487E-05   -.11039E-03
  22  Normalizat    .47734        .31798       -.44545E-05   -.70307E-04
  23  Prefactor     1.2155        .14013        .61451E-06   -.10767E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.954
  Prefactor  = 0.000100003
  Prefactor  = 11.5374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.12078
  Prefactor  = 61.3178
  Prefactor  = 6.01125
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 22.8387
  Prefactor  = 8.41537
  norm       = 0.866469
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0933
  Normalizat = 0.477339
  Prefactor  = 1.2155
 **********
 **   18 **HESSE 
 **********

 FCN=   5983.361     FROM HESSE     STATUS=OK           366 CALLS     3384 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.2225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.3886        .17347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.954        19.687        .78632E-04   -1.4689    
   4  Prefactor     .10000E-03    89.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.537        18.885        .58966E-03   -1.5029    
   6  Prefactor     .10000E-03    12.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    44.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.5333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1208        32.719        .15032E-03   -1.5174    
  11  Prefactor     61.318        45.151        .51238E-04   -1.4140    
  12  Prefactor     6.0113        5.4289        .16377E-03   -1.5218    
  13  Prefactor     .10000E-03    .95009        .73330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    69.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.839        632.92        .83876E-04   -1.4752    
  17  Prefactor     8.4154        35.724        .13823E-03   -1.5128    
  18  norm          .86647        12.981        .21381E-03   -1.5522    
  19  norm          .10000E-03    13.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1971        .13490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.093        15.618        .53346E-03   -1.4957    
  22  Normalizat    .47734        .32401        .49718E-03   -1.1348    
  23  Prefactor     1.2155        .14521        .15555E-03   -.85856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81269e-10
Minuit parameter uncertainties:
  1  7.07835e-06
  2  1.28312e-05
  3  19.6917
  4  0.00102541
  5  18.8948
  6  7.68796e-06
  7  0.000120588
  8  0.000158741
  9  1.82108e-06
  10  30.5551
  11  45.1761
  12  5.42931
  13  2.63918e-06
  14  0.00103075
  15  0.000336629
  16  243.36
  17  34.7128
  18  6.70875
  19  5.94365e-05
  20  1.77957e-06
  21  15.6222
  22  0.325299
  23  0.14526
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.000e-04  1.587e-04  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:  1.215e+00  1.453e-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:  4.773e-01  3.253e-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: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425790/likelihoodResults_380592001_380851201_4FGL_J2118.0+0019_daily_bin545.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): 102
logL (Free Index) = 5983.3614976
delta logL = -0.000106315303128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5983.36139361
delta logL = -2.32599177252e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.3553       1.0000          .0000       10.000    
     3 'Normalizat'    .47735       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2155       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=   5983.347     FROM MIGRAD    STATUS=CONVERGED    140 CALLS      328 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21589        1.1688        .25870E-01    .15779E-02
   2  Index         5.4672        .61589        .50000       -.17319E-04
   3  Normalizat    .45804        .32852        .49717E-03    .22912E-04
   4  Prefactor     1.2212        .14901        .15555E-03    .18492E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.215891
  Index      = 5.46718
  Normalizat = 0.458036
  Prefactor  = 1.22118
 **********
 **   18 **HESSE 
 **********

 FCN=   5983.347     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      359 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21589        306.59        .13216E-02   -1.5615    
   2  Index         5.4672        6.1088        .87231E-02    3.0480    
   3  Normalizat    .45804        .22304        .19887E-04   -1.1440    
   4  Prefactor     1.2212        .95228E-01    .62218E-05   -.85682    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.4881e-09
Minuit parameter uncertainties:
  1  16.3522
  2  43.6302
  3  0.223471
  4  0.0952413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425790': 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): 102
logL (Free Index) = 5983.34664112
delta logL = 0.0147501623724

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  2.159e-01  1.635e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  5.467e+00  4.363e+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:  1.221e+00  9.524e-02  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:  4.580e-01  2.235e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/425790/cmap_HighResolution_380592001_380851201_4FGL_J2118.0+0019_daily_bin545.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.17e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-26 10:04:09.023036', job_id='425790', GAL2='1.22', fit_tolerance='1e-08', EG2='0.46', EG='0.48', time_epoch_completed='1632675849.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.48e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='545' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:04:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 425790: <4FGL_J2118.0+0019_daily_bin545> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin545> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 09:50:33 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 09:53:02 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:53:02 2021
Terminated at Sun Sep 26 10:04:09 2021
Results reported at Sun Sep 26 10:04:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin545 319.505 0.3295 380592001 380851201 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 :                                   586.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            816 sec.

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

