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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1314
RA = 243.421, Dec = 34.1982
tmin = 579916801, tmax = 580176001
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='191665', job_status='RUN', time_executed='2021-09-13 17:52:11.619181', time_epoch_executed='1631580731.62' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191665/ft1_4FGL_J1613.6+3411_daily_bin1314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191665/ft2_4FGL_J1613.6+3411_daily_bin1314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191665/ft1_4FGL_J1613.6+3411_daily_bin1314.fits outfile=/scratch/kocevski/191665/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1314.fits ra=243.421 dec=34.1982 rad=12.0 tmin=579916801.0 tmax=580176001.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.50
user 3.23
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/191665/ft2_4FGL_J1613.6+3411_daily_bin1314.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191665/ft2_4FGL_J1613.6+3411_daily_bin1314.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/191665/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1314.fits evtable="EVENTS" outfile="/scratch/kocevski/191665/ft1_filtered_4FGL_J1613.6+3411_daily_bin1314.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191665/ft1_filtered_4FGL_J1613.6+3411_daily_bin1314.fits" evtable="EVENTS" scfile=/scratch/kocevski/191665/ft2_4FGL_J1613.6+3411_daily_bin1314.fits sctable="SC_DATA" outfile=/scratch/kocevski/191665/ltcube_579916801_580176001_4FGL_J1613.6+3411_daily_bin1314.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/191665/ft2_4FGL_J1613.6+3411_daily_bin1314.fits
.....................!
real 15.01
user 14.45
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191665/ft1_filtered_4FGL_J1613.6+3411_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/191665/ft2_4FGL_J1613.6+3411_daily_bin1314.fits sctable="SC_DATA" expcube=/scratch/kocevski/191665/ltcube_579916801_580176001_4FGL_J1613.6+3411_daily_bin1314.fits outfile=/scratch/kocevski/191665/expmap_579916801_580176001_4FGL_J1613.6+3411_daily_bin1314.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/191665/ltcube_579916801_580176001_4FGL_J1613.6+3411_daily_bin1314.fits
.....................!
real 193.69
user 186.46
sys 4.99

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

Setting source of interest to:
4FGL J1613.6+3411 @ 243.421 34.1982

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/191665/ft1_filtered_4FGL_J1613.6+3411_daily_bin1314.fits scfile=/scratch/kocevski/191665/ft2_4FGL_J1613.6+3411_daily_bin1314.fits outfile=/scratch/kocevski/191665/cmap_579916801_580176001_4FGL_J1613.6+3411_daily_bin1314.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=243.421 yref=34.1982 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/191665/ft1_filtered_4FGL_J1613.6+3411_daily_bin1314.fits scfile=/scratch/kocevski/191665/ft2_4FGL_J1613.6+3411_daily_bin1314.fits outfile=/scratch/kocevski/191665/cmap_HighResolution_579916801_580176001_4FGL_J1613.6+3411_daily_bin1314.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=243.421 yref=34.1982 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191665/ft1_filtered_4FGL_J1613.6+3411_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/191665/ft2_4FGL_J1613.6+3411_daily_bin1314.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191665/Model_4FGL_J1613.6+3411_daily_bin1314.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/191665/ft1_filtered_4FGL_J1613.6+3411_daily_bin1314.fits.....................!
real 54.34
user 52.50
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/191665/ft1_filtered_4FGL_J1613.6+3411_daily_bin1314.fits', '/scratch/kocevski/191665/ft2_4FGL_J1613.6+3411_daily_bin1314.fits', expMap='/scratch/kocevski/191665/expmap_579916801_580176001_4FGL_J1613.6+3411_daily_bin1314.fits', expCube='/scratch/kocevski/191665/ltcube_579916801_580176001_4FGL_J1613.6+3411_daily_bin1314.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/191665/Model_4FGL_J1613.6+3411_daily_bin1314.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1613.6+3411'

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.261e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/191665/ft1_filtered_4FGL_J1613.6+3411_daily_bin1314.fits
Spacecraft file(s): /scratch/kocevski/191665/ft2_4FGL_J1613.6+3411_daily_bin1314.fits
Exposure map: /scratch/kocevski/191665/expmap_579916801_580176001_4FGL_J1613.6+3411_daily_bin1314.fits
Exposure cube: /scratch/kocevski/191665/ltcube_579916801_580176001_4FGL_J1613.6+3411_daily_bin1314.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/191665/Model_4FGL_J1613.6+3411_daily_bin1314.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) = 6859.46997982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8157       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .77044E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.139       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1950       1.0000         .10000E-03   10000.    
     6 'norm      '    .20307E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7609       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19407E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10887       1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    88.864       1.0000         .10000E-03   10000.    
    15 'norm      '    54.797       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14094E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1123       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0790       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.8296       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79758       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0050       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6859.404     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2483 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.822        .13713E-07** at limit **
   2  norm          1.8141        1.1895       -.79353E-08   -.93392E-04
   3  Prefactor     .10000E-03    5.8206        .61298E-07** at limit **
   4  Prefactor     41.142        29.697       -.43464E-07    .25739E-05
   5  Prefactor     6.1765        15.385       -.60312E-06    .98908E-04
   6  norm          .10000E-03    22.751       -.48313E-06** at limit **
   7  Prefactor     .10000E-03    .98518       -.36745E-08** at limit **
   8  Prefactor     .10000E-03    18.076       -.11341E-06** at limit **
   9  Prefactor     .10000E-03    19.998        .68497E-06** at limit **
  10  Prefactor     2.7609        2.6541        .39854E-07   -.18811E-03
  11  Prefactor     .10000E-03    1.4212       -.17563E-06** at limit **
  12  norm          .10899        .18004        .14687E-06   -.16122E-03
  13  norm          .10000E-03    3.9810       -.41949E-07** at limit **
  14  Prefactor     88.865        28.618       -.25936E-06    .20945E-04
  15  norm          54.742        40.603        .11588E-06   -.77064E-04
  16  Prefactor     .10000E-03    .60841       -.61267E-06** at limit **
  17  Prefactor     4.1154        1.5005        .30349E-06    .76471E-03
  18  Prefactor     7.0805        13.929        .56514E-07   -.27288E-04
  19  Prefactor     .10000E-03    .61800       -.51185E-07** at limit **
  20  norm          3.8299        1.8378       -.37688E-09    .13178E-03
  21  Normalizat    .79756        .17811        .51242E-06   -.28847E-04
  22  Prefactor     1.0050        .13695       -.14667E-06    .44044E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.81408
  Prefactor  = 0.0001
  Prefactor  = 41.142
  Prefactor  = 6.17649
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.76093
  Prefactor  = 0.000100005
  norm       = 0.108987
  norm       = 0.0001
  Prefactor  = 88.8646
  norm       = 54.7423
  Prefactor  = 0.0001
  Prefactor  = 4.11541
  Prefactor  = 7.08053
  Prefactor  = 0.0001
  norm       = 3.82986
  Normalizat = 0.797563
  Prefactor  = 1.00498
 **********
 **   18 **HESSE 
 **********

 FCN=   6859.404     FROM HESSE     STATUS=OK           358 CALLS     2841 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8141        1.1187        .66310E-04   -1.5439    
   3  Prefactor     .10000E-03    14.107        .35958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     41.142        29.397        .62497E-04   -1.4424    
   5  Prefactor     6.1765        15.251        .16129E-03   -1.5211    
   6  norm          .10000E-03    22.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9802        .15959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7609        2.6441        .12700E-03   -1.5376    
  11  Prefactor     .10000E-03    4.5052        .31121E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10899        .16375        .33539E-04   -1.5642    
  13  norm          .10000E-03    3.9813        .16139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     88.865        27.322        .42623E-04   -1.3820    
  15  norm          54.742        40.765        .27093E-03   -1.4227    
  16  Prefactor     .10000E-03    6.5883        .10466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.1154        1.4783        .51767E-04   -1.5302    
  18  Prefactor     7.0805        13.943        .15077E-03   -1.5176    
  19  Prefactor     .10000E-03    .61969        .63564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.8299        1.8368        .74256E-04   -1.5317    
  21  Normalizat    .79756        .21058        .28809E-03   -1.0016    
  22  Prefactor     1.0050        .16274        .20747E-03   -.92564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95702e-10
Minuit parameter uncertainties:
  1  1.96308e-05
  2  1.11868
  3  0.000145464
  4  29.4075
  5  15.2606
  6  7.90724e-05
  7  7.15849e-06
  8  3.29393e-05
  9  7.51408e-05
  10  2.64425
  11  0.000289523
  12  0.163747
  13  6.58626e-06
  14  27.3256
  15  40.7857
  16  8.24036e-05
  17  1.47831
  18  13.949
  19  1.50895e-06
  20  1.83682
  21  0.210792
  22  0.162815
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.761e+00  2.644e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.437e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.005e+00  1.628e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  7.976e-01  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.66
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 2.87e-08 +/- 2.75e-08
Energy Flux (Fixed Index): 8.98e-06 +/- 8.60e-06

TS (Fixed Index): 1.66
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 9.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191665/likelihoodResults_579916801_580176001_4FGL_J1613.6+3411_daily_bin1314.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) = 6859.40170794
delta logL = 0.00196076200882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6859.40101889
delta logL = 0.00264981493365

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6859.401     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      200 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6554        65.283        .62538E-02    .22293E-03
   2  Index         2.4941        6.2239        .23556        .14439E-03
   3  Normalizat    .79613        .59993E-01    .65175E-01    .23721E-04
   4  Prefactor     1.0057        .43083E-01    .44046E-01    .19097E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.65541
  Index      = 2.49411
  Normalizat = 0.796126
  Prefactor  = 1.0057
 **********
 **   18 **HESSE 
 **********

 FCN=   6859.401     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6554        3.0748        .12395E-03   -1.5382    
   2  Index         2.4941        .81079        .90363E-02   -.52496    
   3  Normalizat    .79613        .20016        .28833E-03   -1.0021    
   4  Prefactor     1.0057        .15990        .20740E-03   -.92540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32664e-10
Minuit parameter uncertainties:
  1  3.075
  2  0.81561
  3  0.20034
  4  0.159976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191665': 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) = 6859.40101889
delta logL = 0.00264981715463

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.655e+00  3.075e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.494e+00  8.156e-01  0.000e+00  1.000e+01 (-1.000e+00)
278        Scale:  7.801e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.006e+00  1.600e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  7.961e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.49 +/- 0.82
Photon Flux (Free Index): 2.99e-08 +/- 3.17e-08
Energy Flux (Free Index): 8.73e-06 +/- 9.16e-06

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/191665/cmap_HighResolution_579916801_580176001_4FGL_J1613.6+3411_daily_bin1314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.20e-03', comment='SUCCESS', photon_flux='2.87e-08', energy_flux2='8.73e-06', photon_flux_error='2.75e-08', dlogl='2.65e-03', energy_flux='8.98e-06', photon_flux2='2.99e-08', job_status='DONE', time_completed='2021-09-13 18:04:27.799205', photon_index_error2='0.82', photon_index2='2.49', ts='1.66', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='9.29e-08', energy_flux_error2='9.16e-06', EG='0.80', time_epoch_completed='1631581467.8', return_code='0', job_id='191665', GAL2='1.01', EG2='0.80', return_code2='0', energy_flux_error='8.60e-06', photon_flux_error2='3.17e-08', ts2='1.66', photon_index='2.44' WHERE bin_id='1314' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:04:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 191665: <4FGL_J1613.6+3411_daily_bin1314> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1314> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:50:55 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:51:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 13 17:51:57 2021
Terminated at Mon Sep 13 18:04:28 2021
Results reported at Mon Sep 13 18:04:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1314 243.421 34.1982 579916801 580176001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1613.6+3411 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   726.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            813 sec.

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

