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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1764
RA = 243.421, Dec = 34.1982
tmin = 696556801, tmax = 696816001
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='455496', job_status='RUN', time_executed='2023-01-31 01:22:46.665327', time_epoch_executed='1675156966.67' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455496

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455496/ft1_4FGL_J1613.6+3411_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455496/ft2_4FGL_J1613.6+3411_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455496/ft1_4FGL_J1613.6+3411_daily_bin1764.fits outfile=/scratch/kocevski/455496/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1764.fits ra=243.421 dec=34.1982 rad=12.0 tmin=696556801.0 tmax=696816001.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.70
user 3.49
sys 0.19

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

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

Number of photons that the gtmktime cut: 580

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455496/ft1_filtered_4FGL_J1613.6+3411_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/455496/ft2_4FGL_J1613.6+3411_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/455496/ltcube_696556801_696816001_4FGL_J1613.6+3411_daily_bin1764.fits outfile=/scratch/kocevski/455496/expmap_696556801_696816001_4FGL_J1613.6+3411_daily_bin1764.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/455496/ltcube_696556801_696816001_4FGL_J1613.6+3411_daily_bin1764.fits
.....................!
real 191.01
user 185.87
sys 4.70

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/455496/ft1_filtered_4FGL_J1613.6+3411_daily_bin1764.fits scfile=/scratch/kocevski/455496/ft2_4FGL_J1613.6+3411_daily_bin1764.fits outfile=/scratch/kocevski/455496/cmap_696556801_696816001_4FGL_J1613.6+3411_daily_bin1764.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455496/ft1_filtered_4FGL_J1613.6+3411_daily_bin1764.fits scfile=/scratch/kocevski/455496/ft2_4FGL_J1613.6+3411_daily_bin1764.fits outfile=/scratch/kocevski/455496/cmap_HighResolution_696556801_696816001_4FGL_J1613.6+3411_daily_bin1764.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.58
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.460       1.0000          .0000       .10000E+07
     2 'norm      '    .90761E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .56127E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    9.0471       1.0000          .0000       .10000E+07
     5 'norm      '    .44782E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .28977E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .17633E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    33.155       1.0000          .0000       .10000E+07
     9 'Prefactor '    .31321E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .17108E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .19676       1.0000          .0000       .10000E+07
    12 'norm      '    6.7464       1.0000          .0000       .10000E+07
    13 'Prefactor '    .13168E-05   1.0000          .0000       .10000E+07
    14 'norm      '    .44102       1.0000          .0000       .10000E+07
    15 'Prefactor '    .49826       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.9474       1.0000          .0000       .10000E+07
    17 'Prefactor '    .57067E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .20373E-07   1.0000          .0000       .10000E+07
    19 'norm      '    4.7545       1.0000          .0000       .10000E+07
    20 'Normalizat'    .95000       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88430       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=   6294.337     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     1696 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.353        51.050        .49150E-06   -.96541E-02
   2  norm           .0000        .75753       -.56249E-06** at limit **
   3  Prefactor      .0000        2.0866        .24735E-06** at limit **
   4  Prefactor     8.9722        9.1850        .29261E-07   -.74525E-01
   5  norm          .17969E-06    35.013       -.82357E-06** at limit **
   6  Prefactor      .0000        .75778        .50817E-08** at limit **
   7  Prefactor      .0000        5.8465       -.40266E-07** at limit **
   8  Prefactor     33.253        15.536        .19734E-06    .76261E-01
   9  Prefactor      .0000        1.5845        .48493E-06** at limit **
  10  Prefactor      .0000        1.1530        .15682E-07** at limit **
  11  norm          .19679        .11594        .61430E-07** at limit **
  12  norm          6.7611        8.9656       -.27652E-06   -.41749E-03
  13  Prefactor     .37692E-07    27.667        .54496E-07** at limit **
  14  norm          .47740E-08    44.795       -.10665E-05** at limit **
  15  Prefactor     .50044        1.4088        .12633E-06    .37221E-03
  16  Prefactor     1.9486        1.4056       -.50617E-07    .87674E-03
  17  Prefactor     .12340E-06    51.706        .97958E-06** at limit **
  18  Prefactor      .0000        2.2581       -.23407E-07** at limit **
  19  norm          4.7554        1.8050        .76879E-07    .13023E-02
  20  Normalizat    .94991        .20379        .68049E-06    .82922E-04
  21  Prefactor     .88428        .16293        .25765E-05    .92556E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.3532
  norm       = 0
  Prefactor  = 0
  Prefactor  = 8.97218
  norm       = 1.7969e-07
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 33.2527
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.19679
  norm       = 6.76112
  Prefactor  = 3.76921e-08
  norm       = 4.77396e-09
  Prefactor  = 0.500445
  Prefactor  = 1.94865
  Prefactor  = 1.23401e-07
  Prefactor  = 0
  norm       = 4.75544
  Normalizat = 0.94991
  Prefactor  = 0.884281
 **********
 **   18 **HESSE 
 **********

 FCN=   6294.337     FROM HESSE     STATUS=OK           353 CALLS     2049 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.353        51.729        .17831E-03   -1.5594    
   2  norm           .0000        .73777        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        2.0891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9722        18.497        .33298E-03   -1.5648    
   5  norm          .17969E-06    35.350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        .75643        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        5.8679        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.253        17.031        .17369E-03   -1.5593    
   9  Prefactor      .0000        1.5837        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.1513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .19679        .12028        .42551E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.7611        8.9739        .38607E-03   -1.5656    
  13  Prefactor     .37692E-07    27.766        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .47740E-08    44.553        .84880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .50044        1.5857        .78884E-03   -1.5694    
  16  Prefactor     1.9486        1.5380        .74345E-03   -1.5680    
  17  Prefactor     .12340E-06    51.612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        2.2170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.7554        1.8081        .46120E-03   -1.5664    
  20  Normalizat    .94991        .17158        .45537E-01   -.94728    
  21  Prefactor     .88428        .13654        .44805E-01   -.96693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7629e-07
Minuit parameter uncertainties:
  1  51.7299
  2  1.25739e-07
  3  2.91192e-06
  4  18.4974
  5  0.00504046
  6  1.26378e-06
  7  9.20466e-07
  8  17.0315
  9  6.15085e-07
  10  4.99733e-07
  11  0.120283
  12  8.97395
  13  0.00204592
  14  0.000921027
  15  1.58571
  16  1.53795
  17  0.00504696
  18  2.51702e-06
  19  1.80811
  20  0.171675
  21  0.136597
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  0.000e+00  6.151e-07  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:  8.843e-01  1.366e-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.499e-01  1.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/455496/likelihoodResults_696556801_696816001_4FGL_J1613.6+3411_daily_bin1764.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): 102
logL (Free Index) = 6294.34487714
delta logL = -0.00791962660242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6294.33695804
delta logL = -5.24962160853e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44396E-05   1.0000          .0000       .10000E+07
     2 'Index     '    3.1029       1.0000          .0000       10.000    
     3 'Normalizat'    .95001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88417       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=   6293.680     FROM MIGRAD    STATUS=CONVERGED    121 CALLS      325 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35326E-02    .47695E-01    .92106E-04** at limit **
   2  Index         6.7225        2.8937        .12927       -.34583E-04
   3  Normalizat    .85760        .37303E-01    .45538E-01   -.37716E-03
   4  Prefactor     .93305        .29984E-01    .44803E-01   -.63814E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00353258
  Index      = 6.72252
  Normalizat = 0.857604
  Prefactor  = 0.933053
 **********
 **   18 **HESSE 
 **********

 FCN=   6293.680     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      356 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35326E-02    .13648        .41578E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.7225        7.9984        .63233E-02    .35171    
   3  Normalizat    .85760        .14404        .26249E-03   -.97966    
   4  Prefactor     .93305        .11270        .20209E-03   -.94996    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.30038e-10
Minuit parameter uncertainties:
  1  0.0439154
  2  6.46355
  3  0.144103
  4  0.112726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455496': 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) = 6293.6800175
delta logL = 0.656940022383

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  3.533e-03  4.392e-02  0.000e+00  1.000e+06 ( 1.000e-12)
277        Index:  6.723e+00  6.464e+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:  9.331e-01  1.127e-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.576e-01  1.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 243.421 34.198
Photon Index (Free Index): 6.72 +/- 6.46
Photon Flux (Free Index): 6.22e-08 +/- 5.49e-08
Energy Flux (Free Index): 7.51e-06 +/- 7.36e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/455496/cmap_HighResolution_696556801_696816001_4FGL_J1613.6+3411_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', comment='SUCCESS', energy_flux2='7.51e-06', dlogl='6.57e-01', photon_flux2='6.22e-08', job_status='DONE', time_completed='2023-01-31 01:32:54.920962', photon_index_error2='6.46', photon_index2='6.72', ts='0.00', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='6.46e-08', energy_flux_error2='7.36e-06', EG='0.95', time_epoch_completed='1675157574.92', return_code='0', job_id='455496', GAL2='0.93', EG2='0.86', return_code2='102', photon_flux_error2='5.49e-08', ts2='1.48', photon_index='2.44' WHERE bin_id='1764' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 01:32:54 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 455496: <4FGL_J1613.6+3411_daily_bin1764> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1764> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Jan 31 01:20:21 2023
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 01:20:48 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 01:20:48 2023
Terminated at Tue Jan 31 01:32:55 2023
Results reported at Tue Jan 31 01:32:55 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1764 243.421 34.1982 696556801 696816001 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 :                                   610.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            754 sec.

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

