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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin990
RA = 243.421, Dec = 34.1982
tmin = 495936001, tmax = 496195201
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='191154', job_status='RUN', time_executed='2021-09-13 17:52:58.291355', time_epoch_executed='1631580778.29' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191154

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191154/ft1_4FGL_J1613.6+3411_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191154/ft2_4FGL_J1613.6+3411_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191154/ft1_4FGL_J1613.6+3411_daily_bin990.fits outfile=/scratch/kocevski/191154/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin990.fits ra=243.421 dec=34.1982 rad=12.0 tmin=495936001.0 tmax=496195201.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.51
user 3.32
sys 0.18

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191154/ft1_filtered_4FGL_J1613.6+3411_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/191154/ft2_4FGL_J1613.6+3411_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/191154/ltcube_495936001_496195201_4FGL_J1613.6+3411_daily_bin990.fits outfile=/scratch/kocevski/191154/expmap_495936001_496195201_4FGL_J1613.6+3411_daily_bin990.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/191154/ltcube_495936001_496195201_4FGL_J1613.6+3411_daily_bin990.fits
.....................!
real 192.95
user 187.25
sys 4.33

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/191154/ft1_filtered_4FGL_J1613.6+3411_daily_bin990.fits scfile=/scratch/kocevski/191154/ft2_4FGL_J1613.6+3411_daily_bin990.fits outfile=/scratch/kocevski/191154/cmap_495936001_496195201_4FGL_J1613.6+3411_daily_bin990.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/191154/ft1_filtered_4FGL_J1613.6+3411_daily_bin990.fits scfile=/scratch/kocevski/191154/ft2_4FGL_J1613.6+3411_daily_bin990.fits outfile=/scratch/kocevski/191154/cmap_HighResolution_495936001_496195201_4FGL_J1613.6+3411_daily_bin990.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.55
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11072E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0863       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1974       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8917       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9392       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1170       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .87601       1.0000         .10000E-03   10000.    
    13 'norm      '    2.4300       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.092       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .37393       1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.517       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1662       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3999       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0053       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0169       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=   7687.619     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     3088 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.241       -.11626E-04** at limit **
   2  norm          2.0864        1.1895       -.29650E-07   -.17416E-03
   3  Prefactor     .10000E-03    11.621        .36089E-06** at limit **
   4  Prefactor     .10000E-03    17.119        .23026E-05** at limit **
   5  Prefactor     .10000E-03    39.561        .11669E-04** at limit **
   6  norm          .10000E-03    16.388       -.29166E-05** at limit **
   7  Prefactor     1.1975        2.0800       -.36165E-07   -.19100E-03
   8  Prefactor     1.8863        5.9458        .18334E-05   -.87027E-03
   9  Prefactor     4.9394        10.551       -.13227E-06   -.23328E-04
  10  Prefactor     6.1167        3.3506        .41886E-07   -.95327E-03
  11  Prefactor     .10000E-03    1.5152       -.14780E-06** at limit **
  12  norm          .87613        .17022       -.47572E-08    .24899E-02
  13  norm          2.4280        9.3775       -.82878E-06   -.50850E-04
  14  Prefactor     .10000E-03    6.4140       -.90844E-08** at limit **
  15  norm          16.096        59.074        .72419E-05    .73091E-04
  16  Prefactor     .10000E-03    .74771       -.16354E-06** at limit **
  17  Prefactor     .37300        1.2580       -.16162E-06   -.19596E-03
  18  Prefactor     51.508        20.875       -.30942E-05   -.16293E-03
  19  Prefactor     6.1698        4.2153       -.97045E-07    .26547E-03
  20  norm          2.4005        1.4720       -.17538E-07    .16902E-03
  21  Normalizat    1.0053        .18577        .11478E-06    .63054E-04
  22  Prefactor     1.0169        .14484        .42210E-06    .20626E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 2.08642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.19746
  Prefactor  = 1.88629
  Prefactor  = 4.93942
  Prefactor  = 6.11674
  Prefactor  = 0.0001
  norm       = 0.876134
  norm       = 2.428
  Prefactor  = 0.0001
  norm       = 16.0959
  Prefactor  = 0.0001
  Prefactor  = 0.373
  Prefactor  = 51.5082
  Prefactor  = 6.16982
  norm       = 2.40047
  Normalizat = 1.00534
  Prefactor  = 1.0169
 **********
 **   18 **HESSE 
 **********

 FCN=   7687.619     FROM HESSE     STATUS=OK           346 CALLS     3434 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0864        1.1825        .69127E-04   -1.5419    
   3  Prefactor     .10000E-03    11.820        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    16.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1975        2.0369        .15998E-03   -1.5489    
   8  Prefactor     1.8863        19.643        .15126E-02   -1.5433    
   9  Prefactor     4.9394        10.556        .18097E-03   -1.5263    
  10  Prefactor     6.1167        3.4034        .57616E-03   -1.5213    
  11  Prefactor     .10000E-03    3.3687        .20676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .87613        .16814        .14776E-04   -1.5521    
  13  norm          2.4280        9.3188        .26252E-03   -1.5396    
  14  Prefactor     .10000E-03    6.4280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.096        57.236        .99843E-04   -1.4905    
  16  Prefactor     .10000E-03    2.5243        .10884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .37300        .94197        .11782E-03   -1.5586    
  18  Prefactor     51.508        20.910        .55876E-04   -1.4271    
  19  Prefactor     6.1698        4.1649        .12831E-03   -1.5211    
  20  norm          2.4005        1.4619        .79525E-04   -1.5398    
  21  Normalizat    1.0053        .21536        .28186E-03   -.92852    
  22  Prefactor     1.0169        .16863        .22468E-03   -.92168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4325e-09
Minuit parameter uncertainties:
  1  0.000348608
  2  1.18252
  3  6.55144e-06
  4  3.86628e-05
  5  0.000218581
  6  9.22689e-05
  7  2.037
  8  12.1788
  9  10.56
  10  3.40349
  11  3.89919e-05
  12  0.168144
  13  9.32432
  14  6.12396e-07
  15  57.4327
  16  1.47049e-05
  17  0.942011
  18  20.9131
  19  4.1651
  20  1.46188
  21  0.215542
  22  0.168719
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  6.117e+00  3.403e+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.017e+00  1.687e-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.005e+00  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.18
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 6.37e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.11e-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) = 7687.19032851
delta logL = 0.428383645654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7687.19019897
delta logL = 0.428513186285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6399       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0208       1.0000          .0000       10.000    
     3 'Normalizat'    1.0300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0033       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=   7687.190     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      269 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6312        119.37        .36271E-02    .10142E-03
   2  Index         2.0197        5.9054        .19940        .84505E-05
   3  Normalizat    1.0299        .15522        .63095E-01    .17140E-04
   4  Prefactor     1.0034        .10547        .44598E-01    .83929E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.63116
  Index      = 2.01971
  Normalizat = 1.02994
  Prefactor  = 1.00339
 **********
 **   18 **HESSE 
 **********

 FCN=   7687.190     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .41E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6312        4.3131        .13178E-03   -1.5155    
   2  Index         2.0197        .42019        .73110E-02   -.63858    
   3  Normalizat    1.0299        .20756        .27906E-03   -.92034    
   4  Prefactor     1.0034        .16580        .22594E-03   -.92617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.13589e-14
Minuit parameter uncertainties:
  1  4.31326
  2  0.420964
  3  0.207723
  4  0.165886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191154': 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) = 7687.190193
delta logL = 0.428519160037

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  7.631e+00  4.313e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.020e+00  4.210e-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.003e+00  1.659e-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.030e+00  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.99
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.02 +/- 0.42
Photon Flux (Free Index): 4.74e-08 +/- 3.31e-08
Energy Flux (Free Index): 3.12e-05 +/- 2.57e-05

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/191154/cmap_HighResolution_495936001_496195201_4FGL_J1613.6+3411_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.37e-08', energy_flux2='3.12e-05', photon_flux_error='3.54e-08', dlogl='4.29e-01', energy_flux='1.99e-05', photon_flux2='4.74e-08', job_status='DONE', time_completed='2021-09-13 18:05:52.011350', photon_index_error2='0.42', photon_index2='2.02', ts='6.18', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.57e-05', EG='1.01', time_epoch_completed='1631581552.01', return_code='0', job_id='191154', GAL2='1.00', EG2='1.03', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='3.31e-08', ts2='6.99', photon_index='2.44' WHERE bin_id='990' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:05:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 191154: <4FGL_J1613.6+3411_daily_bin990> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin990 243.421 34.1982 495936001 496195201 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 :                                   768.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                22
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

