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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin734
RA = 319.505, Dec = 0.3295
tmin = 429580801, tmax = 429840001
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='427201', job_status='RUN', time_executed='2021-09-26 09:58:52.352193', time_epoch_executed='1632675532.35' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427201

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427201/ft1_4FGL_J2118.0+0019_daily_bin734.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427201/ft2_4FGL_J2118.0+0019_daily_bin734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427201/ft1_4FGL_J2118.0+0019_daily_bin734.fits outfile=/scratch/kocevski/427201/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin734.fits ra=319.505 dec=0.3295 rad=12.0 tmin=429580801.0 tmax=429840001.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 6.38
user 6.11
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427201/ft1_filtered_4FGL_J2118.0+0019_daily_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/427201/ft2_4FGL_J2118.0+0019_daily_bin734.fits sctable="SC_DATA" expcube=/scratch/kocevski/427201/ltcube_429580801_429840001_4FGL_J2118.0+0019_daily_bin734.fits outfile=/scratch/kocevski/427201/expmap_429580801_429840001_4FGL_J2118.0+0019_daily_bin734.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/427201/ltcube_429580801_429840001_4FGL_J2118.0+0019_daily_bin734.fits
.....................!
real 191.40
user 186.19
sys 4.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/427201/ft1_filtered_4FGL_J2118.0+0019_daily_bin734.fits scfile=/scratch/kocevski/427201/ft2_4FGL_J2118.0+0019_daily_bin734.fits outfile=/scratch/kocevski/427201/cmap_429580801_429840001_4FGL_J2118.0+0019_daily_bin734.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427201/ft1_filtered_4FGL_J2118.0+0019_daily_bin734.fits scfile=/scratch/kocevski/427201/ft2_4FGL_J2118.0+0019_daily_bin734.fits outfile=/scratch/kocevski/427201/cmap_HighResolution_429580801_429840001_4FGL_J2118.0+0019_daily_bin734.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.57
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6273       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9417       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.521       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.395       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2103       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.226       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    66.002       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    143.18       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10220E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3982       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .68444       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86793       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=   4264.754     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2536 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6202        16.767        .29868E-05    .34745E-04
   2  Prefactor     3.9416        7.3772        .10211E-05    .70483E-04
   3  Prefactor     32.518        20.808        .37917E-06    .26991E-04
   4  Prefactor     .10000E-03    27.277        .44444E-05** at limit **
   5  Prefactor     34.578        85.649       -.12085E-04    .40411E-05
   6  Prefactor     5.9685        288.70        .15373E-04    .11908E-05
   7  Prefactor     .10000E-03    24.125       -.22878E-05** at limit **
   8  Prefactor     43.207        47.192       -.21260E-05   -.12932E-04
   9  Prefactor     .10000E-03    9.7370       -.14493E-06** at limit **
  10  Prefactor     .10000E-03    53.101       -.22608E-05** at limit **
  11  Prefactor     .10000E-03    50.697       -.66811E-05** at limit **
  12  Prefactor     .10000E-03    2.6937       -.11837E-06** at limit **
  13  Prefactor     .10000E-03    2.0375        .12931E-06** at limit **
  14  Prefactor     66.087        46.853        .83850E-05    .86416E-04
  15  Prefactor     .10000E-03    13.897        .15028E-07** at limit **
  16  Prefactor     .10000E-03    72.811        .10105E-04** at limit **
  17  Prefactor     143.13        93.764       -.51830E-05   -.30013E-04
  18  norm          .10000E-03    2.1869       -.20033E-06** at limit **
  19  norm          .10000E-03    64.123        .35278E-06** at limit **
  20  Prefactor     .10000E-03    7.3849       -.77910E-06** at limit **
  21  Prefactor     4.4008        21.126        .75845E-06    .11753E-04
  22  Normalizat    .68487        .32268       -.11245E-04    .91526E-04
  23  Prefactor     .86775        .13066        .34655E-05   -.44362E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.62021
  Prefactor  = 3.94164
  Prefactor  = 32.518
  Prefactor  = 0.0001
  Prefactor  = 34.5784
  Prefactor  = 5.96848
  Prefactor  = 0.0001
  Prefactor  = 43.2075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 143.127
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 4.40082
  Normalizat = 0.684874
  Prefactor  = 0.867747
 **********
 **   18 **HESSE 
 **********

 FCN=   4264.754     FROM HESSE     STATUS=OK           366 CALLS     2902 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6202        16.775        .21213E-03   -1.5327    
   2  Prefactor     3.9416        7.3470        .20318E-03   -1.5311    
   3  Prefactor     32.518        20.801        .70265E-04   -1.4567    
   4  Prefactor     .10000E-03    27.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.578        86.473        .68329E-04   -1.4531    
   6  Prefactor     5.9685        299.23        .16109E-03   -1.5219    
   7  Prefactor     .10000E-03    24.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     43.207        47.258        .60976E-04   -1.4392    
   9  Prefactor     .10000E-03    9.7428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    53.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    50.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.7037        .10467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.3724        .18002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     66.087        46.916        .24700E-03   -1.4080    
  15  Prefactor     .10000E-03    13.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    73.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     143.13        94.774        .16835E-03   -1.3310    
  18  norm          .10000E-03    2.1992        .94265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    64.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.3889        .17308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.4008        21.059        .19204E-03   -1.5288    
  22  Normalizat    .68487        .35835        .39202E-03   -1.0449    
  23  Prefactor     .86775        .14870        .15539E-03   -.97277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43227e-09
Minuit parameter uncertainties:
  1  15.5926
  2  7.34867
  3  20.8052
  4  9.28143e-05
  5  86.7885
  6  84.9736
  7  2.46783e-05
  8  47.2993
  9  8.56385e-06
  10  0.000206657
  11  0.000129877
  12  2.54551e-06
  13  8.24604e-05
  14  46.9423
  15  3.53298e-06
  16  0.000346348
  17  94.8753
  18  1.1717e-05
  19  0.000820828
  20  4.25275e-05
  21  19.2647
  22  0.359579
  23  0.148769
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  4.321e+01  4.730e+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:  8.677e-01  1.488e-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.849e-01  3.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.55
Ra Dec: 319.505 0.330
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 3.53e-08 +/- 3.86e-08
Energy Flux (Fixed Index): 9.50e-06 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/427201/likelihoodResults_429580801_429840001_4FGL_J2118.0+0019_daily_bin734.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) = 4262.61055736
delta logL = 2.14382029553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4262.48186112
delta logL = 2.2725165347

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.225       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0659       1.0000          .0000       10.000    
     3 'Normalizat'    .71194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86062       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.

 FCN=   4262.482     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      228 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.181        22.839        .21735E-02   -.10717E-04
   2  Index         1.0654        .37401        .17361       -.44820E-04
   3  Normalizat    .71199        .27492        .86864E-01    .19346E-04
   4  Prefactor     .86056        .12254        .44501E-01   -.55691E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.1807
  Index      = 1.06536
  Normalizat = 0.711991
  Prefactor  = 0.860557
 **********
 **   18 **HESSE 
 **********

 FCN=   4262.482     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.181        33.193        .86940E-04   -1.4787    
   2  Index         1.0654        .57544        .72494E-02   -.90581    
   3  Normalizat    .71199        .32284        .38473E-03   -1.0342    
   4  Prefactor     .86056        .14433        .15588E-03   -.97533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19834e-09
Minuit parameter uncertainties:
  1  33.2218
  2  0.578833
  3  0.323702
  4  0.144394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427201': 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) = 4262.48186006
delta logL = 2.27251759197

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  2.118e+01  3.322e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.065e+00  5.788e-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:  8.606e-01  1.444e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  7.120e-01  3.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.10
Ra Dec: 319.505 0.330
Photon Index (Free Index): 1.07 +/- 0.58
Photon Flux (Free Index): 8.79e-09 +/- 9.69e-09
Energy Flux (Free Index): 1.08e-04 +/- 1.60e-04

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/427201/cmap_HighResolution_429580801_429840001_4FGL_J2118.0+0019_daily_bin734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='3.53e-08', energy_flux2='1.08e-04', photon_flux_error='3.86e-08', dlogl='2.27e+00', energy_flux='9.50e-06', photon_flux2='8.79e-09', job_status='DONE', time_completed='2021-09-26 10:08:37.637713', photon_index_error2='0.58', photon_index2='1.07', ts='2.55', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='1.60e-04', EG='0.68', time_epoch_completed='1632676117.64', return_code='0', job_id='427201', GAL2='0.86', EG2='0.71', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='9.69e-09', ts2='7.10', photon_index='2.57' WHERE bin_id='734' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:08:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 427201: <4FGL_J2118.0+0019_daily_bin734> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin734 319.505 0.3295 429580801 429840001 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 :                                   580.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            782 sec.

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

