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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1151
RA = 243.421, Dec = 34.1982
tmin = 537667201, tmax = 537926401
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='191416', job_status='RUN', time_executed='2021-09-13 17:51:18.441567', time_epoch_executed='1631580678.44' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1151'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191416

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191416/ft1_4FGL_J1613.6+3411_daily_bin1151.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191416/ft2_4FGL_J1613.6+3411_daily_bin1151.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191416/ft1_4FGL_J1613.6+3411_daily_bin1151.fits outfile=/scratch/kocevski/191416/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1151.fits ra=243.421 dec=34.1982 rad=12.0 tmin=537667201.0 tmax=537926401.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 5.02
user 4.76
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191416/ft1_filtered_4FGL_J1613.6+3411_daily_bin1151.fits evtable="EVENTS" scfile=/scratch/kocevski/191416/ft2_4FGL_J1613.6+3411_daily_bin1151.fits sctable="SC_DATA" expcube=/scratch/kocevski/191416/ltcube_537667201_537926401_4FGL_J1613.6+3411_daily_bin1151.fits outfile=/scratch/kocevski/191416/expmap_537667201_537926401_4FGL_J1613.6+3411_daily_bin1151.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/191416/ltcube_537667201_537926401_4FGL_J1613.6+3411_daily_bin1151.fits
.....................!
real 193.04
user 186.81
sys 4.78

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/191416/ft1_filtered_4FGL_J1613.6+3411_daily_bin1151.fits scfile=/scratch/kocevski/191416/ft2_4FGL_J1613.6+3411_daily_bin1151.fits outfile=/scratch/kocevski/191416/cmap_537667201_537926401_4FGL_J1613.6+3411_daily_bin1151.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191416/ft1_filtered_4FGL_J1613.6+3411_daily_bin1151.fits scfile=/scratch/kocevski/191416/ft2_4FGL_J1613.6+3411_daily_bin1151.fits outfile=/scratch/kocevski/191416/cmap_HighResolution_537667201_537926401_4FGL_J1613.6+3411_daily_bin1151.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.975       1.0000         .10000E-03   10000.    
     2 'norm      '    7.4074       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10373E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1069       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.862       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9313       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5674       1.0000         .10000E-03   10000.    
    12 'norm      '    .31254       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    38.493       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.032       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .92739E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    4.0123       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95643       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81725       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=   3896.269     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2415 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.614        111.15        .24582E-05   -.79445E-05
   2  norm          7.4064        2.2243       -.40620E-07   -.22042E-03
   3  Prefactor     .10000E-03    7.1354        .10113E-06** at limit **
   4  Prefactor     .10000E-03    15.410        .48523E-07** at limit **
   5  Prefactor     .10000E-03    15.797       -.23092E-06** at limit **
   6  norm          .10000E-03    10.151       -.11670E-06** at limit **
   7  Prefactor     3.1067        2.6326        .52047E-07    .20385E-04
   8  Prefactor     .10000E-03    6.3501        .22713E-07** at limit **
   9  Prefactor     15.855        14.659        .22549E-06    .12045E-05
  10  Prefactor     6.9297        5.0526       -.16661E-07    .37015E-04
  11  Prefactor     2.5669        3.7505       -.21273E-06   -.92665E-04
  12  norm          .31243        .17982       -.17959E-06   -.49367E-02
  13  norm          .10000E-03    7.1608       -.48243E-07** at limit **
  14  Prefactor     .10000E-03    17.198        .10757E-05** at limit **
  15  norm          38.533        54.909       -.19391E-05   -.85510E-04
  16  Prefactor     .10000E-03    1.5316       -.14964E-05** at limit **
  17  Prefactor     .10000E-03    1.1569       -.15367E-05** at limit **
  18  Prefactor     16.043        20.899        .16503E-06    .15544E-05
  19  Prefactor     .58655E-01    6.2022        .40909E-05   -.10561E-02
  20  norm          4.0133        2.4182       -.12805E-06   -.21444E-03
  21  Normalizat    .95695        .23661        .33279E-05   -.60027E-04
  22  Prefactor     .81696        .17949       -.33931E-05   -.38139E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.6143
  norm       = 7.40637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.10672
  Prefactor  = 0.0001
  Prefactor  = 15.8546
  Prefactor  = 6.92974
  Prefactor  = 2.56691
  norm       = 0.31243
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 38.5335
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.0433
  Prefactor  = 0.0586545
  norm       = 4.01333
  Normalizat = 0.956947
  Prefactor  = 0.816955
 **********
 **   18 **HESSE 
 **********

 FCN=   3896.269     FROM HESSE     STATUS=OK           346 CALLS     2761 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.614        111.17        .70861E-04   -1.4583    
   2  norm          7.4064        2.2289        .49058E-04   -1.5164    
   3  Prefactor     .10000E-03    7.1618        .16269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.1067        2.6299        .90197E-04   -1.5355    
   8  Prefactor     .10000E-03    6.3503        .15363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.855        14.676        .10056E-03   -1.4911    
  10  Prefactor     6.9297        5.0819        .11303E-03   -1.5181    
  11  Prefactor     2.5669        3.7267        .13791E-03   -1.5388    
  12  norm          .31243        .17907        .19070E-04   -1.5596    
  13  norm          .10000E-03    7.1614        .16315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          38.533        56.383        .32301E-03   -1.4466    
  16  Prefactor     .10000E-03    1.8338        .11902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.3765        .10731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.043        20.932        .10003E-03   -1.4907    
  19  Prefactor     .58655E-01    72.594        .18226E-02   -1.5660    
  20  norm          4.0133        2.4230        .72453E-04   -1.5307    
  21  Normalizat    .95695        .28486        .25970E-03   -.94487    
  22  Prefactor     .81696        .21365        .21786E-03   -.99106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25758e-08
Minuit parameter uncertainties:
  1  111.912
  2  2.22891
  3  1.28357e-05
  4  1.00627e-05
  5  6.60626e-05
  6  3.54356e-05
  7  2.63003
  8  2.65716e-06
  9  14.6796
  10  5.08221
  11  3.72705
  12  0.179067
  13  7.49436e-06
  14  0.000315551
  15  56.4607
  16  4.42062e-05
  17  5.65369e-05
  18  20.9411
  19  4.12846
  20  2.42302
  21  0.285317
  22  0.213864
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  6.930e+00  5.082e+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:  8.170e-01  2.139e-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.569e-01  2.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.84
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 7.21e-08 +/- 5.29e-08
Energy Flux (Fixed Index): 2.25e-05 +/- 1.65e-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) = 3896.25101457
delta logL = 0.0180656843063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3896.24797543
delta logL = 0.0211048224196

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1423       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2462       1.0000          .0000       10.000    
     3 'Normalizat'    .97893       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80645       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=   3896.248     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1441        174.98        .37524E-02   -.28938E-04
   2  Index         2.2466        5.2354        .16171        .82502E-05
   3  Normalizat    .97855        .27351        .45902E-01   -.10996E-03
   4  Prefactor     .80665        .94167E-01    .43801E-01   -.10140E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.14405
  Index      = 2.24659
  Normalizat = 0.978552
  Prefactor  = 0.806646
 **********
 **   18 **HESSE 
 **********

 FCN=   3896.248     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1441        5.5999        .12430E-03   -1.5173    
   2  Index         2.2466        .93451        .94720E-02   -.58318    
   3  Normalizat    .97855        .28627        .25715E-03   -.93752    
   4  Prefactor     .80665        .21270        .21912E-03   -.99484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61879e-11
Minuit parameter uncertainties:
  1  5.60027
  2  0.942495
  3  0.286714
  4  0.212917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191416': 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) = 3896.24797446
delta logL = 0.0211057919305

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  7.144e+00  5.600e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  2.247e+00  9.425e-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:  8.066e-01  2.129e-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.786e-01  2.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.83
Ra Dec: 243.421 34.198
Photon Index (Free Index): 2.25 +/- 0.94
Photon Flux (Free Index): 5.79e-08 +/- 8.09e-08
Energy Flux (Free Index): 2.39e-05 +/- 2.17e-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/191416/cmap_HighResolution_537667201_537926401_4FGL_J1613.6+3411_daily_bin1151.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.21e-08', energy_flux2='2.39e-05', photon_flux_error='5.29e-08', dlogl='2.11e-02', energy_flux='2.25e-05', photon_flux2='5.79e-08', job_status='DONE', time_completed='2021-09-13 18:00:02.092328', photon_index_error2='0.94', photon_index2='2.25', ts='6.84', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.17e-05', EG='0.96', time_epoch_completed='1631581202.09', return_code='0', job_id='191416', GAL2='0.81', EG2='0.98', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='8.09e-08', ts2='6.83', photon_index='2.44' WHERE bin_id='1151' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:00:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 191416: <4FGL_J1613.6+3411_daily_bin1151> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1151 243.421 34.1982 537667201 537926401 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 :                                   517.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   538 sec.
    Turnaround time :                            567 sec.

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

