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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1025
RA = 243.421, Dec = 34.1982
tmin = 505008001, tmax = 505267201
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='191214', job_status='RUN', time_executed='2021-09-13 17:51:08.872793', time_epoch_executed='1631580668.87' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191214

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191214/ft1_4FGL_J1613.6+3411_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191214/ft2_4FGL_J1613.6+3411_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191214/ft1_4FGL_J1613.6+3411_daily_bin1025.fits outfile=/scratch/kocevski/191214/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1025.fits ra=243.421 dec=34.1982 rad=12.0 tmin=505008001.0 tmax=505267201.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 4.56
user 4.28
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191214/ft1_filtered_4FGL_J1613.6+3411_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/191214/ft2_4FGL_J1613.6+3411_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/191214/ltcube_505008001_505267201_4FGL_J1613.6+3411_daily_bin1025.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/191214/ft2_4FGL_J1613.6+3411_daily_bin1025.fits
.....................!
real 13.90
user 13.50
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191214/ft1_filtered_4FGL_J1613.6+3411_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/191214/ft2_4FGL_J1613.6+3411_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/191214/ltcube_505008001_505267201_4FGL_J1613.6+3411_daily_bin1025.fits outfile=/scratch/kocevski/191214/expmap_505008001_505267201_4FGL_J1613.6+3411_daily_bin1025.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/191214/ltcube_505008001_505267201_4FGL_J1613.6+3411_daily_bin1025.fits
.....................!
real 191.93
user 185.78
sys 5.53

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/191214/ft1_filtered_4FGL_J1613.6+3411_daily_bin1025.fits scfile=/scratch/kocevski/191214/ft2_4FGL_J1613.6+3411_daily_bin1025.fits outfile=/scratch/kocevski/191214/cmap_505008001_505267201_4FGL_J1613.6+3411_daily_bin1025.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191214/ft1_filtered_4FGL_J1613.6+3411_daily_bin1025.fits scfile=/scratch/kocevski/191214/ft2_4FGL_J1613.6+3411_daily_bin1025.fits outfile=/scratch/kocevski/191214/cmap_HighResolution_505008001_505267201_4FGL_J1613.6+3411_daily_bin1025.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8078       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9883       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22793E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.660       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .65181       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0093       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10859E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.8431       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8881       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.4547       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1281       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .75698       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=   6185.362     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2824 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.065        .25551E-05** at limit **
   2  norm          1.8078        1.4639        .12789E-06   -.27308E-03
   3  Prefactor     7.9858        10.435       -.64216E-06    .62762E-04
   4  Prefactor     .10000E-03    20.522       -.28745E-05** at limit **
   5  Prefactor     .10003E-03    17.918       -.14725E-07** at limit **
   6  norm          .10000E-03    9.8939        .21999E-06** at limit **
   7  Prefactor     .10000E-03    .71130        .27614E-07** at limit **
   8  Prefactor     14.662        15.868        .40640E-06   -.53095E-04
   9  Prefactor     .65442        5.7679       -.11201E-05   -.17874E-03
  10  Prefactor     6.0103        3.4997       -.98141E-07    .90504E-04
  11  Prefactor     .10000E-03    1.6781        .95180E-07** at limit **
  12  norm          .10000E-03    .89445E-01   -.37842E-06** at limit **
  13  norm          .10000E-03    6.4919        .53296E-07** at limit **
  14  Prefactor     7.8496        15.720        .86023E-05   -.16874E-04
  15  norm          .10000E-03    20.456        .31633E-05** at limit **
  16  Prefactor     .10000E-03    .82413       -.10108E-06** at limit **
  17  Prefactor     3.8877        1.7006       -.20248E-07    .35300E-02
  18  Prefactor     .10000E-03    8.5950        .11475E-07** at limit **
  19  Prefactor     .10000E-03    1.5900        .26475E-07** at limit **
  20  norm          2.4545        1.7235        .63336E-08    .28484E-03
  21  Normalizat    1.1281        .17647       -.47284E-06    .48750E-03
  22  Prefactor     .75693        .12907       -.17770E-07    .35584E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 1.80779
  Prefactor  = 7.98581
  Prefactor  = 0.000100002
  Prefactor  = 0.000100026
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6623
  Prefactor  = 0.654418
  Prefactor  = 6.01031
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.84957
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.88769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.45454
  Normalizat = 1.12811
  Prefactor  = 0.756934
 **********
 **   18 **HESSE 
 **********

 FCN=   6185.362     FROM HESSE     STATUS=OK           348 CALLS     3172 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8078        1.4608        .69874E-04   -1.5439    
   3  Prefactor     7.9858        10.496        .14186E-03   -1.5143    
   4  Prefactor     .10000E-03    20.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    174.73        .63529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.9165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .72343        .64760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.662        15.867        .10461E-03   -1.4942    
   9  Prefactor     .65442        15.613        .36922E-02   -1.5546    
  10  Prefactor     6.0103        3.5058        .10722E-03   -1.5218    
  11  Prefactor     .10000E-03    11.043        .18877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .36553        .40982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.5087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.8496        15.567        .14318E-03   -1.5148    
  15  norm          .10000E-03    20.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7848        .10545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8877        1.3706        .49966E-04   -1.5314    
  18  Prefactor     .10000E-03    8.6394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.6700        .18923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.4545        1.7208        .82710E-04   -1.5395    
  21  Normalizat    1.1281        .20080        .23729E-03   -.88854    
  22  Prefactor     .75693        .15048        .22096E-03   -1.0134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58013e-08
Minuit parameter uncertainties:
  1  0.000547453
  2  1.46086
  3  10.4987
  4  0.000369544
  5  0.00429877
  6  1.23363e-05
  7  2.52686e-07
  8  15.8716
  9  6.39434
  10  3.50595
  11  1.77055e-05
  12  2.00933e-05
  13  2.75253e-06
  14  15.5749
  15  0.000373537
  16  2.44383e-05
  17  1.37061
  18  1.92843e-06
  19  5.81433e-06
  20  1.72088
  21  0.200935
  22  0.150564
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  6.010e+00  3.506e+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:  7.569e-01  1.506e-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:  1.128e+00  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.87
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.26e-08 +/- 3.65e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 1.14e-05

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) = 6185.35556537
delta logL = 0.00609946656004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6185.35264412
delta logL = 0.00902071636028

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3058       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3654       1.0000          .0000       10.000    
     3 'Normalizat'    1.1320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75498       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=   6185.353     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      234 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3055        4.3192        .11093E-03    .13891E-02
   2  Index         2.3656        .54238        .64705E-02    .21775E-03
   3  Normalizat    1.1320        .19285        .23693E-03   -.17108E-03
   4  Prefactor     .75498        .14846        .22121E-03   -.21503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.30553
  Index      = 2.36557
  Normalizat = 1.13202
  Prefactor  = 0.75498
 **********
 **   18 **HESSE 
 **********

 FCN=   6185.353     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3055        4.2204        .44372E-05   -1.5206    
   2  Index         2.3656        .52965        .25882E-03   -.55493    
   3  Normalizat    1.1320        .19293        .47387E-04   -.88730    
   4  Prefactor     .75498        .14853        .88482E-05   -1.0141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.29789e-10
Minuit parameter uncertainties:
  1  4.22058
  2  0.531029
  3  0.193055
  4  0.148608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191214': 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) = 6185.35264403
delta logL = 0.0090208098236

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  6.306e+00  4.221e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.366e+00  5.310e-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:  7.550e-01  1.486e-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:  1.132e+00  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.86
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.37 +/- 0.53
Photon Flux (Free Index): 5.96e-08 +/- 4.17e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.41e-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/191214/cmap_HighResolution_505008001_505267201_4FGL_J1613.6+3411_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.26e-08', energy_flux2='2.05e-05', photon_flux_error='3.65e-08', dlogl='9.02e-03', energy_flux='1.95e-05', photon_flux2='5.96e-08', job_status='DONE', time_completed='2021-09-13 18:02:06.995669', photon_index_error2='0.53', photon_index2='2.37', ts='5.87', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='1.13', time_epoch_completed='1631581327.0', return_code='0', job_id='191214', GAL2='0.75', EG2='1.13', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='4.17e-08', ts2='5.86', photon_index='2.44' WHERE bin_id='1025' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:02:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 191214: <4FGL_J1613.6+3411_daily_bin1025> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1025 243.421 34.1982 505008001 505267201 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 :                                   654.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            706 sec.

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

