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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1124
RA = 243.421, Dec = 34.1982
tmin = 530668801, tmax = 530928001
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='191372', job_status='RUN', time_executed='2021-09-13 17:53:40.834648', time_epoch_executed='1631580820.83' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191372

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191372/ft1_4FGL_J1613.6+3411_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191372/ft2_4FGL_J1613.6+3411_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191372/ft1_4FGL_J1613.6+3411_daily_bin1124.fits outfile=/scratch/kocevski/191372/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1124.fits ra=243.421 dec=34.1982 rad=12.0 tmin=530668801.0 tmax=530928001.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.63
user 3.40
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191372/ft2_4FGL_J1613.6+3411_daily_bin1124.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/191372/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1124.fits evtable="EVENTS" outfile="/scratch/kocevski/191372/ft1_filtered_4FGL_J1613.6+3411_daily_bin1124.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191372/ft1_filtered_4FGL_J1613.6+3411_daily_bin1124.fits" evtable="EVENTS" scfile=/scratch/kocevski/191372/ft2_4FGL_J1613.6+3411_daily_bin1124.fits sctable="SC_DATA" outfile=/scratch/kocevski/191372/ltcube_530668801_530928001_4FGL_J1613.6+3411_daily_bin1124.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/191372/ft2_4FGL_J1613.6+3411_daily_bin1124.fits
.....................!
real 14.62
user 14.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191372/ft1_filtered_4FGL_J1613.6+3411_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/191372/ft2_4FGL_J1613.6+3411_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/191372/ltcube_530668801_530928001_4FGL_J1613.6+3411_daily_bin1124.fits outfile=/scratch/kocevski/191372/expmap_530668801_530928001_4FGL_J1613.6+3411_daily_bin1124.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/191372/ltcube_530668801_530928001_4FGL_J1613.6+3411_daily_bin1124.fits
.....................!
real 191.68
user 186.58
sys 4.55

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/191372/ft1_filtered_4FGL_J1613.6+3411_daily_bin1124.fits scfile=/scratch/kocevski/191372/ft2_4FGL_J1613.6+3411_daily_bin1124.fits outfile=/scratch/kocevski/191372/cmap_530668801_530928001_4FGL_J1613.6+3411_daily_bin1124.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 2.35
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191372/ft1_filtered_4FGL_J1613.6+3411_daily_bin1124.fits scfile=/scratch/kocevski/191372/ft2_4FGL_J1613.6+3411_daily_bin1124.fits outfile=/scratch/kocevski/191372/cmap_HighResolution_530668801_530928001_4FGL_J1613.6+3411_daily_bin1124.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.57
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/191372/ft1_filtered_4FGL_J1613.6+3411_daily_bin1124.fits', '/scratch/kocevski/191372/ft2_4FGL_J1613.6+3411_daily_bin1124.fits', expMap='/scratch/kocevski/191372/expmap_530668801_530928001_4FGL_J1613.6+3411_daily_bin1124.fits', expCube='/scratch/kocevski/191372/ltcube_530668801_530928001_4FGL_J1613.6+3411_daily_bin1124.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/191372/Model_4FGL_J1613.6+3411_daily_bin1124.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/191372/ft1_filtered_4FGL_J1613.6+3411_daily_bin1124.fits
Spacecraft file(s): /scratch/kocevski/191372/ft2_4FGL_J1613.6+3411_daily_bin1124.fits
Exposure map: /scratch/kocevski/191372/expmap_530668801_530928001_4FGL_J1613.6+3411_daily_bin1124.fits
Exposure cube: /scratch/kocevski/191372/ltcube_530668801_530928001_4FGL_J1613.6+3411_daily_bin1124.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/191372/Model_4FGL_J1613.6+3411_daily_bin1124.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) = 6569.2849213

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    131.91       1.0000         .10000E-03   10000.    
     2 'norm      '    .65454       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.359       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4766       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.943       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7317       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7398       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9223       1.0000         .10000E-03   10000.    
    12 'norm      '    .29289       1.0000         .10000E-03   10000.    
    13 'norm      '    .16474E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.806       1.0000         .10000E-03   10000.    
    15 'norm      '    26.723       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.740       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .23701E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .80813       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98492       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0522       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=   6569.225     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2465 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     131.97        115.55        .48752E-04   -.21649E-04
   2  norm          .65474        1.4683        .10243E-05    .39091E-03
   3  Prefactor     16.352        13.979       -.45826E-05   -.26664E-03
   4  Prefactor     6.4874        34.944       -.42990E-05   -.26938E-04
   5  Prefactor     .10000E-03    10.764       -.21796E-06** at limit **
   6  norm          15.935        15.870        .10311E-05   -.53732E-04
   7  Prefactor     .10000E-03    1.7434        .19167E-06** at limit **
   8  Prefactor     .10000E-03    15.240        .73834E-07** at limit **
   9  Prefactor     4.7328        6.8416       -.47065E-06   -.73240E-04
  10  Prefactor     5.7383        3.9973        .10084E-06   -.18547E-03
  11  Prefactor     1.9211        2.6928       -.78471E-06   -.12805E-03
  12  norm          .29281        .16777       -.23171E-06    .13413E-02
  13  norm          .10005E-03    13.123       -.54013E-05** at limit **
  14  Prefactor     21.796        22.366        .70123E-05    .48072E-04
  15  norm          26.736        44.254        .36799E-04    .40475E-03
  16  Prefactor     .10000E-03    .31903       -.15835E-06** at limit **
  17  Prefactor     .10000E-03    .30624       -.12846E-06** at limit **
  18  Prefactor     44.739        24.499        .24431E-05   -.10327E-04
  19  Prefactor     .10000E-03    1.5669       -.18164E-05** at limit **
  20  norm          .80841        1.2397       -.16312E-06   -.62426E-03
  21  Normalizat    .98580        .20266       -.39368E-05    .43766E-03
  22  Prefactor     1.0516        .14782       -.21693E-06    .32265E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 131.975
  norm       = 0.654742
  Prefactor  = 16.3519
  Prefactor  = 6.48744
  Prefactor  = 0.0001
  norm       = 15.9347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.73279
  Prefactor  = 5.73826
  Prefactor  = 1.92109
  norm       = 0.292813
  norm       = 0.000100053
  Prefactor  = 21.7963
  norm       = 26.7355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.7385
  Prefactor  = 0.000100002
  norm       = 0.808408
  Normalizat = 0.9858
  Prefactor  = 1.0516
 **********
 **   18 **HESSE 
 **********

 FCN=   6569.225     FROM HESSE     STATUS=OK           360 CALLS     2825 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     131.97        114.03        .17530E-03   -1.3405    
   2  norm          .65474        1.1926        .11559E-02   -1.5546    
   3  Prefactor     16.352        12.956        .99023E-04   -1.4899    
   4  Prefactor     6.4874        34.834        .15770E-03   -1.5199    
   5  Prefactor     .10000E-03    10.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.935        15.880        .10031E-03   -1.4909    
   7  Prefactor     .10000E-03    1.7830        .10441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7328        6.8396        .18498E-03   -1.5273    
  10  Prefactor     5.7383        3.9994        .12893E-03   -1.5229    
  11  Prefactor     1.9211        2.6721        .14983E-03   -1.5431    
  12  norm          .29281        .16545        .21591E-04   -1.5600    
  13  norm          .10005E-03    68.571        .56363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.796        22.500        .85775E-04   -1.4774    
  15  norm          26.736        44.726        .77496E-04   -1.4673    
  16  Prefactor     .10000E-03    .32356        .44568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .31012        .43685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.739        24.504        .59939E-04   -1.4369    
  19  Prefactor     .10000E-03    3.1938        .34331E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .80841        1.0380        .10819E-02   -1.5528    
  21  Normalizat    .98580        .23528        .29461E-03   -.93508    
  22  Prefactor     1.0516        .17208        .21840E-03   -.91029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23916e-09
Minuit parameter uncertainties:
  1  114.222
  2  1.19263
  3  12.9577
  4  30.0926
  5  6.95752e-05
  6  15.8841
  7  2.65304e-05
  8  1.70658e-05
  9  6.84068
  10  3.99954
  11  2.67228
  12  0.165455
  13  0.00380417
  14  22.5087
  15  44.7818
  16  9.32462e-06
  17  7.50163e-06
  18  24.5093
  19  0.000168473
  20  1.03806
  21  0.235531
  22  0.172168
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  5.738e+00  4.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

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.052e+00  1.722e-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:  9.858e-01  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.98
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 5.97e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.30e-05

TS (Fixed Index): 3.98
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191372/likelihoodResults_530668801_530928001_4FGL_J1613.6+3411_daily_bin1124.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) = 6569.15065089
delta logL = 0.0747683204572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6569.14446371
delta logL = 0.0809554988518

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6569.144     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      271 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3844        4.6173        .13932E-03   -.76949E-03
   2  Index         2.2014        .57005        .88604E-02   -.11641E-03
   3  Normalizat    .99904        .22250        .29287E-03    .50076E-04
   4  Prefactor     1.0451        .16885        .21897E-03    .79228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.38443
  Index      = 2.20137
  Normalizat = 0.999042
  Prefactor  = 1.04513
 **********
 **   18 **HESSE 
 **********

 FCN=   6569.144     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3844        4.5840        .55729E-05   -1.5203    
   2  Index         2.2014        .56565        .35442E-03   -.59406    
   3  Normalizat    .99904        .22264        .11715E-04   -.93063    
   4  Prefactor     1.0451        .16896        .87589E-05   -.91240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08801e-10
Minuit parameter uncertainties:
  1  4.58423
  2  0.567418
  3  0.222848
  4  0.169046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191372': 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) = 6569.1444636
delta logL = 0.080955609571

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  6.384e+00  4.584e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.201e+00  5.674e-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.045e+00  1.690e-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:  9.990e-01  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.13
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.20 +/- 0.57
Photon Flux (Free Index): 4.89e-08 +/- 4.46e-08
Energy Flux (Free Index): 2.19e-05 +/- 1.87e-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/191372/cmap_HighResolution_530668801_530928001_4FGL_J1613.6+3411_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', photon_flux='5.97e-08', energy_flux2='2.19e-05', photon_flux_error='4.16e-08', dlogl='8.10e-02', energy_flux='1.87e-05', photon_flux2='4.89e-08', job_status='DONE', time_completed='2021-09-13 18:05:28.461132', photon_index_error2='0.57', photon_index2='2.20', ts='3.98', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='1.87e-05', EG='0.99', time_epoch_completed='1631581528.46', return_code='0', job_id='191372', GAL2='1.05', EG2='1.00', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='4.46e-08', ts2='4.13', photon_index='2.44' WHERE bin_id='1124' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:05:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 191372: <4FGL_J1613.6+3411_daily_bin1124> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1124> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:50:32 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:50:56 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:50:56 2021
Terminated at Mon Sep 13 18:05:29 2021
Results reported at Mon Sep 13 18:05:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1124 243.421 34.1982 530668801 530928001 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 :                                   700.37 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             288.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            897 sec.

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

