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


Performing analysis on: 4FGL_J1117.0+2013_daily_bin1405
RA = 169.271, Dec = 20.2294
tmin = 603504001, tmax = 603763201
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='637751', job_status='RUN', time_executed='2021-09-03 14:24:19.195093', time_epoch_executed='1630704259.2' WHERE source_name='4FGL J1117.0+2013' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/637751

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/637751/ft1_4FGL_J1117.0+2013_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/637751/ft2_4FGL_J1117.0+2013_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/637751/ft1_4FGL_J1117.0+2013_daily_bin1405.fits outfile=/scratch/kocevski/637751/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1405.fits ra=169.271 dec=20.2294 rad=12.0 tmin=603504001.0 tmax=603763201.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.77
user 2.55
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/637751/ft2_4FGL_J1117.0+2013_daily_bin1405.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/637751/ft1_filteredMKT_4FGL_J1117.0+2013_daily_bin1405.fits evtable="EVENTS" outfile="/scratch/kocevski/637751/ft1_filtered_4FGL_J1117.0+2013_daily_bin1405.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.50
user 0.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/637751/ft1_filtered_4FGL_J1117.0+2013_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/637751/ft2_4FGL_J1117.0+2013_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/637751/ltcube_603504001_603763201_4FGL_J1117.0+2013_daily_bin1405.fits outfile=/scratch/kocevski/637751/expmap_603504001_603763201_4FGL_J1117.0+2013_daily_bin1405.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/637751/ltcube_603504001_603763201_4FGL_J1117.0+2013_daily_bin1405.fits
.....................!
real 193.00
user 186.96
sys 4.48

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/637751/ft1_filtered_4FGL_J1117.0+2013_daily_bin1405.fits scfile=/scratch/kocevski/637751/ft2_4FGL_J1117.0+2013_daily_bin1405.fits outfile=/scratch/kocevski/637751/cmap_603504001_603763201_4FGL_J1117.0+2013_daily_bin1405.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/637751/ft1_filtered_4FGL_J1117.0+2013_daily_bin1405.fits scfile=/scratch/kocevski/637751/ft2_4FGL_J1117.0+2013_daily_bin1405.fits outfile=/scratch/kocevski/637751/cmap_HighResolution_603504001_603763201_4FGL_J1117.0+2013_daily_bin1405.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10717E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14702E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    306.01       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11066E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10828E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14953E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0551       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .61427       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=   465.9416     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2305 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    301.49        .70254E-06** at limit **
   2  Prefactor     .10000E-03    56.492        .69598E-06** at limit **
   3  Prefactor     .10000E-03    109.92       -.63231E-06** at limit **
   4  Prefactor     .10003E-03    987.87        .24320E-05** at limit **
   5  Prefactor     305.47        244.08        .37602E-05    .18741E-04
   6  Prefactor     .10000E-03    53.109        .23034E-06** at limit **
   7  Prefactor     .10000E-03    169.59        .11065E-05** at limit **
   8  norm          .10000E-03    6.2554        .11969E-06** at limit **
   9  Prefactor     .10000E-03    10.921        .18882E-06** at limit **
  10  Prefactor     .10000E-03    25.105        .24119E-07** at limit **
  11  norm          .10000E-03    89.608        .10216E-05** at limit **
  12  norm          .10000E-03    57.587        .13178E-05** at limit **
  13  Prefactor     .10000E-03    24.424        .15116E-06** at limit **
  14  Prefactor     .10000E-03    143.54        .18282E-05** at limit **
  15  Prefactor     .10000E-03    151.52        .10696E-05** at limit **
  16  Prefactor     .10000E-03    46.724       -.12426E-06** at limit **
  17  Prefactor     .10000E-03    85.863        .96922E-06** at limit **
  18  Prefactor     .10000E-03    34.805        .11571E-05** at limit **
  19  Prefactor     .10000E-03    2.7667        .31592E-06** at limit **
  20  Prefactor     .10000E-03    177.46        .10658E-04** at limit **
  21  Normalizat    1.0551        .63438       -.12513E-04   -.54634E-04
  22  Prefactor     .61402        .56080        .70787E-05   -.11457E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 305.471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0551
  Prefactor  = 0.614022
 **********
 **   18 **HESSE 
 **********

 FCN=   465.9416     FROM HESSE     STATUS=OK           322 CALLS     2627 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    301.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    56.645        .15883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    109.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    978.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     305.47        242.27        .11612E-03   -1.2194    
   6  Prefactor     .10000E-03    53.120        .15385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    170.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.2600        .52764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.932        .69728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.107        .10572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    90.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    57.881        .16049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.428        .10428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    144.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    151.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    46.797        .14432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    86.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.936        .12464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.7854        .35150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    176.12        .16628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0551        .65499        .22776E-03   -.91207    
  22  Prefactor     .61402        .59688        .26626E-03   -1.0700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42243e-10
Minuit parameter uncertainties:
  1  0.000243352
  2  0.000105625
  3  2.69565e-05
  4  0.0105883
  5  243.074
  6  2.80567e-05
  7  0.000341457
  8  8.39294e-06
  9  2.3029e-05
  10  1.73694e-05
  11  0.000255691
  12  0.000199605
  13  1.8978e-05
  14  0.000740208
  15  0.000242902
  16  0.000129635
  17  0.000348272
  18  7.95014e-05
  19  1.14678e-05
  20  0.000570308
  21  0.660106
  22  0.603207
Done.

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

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.737e-05  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:  6.140e-01  6.032e-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:  1.055e+00  6.601e-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.94e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/637751/likelihoodResults_603504001_603763201_4FGL_J1117.0+2013_daily_bin1405.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) = 465.941617273
delta logL = -1.30927546138e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 465.941605875
delta logL = -1.69472184552e-06

Fit tolerance = 1e-08

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

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

 FCN=   465.9416     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      277 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10869E-03    35.150        .80597E-02** at limit **
   2  Index         2.2888        6.0532        .50000        .16139E-04
   3  Normalizat    1.0551        .20971E-01    .22775E-03    .81905E-04
   4  Prefactor     .61404        .19225E-01    .26627E-03    .12262E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108692
  Index      = 2.28878
  Normalizat = 1.05509
  Prefactor  = 0.614042
 **********
 **   18 **HESSE 
 **********

 FCN=   465.9416     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10869E-03    386.03        .88159E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2888        5.1234        .50000       -.57311    
   3  Normalizat    1.0551        .71436E-01    .45550E-04   -.91207    
   4  Prefactor     .61404        .65484E-01    .53254E-04   -1.0700    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.6543e-08
Minuit parameter uncertainties:
  1  0.116611
  2  897.726
  3  0.0714425
  4  0.0654926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/637751': 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) = 465.941605301
delta logL = -1.12051912993e-06

Extracting fit parameters...

4FGL J1117.0+2013
   Spectrum: PowerLaw
300    Prefactor:  1.087e-04  1.166e-01  1.000e-04  1.000e+04 ( 1.000e-13)
301        Index:  2.289e+00  8.977e+02  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:  6.140e-01  6.549e-02  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:  1.055e+00  7.144e-02  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/637751/cmap_HighResolution_603504001_603763201_4FGL_J1117.0+2013_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-02', job_status='DONE', photon_flux_upper_limit='4.94e-07', time_completed='2021-09-03 14:30:26.389715', job_id='637751', GAL2='0.61', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630704626.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='-1.12e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1405' AND source_name='4FGL J1117.0+2013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 14:30:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 637751: <4FGL_J1117.0+2013_daily_bin1405> in cluster <slac> Done

Job <4FGL_J1117.0+2013_daily_bin1405> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep  3 14:21:40 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 14:22:05 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:22:05 2021
Terminated at Fri Sep  3 14:30:27 2021
Results reported at Fri Sep  3 14:30:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1117.0+2013_daily_bin1405 169.271 20.2294 603504001 603763201 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 :                                   354.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             242.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   501 sec.
    Turnaround time :                            527 sec.

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

