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


Performing analysis on: 4FGL_J2118.0+0019_daily_bin590
RA = 319.505, Dec = 0.3295
tmin = 392256001, tmax = 392515201
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='426965', job_status='RUN', time_executed='2021-09-26 09:58:19.355750', time_epoch_executed='1632675499.36' WHERE source_name='4FGL J2118.0+0019' and cadence='daily' and bin_id='590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/426965

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/426965/ft1_4FGL_J2118.0+0019_daily_bin590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/426965/ft2_4FGL_J2118.0+0019_daily_bin590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/426965/ft1_4FGL_J2118.0+0019_daily_bin590.fits outfile=/scratch/kocevski/426965/ft1_filteredMKT_4FGL_J2118.0+0019_daily_bin590.fits ra=319.505 dec=0.3295 rad=12.0 tmin=392256001.0 tmax=392515201.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.31
user 3.06
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/426965/ft1_filtered_4FGL_J2118.0+0019_daily_bin590.fits evtable="EVENTS" scfile=/scratch/kocevski/426965/ft2_4FGL_J2118.0+0019_daily_bin590.fits sctable="SC_DATA" expcube=/scratch/kocevski/426965/ltcube_392256001_392515201_4FGL_J2118.0+0019_daily_bin590.fits outfile=/scratch/kocevski/426965/expmap_392256001_392515201_4FGL_J2118.0+0019_daily_bin590.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/426965/ltcube_392256001_392515201_4FGL_J2118.0+0019_daily_bin590.fits
.....................!
real 191.80
user 185.70
sys 5.45

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/426965/ft1_filtered_4FGL_J2118.0+0019_daily_bin590.fits scfile=/scratch/kocevski/426965/ft2_4FGL_J2118.0+0019_daily_bin590.fits outfile=/scratch/kocevski/426965/cmap_392256001_392515201_4FGL_J2118.0+0019_daily_bin590.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/426965/ft1_filtered_4FGL_J2118.0+0019_daily_bin590.fits scfile=/scratch/kocevski/426965/ft2_4FGL_J2118.0+0019_daily_bin590.fits outfile=/scratch/kocevski/426965/cmap_HighResolution_392256001_392515201_4FGL_J2118.0+0019_daily_bin590.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.78
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    43.181       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.338       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.770       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.061       1.0000         .10000E-03   10000.    
     8 'Prefactor '    87.562       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9537       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.622       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0521       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2093       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12868E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .12485E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    19.449       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2459       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .52696       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94799       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=   7866.274     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2567 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          43.180        17.611        .12550E-06    .12722E-04
   2  Prefactor     .10000E-03    1.9257       -.52105E-07** at limit **
   3  Prefactor     16.340        11.818        .29735E-06    .90577E-05
   4  Prefactor     .10000E-03    12.540       -.55226E-06** at limit **
   5  Prefactor     .10000E-03    17.111       -.35776E-06** at limit **
   6  Prefactor     18.760        19.608        .13279E-06    .12521E-04
   7  Prefactor     27.058        37.572        .29248E-06   -.46745E-06
   8  Prefactor     87.504        57.375        .44630E-05    .19379E-04
   9  Prefactor     3.9550        8.9534        .15273E-06    .52744E-06
  10  Prefactor     .10000E-03    8.7910       -.43199E-07** at limit **
  11  Prefactor     42.590        33.652        .22982E-05    .25976E-04
  12  Prefactor     3.0527        4.6879        .21669E-05    .15377E-03
  13  Prefactor     .10000E-03    .74702       -.33053E-06** at limit **
  14  Prefactor     1.4531        98.980       -.23717E-06   -.18239E-04
  15  Prefactor     .10000E-03    14.038        .58003E-06** at limit **
  16  Prefactor     .10000E-03    44.803        .15586E-05** at limit **
  17  Prefactor     .10000E-03    96.635        .34779E-05** at limit **
  18  norm          .10379E-03    1.3779        .80782E-06** at limit **
  19  norm          19.453        20.967       -.21289E-06   -.21588E-03
  20  Prefactor     5.2369        6.3875       -.14395E-06   -.92364E-04
  21  Prefactor     .10000E-03    8.8477        .73165E-07** at limit **
  22  Normalizat    .52677        .21607       -.27503E-05   -.82033E-04
  23  Prefactor     .94801        .96570E-01    .18956E-06   -.23523E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 43.1798
  Prefactor  = 0.0001
  Prefactor  = 16.3404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7604
  Prefactor  = 27.0577
  Prefactor  = 87.5041
  Prefactor  = 3.95503
  Prefactor  = 0.0001
  Prefactor  = 42.5896
  Prefactor  = 3.05271
  Prefactor  = 0.0001
  Prefactor  = 1.45314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000103788
  norm       = 19.4533
  Prefactor  = 5.23688
  Prefactor  = 0.0001
  Normalizat = 0.526768
  Prefactor  = 0.948015
 **********
 **   18 **HESSE 
 **********

 FCN=   7866.274     FROM HESSE     STATUS=OK           380 CALLS     2947 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          43.180        17.603        .61008E-04   -1.4393    
   2  Prefactor     .10000E-03    1.9570        .12014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.340        11.802        .99087E-04   -1.4899    
   4  Prefactor     .10000E-03    12.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.760        19.590        .92446E-04   -1.4841    
   7  Prefactor     27.058        37.580        .77010E-04   -1.4667    
   8  Prefactor     87.504        57.240        .21468E-03   -1.3834    
   9  Prefactor     3.9550        8.9489        .20286E-03   -1.5310    
  10  Prefactor     .10000E-03    8.8204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     42.590        33.647        .61405E-04   -1.4402    
  12  Prefactor     3.0527        4.6956        .11329E-02   -1.5359    
  13  Prefactor     .10000E-03    .75775        .74853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4531        99.365        .41161E-03   -1.5467    
  15  Prefactor     .10000E-03    14.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    44.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    98.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10379E-03    2.5285        .33025E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          19.453        20.998        .90819E-04   -1.4826    
  20  Prefactor     5.2369        6.3674        .17550E-03   -1.5250    
  21  Prefactor     .10000E-03    9.1758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .52677        .23299        .40611E-03   -1.1119    
  23  Prefactor     .94801        .10663        .15056E-03   -.94483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16748e-09
Minuit parameter uncertainties:
  1  17.6053
  2  6.83014e-07
  3  11.8034
  4  1.98525e-05
  5  1.72613e-05
  6  19.5964
  7  37.6131
  8  57.2761
  9  8.95197
  10  4.5694e-06
  11  33.6616
  12  4.6962
  13  9.38247e-06
  14  24.0735
  15  1.19474e-05
  16  3.8791e-06
  17  0.000232503
  18  0.0061898
  19  21.0059
  20  6.36822
  21  1.7102e-05
  22  0.233418
  23  0.106655
Done.

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

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  8.750e+01  5.728e+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.480e-01  1.067e-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.268e-01  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.44
Ra Dec: 319.505 0.330
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 4.67e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/426965/likelihoodResults_392256001_392515201_4FGL_J2118.0+0019_daily_bin590.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) = 7865.92895981
delta logL = 0.345294494618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7865.88764632
delta logL = 0.386607986342

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.399       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2939       1.0000          .0000       10.000    
     3 'Normalizat'    .48467       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96282       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=   7865.888     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      296 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.349        84.143        .59504E-04    .88459E-04
   2  Index         3.2945        1.3340        .58262E-02    .73119E-04
   3  Normalizat    .48462        .22293        .42239E-03    .16669E-03
   4  Prefactor     .96284        .10749        .14949E-03   -.71926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.3489
  Index      = 3.2945
  Normalizat = 0.484624
  Prefactor  = 0.962836
 **********
 **   18 **HESSE 
 **********

 FCN=   7865.888     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.349        60.754        .23802E-05   -1.4360    
   2  Index         3.2945        .96706        .23305E-03   -.34809    
   3  Normalizat    .48462        .22086        .16896E-04   -1.1313    
   4  Prefactor     .96284        .10647        .29899E-04   -.93979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69455e-09
Minuit parameter uncertainties:
  1  60.8373
  2  0.974013
  3  0.221257
  4  0.106491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/426965': 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) = 7865.88764588
delta logL = 0.386608421303

Extracting fit parameters...

4FGL J2118.0+0019
   Spectrum: PowerLaw
308    Prefactor:  4.535e+01  6.084e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        Index:  3.294e+00  9.740e-01  0.000e+00  1.000e+01 (-1.000e+00)
310        Scale:  6.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  9.628e-01  1.065e-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.846e-01  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.33
Ra Dec: 319.505 0.330
Photon Index (Free Index): 3.29 +/- 0.97
Photon Flux (Free Index): 9.93e-08 +/- 6.06e-08
Energy Flux (Free Index): 1.76e-05 +/- 1.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/426965/cmap_HighResolution_392256001_392515201_4FGL_J2118.0+0019_daily_bin590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='1.76e-05', photon_flux_error='4.67e-08', dlogl='3.87e-01', energy_flux='1.92e-05', photon_flux2='9.93e-08', job_status='DONE', time_completed='2021-09-26 10:11:20.332976', photon_index_error2='0.97', photon_index2='3.29', ts='3.44', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.63e-07', energy_flux_error2='1.04e-05', EG='0.53', time_epoch_completed='1632676280.33', return_code='0', job_id='426965', GAL2='0.96', EG2='0.48', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='6.06e-08', ts2='4.33', photon_index='2.57' WHERE bin_id='590' AND source_name='4FGL J2118.0+0019' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 10:11:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 426965: <4FGL_J2118.0+0019_daily_bin590> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2118.0+0019_daily_bin590 319.505 0.3295 392256001 392515201 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 :                                   778.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            966 sec.

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

