/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 190 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_bin727
RA = 319.505, Dec = 0.3295
tmin = 427766401, tmax = 428025601
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='427191', job_status='RUN', time_executed='2021-09-26 09:59:10.159336', time_epoch_executed='1632675550.16' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427191

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427191/ft1_4FGL_J2118.0+0019_daily_bin727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427191/ft2_4FGL_J2118.0+0019_daily_bin727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427191/ft1_4FGL_J2118.0+0019_daily_bin727.fits outfile=/scratch/kocevski/427191/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin727.fits ra=319.505 dec=0.3295 rad=12.0 tmin=427766401.0 tmax=428025601.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.54
user 5.21
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/427191/ft1_filtered_4FGL_J2118.0+0019_daily_bin727.fits" evtable="EVENTS" scfile=/scratch/kocevski/427191/ft2_4FGL_J2118.0+0019_daily_bin727.fits sctable="SC_DATA" outfile=/scratch/kocevski/427191/ltcube_427766401_428025601_4FGL_J2118.0+0019_daily_bin727.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/427191/ft2_4FGL_J2118.0+0019_daily_bin727.fits
.....................!
real 16.41
user 15.84
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427191/ft1_filtered_4FGL_J2118.0+0019_daily_bin727.fits evtable="EVENTS" scfile=/scratch/kocevski/427191/ft2_4FGL_J2118.0+0019_daily_bin727.fits sctable="SC_DATA" expcube=/scratch/kocevski/427191/ltcube_427766401_428025601_4FGL_J2118.0+0019_daily_bin727.fits outfile=/scratch/kocevski/427191/expmap_427766401_428025601_4FGL_J2118.0+0019_daily_bin727.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/427191/ltcube_427766401_428025601_4FGL_J2118.0+0019_daily_bin727.fits
.....................!
real 194.17
user 186.60
sys 5.01

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/427191/ft1_filtered_4FGL_J2118.0+0019_daily_bin727.fits scfile=/scratch/kocevski/427191/ft2_4FGL_J2118.0+0019_daily_bin727.fits outfile=/scratch/kocevski/427191/cmap_427766401_428025601_4FGL_J2118.0+0019_daily_bin727.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.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427191/ft1_filtered_4FGL_J2118.0+0019_daily_bin727.fits scfile=/scratch/kocevski/427191/ft2_4FGL_J2118.0+0019_daily_bin727.fits outfile=/scratch/kocevski/427191/cmap_HighResolution_427766401_428025601_4FGL_J2118.0+0019_daily_bin727.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 1.27
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15104E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.489       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.922       1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.390       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10577E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3024       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10788E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    65.182       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.230       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.7578       1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14682E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17580E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .69080       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94442       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=   5152.938     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2689 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.0767        .44398E-06** at limit **
   2  Prefactor     .10129E-03    4.4043        .14911E-05** at limit **
   3  Prefactor     .10000E-03    9.2599        .71036E-06** at limit **
   4  Prefactor     .10000E-03    22.812        .16803E-06** at limit **
   5  Prefactor     .10000E-03    21.199        .11907E-05** at limit **
   6  Prefactor     .10000E-03    11.595        .30637E-06** at limit **
   7  Prefactor     .10000E-03    24.040        .23162E-06** at limit **
   8  Prefactor     12.509        70.722        .69432E-07   -.43129E-04
   9  Prefactor     27.923        23.331       -.50053E-06   -.88093E-04
  10  Prefactor     36.386        35.154        .87370E-06   -.12390E-04
  11  Prefactor     .10000E-03    59.969       -.73924E-06** at limit **
  12  Prefactor     1.2947        19.748       -.13559E-07   -.77771E-04
  13  Prefactor     .10000E-03    2.2827       -.90508E-06** at limit **
  14  Prefactor     65.229        48.523       -.11775E-05   -.13573E-03
  15  Prefactor     .10000E-03    61.163        .55240E-06** at limit **
  16  Prefactor     26.279        193.05        .41335E-05   -.18230E-04
  17  Prefactor     .10000E-03    22.914        .26142E-07** at limit **
  18  norm          8.7611        4.9988       -.30549E-06   -.51111E-03
  19  norm          .10000E-03    11.342        .22542E-06** at limit **
  20  Prefactor     .10403E-03    30.414       -.33370E-05** at limit **
  21  Prefactor     .10047E-03    93.737        .36312E-05** at limit **
  22  Normalizat    .68982        .29894        .39116E-05   -.28747E-03
  23  Prefactor     .94500        .13644       -.32754E-05   -.57785E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000101289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5089
  Prefactor  = 27.9226
  Prefactor  = 36.386
  Prefactor  = 0.0001
  Prefactor  = 1.29466
  Prefactor  = 0.0001
  Prefactor  = 65.2294
  Prefactor  = 0.0001
  Prefactor  = 26.2791
  Prefactor  = 0.0001
  norm       = 8.76108
  norm       = 0.0001
  Prefactor  = 0.000104034
  Prefactor  = 0.000100471
  Normalizat = 0.689823
  Prefactor  = 0.944996
 **********
 **   18 **HESSE 
 **********

 FCN=   5152.938     FROM HESSE     STATUS=OK           380 CALLS     3069 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.1313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10129E-03    6.9985        .43828E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.3198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.509        70.666        .11335E-03   -1.5000    
   9  Prefactor     27.923        23.227        .75817E-04   -1.4651    
  10  Prefactor     36.386        35.196        .66436E-04   -1.4501    
  11  Prefactor     .10000E-03    60.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2947        20.453        .38703E-03   -1.5480    
  13  Prefactor     .10000E-03    2.3338        .21047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     65.229        48.783        .49708E-04   -1.4091    
  15  Prefactor     .10000E-03    61.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.279        197.95        .78219E-04   -1.4682    
  17  Prefactor     .10000E-03    22.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.7611        5.0957        .50403E-03   -1.5116    
  19  norm          .10000E-03    11.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10403E-03    13.001        .57019E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10047E-03    104.26        .44103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .68982        .32831        .39288E-03   -1.0430    
  23  Prefactor     .94500        .14649        .15768E-03   -.94586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.05693e-09
Minuit parameter uncertainties:
  1  3.94486e-05
  2  0.00600787
  3  5.95683e-05
  4  9.87661e-06
  5  0.000231446
  6  5.00765e-06
  7  6.20329e-06
  8  59.5703
  9  23.2346
  10  35.216
  11  6.4691e-05
  12  10.2955
  13  3.11739e-05
  14  48.8131
  15  0.000290377
  16  144.924
  17  6.38651e-06
  18  5.09594
  19  7.45784e-05
  20  0.0144879
  21  0.0140458
  22  0.329247
  23  0.146553
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.251e+01  5.957e+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:  9.450e-01  1.466e-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.898e-01  3.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/427191/likelihoodResults_427766401_428025601_4FGL_J2118.0+0019_daily_bin727.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) = 5152.93661529
delta logL = 0.00126789421938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5152.93629534
delta logL = 0.00158785065196

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.771       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6770       1.0000          .0000       10.000    
     3 'Normalizat'    .68870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94540       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=   5152.936     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      282 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.795        76.357        .11676E-03   -.28041E-04
   2  Index         2.6804        1.9538        .10972E-01   -.25323E-04
   3  Normalizat    .68892        .31239        .39313E-03    .87854E-04
   4  Prefactor     .94527        .14562        .15766E-03   -.19581E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7953
  Index      = 2.68036
  Normalizat = 0.688917
  Prefactor  = 0.945265
 **********
 **   18 **HESSE 
 **********

 FCN=   5152.936     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.795        71.036        .46705E-05   -1.5021    
   2  Index         2.6804        1.8897        .43890E-03   -.48242    
   3  Normalizat    .68892        .31264        .15725E-04   -1.0433    
   4  Prefactor     .94527        .14571        .31531E-04   -.94577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54553e-10
Minuit parameter uncertainties:
  1  57.9956
  2  1.95233
  3  0.313452
  4  0.145771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427191': 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) = 5152.93629283
delta logL = 0.00159036365403

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.180e+01  5.800e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.680e+00  1.952e+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.453e-01  1.458e-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.889e-01  3.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/427191/cmap_HighResolution_427766401_428025601_4FGL_J2118.0+0019_daily_bin727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-09-26 10:10:03.549206', job_id='427191', GAL2='0.95', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1632676203.55', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.59e-03', ts2='0.05', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='727' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:10:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 427191: <4FGL_J2118.0+0019_daily_bin727> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin727 319.505 0.3295 427766401 428025601 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 :                                   639.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            869 sec.

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

