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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1131
RA = 243.421, Dec = 34.1982
tmin = 532483201, tmax = 532742401
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='191384', job_status='RUN', time_executed='2021-09-13 17:54:22.385022', time_epoch_executed='1631580862.39' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191384

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191384/ft1_4FGL_J1613.6+3411_daily_bin1131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191384/ft2_4FGL_J1613.6+3411_daily_bin1131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191384/ft1_4FGL_J1613.6+3411_daily_bin1131.fits outfile=/scratch/kocevski/191384/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1131.fits ra=243.421 dec=34.1982 rad=12.0 tmin=532483201.0 tmax=532742401.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.56
user 3.28
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191384/ft1_filtered_4FGL_J1613.6+3411_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/191384/ft2_4FGL_J1613.6+3411_daily_bin1131.fits sctable="SC_DATA" expcube=/scratch/kocevski/191384/ltcube_532483201_532742401_4FGL_J1613.6+3411_daily_bin1131.fits outfile=/scratch/kocevski/191384/expmap_532483201_532742401_4FGL_J1613.6+3411_daily_bin1131.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/191384/ltcube_532483201_532742401_4FGL_J1613.6+3411_daily_bin1131.fits
.....................!
real 192.73
user 185.60
sys 4.91

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191384/ft1_filtered_4FGL_J1613.6+3411_daily_bin1131.fits scfile=/scratch/kocevski/191384/ft2_4FGL_J1613.6+3411_daily_bin1131.fits outfile=/scratch/kocevski/191384/cmap_HighResolution_532483201_532742401_4FGL_J1613.6+3411_daily_bin1131.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=243.421 yref=34.1982 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15410E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .55685E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.815       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .87496       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12316       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23918       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.835       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0279       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8731       1.0000         .10000E-03   10000.    
    12 'norm      '    .23959       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6810       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.332       1.0000         .10000E-03   10000.    
    15 'norm      '    91.040       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1530       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.334       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11736       1.0000         .10000E-03   10000.    
    20 'norm      '    .86403       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .78152       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0504       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=   6734.544     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2223 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    88.260       -.94399E-06** at limit **
   2  norm          .64675E-01    .96598        .11859E-05   -.82323E-03
   3  Prefactor     15.762        10.913       -.61498E-06    .63734E-03
   4  Prefactor     .10000E-03    12.505        .20508E-07** at limit **
   5  Prefactor     .10000E-03    19.585       -.58644E-07** at limit **
   6  norm          .90659        41.120       -.13830E-04   -.11650E-03
   7  Prefactor     .12247        1.1192        .18216E-06   -.12242E-03
   8  Prefactor     .28318        15.675        .55307E-05   -.40872E-03
   9  Prefactor     13.837        11.306        .47073E-07    .44120E-04
  10  Prefactor     2.0289        2.4098       -.38505E-08    .35768E-03
  11  Prefactor     3.8746        3.7754       -.11394E-06    .52969E-03
  12  norm          .23969        .14785        .59219E-08   -.20840E-02
  13  norm          1.6667        19.449       -.18409E-05    .13877E-03
  14  Prefactor     35.323        22.724       -.21073E-06   -.16297E-03
  15  norm          90.988        54.199        .91393E-06    .20329E-03
  16  Prefactor     3.1504        1.3951       -.82594E-06   -.13210E-02
  17  Prefactor     .10000E-03    .68691        .12994E-05** at limit **
  18  Prefactor     46.351        18.806       -.12505E-06   -.55024E-04
  19  Prefactor     .15468        1.5179        .90499E-06   -.27513E-03
  20  norm          .86392        .78005       -.27112E-07   -.43652E-03
  21  Normalizat    .78117        .18547       -.33029E-06   -.16540E-03
  22  Prefactor     1.0504        .13889        .55640E-07   -.44757E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0646748
  Prefactor  = 15.7615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.906587
  Prefactor  = 0.122474
  Prefactor  = 0.283181
  Prefactor  = 13.8367
  Prefactor  = 2.02891
  Prefactor  = 3.87457
  norm       = 0.239687
  norm       = 1.66672
  Prefactor  = 35.3225
  norm       = 90.9882
  Prefactor  = 3.15038
  Prefactor  = 0.0001
  Prefactor  = 46.351
  Prefactor  = 0.154681
  norm       = 0.863919
  Normalizat = 0.781171
  Prefactor  = 1.0504
 **********
 **   18 **HESSE 
 **********

 FCN=   6734.544     FROM HESSE     STATUS=OK           372 CALLS     2595 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    88.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .64675E-01    8.7687        .11658E-02   -1.5657    
   3  Prefactor     15.762        13.083        .10071E-03   -1.4914    
   4  Prefactor     .10000E-03    12.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .90659        43.437        .49506E-02   -1.5518    
   7  Prefactor     .12247        9.9273        .16525E-02   -1.5638    
   8  Prefactor     .28318        19.268        .95608E-01   -1.5602    
   9  Prefactor     13.837        11.329        .10769E-03   -1.4964    
  10  Prefactor     2.0289        2.4006        .13348E-03   -1.5423    
  11  Prefactor     3.8746        3.7747        .14366E-03   -1.5314    
  12  norm          .23969        .14602        .20885E-04   -1.5610    
  13  norm          1.6667        19.054        .32490E-03   -1.5450    
  14  Prefactor     35.323        22.631        .67420E-04   -1.4519    
  15  norm          90.988        54.847        .21057E-03   -1.3797    
  16  Prefactor     3.1504        1.4682        .57187E-04   -1.5353    
  17  Prefactor     .10000E-03    1.1387        .12750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     46.351        18.831        .58904E-04   -1.4345    
  19  Prefactor     .15468        11.009        .18210E-02   -1.5629    
  20  norm          .86392        .83239        .66991E-03   -1.5522    
  21  Normalizat    .78117        .21284        .29337E-03   -1.0077    
  22  Prefactor     1.0504        .16174        .20675E-03   -.91068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82145e-08
Minuit parameter uncertainties:
  1  0.000248229
  2  1.5052
  3  13.0853
  4  4.49989e-05
  5  7.33676e-05
  6  12.5595
  7  2.20478
  8  4.6725
  9  11.3312
  10  2.40076
  11  3.77492
  12  0.146021
  13  11.2749
  14  22.6363
  15  54.8771
  16  1.46819
  17  6.47657e-06
  18  18.8329
  19  2.6096
  20  0.832403
  21  0.213062
  22  0.16181
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.029e+00  2.401e+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.050e+00  1.618e-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:  7.812e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 2.11e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 6.60e-06 +/- 7.80e-06

TS (Fixed Index): 1.34
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 8.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191384/likelihoodResults_532483201_532742401_4FGL_J1613.6+3411_daily_bin1131.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) = 6734.16229201
delta logL = 0.381577250467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6734.16031492
delta logL = 0.383554338729

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0326       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6840       1.0000          .0000       10.000    
     3 'Normalizat'    .79605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0439       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=   6734.160     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0430        2.4924        .72535E-02   -.56160E-04
   2  Index         1.6855        .56804        .27999       -.49145E-04
   3  Normalizat    .79603        .16789        .65730E-01    .37357E-04
   4  Prefactor     1.0439        .13577        .40278E-01    .27569E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.04298
  Index      = 1.6855
  Normalizat = 0.796028
  Prefactor  = 1.04394
 **********
 **   18 **HESSE 
 **********

 FCN=   6734.160     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0430        2.6385        .13038E-03   -1.5422    
   2  Index         1.6855        .76163        .11361E-01   -.72469    
   3  Normalizat    .79603        .19194        .29079E-03   -1.0022    
   4  Prefactor     1.0439        .15556        .20726E-03   -.91279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63951e-09
Minuit parameter uncertainties:
  1  2.63863
  2  0.76698
  3  0.192101
  4  0.15563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191384': 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) = 6734.16030756
delta logL = 0.383561702584

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  2.043e+00  2.639e+00  1.000e-04  1.000e+04 ( 1.000e-12)
277        Index:  1.685e+00  7.670e-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.044e+00  1.556e-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:  7.960e-01  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 243.421 34.198
Photon Index (Free Index): 1.69 +/- 0.77
Photon Flux (Free Index): 9.42e-09 +/- 1.50e-08
Energy Flux (Free Index): 1.61e-05 +/- 2.86e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/191384/cmap_HighResolution_532483201_532742401_4FGL_J1613.6+3411_daily_bin1131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-03', comment='SUCCESS', photon_flux='2.11e-08', energy_flux2='1.61e-05', photon_flux_error='2.50e-08', dlogl='3.84e-01', energy_flux='6.60e-06', photon_flux2='9.42e-09', job_status='DONE', time_completed='2021-09-13 18:06:08.601065', photon_index_error2='0.77', photon_index2='1.69', ts='1.34', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.71e-08', energy_flux_error2='2.86e-05', EG='0.78', time_epoch_completed='1631581568.6', return_code='0', job_id='191384', GAL2='1.04', EG2='0.80', return_code2='0', energy_flux_error='7.80e-06', photon_flux_error2='1.50e-08', ts2='2.11', photon_index='2.44' WHERE bin_id='1131' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 13 18:06:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 191384: <4FGL_J1613.6+3411_daily_bin1131> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1131 243.421 34.1982 532483201 532742401 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 :                                   694.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            936 sec.

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

