/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 237 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 = 7653
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1613.6+3411_daily_bin35
RA = 243.421, Dec = 34.1982
tmin = 248400001, tmax = 248659201
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='179529', job_status='RUN', time_executed='2021-09-13 17:15:05.854317', time_epoch_executed='1631578505.85' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/179529

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/179529/ft1_4FGL_J1613.6+3411_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/179529/ft2_4FGL_J1613.6+3411_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/179529/ft1_4FGL_J1613.6+3411_daily_bin35.fits outfile=/scratch/kocevski/179529/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin35.fits ra=243.421 dec=34.1982 rad=12.0 tmin=248400001.0 tmax=248659201.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 1.44
user 1.25
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/179529/ft2_4FGL_J1613.6+3411_daily_bin35.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/179529/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin35.fits evtable="EVENTS" outfile="/scratch/kocevski/179529/ft1_filtered_4FGL_J1613.6+3411_daily_bin35.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/179529/ft1_filtered_4FGL_J1613.6+3411_daily_bin35.fits" evtable="EVENTS" scfile=/scratch/kocevski/179529/ft2_4FGL_J1613.6+3411_daily_bin35.fits sctable="SC_DATA" outfile=/scratch/kocevski/179529/ltcube_248400001_248659201_4FGL_J1613.6+3411_daily_bin35.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/179529/ft2_4FGL_J1613.6+3411_daily_bin35.fits
.....................!
real 15.35
user 14.96
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/179529/ft1_filtered_4FGL_J1613.6+3411_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/179529/ft2_4FGL_J1613.6+3411_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/179529/ltcube_248400001_248659201_4FGL_J1613.6+3411_daily_bin35.fits outfile=/scratch/kocevski/179529/expmap_248400001_248659201_4FGL_J1613.6+3411_daily_bin35.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/179529/ltcube_248400001_248659201_4FGL_J1613.6+3411_daily_bin35.fits
.....................!
real 191.97
user 185.80
sys 5.75

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/179529/ft1_filtered_4FGL_J1613.6+3411_daily_bin35.fits scfile=/scratch/kocevski/179529/ft2_4FGL_J1613.6+3411_daily_bin35.fits outfile=/scratch/kocevski/179529/cmap_248400001_248659201_4FGL_J1613.6+3411_daily_bin35.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/179529/ft1_filtered_4FGL_J1613.6+3411_daily_bin35.fits scfile=/scratch/kocevski/179529/ft2_4FGL_J1613.6+3411_daily_bin35.fits outfile=/scratch/kocevski/179529/cmap_HighResolution_248400001_248659201_4FGL_J1613.6+3411_daily_bin35.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.957       1.0000         .10000E-03   10000.    
     2 'norm      '    6.2042       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.9689       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0005       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8317       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1112       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3104       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .67705       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9208       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2467       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5375       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18442E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.817       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.3450       1.0000         .10000E-03   10000.    
    20 'norm      '    1.9530       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93779       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94502       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=   5540.242     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2388 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.004        74.777       -.68638E-05    .39871E-05
   2  norm          6.2043        2.1749        .33639E-07   -.82638E-05
   3  Prefactor     9.9699        13.274        .73552E-07    .11065E-05
   4  Prefactor     .10000E-03    27.677        .68860E-07** at limit **
   5  Prefactor     .10000E-03    6.5567        .35392E-06** at limit **
   6  norm          .10000E-03    11.551       -.28985E-06** at limit **
   7  Prefactor     3.0005        2.1872        .87443E-07    .34845E-04
   8  Prefactor     9.8310        24.251        .46115E-06   -.17591E-05
   9  Prefactor     5.1109        9.8656        .13164E-05    .53476E-04
  10  Prefactor     3.3099        4.0194        .13318E-06   -.40312E-04
  11  Prefactor     .10000E-03    3.5967       -.56863E-08** at limit **
  12  norm          .67711        .24136        .42120E-08   -.67009E-02
  13  norm          .10000E-03    9.1518        .57342E-06** at limit **
  14  Prefactor     8.9285        26.821       -.13834E-05   -.11931E-03
  15  norm          3.2382        128.95        .13928E-05   -.52061E-04
  16  Prefactor     2.5375        1.7708       -.39691E-06   -.33331E-02
  17  Prefactor     .10004E-03    1.0111        .76064E-06** at limit **
  18  Prefactor     36.817        19.836        .99627E-07   -.88749E-05
  19  Prefactor     4.3464        5.0170        .10914E-05   -.53500E-03
  20  norm          1.9530        1.4583       -.57248E-07   -.55665E-03
  21  Normalizat    .93780        .22141       -.13434E-05   -.24841E-03
  22  Prefactor     .94500        .15777        .67778E-06   -.23860E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.0037
  norm       = 6.20429
  Prefactor  = 9.96993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.00052
  Prefactor  = 9.83099
  Prefactor  = 5.11086
  Prefactor  = 3.30991
  Prefactor  = 0.0001
  norm       = 0.677106
  norm       = 0.0001
  Prefactor  = 8.92848
  norm       = 3.23822
  Prefactor  = 2.53749
  Prefactor  = 0.00010004
  Prefactor  = 36.8174
  Prefactor  = 4.34643
  norm       = 1.95302
  Normalizat = 0.937798
  Prefactor  = 0.945002
 **********
 **   18 **HESSE 
 **********

 FCN=   5540.242     FROM HESSE     STATUS=OK           350 CALLS     2738 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.004        72.548        .28656E-03   -1.4307    
   2  norm          6.2043        2.1900        .54379E-04   -1.5210    
   3  Prefactor     9.9699        13.362        .12691E-03   -1.5076    
   4  Prefactor     .10000E-03    27.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.5584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0005        2.1850        .45447E-03   -1.5362    
   8  Prefactor     9.8310        24.264        .12780E-03   -1.5081    
   9  Prefactor     5.1109        9.8661        .88919E-03   -1.5256    
  10  Prefactor     3.3099        4.0184        .15461E-03   -1.5344    
  11  Prefactor     .10000E-03    3.7428        .27519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .67711        .24244        .18009E-04   -1.5543    
  13  norm          .10000E-03    9.1524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.9285        26.976        .13420E-03   -1.5110    
  15  norm          3.2382        126.02        .22478E-03   -1.5348    
  16  Prefactor     2.5375        1.6570        .66199E-04   -1.5389    
  17  Prefactor     .10004E-03    7.2576        .11395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.817        19.843        .66051E-04   -1.4494    
  19  Prefactor     4.3464        5.0312        .80233E-03   -1.5291    
  20  norm          1.9530        1.4594        .75055E-04   -1.5428    
  21  Normalizat    .93780        .26067        .28865E-03   -.95144    
  22  Prefactor     .94500        .18707        .22081E-03   -.94586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09041e-09
Minuit parameter uncertainties:
  1  72.6789
  2  2.19007
  3  13.3665
  4  1.03732e-06
  5  2.9872e-06
  6  1.22682e-05
  7  2.18504
  8  24.2884
  9  9.8692
  10  4.01872
  11  1.42137e-06
  12  0.242443
  13  5.44448e-06
  14  27.0128
  15  40.4937
  16  1.65708
  17  0.00107612
  18  19.8466
  19  5.03164
  20  1.45947
  21  0.261022
  22  0.187196
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  3.310e+00  4.019e+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:  9.450e-01  1.872e-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.378e-01  2.610e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 3.45e-08 +/- 4.18e-08
Energy Flux (Fixed Index): 1.08e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/179529/likelihoodResults_248400001_248659201_4FGL_J1613.6+3411_daily_bin35.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) = 5539.23334403
delta logL = 1.00884145301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5539.21382677
delta logL = 1.0283587123

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39126E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    6.9617       1.0000          .0000       10.000    
     3 'Normalizat'    .81744       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0166       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=   5539.214     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      368 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38998E-02    .40439E-01    .70325E-03   -.92516E-02
   2  Index         6.9641        2.7284        .12010        .17719E-04
   3  Normalizat    .81743        .56750E-01    .69369E-01   -.95324E-05
   4  Prefactor     1.0167        .43693E-01    .42492E-01   -.18232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00389984
  Index      = 6.96408
  Normalizat = 0.817432
  Prefactor  = 1.01668
 **********
 **   18 **HESSE 
 **********

 FCN=   5539.214     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      403 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38998E-02    .84656E-01    .30286E-04   -1.5696    
   2  Index         6.9641        7.4899        .47821E-02    .40369    
   3  Normalizat    .81743        .19541        .30694E-03   -.99425    
   4  Prefactor     1.0167        .14741        .21393E-03   -.92176    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.70064e-10
Minuit parameter uncertainties:
  1  0.0358709
  2  4.83311
  3  0.195582
  4  0.147473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/179529': 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) = 5539.21382452
delta logL = 1.02836095861

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  3.900e-03  3.587e-02  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  6.964e+00  4.833e+00  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.017e+00  1.475e-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:  8.174e-01  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.44
Ra Dec: 243.421 34.198
Photon Index (Free Index): 6.96 +/- 4.83
Photon Flux (Free Index): 1.08e-07 +/- 6.92e-08
Energy Flux (Free Index): 1.30e-05 +/- 8.75e-06

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/179529/cmap_HighResolution_248400001_248659201_4FGL_J1613.6+3411_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='3.45e-08', energy_flux2='1.30e-05', photon_flux_error='4.18e-08', dlogl='1.03e+00', energy_flux='1.08e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-13 17:25:46.821962', photon_index_error2='4.83', photon_index2='6.96', ts='1.05', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='8.75e-06', EG='0.94', time_epoch_completed='1631579146.82', return_code='0', job_id='179529', GAL2='1.02', EG2='0.82', return_code2='102', energy_flux_error='1.31e-05', photon_flux_error2='6.92e-08', ts2='3.44', photon_index='2.44' WHERE bin_id='35' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 17:25:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 179529: <4FGL_J1613.6+3411_daily_bin35> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin35> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 13 17:10:19 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 13 17:10:59 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:10:59 2021
Terminated at Mon Sep 13 17:25:47 2021
Results reported at Mon Sep 13 17:25:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin35 243.421 34.1982 248400001 248659201 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 :                                   641.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            928 sec.

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

