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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1490
RA = 169.271, Dec = 20.2294
tmin = 625536001, tmax = 625795201
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='638933', job_status='RUN', time_executed='2021-09-03 14:31:20.572363', time_epoch_executed='1630704680.57' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638933

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638933/ft1_4FGL_J1117.0+2013_daily_bin1490.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638933/ft2_4FGL_J1117.0+2013_daily_bin1490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638933/ft1_4FGL_J1117.0+2013_daily_bin1490.fits outfile=/scratch/kocevski/638933/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1490.fits ra=169.271 dec=20.2294 rad=12.0 tmin=625536001.0 tmax=625795201.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.66
user 3.39
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/638933/ft2_4FGL_J1117.0+2013_daily_bin1490.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/638933/ft2_4FGL_J1117.0+2013_daily_bin1490.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/638933/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1490.fits evtable="EVENTS" outfile="/scratch/kocevski/638933/ft1_filtered_4FGL_J1117.0+2013_daily_bin1490.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.74
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/638933/ft1_filtered_4FGL_J1117.0+2013_daily_bin1490.fits" evtable="EVENTS" scfile=/scratch/kocevski/638933/ft2_4FGL_J1117.0+2013_daily_bin1490.fits sctable="SC_DATA" outfile=/scratch/kocevski/638933/ltcube_625536001_625795201_4FGL_J1117.0+2013_daily_bin1490.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/638933/ft2_4FGL_J1117.0+2013_daily_bin1490.fits
.....................!
real 14.22
user 13.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638933/ft1_filtered_4FGL_J1117.0+2013_daily_bin1490.fits evtable="EVENTS" scfile=/scratch/kocevski/638933/ft2_4FGL_J1117.0+2013_daily_bin1490.fits sctable="SC_DATA" expcube=/scratch/kocevski/638933/ltcube_625536001_625795201_4FGL_J1117.0+2013_daily_bin1490.fits outfile=/scratch/kocevski/638933/expmap_625536001_625795201_4FGL_J1117.0+2013_daily_bin1490.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/638933/ltcube_625536001_625795201_4FGL_J1117.0+2013_daily_bin1490.fits
.....................!
real 194.32
user 187.27
sys 4.72

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1117.0+2013 @ 169.271 20.2294

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/638933/ft1_filtered_4FGL_J1117.0+2013_daily_bin1490.fits scfile=/scratch/kocevski/638933/ft2_4FGL_J1117.0+2013_daily_bin1490.fits outfile=/scratch/kocevski/638933/cmap_625536001_625795201_4FGL_J1117.0+2013_daily_bin1490.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=169.271 yref=20.2294 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638933/ft1_filtered_4FGL_J1117.0+2013_daily_bin1490.fits scfile=/scratch/kocevski/638933/ft2_4FGL_J1117.0+2013_daily_bin1490.fits outfile=/scratch/kocevski/638933/cmap_HighResolution_625536001_625795201_4FGL_J1117.0+2013_daily_bin1490.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=169.271 yref=20.2294 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 2.17
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/638933/ft1_filtered_4FGL_J1117.0+2013_daily_bin1490.fits evtable="EVENTS" scfile=/scratch/kocevski/638933/ft2_4FGL_J1117.0+2013_daily_bin1490.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/638933/Model_4FGL_J1117.0+2013_daily_bin1490.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/638933/ft1_filtered_4FGL_J1117.0+2013_daily_bin1490.fits.....................!
real 51.68
user 49.81
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/638933/ft1_filtered_4FGL_J1117.0+2013_daily_bin1490.fits', '/scratch/kocevski/638933/ft2_4FGL_J1117.0+2013_daily_bin1490.fits', expMap='/scratch/kocevski/638933/expmap_625536001_625795201_4FGL_J1117.0+2013_daily_bin1490.fits', expCube='/scratch/kocevski/638933/ltcube_625536001_625795201_4FGL_J1117.0+2013_daily_bin1490.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/638933/Model_4FGL_J1117.0+2013_daily_bin1490.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1117.0+2013'

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  3.413e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.957e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/638933/ft1_filtered_4FGL_J1117.0+2013_daily_bin1490.fits
Spacecraft file(s): /scratch/kocevski/638933/ft2_4FGL_J1117.0+2013_daily_bin1490.fits
Exposure map: /scratch/kocevski/638933/expmap_625536001_625795201_4FGL_J1117.0+2013_daily_bin1490.fits
Exposure cube: /scratch/kocevski/638933/ltcube_625536001_625795201_4FGL_J1117.0+2013_daily_bin1490.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/638933/Model_4FGL_J1117.0+2013_daily_bin1490.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) = 5193.16177397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98880       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .84657E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9239       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .51241E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .78775       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3813       1.0000         .10000E-03   10000.    
    11 'norm      '    23.941       1.0000         .10000E-03   10000.    
    12 'norm      '    .26135       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0213       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.136       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4687       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2167       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7464       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83383       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2018       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5193.149     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2461 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99190        4.6209        .17926E-05   -.97336E-04
   2  Prefactor     .10141E-03    .77862        .30066E-07** at limit **
   3  Prefactor     4.9204        5.8166        .32129E-06    .18407E-04
   4  Prefactor     .10000E-03    4.6657        .36743E-07** at limit **
   5  Prefactor     .10000E-03    4.6137        .34097E-07** at limit **
   6  Prefactor     .10004E-03    7.1986        .54436E-07** at limit **
   7  Prefactor     .10000E-03    12.592        .12560E-06** at limit **
   8  norm          .78770        .94227        .35885E-07    .60309E-04
   9  Prefactor     .10000E-03    1.0613        .38318E-07** at limit **
  10  Prefactor     1.3791        9.0631        .22935E-05   -.84439E-04
  11  norm          23.936        12.304       -.69901E-06   -.48605E-03
  12  norm          .16845        7.3352        .17647E-06    .43199E-05
  13  Prefactor     3.0210        6.0223        .15370E-07   -.86257E-04
  14  Prefactor     11.148        21.354       -.39721E-07   -.57196E-04
  15  Prefactor     .10000E-03    19.669       -.24585E-06** at limit **
  16  Prefactor     9.4605        17.311       -.31287E-06   -.10129E-03
  17  Prefactor     .10000E-03    38.707       -.35010E-06** at limit **
  18  Prefactor     .10000E-03    5.4148        .52417E-07** at limit **
  19  Prefactor     1.2164        1.7136        .18174E-06   -.48808E-05
  20  Prefactor     2.7444        2.8303        .35574E-07   -.19406E-04
  21  Normalizat    .83419        .18246       -.86447E-06   -.83368E-04
  22  Prefactor     1.2017        .19088       -.37087E-07   -.91914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.991901
  Prefactor  = 0.00010141
  Prefactor  = 4.9204
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100038
  Prefactor  = 0.0001
  norm       = 0.787699
  Prefactor  = 0.0001
  Prefactor  = 1.37909
  norm       = 23.9358
  norm       = 0.16845
  Prefactor  = 3.021
  Prefactor  = 11.148
  Prefactor  = 0.0001
  Prefactor  = 9.46046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.21639
  Prefactor  = 2.74443
  Normalizat = 0.834194
  Prefactor  = 1.2017
 **********
 **   18 **HESSE 
 **********

 FCN=   5193.149     FROM HESSE     STATUS=OK           366 CALLS     2827 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99190        4.7250        .29805E-03   -1.5509    
   2  Prefactor     .10141E-03    1.1577        .23751E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9204        5.8140        .18050E-03   -1.5264    
   4  Prefactor     .10000E-03    4.7316        .15190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6458        .15114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10004E-03    13.127        .60713E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .78770        .90993        .73580E-03   -1.5530    
   9  Prefactor     .10000E-03    1.0696        .72411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3791        9.2879        .37030E-03   -1.5473    
  11  norm          23.936        12.980        .81866E-04   -1.4729    
  12  norm          .16845        190.40        .36442E-02   -1.5626    
  13  Prefactor     3.0210        5.9948        .23348E-03   -1.5360    
  14  Prefactor     11.148        21.217        .12006E-03   -1.5040    
  15  Prefactor     .10000E-03    19.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.4605        17.289        .13024E-03   -1.5093    
  17  Prefactor     .10000E-03    39.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.4360        .16376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2164        1.6841        .10742E-03   -1.5487    
  20  Prefactor     2.7444        2.8298        .11922E-03   -1.5377    
  21  Normalizat    .83419        .21725        .24845E-03   -.98813    
  22  Prefactor     1.2017        .22562        .23416E-03   -.86279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23488e-10
Minuit parameter uncertainties:
  1  4.33012
  2  0.00255526
  3  5.81467
  4  5.02915e-06
  5  1.20609e-06
  6  0.00140359
  7  2.86108e-06
  8  0.909948
  9  1.26409e-06
  10  7.15921
  11  12.9817
  12  11.3595
  13  5.99599
  14  21.2315
  15  1.83632e-05
  16  17.2986
  17  6.64094e-05
  18  1.82694e-06
  19  1.68416
  20  2.82989
  21  0.217476
  22  0.225799
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.379e+00  7.159e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  1.957e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.202e+00  2.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  8.342e-01  2.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 169.271 20.229
Photon Flux Upper Limit: 6.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/638933/likelihoodResults_625536001_625795201_4FGL_J1117.0+2013_daily_bin1490.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) = 5192.40046755
delta logL = 0.74824058566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5192.30019494
delta logL = 0.848513193531

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38448       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5929       1.0000          .0000       10.000    
     3 'Normalizat'    .75326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2548       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5192.300     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      233 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38059        4.6834        .79786E-02    .91383E-03
   2  Index         3.5963        2.0327        .10566        .14752E-03
   3  Normalizat    .75308        .40026E-01    .42997E-01    .98728E-04
   4  Prefactor     1.2551        .44388E-01    .51971E-01    .40992E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.380586
  Index      = 3.59632
  Normalizat = 0.753084
  Prefactor  = 1.25505
 **********
 **   18 **HESSE 
 **********

 FCN=   5192.300     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38059        12.641        .36307E-03   -1.5585    
   2  Index         3.5963        3.9192        .36674E-02   -.28456    
   3  Normalizat    .75308        .16824        .26026E-03   -1.0183    
   4  Prefactor     1.2551        .18381        .22977E-03   -.84653    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.0887e-08
Minuit parameter uncertainties:
  1  4.38726
  2  4.5861
  3  0.168356
  4  0.183905
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638933': 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): 102
logL (Free Index) = 5192.30018828
delta logL = 0.84851985421

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  3.806e-01  4.387e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  3.596e+00  4.586e+00  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  1.912e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.255e+00  1.839e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  7.531e-01  1.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 169.271 20.229
Photon Index (Free Index): 3.60 +/- 4.59
Photon Flux (Free Index): 5.97e-08 +/- 5.11e-08
Energy Flux (Free Index): 9.69e-06 +/- 1.13e-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/638933/cmap_HighResolution_625536001_625795201_4FGL_J1117.0+2013_daily_bin1490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.07e-03', comment='SUCCESS', energy_flux2='9.69e-06', dlogl='8.49e-01', photon_flux2='5.97e-08', job_status='DONE', time_completed='2021-09-03 14:42:26.995357', photon_index_error2='4.59', photon_index2='3.60', ts='0.04', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='6.78e-08', energy_flux_error2='1.13e-05', EG='0.83', time_epoch_completed='1630705347.0', return_code='0', job_id='638933', GAL2='1.26', EG2='0.75', return_code2='102', photon_flux_error2='5.11e-08', ts2='1.88', photon_index='1.96' WHERE bin_id='1490' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:42:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 638933: <4FGL_J1117.0+2013_daily_bin1490> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin1490> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 14:26:22 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:26:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 14:26:57 2021
Terminated at Fri Sep  3 14:42:27 2021
Results reported at Fri Sep  3 14:42:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1490 169.271 20.2294 625536001 625795201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1117.0+2013 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   642.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            965 sec.

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

