aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 225 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1776
RA = 243.421, Dec = 34.1982
tmin = 699667201, tmax = 699926401
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='837067', job_status='RUN', time_executed='2023-03-08 00:54:16.837797', time_epoch_executed='1678265656.84' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/837067

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/837067/ft1_4FGL_J1613.6+3411_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/837067/ft2_4FGL_J1613.6+3411_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/837067/ft1_4FGL_J1613.6+3411_daily_bin1776.fits outfile=/scratch/kocevski/837067/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1776.fits ra=243.421 dec=34.1982 rad=12.0 tmin=699667201.0 tmax=699926401.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.88
user 3.66
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/837067/ft2_4FGL_J1613.6+3411_daily_bin1776.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/837067/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1776.fits evtable="EVENTS" outfile="/scratch/kocevski/837067/ft1_filtered_4FGL_J1613.6+3411_daily_bin1776.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.49
user 0.35
sys 0.13

Number of photons that the gtmktime cut: 644

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/837067/ft1_filtered_4FGL_J1613.6+3411_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/837067/ft2_4FGL_J1613.6+3411_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/837067/ltcube_699667201_699926401_4FGL_J1613.6+3411_daily_bin1776.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/837067/ft2_4FGL_J1613.6+3411_daily_bin1776.fits
.....................!
real 12.07
user 11.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/837067/ft1_filtered_4FGL_J1613.6+3411_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/837067/ft2_4FGL_J1613.6+3411_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/837067/ltcube_699667201_699926401_4FGL_J1613.6+3411_daily_bin1776.fits outfile=/scratch/kocevski/837067/expmap_699667201_699926401_4FGL_J1613.6+3411_daily_bin1776.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/837067/ltcube_699667201_699926401_4FGL_J1613.6+3411_daily_bin1776.fits
.....................!
real 189.77
user 185.33
sys 4.07

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/837067/ft1_filtered_4FGL_J1613.6+3411_daily_bin1776.fits scfile=/scratch/kocevski/837067/ft2_4FGL_J1613.6+3411_daily_bin1776.fits outfile=/scratch/kocevski/837067/cmap_699667201_699926401_4FGL_J1613.6+3411_daily_bin1776.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/837067/ft1_filtered_4FGL_J1613.6+3411_daily_bin1776.fits scfile=/scratch/kocevski/837067/ft2_4FGL_J1613.6+3411_daily_bin1776.fits outfile=/scratch/kocevski/837067/cmap_HighResolution_699667201_699926401_4FGL_J1613.6+3411_daily_bin1776.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/837067/ft1_filtered_4FGL_J1613.6+3411_daily_bin1776.fits', '/scratch/kocevski/837067/ft2_4FGL_J1613.6+3411_daily_bin1776.fits', expMap='/scratch/kocevski/837067/expmap_699667201_699926401_4FGL_J1613.6+3411_daily_bin1776.fits', expCube='/scratch/kocevski/837067/ltcube_699667201_699926401_4FGL_J1613.6+3411_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/837067/Model_4FGL_J1613.6+3411_daily_bin1776.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  0.000e+00  1.000e+06 ( 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/837067/ft1_filtered_4FGL_J1613.6+3411_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/837067/ft2_4FGL_J1613.6+3411_daily_bin1776.fits
Exposure map: /scratch/kocevski/837067/expmap_699667201_699926401_4FGL_J1613.6+3411_daily_bin1776.fits
Exposure cube: /scratch/kocevski/837067/ltcube_699667201_699926401_4FGL_J1613.6+3411_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/837067/Model_4FGL_J1613.6+3411_daily_bin1776.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) = 7269.96855755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31890       1.0000          .0000       .10000E+07
     2 'norm      '    1.0887       1.0000          .0000       .10000E+07
     3 'Prefactor '    .22139E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    17.445       1.0000          .0000       .10000E+07
     5 'norm      '    13.583       1.0000          .0000       .10000E+07
     6 'Prefactor '    .30816       1.0000          .0000       .10000E+07
     7 'Prefactor '    .78290       1.0000          .0000       .10000E+07
     8 'Prefactor '    11.237       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.6937       1.0000          .0000       .10000E+07
    10 'Prefactor '    .23395E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .13194       1.0000          .0000       .10000E+07
    12 'norm      '    .28508E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    7.3232       1.0000          .0000       .10000E+07
    14 'norm      '    9.8177       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.1569       1.0000          .0000       .10000E+07
    16 'Prefactor '    .22055E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .39816       1.0000          .0000       .10000E+07
    18 'Prefactor '    .68994E-03   1.0000          .0000       .10000E+07
    19 'norm      '    3.9759       1.0000          .0000       .10000E+07
    20 'Normalizat'    .83631       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0333       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7269.820     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     1354 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        43.940        .58798E-06** at limit **
   2  norm          1.0873        1.0033       -.50006E-07   -.16282E-02
   3  Prefactor      .0000        1.9878        .11157E-06** at limit **
   4  Prefactor     16.877        17.069       -.29692E-06   -.87364E-02
   5  norm          13.349        15.236        .64388E-07    .11215E-01
   6  Prefactor     .34643        3.7990       -.12130E-06   -.47935E-03
   7  Prefactor     .32425        110.14        .32906E-05    .12121E-01
   8  Prefactor     11.240        9.9554       -.70664E-08   -.15316E-03
   9  Prefactor     3.6867        3.8206        .74864E-08    .87297E-03
  10  Prefactor      .0000        1.0210       -.10628E-06** at limit **
  11  norm          .13218        .13435       -.25458E-08** at limit **
  12  norm          .55511E-09    17.398        .32714E-06** at limit **
  13  Prefactor     7.2497        2.4796       -.40106E-07   -.58165E-02
  14  norm          10.694        33.419       -.17139E-05    .35390E-01
  15  Prefactor     1.1450        1.1995        .37467E-07   -.12090E-02
  16  Prefactor      .0000        1.2032       -.12591E-06** at limit **
  17  Prefactor     .12348E-03    227.14        .48688E-05** at limit **
  18  Prefactor      .0000        2.4152       -.39362E-07** at limit **
  19  norm          3.9728        1.6542       -.28444E-07   -.20614E-02
  20  Normalizat    .83718        .20635        .21262E-05    .33317E-05
  21  Prefactor     1.0335        .15419        .10588E-05   -.35682E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 1.08733
  Prefactor  = 0
  Prefactor  = 16.8766
  norm       = 13.3486
  Prefactor  = 0.34643
  Prefactor  = 0.324246
  Prefactor  = 11.2405
  Prefactor  = 3.68668
  Prefactor  = 0
  norm       = 0.132184
  norm       = 5.55112e-10
  Prefactor  = 7.2497
  norm       = 10.6939
  Prefactor  = 1.14498
  Prefactor  = 0
  Prefactor  = 0.000123482
  Prefactor  = 0
  norm       = 3.97276
  Normalizat = 0.83718
  Prefactor  = 1.03353
 **********
 **   18 **HESSE 
 **********

 FCN=   7269.820     FROM HESSE     STATUS=OK           375 CALLS     1729 TOTAL
                     EDM=   .48E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        44.020        .99558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0873        1.0799        .18414E-02   -1.5687    
   3  Prefactor      .0000        1.9986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.877        17.236        .23953E-03   -1.5626    
   5  norm          13.349        15.267        .27152E-03   -1.5635    
   6  Prefactor     .34643        1.8514        .34386E-02   -1.5696    
   7  Prefactor     .32425        275.74        .54218E-03   -1.5697    
   8  Prefactor     11.240        9.9500        .29861E-03   -1.5641    
   9  Prefactor     3.6867        3.8305        .52525E-03   -1.5670    
  10  Prefactor      .0000        1.0280        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .13218        .16086        .62109E-03   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-09    17.298        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.2497        15.670        .37040E-03   -1.5654    
  14  norm          10.694        58.633        .31957E-03   -1.5643    
  15  Prefactor     1.1450        1.4023        .10725E-02   -1.5687    
  16  Prefactor      .0000        1.2044        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .12348E-03    10.681        .89700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        2.3876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.9728        1.6637        .50559E-03   -1.5668    
  20  Normalizat    .83718        .17801        .63661E-01   -.98704    
  21  Prefactor     1.0335        .13032        .41009E-01   -.91620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78729e-07
Minuit parameter uncertainties:
  1  2.76027e-06
  2  1.07991
  3  5.49097e-06
  4  17.2362
  5  15.2668
  6  1.60172
  7  18.9119
  8  9.94997
  9  3.83053
  10  3.63387e-06
  11  0.160861
  12  0.000192485
  13  15.6701
  14  50.0814
  15  1.40232
  16  3.6935e-06
  17  0.0726328
  18  1.17595e-06
  19  1.66374
  20  0.178132
  21  0.130365
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  3.687e+00  3.831e+00  0.000e+00  1.000e+06 ( 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.034e+00  1.304e-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.372e-01  1.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 243.421 34.198
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 3.84e-08 +/- 3.98e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.25e-05

TS (Fixed Index): 1.26
Ra Dec: 243.421 34.198
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/837067/likelihoodResults_699667201_699926401_4FGL_J1613.6+3411_daily_bin1776.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) = 7269.22664376
delta logL = 0.593309786361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7269.21425326
delta logL = 0.605700279945

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53855       1.0000          .0000       .10000E+07
     2 'Index     '    4.1447       1.0000          .0000       10.000    
     3 'Normalizat'    .76559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0745       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=   7269.214     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      305 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53907        4.8732        .74923E-03    .14016E-01
   2  Index         4.1444        2.5381        .14738        .15082E-03
   3  Normalizat    .76565        .40739E-01    .66295E-01    .26755E-04
   4  Prefactor     1.0745        .31985E-01    .38648E-01   -.33659E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.539065
  Index      = 4.14437
  Normalizat = 0.765652
  Prefactor  = 1.07445
 **********
 **   18 **HESSE 
 **********

 FCN=   7269.214     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      338 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53907        12.182        .41764E-05   -1.5693    
   2  Index         4.1444        6.9714        .51191E-02   -.17197    
   3  Normalizat    .76565        .18075        .29331E-03   -1.0136    
   4  Prefactor     1.0745        .14017        .19711E-03   -.90287    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.41439e-10
Minuit parameter uncertainties:
  1  5.12514
  2  5.48769
  3  0.180893
  4  0.14022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/837067': 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) = 7269.214253
delta logL = 0.605700538742

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  5.391e-01  5.125e+00  0.000e+00  1.000e+06 ( 1.000e-12)
277        Index:  4.144e+00  5.488e+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.074e+00  1.402e-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.657e-01  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.69
Ra Dec: 243.421 34.198
Photon Index (Free Index): 4.14 +/- 5.49
Photon Flux (Free Index): 8.58e-08 +/- 6.03e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.30e-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/837067/cmap_HighResolution_699667201_699926401_4FGL_J1613.6+3411_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.39e-03', comment='SUCCESS', photon_flux='3.84e-08', energy_flux2='1.25e-05', photon_flux_error='3.98e-08', dlogl='6.06e-01', energy_flux='1.20e-05', photon_flux2='8.58e-08', job_status='DONE', time_completed='2023-03-08 01:04:07.990900', photon_index_error2='5.49', photon_index2='4.14', ts='1.26', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.30e-05', EG='0.84', time_epoch_completed='1678266247.99', return_code='0', job_id='837067', GAL2='1.07', EG2='0.77', return_code2='102', energy_flux_error='1.25e-05', photon_flux_error2='6.03e-08', ts2='2.69', photon_index='2.44' WHERE bin_id='1776' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 01:04:08 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 837067: <4FGL_J1613.6+3411_daily_bin1776> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1776> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Mar  8 00:50:20 2023
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:50:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:50:21 2023
Terminated at Wed Mar  8 01:04:08 2023
Results reported at Wed Mar  8 01:04:08 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1776 243.421 34.1982 699667201 699926401 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 :                                   593.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            828 sec.

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

