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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1426
RA = 169.271, Dec = 20.2294
tmin = 608947201, tmax = 609206401
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='638838', job_status='RUN', time_executed='2021-09-03 14:26:33.264975', time_epoch_executed='1630704393.27' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/638838

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/638838/ft1_4FGL_J1117.0+2013_daily_bin1426.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/638838/ft2_4FGL_J1117.0+2013_daily_bin1426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/638838/ft1_4FGL_J1117.0+2013_daily_bin1426.fits outfile=/scratch/kocevski/638838/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1426.fits ra=169.271 dec=20.2294 rad=12.0 tmin=608947201.0 tmax=609206401.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 2.61
user 2.41
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/638838/ft1_filtered_4FGL_J1117.0+2013_daily_bin1426.fits" evtable="EVENTS" scfile=/scratch/kocevski/638838/ft2_4FGL_J1117.0+2013_daily_bin1426.fits sctable="SC_DATA" outfile=/scratch/kocevski/638838/ltcube_608947201_609206401_4FGL_J1117.0+2013_daily_bin1426.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/638838/ft2_4FGL_J1117.0+2013_daily_bin1426.fits
.....................!
real 13.73
user 13.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/638838/ft1_filtered_4FGL_J1117.0+2013_daily_bin1426.fits evtable="EVENTS" scfile=/scratch/kocevski/638838/ft2_4FGL_J1117.0+2013_daily_bin1426.fits sctable="SC_DATA" expcube=/scratch/kocevski/638838/ltcube_608947201_609206401_4FGL_J1117.0+2013_daily_bin1426.fits outfile=/scratch/kocevski/638838/expmap_608947201_609206401_4FGL_J1117.0+2013_daily_bin1426.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/638838/ltcube_608947201_609206401_4FGL_J1117.0+2013_daily_bin1426.fits
.....................!
real 155.86
user 151.33
sys 4.14

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/638838/ft1_filtered_4FGL_J1117.0+2013_daily_bin1426.fits scfile=/scratch/kocevski/638838/ft2_4FGL_J1117.0+2013_daily_bin1426.fits outfile=/scratch/kocevski/638838/cmap_608947201_609206401_4FGL_J1117.0+2013_daily_bin1426.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.49
user 0.32
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/638838/ft1_filtered_4FGL_J1117.0+2013_daily_bin1426.fits scfile=/scratch/kocevski/638838/ft2_4FGL_J1117.0+2013_daily_bin1426.fits outfile=/scratch/kocevski/638838/cmap_HighResolution_608947201_609206401_4FGL_J1117.0+2013_daily_bin1426.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 0.51
user 0.34
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/638838/ft1_filtered_4FGL_J1117.0+2013_daily_bin1426.fits', '/scratch/kocevski/638838/ft2_4FGL_J1117.0+2013_daily_bin1426.fits', expMap='/scratch/kocevski/638838/expmap_608947201_609206401_4FGL_J1117.0+2013_daily_bin1426.fits', expCube='/scratch/kocevski/638838/ltcube_608947201_609206401_4FGL_J1117.0+2013_daily_bin1426.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/638838/Model_4FGL_J1117.0+2013_daily_bin1426.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/638838/ft1_filtered_4FGL_J1117.0+2013_daily_bin1426.fits
Spacecraft file(s): /scratch/kocevski/638838/ft2_4FGL_J1117.0+2013_daily_bin1426.fits
Exposure map: /scratch/kocevski/638838/expmap_608947201_609206401_4FGL_J1117.0+2013_daily_bin1426.fits
Exposure cube: /scratch/kocevski/638838/ltcube_608947201_609206401_4FGL_J1117.0+2013_daily_bin1426.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/638838/Model_4FGL_J1117.0+2013_daily_bin1426.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) = 6723.57202367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1544       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7016       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5747       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .99930       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .11399E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22359       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10234E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.5343       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.169       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.846       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5361       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10741E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5800       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99391       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97962       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=   6723.566     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2393 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1539        6.1686        .18909E-06   -.37301E-04
   2  Prefactor     1.7015        1.5837        .24604E-07   -.13201E-03
   3  Prefactor     .10000E-03    3.1016        .13363E-06** at limit **
   4  Prefactor     1.5780        10.431        .26314E-05   -.73523E-04
   5  Prefactor     .99710        6.8582       -.58923E-06   -.81465E-04
   6  Prefactor     .10000E-03    5.0953        .37754E-06** at limit **
   7  Prefactor     .10000E-03    7.1662        .53690E-06** at limit **
   8  norm          .10000E-03    .82420        .14595E-06** at limit **
   9  Prefactor     .22378        1.7499        .14260E-05   -.42066E-03
  10  Prefactor     .10000E-03    6.4696       -.41232E-06** at limit **
  11  norm          .10000E-03    18.097        .11061E-06** at limit **
  12  norm          .10000E-03    6.6938       -.13070E-06** at limit **
  13  Prefactor     8.5344        8.1731        .22341E-06    .34444E-04
  14  Prefactor     .10000E-03    6.0422       -.66252E-06** at limit **
  15  Prefactor     17.158        46.056       -.44600E-05   -.15135E-03
  16  Prefactor     .10000E-03    5.0963        .54368E-06** at limit **
  17  Prefactor     11.858        16.903        .37746E-05    .68429E-03
  18  Prefactor     3.5316        11.859       -.14817E-05   -.98577E-04
  19  Prefactor     .10000E-03    .80453       -.27510E-06** at limit **
  20  Prefactor     6.5812        4.6210        .17180E-05   -.11367E-02
  21  Normalizat    .99399        .16723       -.20529E-05    .54896E-04
  22  Prefactor     .97951        .16639        .20080E-06   -.70986E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.15388
  Prefactor  = 1.70148
  Prefactor  = 0.0001
  Prefactor  = 1.578
  Prefactor  = 0.997097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.223776
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 8.53444
  Prefactor  = 0.0001
  Prefactor  = 17.1583
  Prefactor  = 0.0001
  Prefactor  = 11.8583
  Prefactor  = 3.53164
  Prefactor  = 0.000100002
  Prefactor  = 6.58122
  Normalizat = 0.993986
  Prefactor  = 0.979509
 **********
 **   18 **HESSE 
 **********

 FCN=   6723.566     FROM HESSE     STATUS=OK           346 CALLS     2739 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1539        6.1456        .14997E-03   -1.5173    
   2  Prefactor     1.7015        1.5696        .93783E-04   -1.5447    
   3  Prefactor     .10000E-03    3.1309        .14101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5780        10.878        .33864E-03   -1.5457    
   5  Prefactor     .99710        22.855        .32613E-02   -1.5508    
   6  Prefactor     .10000E-03    5.1427        .18074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.2037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.4222        .14380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .22378        1.8149        .20989E-03   -1.5613    
  10  Prefactor     .10000E-03    6.6807        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    18.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.7962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.5344        8.1722        .13722E-03   -1.5124    
  14  Prefactor     .10000E-03    6.0808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.158        47.002        .96660E-04   -1.4879    
  16  Prefactor     .10000E-03    5.1427        .18078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.858        17.763        .11639E-03   -1.5019    
  18  Prefactor     3.5316        11.789        .21496E-03   -1.5332    
  19  Prefactor     .10000E-03    4.2725        .13747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.5812        4.8087        .72536E-03   -1.5195    
  21  Normalizat    .99399        .19455        .23355E-03   -.93232    
  22  Prefactor     .97951        .19549        .25047E-03   -.93416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03055e-08
Minuit parameter uncertainties:
  1  6.14614
  2  1.56966
  3  1.19182e-05
  4  8.28798
  5  9.55112
  6  2.49038e-05
  7  3.80872e-05
  8  3.56037e-05
  9  1.27435
  10  9.83864e-06
  11  0.000193166
  12  1.60747e-05
  13  8.17331
  14  4.91703e-05
  15  47.1037
  16  2.5386e-05
  17  17.771
  18  11.7964
  19  0.00019827
  20  4.80896
  21  0.194685
  22  0.195628
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  9.839e-06  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:  9.795e-01  1.956e-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:  9.940e-01  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/638838/likelihoodResults_608947201_609206401_4FGL_J1117.0+2013_daily_bin1426.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) = 6723.56666901
delta logL = -0.000714528139724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6723.5659533
delta logL = 1.18611387734e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0208       1.0000          .0000       10.000    
     3 'Normalizat'    .99399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97950       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6723.553     FROM MIGRAD    STATUS=FAILED       191 CALLS      354 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22563        12.378        .29518E-02   -.19269E-01
   2  Index         2.7782        .38214        .50000        .40189E-04
   3  Normalizat    .99215        .94513E-02    .23355E-03    .10938    
   4  Prefactor     .97817        .10114E-01    .25047E-03   -.15458    
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6723.553     FROM SIMPLEX   STATUS=UNCHANGED     62 CALLS      416 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22563        12.378        .26695E-03   -.19269E-01
   2  Index         2.7782        .38214        .87404E-03    .40189E-04
   3  Normalizat    .99215        .94513E-02    .44698E-04    .10938    
   4  Prefactor     .97817        .10114E-01    .50421E-04   -.15458    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6723.553     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      474 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22758        3.2462        .92948E-05   -.12251E-02
   2  Index         2.7792        2.1293        .28197E-03    .38469E-04
   3  Normalizat    .98929        .18312       -.28167E-05   -.17547E-03
   4  Prefactor     .98129        .19417        .11818E-05   -.12786E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.227579
  Index      = 2.77921
  Normalizat = 0.989288
  Prefactor  = 0.981287
 **********
 **   18 **HESSE 
 **********

 FCN=   6723.553     FROM HESSE     STATUS=OK            23 CALLS      497 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22758        3.2858        .23615E-04   -1.5803    
   2  Index         2.7792        2.1277        .11294E-03   -.46023    
   3  Normalizat    .98929        .18337        .93419E-05   -.93390    
   4  Prefactor     .98129        .19421        .10019E-04   -.93356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49397e-09
Minuit parameter uncertainties:
  1  1.72921
  2  2.21711
  3  0.183482
  4  0.194347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/638838': 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) = 6723.55253072
delta logL = 0.0134237656994

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  2.276e-01  1.729e+00  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.779e+00  2.217e+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:  9.813e-01  1.943e-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:  9.893e-01  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 169.271 20.229

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/638838/cmap_HighResolution_608947201_609206401_4FGL_J1117.0+2013_daily_bin1426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-03', job_status='DONE', photon_flux_upper_limit='4.46e-08', time_completed='2021-09-03 14:36:33.680210', job_id='638838', GAL2='0.98', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630704993.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.34e-02', ts2='0.03', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1426' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:36:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 638838: <4FGL_J1117.0+2013_daily_bin1426> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin1426> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 14:26:15 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:26:24 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:24 2021
Terminated at Fri Sep  3 14:36:34 2021
Results reported at Fri Sep  3 14:36:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1426 169.271 20.2294 608947201 609206401 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 :                                   596.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            619 sec.

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

