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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin937
RA = 319.505, Dec = 0.3295
tmin = 482198401, tmax = 482457601
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='428702', job_status='RUN', time_executed='2021-09-26 10:04:52.863243', time_epoch_executed='1632675892.86' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428702

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428702/ft1_4FGL_J2118.0+0019_daily_bin937.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428702/ft2_4FGL_J2118.0+0019_daily_bin937.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428702/ft1_4FGL_J2118.0+0019_daily_bin937.fits outfile=/scratch/kocevski/428702/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin937.fits ra=319.505 dec=0.3295 rad=12.0 tmin=482198401.0 tmax=482457601.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.67
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/428702/ft2_4FGL_J2118.0+0019_daily_bin937.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/428702/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin937.fits evtable="EVENTS" outfile="/scratch/kocevski/428702/ft1_filtered_4FGL_J2118.0+0019_daily_bin937.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428702/ft1_filtered_4FGL_J2118.0+0019_daily_bin937.fits" evtable="EVENTS" scfile=/scratch/kocevski/428702/ft2_4FGL_J2118.0+0019_daily_bin937.fits sctable="SC_DATA" outfile=/scratch/kocevski/428702/ltcube_482198401_482457601_4FGL_J2118.0+0019_daily_bin937.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/428702/ft2_4FGL_J2118.0+0019_daily_bin937.fits
.....................!
real 14.56
user 14.12
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428702/ft1_filtered_4FGL_J2118.0+0019_daily_bin937.fits evtable="EVENTS" scfile=/scratch/kocevski/428702/ft2_4FGL_J2118.0+0019_daily_bin937.fits sctable="SC_DATA" expcube=/scratch/kocevski/428702/ltcube_482198401_482457601_4FGL_J2118.0+0019_daily_bin937.fits outfile=/scratch/kocevski/428702/expmap_482198401_482457601_4FGL_J2118.0+0019_daily_bin937.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/428702/ltcube_482198401_482457601_4FGL_J2118.0+0019_daily_bin937.fits
.....................!
real 193.35
user 187.04
sys 5.82

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/428702/ft1_filtered_4FGL_J2118.0+0019_daily_bin937.fits scfile=/scratch/kocevski/428702/ft2_4FGL_J2118.0+0019_daily_bin937.fits outfile=/scratch/kocevski/428702/cmap_482198401_482457601_4FGL_J2118.0+0019_daily_bin937.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428702/ft1_filtered_4FGL_J2118.0+0019_daily_bin937.fits scfile=/scratch/kocevski/428702/ft2_4FGL_J2118.0+0019_daily_bin937.fits outfile=/scratch/kocevski/428702/cmap_HighResolution_482198401_482457601_4FGL_J2118.0+0019_daily_bin937.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=319.505 yref=0.3295 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.445       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8183       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    128.58       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.836       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.111       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1562       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20270E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23117       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6772       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .16953       1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.371       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0817       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92360       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=   7004.113     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2652 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.445        15.414       -.37233E-06   -.14297E-04
   2  Prefactor     .10000E-03    4.2987        .12598E-06** at limit **
   3  Prefactor     3.8196        20.980        .23818E-05   -.68291E-04
   4  Prefactor     .10000E-03    14.476        .12894E-07** at limit **
   5  Prefactor     .10000E-03    12.150       -.19358E-06** at limit **
   6  Prefactor     .10000E-03    9.4820       -.45595E-07** at limit **
   7  Prefactor     .10000E-03    36.004        .40973E-05** at limit **
   8  Prefactor     128.56        64.128        .38113E-05    .88155E-06
   9  Prefactor     32.837        22.833        .34143E-05   -.12610E-04
  10  Prefactor     14.112        24.787        .13009E-05   -.46407E-05
  11  Prefactor     .10000E-03    156.93        .50078E-05** at limit **
  12  Prefactor     4.1565        4.8043       -.19286E-06   -.34136E-03
  13  Prefactor     .10038E-03    1.0554        .22554E-06** at limit **
  14  Prefactor     .10006E-03    33.194       -.13220E-05** at limit **
  15  Prefactor     6.6743        33.996       -.22053E-06   -.28327E-04
  16  Prefactor     .10000E-03    47.152       -.87350E-05** at limit **
  17  Prefactor     .10000E-03    33.112       -.55188E-05** at limit **
  18  norm          .16211        1.1617       -.29901E-06   -.24242E-03
  19  norm          .10000E-03    6.1611       -.76203E-07** at limit **
  20  Prefactor     .10000E-03    2.1129       -.13600E-08** at limit **
  21  Prefactor     14.371        10.912        .57721E-05   -.56413E-05
  22  Normalizat    1.0814        .24462       -.26033E-05    .52520E-04
  23  Prefactor     .92374        .10777        .87659E-08   -.51961E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 24.445
  Prefactor  = 0.0001
  Prefactor  = 3.81959
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 128.561
  Prefactor  = 32.8369
  Prefactor  = 14.1117
  Prefactor  = 0.0001
  Prefactor  = 4.15654
  Prefactor  = 0.000100382
  Prefactor  = 0.000100056
  Prefactor  = 6.67429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.162112
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3708
  Normalizat = 1.08141
  Prefactor  = 0.923742
 **********
 **   18 **HESSE 
 **********

 FCN=   7004.113     FROM HESSE     STATUS=OK           386 CALLS     3038 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.445        15.426        .81019E-04   -1.4719    
   2  Prefactor     .10000E-03    4.4521        .33863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8196        20.864        .20655E-03   -1.5317    
   4  Prefactor     .10000E-03    14.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.4900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     128.56        64.188        .35505E-04   -1.3435    
   9  Prefactor     32.837        22.835        .69928E-04   -1.4561    
  10  Prefactor     14.112        24.798        .10663E-03   -1.4956    
  11  Prefactor     .10000E-03    160.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1565        4.8041        .19134E-03   -1.5300    
  13  Prefactor     .10038E-03    1.6974        .30776E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10006E-03    37.079        .12005       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.6743        34.023        .15529E-03   -1.5191    
  16  Prefactor     .10000E-03    47.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .16211        4.7739        .17460E-02   -1.5627    
  19  norm          .10000E-03    6.1740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.1170        .11880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.371        10.891        .10566E-03   -1.4950    
  22  Normalizat    1.0814        .29662        .34005E-03   -.90351    
  23  Prefactor     .92374        .13196        .17189E-03   -.95316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2702e-08
Minuit parameter uncertainties:
  1  15.4287
  2  9.51582e-06
  3  17.8636
  4  1.55457e-06
  5  1.63685e-05
  6  6.95208e-06
  7  2.92127e-05
  8  64.223
  9  22.8409
  10  24.8162
  11  0.000310003
  12  4.80452
  13  0.00161075
  14  0.00287568
  15  30.1655
  16  2.21044e-05
  17  4.67845e-05
  18  1.75905
  19  7.06068e-06
  20  4.45185e-07
  21  10.8925
  22  0.29708
  23  0.132006
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.286e+02  6.422e+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.237e-01  1.320e-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:  1.081e+00  2.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.14
Ra Dec: 319.505 0.330
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 5.24e-08
Energy Flux (Fixed Index): 2.83e-05 +/- 1.41e-05

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) = 7003.7052315
delta logL = 0.408144098578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7003.68148355
delta logL = 0.431892048828

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    145.34       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0866       1.0000          .0000       10.000    
     3 'Normalizat'    1.1348       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90765       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=   7003.681     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      270 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     145.35        78.751        .16712E-03    .40817E-06
   2  Index         2.0867        .49511        .75818E-02   -.56845E-05
   3  Normalizat    1.1347        .27942        .33305E-03   -.58713E-05
   4  Prefactor     .90769        .13037        .17322E-03    .24415E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 145.351
  Index      = 2.08669
  Normalizat = 1.13466
  Prefactor  = 0.907694
 **********
 **   18 **HESSE 
 **********

 FCN=   7003.681     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     145.35        79.124        .66847E-05   -1.3291    
   2  Index         2.0867        .49717        .30327E-03   -.62200    
   3  Normalizat    1.1347        .27971        .13322E-04   -.88647    
   4  Prefactor     .90769        .13050        .69287E-05   -.95873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50368e-12
Minuit parameter uncertainties:
  1  79.1814
  2  0.498419
  3  0.280081
  4  0.130548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428702': 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) = 7003.68148346
delta logL = 0.431892142675

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.454e+02  7.918e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  2.087e+00  4.984e-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:  9.077e-01  1.305e-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:  1.135e+00  2.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.96
Ra Dec: 319.505 0.330
Photon Index (Free Index): 2.09 +/- 0.50
Photon Flux (Free Index): 6.86e-08 +/- 5.42e-08
Energy Flux (Free Index): 3.88e-05 +/- 2.88e-05

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/428702/cmap_HighResolution_482198401_482457601_4FGL_J2118.0+0019_daily_bin937.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='3.88e-05', photon_flux_error='5.24e-08', dlogl='4.32e-01', energy_flux='2.83e-05', photon_flux2='6.86e-08', job_status='DONE', time_completed='2021-09-26 10:16:17.160616', photon_index_error2='0.50', photon_index2='2.09', ts='8.14', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.88e-05', EG='1.08', time_epoch_completed='1632676577.16', return_code='0', job_id='428702', GAL2='0.91', EG2='1.13', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='5.42e-08', ts2='8.96', photon_index='2.57' WHERE bin_id='937' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:16:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 428702: <4FGL_J2118.0+0019_daily_bin937> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin937> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 10:00:48 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 10:02:22 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:02:22 2021
Terminated at Sun Sep 26 10:16:17 2021
Results reported at Sun Sep 26 10:16:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin937 319.505 0.3295 482198401 482457601 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 :                                   681.28 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             308.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            929 sec.

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

