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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin604
RA = 319.505, Dec = 0.3295
tmin = 395884801, tmax = 396144001
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='426986', job_status='RUN', time_executed='2021-09-26 09:58:01.377981', time_epoch_executed='1632675481.38' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/426986

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/426986/ft1_4FGL_J2118.0+0019_daily_bin604.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/426986/ft2_4FGL_J2118.0+0019_daily_bin604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/426986/ft1_4FGL_J2118.0+0019_daily_bin604.fits outfile=/scratch/kocevski/426986/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin604.fits ra=319.505 dec=0.3295 rad=12.0 tmin=395884801.0 tmax=396144001.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.34
user 3.07
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/426986/ft1_filtered_4FGL_J2118.0+0019_daily_bin604.fits evtable="EVENTS" scfile=/scratch/kocevski/426986/ft2_4FGL_J2118.0+0019_daily_bin604.fits sctable="SC_DATA" expcube=/scratch/kocevski/426986/ltcube_395884801_396144001_4FGL_J2118.0+0019_daily_bin604.fits outfile=/scratch/kocevski/426986/expmap_395884801_396144001_4FGL_J2118.0+0019_daily_bin604.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/426986/ltcube_395884801_396144001_4FGL_J2118.0+0019_daily_bin604.fits
.....................!
real 192.78
user 186.47
sys 5.84

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/426986/ft1_filtered_4FGL_J2118.0+0019_daily_bin604.fits scfile=/scratch/kocevski/426986/ft2_4FGL_J2118.0+0019_daily_bin604.fits outfile=/scratch/kocevski/426986/cmap_395884801_396144001_4FGL_J2118.0+0019_daily_bin604.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.63
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/426986/ft1_filtered_4FGL_J2118.0+0019_daily_bin604.fits scfile=/scratch/kocevski/426986/ft2_4FGL_J2118.0+0019_daily_bin604.fits outfile=/scratch/kocevski/426986/cmap_HighResolution_395884801_396144001_4FGL_J2118.0+0019_daily_bin604.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9038       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.748       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37452E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    68.222       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9615       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3712       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.2119       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .51750       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1345       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=   6630.429     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2519 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9031        17.321       -.35208E-07   -.10222E-03
   2  Prefactor     .10000E-03    1.5786       -.55689E-08** at limit **
   3  Prefactor     16.757        19.788       -.25205E-06    .21304E-05
   4  Prefactor     .10000E-03    19.507        .50811E-05** at limit **
   5  Prefactor     .10000E-03    18.520        .93759E-06** at limit **
   6  Prefactor     .10000E-03    18.971        .97975E-06** at limit **
   7  Prefactor     .10000E-03    32.151        .14837E-05** at limit **
   8  Prefactor     68.231        79.120        .91465E-05    .61063E-05
   9  Prefactor     .10000E-03    7.8120       -.13697E-06** at limit **
  10  Prefactor     .10000E-03    9.3395        .21728E-06** at limit **
  11  Prefactor     .10000E-03    17.707       -.76356E-05** at limit **
  12  Prefactor     .10000E-03    3.9384        .82857E-07** at limit **
  13  Prefactor     .10000E-03    .82783       -.34098E-07** at limit **
  14  Prefactor     .10000E-03    10.194       -.29856E-06** at limit **
  15  Prefactor     .10000E-03    41.259       -.11215E-04** at limit **
  16  Prefactor     .10000E-03    47.581        .10438E-04** at limit **
  17  Prefactor     4.9837        95.969        .39534E-04   -.26106E-05
  18  norm          2.3725        2.8932       -.28551E-06   -.77398E-03
  19  norm          .10000E-03    15.133        .19179E-05** at limit **
  20  Prefactor     .10000E-03    4.2948       -.44663E-06** at limit **
  21  Prefactor     8.2162        12.438       -.46341E-07   -.52958E-04
  22  Normalizat    .51723        .27243       -.72252E-05   -.10640E-03
  23  Prefactor     1.1345        .11991        .90858E-06   -.17184E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.90306
  Prefactor  = 0.0001
  Prefactor  = 16.7565
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.98367
  norm       = 2.37252
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.21618
  Normalizat = 0.517228
  Prefactor  = 1.13452
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.429     FROM HESSE     STATUS=OK           362 CALLS     2881 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9031        17.285        .23845E-03   -1.5367    
   2  Prefactor     .10000E-03    1.5823        .99893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.757        19.664        .97867E-04   -1.4889    
   4  Prefactor     .10000E-03    19.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    149.89        .66492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     68.231        78.858        .48596E-04   -1.4054    
   9  Prefactor     .10000E-03    7.8227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.3511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9767        .15778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .83883        .72307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    41.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    47.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.9837        95.044        .18055E-03   -1.5261    
  18  norm          2.3725        2.8834        .14521E-03   -1.5400    
  19  norm          .10000E-03    15.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.3230        .16488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.2162        12.390        .13990E-03   -1.5135    
  22  Normalizat    .51723        .28929        .45680E-03   -1.1162    
  23  Prefactor     1.1345        .13139        .15280E-03   -.88371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44415e-10
Minuit parameter uncertainties:
  1  14.1735
  2  1.70517e-06
  3  19.6714
  4  1.66353e-05
  5  0.00132378
  6  8.15329e-06
  7  3.13284e-05
  8  78.9789
  9  1.01132e-05
  10  4.1301e-06
  11  1.08782e-05
  12  1.54608e-05
  13  1.42131e-06
  14  1.51533e-05
  15  0.000109228
  16  1.15229e-05
  17  43.6076
  18  2.88357
  19  0.000100665
  20  9.07885e-05
  21  12.3942
  22  0.290136
  23  0.13143
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  6.823e+01  7.898e+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:  1.135e+00  1.314e-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:  5.172e-01  2.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/426986/likelihoodResults_395884801_396144001_4FGL_J2118.0+0019_daily_bin604.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) = 6630.29345225
delta logL = 0.135578560721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6630.25821627
delta logL = 0.170814537812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.924       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6851       1.0000          .0000       10.000    
     3 'Normalizat'    .47900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1498       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6630.258     FROM MIGRAD    STATUS=FAILED        95 CALLS      316 TOTAL
                     EDM=   .83E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.831        846.14        .89731E-04   -.73484E-05
   2  Index         3.6890        6.5698        .79249E-02    .51976E-03
   3  Normalizat    .47580        .25062        .47548E-03    .22731E-03
   4  Prefactor     1.1514        .12573        .15181E-03   -.85313E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6630.258     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      404 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.831        846.14        .38642E-03   -.73484E-05
   2  Index         3.6890        6.5698        .10546E-02    .51976E-03
   3  Normalizat    .47580        .25062        .25873E-03    .22731E-03
   4  Prefactor     1.1514        .12573        .89227E-04   -.85313E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6630.258     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      436 TOTAL
                     EDM=   .83E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.831        81.916        .35892E-05   -.12036E-04
   2  Index         3.6890        2.5062        .15850E-02   -.31632E-05
   3  Normalizat    .47578        .27787        .19019E-04    .69339E-05
   4  Prefactor     1.1514        .13231        .30362E-04    .24039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8306
  Index      = 3.68898
  Normalizat = 0.475781
  Prefactor  = 1.15138
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.258     FROM HESSE     STATUS=OK            23 CALLS      459 TOTAL
                     EDM=   .63E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.831        66.763        .71785E-06   -1.4817    
   2  Index         3.6890        2.1091        .63399E-04   -.26531    
   3  Normalizat    .47578        .27744        .38038E-05   -1.1355    
   4  Prefactor     1.1514        .13190        .60724E-05   -.87841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34028e-13
Minuit parameter uncertainties:
  1  67.0163
  2  2.18281
  3  0.278248
  4  0.131934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/426986': 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) = 6630.25814204
delta logL = 0.170888771115

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  1.983e+01  6.702e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  3.689e+00  2.183e+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:  1.151e+00  1.319e-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:  4.758e-01  2.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 319.505 0.330
Photon Index (Free Index): 3.69 +/- 2.18
Photon Flux (Free Index): 7.81e-08 +/- 7.79e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.33e-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/426986/cmap_HighResolution_395884801_396144001_4FGL_J2118.0+0019_daily_bin604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='1.71e-01', photon_flux2='7.81e-08', job_status='DONE', time_completed='2021-09-26 10:09:51.452050', photon_index_error2='2.18', photon_index2='3.69', ts='0.91', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.83e-07', energy_flux_error2='1.33e-05', EG='0.52', time_epoch_completed='1632676191.45', return_code='0', job_id='426986', GAL2='1.15', EG2='0.48', return_code2='0', photon_flux_error2='7.79e-08', ts2='1.32', photon_index='2.57' WHERE bin_id='604' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:09:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 426986: <4FGL_J2118.0+0019_daily_bin604> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin604 319.505 0.3295 395884801 396144001 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 :                                   708.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             330.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            876 sec.

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

