/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 113 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2118.0+0019_daily_bin282
RA = 319.505, Dec = 0.3295
tmin = 312422401, tmax = 312681601
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='422977', job_status='RUN', time_executed='2021-09-26 09:46:04.350521', time_epoch_executed='1632674764.35' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422977

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422977/ft1_4FGL_J2118.0+0019_daily_bin282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422977/ft2_4FGL_J2118.0+0019_daily_bin282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422977/ft1_4FGL_J2118.0+0019_daily_bin282.fits outfile=/scratch/kocevski/422977/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin282.fits ra=319.505 dec=0.3295 rad=12.0 tmin=312422401.0 tmax=312681601.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.18
user 2.98
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/422977/ft2_4FGL_J2118.0+0019_daily_bin282.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/422977/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin282.fits evtable="EVENTS" outfile="/scratch/kocevski/422977/ft1_filtered_4FGL_J2118.0+0019_daily_bin282.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.43
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/422977/ft1_filtered_4FGL_J2118.0+0019_daily_bin282.fits" evtable="EVENTS" scfile=/scratch/kocevski/422977/ft2_4FGL_J2118.0+0019_daily_bin282.fits sctable="SC_DATA" outfile=/scratch/kocevski/422977/ltcube_312422401_312681601_4FGL_J2118.0+0019_daily_bin282.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/422977/ft2_4FGL_J2118.0+0019_daily_bin282.fits
.....................!
real 10.90
user 10.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422977/ft1_filtered_4FGL_J2118.0+0019_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/422977/ft2_4FGL_J2118.0+0019_daily_bin282.fits sctable="SC_DATA" expcube=/scratch/kocevski/422977/ltcube_312422401_312681601_4FGL_J2118.0+0019_daily_bin282.fits outfile=/scratch/kocevski/422977/expmap_312422401_312681601_4FGL_J2118.0+0019_daily_bin282.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/422977/ltcube_312422401_312681601_4FGL_J2118.0+0019_daily_bin282.fits
.....................!
real 156.25
user 151.49
sys 4.25

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/422977/ft1_filtered_4FGL_J2118.0+0019_daily_bin282.fits scfile=/scratch/kocevski/422977/ft2_4FGL_J2118.0+0019_daily_bin282.fits outfile=/scratch/kocevski/422977/cmap_312422401_312681601_4FGL_J2118.0+0019_daily_bin282.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.48
user 0.32
sys 0.15

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

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

This is gtbin version HEAD
real 0.48
user 0.32
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3736       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2211       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.607       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .78055E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.329       1.0000         .10000E-03   10000.    
    11 'Prefactor '    62.292       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.768       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14570E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .93784       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98124       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6588.891     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     2680 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3843        11.025         .0000        .27310E-02
   2  Prefactor     .10000E-03    1.6280         .0000    ** at limit **
   3  Prefactor     2.2287        32.494         .0000        .10714E-03
   4  Prefactor     .10000E-03    14.420         .0000    ** at limit **
   5  Prefactor     .10000E-03    22.693         .0000    ** at limit **
   6  Prefactor     26.627        24.633         .0000       -.61481E-05
   7  Prefactor     .10000E-03    32.671         .0000    ** at limit **
   8  Prefactor     1.7563        529.21         .0000        .31980E-03
   9  Prefactor     .10000E-03    7.6293         .0000    ** at limit **
  10  Prefactor     26.321        24.396         .0000        .15803E-03
  11  Prefactor     62.110        48.635         .0000        .10653E-04
  12  Prefactor     .10000E-03    5.7287         .0000    ** at limit **
  13  Prefactor     .10000E-03    1.5804         .0000    ** at limit **
  14  Prefactor     .10000E-03    23.707         .0000    ** at limit **
  15  Prefactor     .10000E-03    15.945         .0000    ** at limit **
  16  Prefactor     48.800        73.231         .0000       -.53773E-05
  17  Prefactor     .10000E-03    78.847         .0000    ** at limit **
  18  norm          .10000E-03    .92467         .0000    ** at limit **
  19  norm          .10000E-03    14.553         .0000    ** at limit **
  20  Prefactor     .10000E-03    4.4851         .0000    ** at limit **
  21  Prefactor     .10000E-03    5.3399         .0000    ** at limit **
  22  Normalizat    .93623        .23885         .0000        .96533E-05
  23  Prefactor     .98155        .10819         .0000       -.66546E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.38428
  Prefactor  = 0.0001
  Prefactor  = 2.22871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.6274
  Prefactor  = 0.0001
  Prefactor  = 1.75632
  Prefactor  = 0.0001
  Prefactor  = 26.3214
  Prefactor  = 62.1104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.8001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.936233
  Prefactor  = 0.981547
 **********
 **   18 **HESSE 
 **********

 FCN=   6588.891     FROM HESSE     STATUS=OK           360 CALLS     3040 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3843        11.013        .96295E-03   -1.5289    
   2  Prefactor     .10000E-03    1.6387        .10113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2287        32.454        .27592E-03   -1.5409    
   4  Prefactor     .10000E-03    14.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.627        24.584        .77664E-04   -1.4675    
   7  Prefactor     .10000E-03    32.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7563        531.56        .18519E-02   -1.5443    
   9  Prefactor     .10000E-03    7.6428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.321        24.432        .39036E-03   -1.4681    
  11  Prefactor     62.110        48.583        .50841E-04   -1.4130    
  12  Prefactor     .10000E-03    5.8433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6124        .19823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     48.800        73.222        .57422E-04   -1.4310    
  17  Prefactor     .10000E-03    79.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .93058        .76192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    14.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5086        .16785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.3604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .93623        .28740        .35025E-03   -.95198    
  23  Prefactor     .98155        .13147        .16379E-03   -.93347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80647e-11
Minuit parameter uncertainties:
  1  11.0182
  2  2.68632e-06
  3  17.0203
  4  2.91164e-06
  5  4.25768e-05
  6  24.5931
  7  9.81671e-05
  8  61.6677
  9  3.22506e-05
  10  24.4413
  11  48.6142
  12  7.44459e-06
  13  3.53381e-06
  14  6.1661e-05
  15  4.30553e-06
  16  73.3571
  17  0.000603962
  18  4.26738e-06
  19  8.39611e-05
  20  1.96826e-05
  21  1.44032e-05
  22  0.287871
  23  0.131514
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.756e+00  6.167e+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.815e-01  1.315e-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:  9.362e-01  2.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 319.505 0.330
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/422977/likelihoodResults_312422401_312681601_4FGL_J2118.0+0019_daily_bin282.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6588.72899506
delta logL = 0.162353158651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6588.56241001
delta logL = 0.32893820228

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15560E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9980       1.0000          .0000       10.000    
     3 'Normalizat'    .89902       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99381       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=   6588.562     FROM MIGRAD    STATUS=CONVERGED    121 CALLS      468 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15472E-03    .20860E-03    .49657E-03** at limit **
   2  Index        10.0000        6.4455        .50000    ** at limit **
   3  Normalizat    .89913        .22708        .80554E-01    .20418E-03
   4  Prefactor     .99372        .10839        .46190E-01    .55558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000154723
  Index      = 10
  Normalizat = 0.899129
  Prefactor  = 0.993723
 **********
 **   18 **HESSE 
 **********

 FCN=   6588.562     FROM HESSE     STATUS=OK            35 CALLS      503 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15472E-03    .27948E-03    .19275E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.2408        .50000        1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .89913        .27595        .35659E-03   -.96491    
   4  Prefactor     .99372        .13153        .16287E-03   -.92939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75804e-08
Minuit parameter uncertainties:
  1  0.000247337
  2  0.000301136
  3  0.276381
  4  0.131569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422977': 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) = 6588.56239597
delta logL = 0.328952241107

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.547e-04  2.473e-04  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  1.000e+01  3.011e-04  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.937e-01  1.316e-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:  8.991e-01  2.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 319.505 0.330

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/422977/cmap_HighResolution_312422401_312681601_4FGL_J2118.0+0019_daily_bin282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.41e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-26 09:56:12.249122', job_id='422977', GAL2='0.99', fit_tolerance='1e-08', EG2='0.90', EG='0.94', time_epoch_completed='1632675372.25', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.29e-01', ts2='0.68', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='282' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 09:56:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 422977: <4FGL_J2118.0+0019_daily_bin282> in cluster <slac> Done

Job <4FGL_J2118.0+0019_daily_bin282> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 09:40:19 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 09:44:01 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:44:01 2021
Terminated at Sun Sep 26 09:56:14 2021
Results reported at Sun Sep 26 09:56:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin282 319.505 0.3295 312422401 312681601 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 :                                   603.00 sec.
    Max Memory :                                 1016 MB
    Average Memory :                             255.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            955 sec.

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

