/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 76 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 = 7529
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2118.0+0019_daily_bin660
RA = 319.505, Dec = 0.3295
tmin = 410400001, tmax = 410659201
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='427077', job_status='RUN', time_executed='2021-09-26 09:57:05.192004', time_epoch_executed='1632675425.19' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427077

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427077/ft1_4FGL_J2118.0+0019_daily_bin660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427077/ft2_4FGL_J2118.0+0019_daily_bin660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427077/ft1_4FGL_J2118.0+0019_daily_bin660.fits outfile=/scratch/kocevski/427077/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin660.fits ra=319.505 dec=0.3295 rad=12.0 tmin=410400001.0 tmax=410659201.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.63
user 6.29
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/427077/ft1_filtered_4FGL_J2118.0+0019_daily_bin660.fits" evtable="EVENTS" scfile=/scratch/kocevski/427077/ft2_4FGL_J2118.0+0019_daily_bin660.fits sctable="SC_DATA" outfile=/scratch/kocevski/427077/ltcube_410400001_410659201_4FGL_J2118.0+0019_daily_bin660.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/427077/ft2_4FGL_J2118.0+0019_daily_bin660.fits
.....................!
real 14.52
user 14.07
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427077/ft1_filtered_4FGL_J2118.0+0019_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/427077/ft2_4FGL_J2118.0+0019_daily_bin660.fits sctable="SC_DATA" expcube=/scratch/kocevski/427077/ltcube_410400001_410659201_4FGL_J2118.0+0019_daily_bin660.fits outfile=/scratch/kocevski/427077/expmap_410400001_410659201_4FGL_J2118.0+0019_daily_bin660.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/427077/ltcube_410400001_410659201_4FGL_J2118.0+0019_daily_bin660.fits
.....................!
real 193.49
user 188.08
sys 4.69

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/427077/ft1_filtered_4FGL_J2118.0+0019_daily_bin660.fits scfile=/scratch/kocevski/427077/ft2_4FGL_J2118.0+0019_daily_bin660.fits outfile=/scratch/kocevski/427077/cmap_410400001_410659201_4FGL_J2118.0+0019_daily_bin660.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427077/ft1_filtered_4FGL_J2118.0+0019_daily_bin660.fits scfile=/scratch/kocevski/427077/ft2_4FGL_J2118.0+0019_daily_bin660.fits outfile=/scratch/kocevski/427077/cmap_HighResolution_410400001_410659201_4FGL_J2118.0+0019_daily_bin660.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/427077/ft1_filtered_4FGL_J2118.0+0019_daily_bin660.fits evtable="EVENTS" scfile=/scratch/kocevski/427077/ft2_4FGL_J2118.0+0019_daily_bin660.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/427077/Model_4FGL_J2118.0+0019_daily_bin660.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/427077/ft1_filtered_4FGL_J2118.0+0019_daily_bin660.fits.....................!
real 70.73
user 68.42
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4127       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8957       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.707       1.0000         .10000E-03   10000.    
     8 'Prefactor '    72.175       1.0000         .10000E-03   10000.    
     9 'Prefactor '    56.256       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.718       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.730       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11197E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19024E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10490E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30289       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5316       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .68391       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=   6324.850     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2531 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6696        .34473E-07** at limit **
   2  Prefactor     2.4126        4.7705       -.50854E-06   -.78418E-03
   3  Prefactor     .10000E-03    39.667        .11998E-04** at limit **
   4  Prefactor     4.8995        44.076       -.78646E-05   -.31866E-04
   5  Prefactor     .10000E-03    15.167       -.35674E-06** at limit **
   6  Prefactor     .10000E-03    13.705        .82294E-06** at limit **
   7  Prefactor     16.698        36.365        .35720E-05   -.63433E-05
   8  Prefactor     72.262        69.936        .43555E-04   -.32140E-04
   9  Prefactor     56.246        34.350        .28174E-05   -.56243E-04
  10  Prefactor     .10000E-03    8.7465       -.49132E-07** at limit **
  11  Prefactor     .10000E-03    13.384       -.59742E-06** at limit **
  12  Prefactor     12.725        9.7131       -.27133E-06   -.10375E-03
  13  Prefactor     .10000E-03    1.7383       -.40609E-07** at limit **
  14  Prefactor     30.737        32.504       -.39300E-05   -.52199E-04
  15  Prefactor     .10000E-03    20.151        .30370E-06** at limit **
  16  Prefactor     .10000E-03    132.98        .79384E-06** at limit **
  17  Prefactor     .10000E-03    395.09        .24087E-04** at limit **
  18  norm          .10000E-03    2.5257        .21675E-07** at limit **
  19  norm          .10000E-03    36.550        .79273E-05** at limit **
  20  Prefactor     .35715        7.1095        .22443E-05   -.95267E-03
  21  Prefactor     .10000E-03    34.556       -.11622E-04** at limit **
  22  Normalizat    1.5314        .26381       -.47489E-05   -.11651E-03
  23  Prefactor     .68392        .10665        .10088E-06   -.51027E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.4126
  Prefactor  = 0.0001
  Prefactor  = 4.89947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6983
  Prefactor  = 72.2621
  Prefactor  = 56.2463
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7255
  Prefactor  = 0.0001
  Prefactor  = 30.7375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.357147
  Prefactor  = 0.0001
  Normalizat = 1.53137
  Prefactor  = 0.683915
 **********
 **   18 **HESSE 
 **********

 FCN=   6324.850     FROM HESSE     STATUS=OK           362 CALLS     2893 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6760        .16784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.4126        4.7652        .23001E-03   -1.5397    
   3  Prefactor     .10000E-03    40.840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8995        44.146        .18179E-03   -1.5265    
   5  Prefactor     .10000E-03    15.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.698        36.365        .97986E-04   -1.4890    
   8  Prefactor     72.262        69.777        .23628E-03   -1.4006    
   9  Prefactor     56.246        34.400        .53483E-04   -1.4207    
  10  Prefactor     .10000E-03    8.7503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.725        9.7319        .11232E-03   -1.4994    
  13  Prefactor     .10000E-03    1.7648        .10232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.737        32.566        .72277E-04   -1.4599    
  15  Prefactor     .10000E-03    20.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    133.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    399.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.5382        .12343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    36.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .35715        58.077        .40863E-02   -1.5588    
  21  Prefactor     .10000E-03    35.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5314        .32063        .31300E-03   -.76901    
  23  Prefactor     .68392        .13013        .18730E-03   -1.0416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99662e-08
Minuit parameter uncertainties:
  1  6.85153e-06
  2  4.76594
  3  7.93098e-05
  4  29.4423
  5  1.30474e-05
  6  8.4794e-06
  7  36.4133
  8  69.8564
  9  34.4125
  10  1.1356e-05
  11  3.22719e-05
  12  9.73308
  13  5.62484e-06
  14  32.5853
  15  7.75044e-06
  16  2.37531e-05
  17  0.00131216
  18  1.69172e-06
  19  1.89153e-06
  20  9.11638
  21  0.000236338
  22  0.321058
  23  0.130189
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  7.226e+01  6.986e+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:  6.839e-01  1.302e-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.531e+00  3.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.51
Ra Dec: 319.505 0.330
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 5.90e-08 +/- 5.70e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.54e-05

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

Saving results to:
/scratch/kocevski/427077/likelihoodResults_410400001_410659201_4FGL_J2118.0+0019_daily_bin660.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) = 6324.77327757
delta logL = 0.0770450070513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6324.76813946
delta logL = 0.0821831230569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.856       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0444       1.0000          .0000       10.000    
     3 'Normalizat'    1.5019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69349       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=   6324.768     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      293 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.753        100.33        .55167E-04    .10436E-03
   2  Index         3.0469        1.5881        .82638E-02    .66664E-04
   3  Normalizat    1.5016        .32190        .31550E-03    .35650E-03
   4  Prefactor     .69349        .13300        .18614E-03   -.85902E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.7527
  Index      = 3.04691
  Normalizat = 1.50162
  Prefactor  = 0.693487
 **********
 **   18 **HESSE 
 **********

 FCN=   6324.768     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.753        82.779        .11033E-04   -1.4254    
   2  Index         3.0469        1.3158        .33055E-03   -.40130    
   3  Normalizat    1.5016        .31954        .63099E-04   -.77733    
   4  Prefactor     .69349        .13206        .37227E-04   -1.0378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32303e-09
Minuit parameter uncertainties:
  1  82.9603
  2  1.33441
  3  0.319967
  4  0.13212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427077': 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) = 6324.7681364
delta logL = 0.0821861754166

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  5.275e+01  8.296e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  3.047e+00  1.334e+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:  6.935e-01  1.321e-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.502e+00  3.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 319.505 0.330
Photon Index (Free Index): 3.05 +/- 1.33
Photon Flux (Free Index): 8.11e-08 +/- 8.62e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.42e-05

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/427077/cmap_HighResolution_410400001_410659201_4FGL_J2118.0+0019_daily_bin660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', comment='SUCCESS', photon_flux='5.90e-08', energy_flux2='1.58e-05', photon_flux_error='5.70e-08', dlogl='8.22e-02', energy_flux='1.59e-05', photon_flux2='8.11e-08', job_status='DONE', time_completed='2021-09-26 10:08:52.006721', photon_index_error2='1.33', photon_index2='3.05', ts='1.51', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.85e-07', energy_flux_error2='1.42e-05', EG='1.53', time_epoch_completed='1632676132.01', return_code='0', job_id='427077', GAL2='0.69', EG2='1.50', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='8.62e-08', ts2='1.70', photon_index='2.57' WHERE bin_id='660' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:08:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 427077: <4FGL_J2118.0+0019_daily_bin660> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin660 319.505 0.3295 410400001 410659201 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 :                                   698.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            807 sec.

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

