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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin854
RA = 319.505, Dec = 0.3295
tmin = 460684801, tmax = 460944001
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='428570', job_status='RUN', time_executed='2021-09-26 10:01:21.222946', time_epoch_executed='1632675681.22' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428570

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428570/ft1_4FGL_J2118.0+0019_daily_bin854.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428570/ft2_4FGL_J2118.0+0019_daily_bin854.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428570/ft1_4FGL_J2118.0+0019_daily_bin854.fits outfile=/scratch/kocevski/428570/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin854.fits ra=319.505 dec=0.3295 rad=12.0 tmin=460684801.0 tmax=460944001.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 3.45
user 3.20
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428570/ft1_filtered_4FGL_J2118.0+0019_daily_bin854.fits" evtable="EVENTS" scfile=/scratch/kocevski/428570/ft2_4FGL_J2118.0+0019_daily_bin854.fits sctable="SC_DATA" outfile=/scratch/kocevski/428570/ltcube_460684801_460944001_4FGL_J2118.0+0019_daily_bin854.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/428570/ft2_4FGL_J2118.0+0019_daily_bin854.fits
.....................!
real 17.08
user 16.62
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428570/ft1_filtered_4FGL_J2118.0+0019_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/428570/ft2_4FGL_J2118.0+0019_daily_bin854.fits sctable="SC_DATA" expcube=/scratch/kocevski/428570/ltcube_460684801_460944001_4FGL_J2118.0+0019_daily_bin854.fits outfile=/scratch/kocevski/428570/expmap_460684801_460944001_4FGL_J2118.0+0019_daily_bin854.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/428570/ltcube_460684801_460944001_4FGL_J2118.0+0019_daily_bin854.fits
.....................!
real 195.80
user 189.99
sys 5.22

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/428570/ft1_filtered_4FGL_J2118.0+0019_daily_bin854.fits scfile=/scratch/kocevski/428570/ft2_4FGL_J2118.0+0019_daily_bin854.fits outfile=/scratch/kocevski/428570/cmap_460684801_460944001_4FGL_J2118.0+0019_daily_bin854.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.63
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428570/ft1_filtered_4FGL_J2118.0+0019_daily_bin854.fits scfile=/scratch/kocevski/428570/ft2_4FGL_J2118.0+0019_daily_bin854.fits outfile=/scratch/kocevski/428570/cmap_HighResolution_460684801_460944001_4FGL_J2118.0+0019_daily_bin854.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.63
user 0.43
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.177       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4653       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16981       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12151E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    48.134       1.0000         .10000E-03   10000.    
     9 'Prefactor '    90.815       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.393       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.295       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.565       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.830       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11046E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .28844E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .67029       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0605       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=   7838.650     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2625 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.175        12.761       -.42707E-05   -.31313E-04
   2  Prefactor     3.4677        6.0036       -.81164E-06   -.45100E-03
   3  Prefactor     .10060E-03    12.717       -.98660E-06** at limit **
   4  Prefactor     .10000E-03    31.801       -.18118E-06** at limit **
   5  Prefactor     .10000E-03    10.610       -.10700E-07** at limit **
   6  Prefactor     .10000E-03    7.5043        .37239E-07** at limit **
   7  Prefactor     .10000E-03    144.09        .71563E-05** at limit **
   8  Prefactor     48.105        66.409       -.13582E-04    .59540E-05
   9  Prefactor     90.818        26.598        .13224E-06    .35797E-04
  10  Prefactor     11.385        16.911       -.49954E-06   -.16658E-04
  11  Prefactor     26.280        37.188        .57556E-05    .22162E-04
  12  Prefactor     .10000E-03    4.4109       -.88708E-07** at limit **
  13  Prefactor     .10000E-03    .87197       -.27437E-06** at limit **
  14  Prefactor     10.548        32.293        .14630E-04    .25005E-04
  15  Prefactor     .10000E-03    26.810       -.10243E-06** at limit **
  16  Prefactor     .10000E-03    38.986        .27687E-06** at limit **
  17  Prefactor     12.837        48.116       -.32251E-04   -.25141E-04
  18  norm          .10000E-03    1.6836        .70912E-07** at limit **
  19  norm          .10000E-03    7.7255        .27933E-06** at limit **
  20  Prefactor     .10001E-03    15.347        .18872E-05** at limit **
  21  Prefactor     .10007E-03    7.1377       -.69617E-06** at limit **
  22  Normalizat    .67052        .24424        .23383E-05    .10079E-03
  23  Prefactor     1.0605        .10586        .43125E-06    .20821E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1751
  Prefactor  = 3.46768
  Prefactor  = 0.000100595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.1054
  Prefactor  = 90.8176
  Prefactor  = 11.385
  Prefactor  = 26.2803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5483
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8368
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.000100071
  Normalizat = 0.670516
  Prefactor  = 1.06053
 **********
 **   18 **HESSE 
 **********

 FCN=   7838.650     FROM HESSE     STATUS=OK           380 CALLS     3005 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.175        12.770        .11983E-03   -1.5039    
   2  Prefactor     3.4677        5.9989        .21724E-03   -1.5336    
   3  Prefactor     .10060E-03    20.788        .80040E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.5121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    145.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     48.105        66.270        .57797E-04   -1.4320    
   9  Prefactor     90.818        26.592        .42167E-04   -1.3799    
  10  Prefactor     11.385        16.911        .11869E-03   -1.5033    
  11  Prefactor     26.280        37.081        .78123E-04   -1.4682    
  12  Prefactor     .10000E-03    4.5712        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .88157        .80583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.548        32.223        .12327E-03   -1.5058    
  15  Prefactor     .10000E-03    26.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    38.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.837        48.497        .11183E-03   -1.4991    
  18  norm          .10000E-03    1.7388        .22419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.7442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    15.836        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10007E-03    9.9957        .71764E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .67052        .27712        .41359E-03   -1.0507    
  23  Prefactor     1.0605        .12210        .16069E-03   -.90738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14974e-09
Minuit parameter uncertainties:
  1  12.7735
  2  5.99991
  3  0.00703713
  4  3.28641e-05
  5  8.99763e-07
  6  1.44908e-06
  7  0.00022437
  8  66.3716
  9  26.5952
  10  16.918
  11  37.1133
  12  1.98295e-05
  13  2.30918e-05
  14  32.2759
  15  0.000106136
  16  8.87295e-06
  17  48.6461
  18  1.26443e-05
  19  6.93021e-05
  20  0.000778725
  21  0.0016796
  22  0.277697
  23  0.122133
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  4.811e+01  6.637e+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:  1.061e+00  1.221e-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:  6.705e-01  2.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/428570/likelihoodResults_460684801_460944001_4FGL_J2118.0+0019_daily_bin854.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) = 7838.64108297
delta logL = 0.00850231455024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7838.63884712
delta logL = 0.0107381637426

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.961       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4715       1.0000          .0000       10.000    
     3 'Normalizat'    .67243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0596       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=   7838.639     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      265 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.952        77.960        .55113E-04    .50737E-03
   2  Index         2.4715        .68583        .99222E-02    .39846E-03
   3  Normalizat    .67233        .24798        .41306E-03   -.33278E-03
   4  Prefactor     1.0597        .11959        .16075E-03   -.90039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.9524
  Index      = 2.47154
  Normalizat = 0.672326
  Prefactor  = 1.05968
 **********
 **   18 **HESSE 
 **********

 FCN=   7838.639     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.952        75.944        .11023E-04   -1.4251    
   2  Index         2.4715        .66814        .39689E-03   -.53018    
   3  Normalizat    .67233        .24812        .16523E-04   -1.0500    
   4  Prefactor     1.0597        .11962        .32150E-04   -.90766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02781e-09
Minuit parameter uncertainties:
  1  76.0835
  2  0.670844
  3  0.248534
  4  0.119655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428570': 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) = 7838.63884702
delta logL = 0.0107382695478

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  5.295e+01  7.608e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.472e+00  6.708e-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.060e+00  1.197e-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:  6.723e-01  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.63
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/428570/cmap_HighResolution_460684801_460944001_4FGL_J2118.0+0019_daily_bin854.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', job_status='DONE', photon_flux_upper_limit='1.51e-07', time_completed='2021-09-26 10:14:42.831817', job_id='428570', GAL2='1.06', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1632676482.83', return_code2='0', ts='0.63', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.07e-02', ts2='0.65', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='854' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:14:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 428570: <4FGL_J2118.0+0019_daily_bin854> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin854> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 10:00:35 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 10:01:03 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:01:03 2021
Terminated at Sun Sep 26 10:14:43 2021
Results reported at Sun Sep 26 10:14:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin854 319.505 0.3295 460684801 460944001 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 :                                   799.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            848 sec.

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

