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


Performing analysis on: 4FGL_J1613.6+3411_daily_bin1753
RA = 243.421, Dec = 34.1982
tmin = 693705601, tmax = 693964801
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='458894', job_status='RUN', time_executed='2022-12-29 01:14:57.360690', time_epoch_executed='1672305297.36' WHERE source_name='4FGL J1613.6+3411' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458894

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458894/ft1_4FGL_J1613.6+3411_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458894/ft2_4FGL_J1613.6+3411_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458894/ft1_4FGL_J1613.6+3411_daily_bin1753.fits outfile=/scratch/kocevski/458894/ft1_filteredMKT_4FGL_J1613.6+3411_daily_bin1753.fits ra=243.421 dec=34.1982 rad=12.0 tmin=693705601.0 tmax=693964801.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 4.67
user 4.37
sys 0.22

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

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

Number of photons that the gtmktime cut: 573

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/458894/ft1_filtered_4FGL_J1613.6+3411_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/458894/ft2_4FGL_J1613.6+3411_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/458894/ltcube_693705601_693964801_4FGL_J1613.6+3411_daily_bin1753.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/458894/ft2_4FGL_J1613.6+3411_daily_bin1753.fits
.....................!
real 15.12
user 14.56
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458894/ft1_filtered_4FGL_J1613.6+3411_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/458894/ft2_4FGL_J1613.6+3411_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/458894/ltcube_693705601_693964801_4FGL_J1613.6+3411_daily_bin1753.fits outfile=/scratch/kocevski/458894/expmap_693705601_693964801_4FGL_J1613.6+3411_daily_bin1753.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/458894/ltcube_693705601_693964801_4FGL_J1613.6+3411_daily_bin1753.fits
.....................!
real 194.74
user 186.76
sys 5.67

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/458894/ft1_filtered_4FGL_J1613.6+3411_daily_bin1753.fits scfile=/scratch/kocevski/458894/ft2_4FGL_J1613.6+3411_daily_bin1753.fits outfile=/scratch/kocevski/458894/cmap_693705601_693964801_4FGL_J1613.6+3411_daily_bin1753.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458894/ft1_filtered_4FGL_J1613.6+3411_daily_bin1753.fits scfile=/scratch/kocevski/458894/ft2_4FGL_J1613.6+3411_daily_bin1753.fits outfile=/scratch/kocevski/458894/cmap_HighResolution_693705601_693964801_4FGL_J1613.6+3411_daily_bin1753.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.63
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57193E-04   1.0000          .0000       .10000E+07
     2 'norm      '    1.1149       1.0000          .0000       .10000E+07
     3 'Prefactor '    .26389E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .33655       1.0000          .0000       .10000E+07
     5 'norm      '    .28328E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .34946       1.0000          .0000       .10000E+07
     7 'Prefactor '    8.4259       1.0000          .0000       .10000E+07
     8 'Prefactor '    9.0878       1.0000          .0000       .10000E+07
     9 'Prefactor '    .10492E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .26127E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .62909       1.0000          .0000       .10000E+07
    12 'norm      '    .10091E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .74609E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .70163E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26690E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.5863       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.2825       1.0000          .0000       .10000E+07
    18 'Prefactor '    .44056       1.0000          .0000       .10000E+07
    19 'norm      '    3.1324       1.0000          .0000       .10000E+07
    20 'Normalizat'    .98390       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .71261       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=   6101.716     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1616 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20539E-07    118.91       -.37717E-05** at limit **
   2  norm          1.1170        .94298        .28421E-06    .21311E-03
   3  Prefactor     .38858E-09    6.0041        .38368E-05** at limit **
   4  Prefactor     .39466E-05    3.4478       -.17689E-05** at limit **
   5  norm          .64115E-07    6.9184        .10940E-05** at limit **
   6  Prefactor     .33695        3.7563       -.22762E-05   -.62705E-02
   7  Prefactor     8.4179        1.0414        .22464E-07   -.72703E-02
   8  Prefactor     9.0889        7.8799        .62147E-05    .86325E-02
   9  Prefactor      .0000        .94564       -.43831E-07** at limit **
  10  Prefactor     .16653E-09    2.6247        .14797E-05** at limit **
  11  norm          .62914        .15505        .54679E-07   -.20143E-01
  12  norm          .11102E-09    4.0574        .22617E-06** at limit **
  13  Prefactor     .44409E-09    4.3932       -.11672E-05** at limit **
  14  norm          .55511E-10    10.436        .34782E-06** at limit **
  15  Prefactor     .16653E-09    .54040        .10504E-06** at limit **
  16  Prefactor     2.5864        1.1253       -.74650E-07   -.12569E-01
  17  Prefactor     6.2926        1.4119       -.62791E-06    .20221E-01
  18  Prefactor     .43430        2.2415        .82245E-06   -.46443E-02
  19  norm          3.1325        1.7036        .40135E-08    .14931E-03
  20  Normalizat    .98436        .19189        .92754E-06   -.57056E-05
  21  Prefactor     .71246        .14662       -.10196E-04    .71314E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.05391e-08
  norm       = 1.11695
  Prefactor  = 3.88578e-10
  Prefactor  = 3.94657e-06
  norm       = 6.41154e-08
  Prefactor  = 0.33695
  Prefactor  = 8.41792
  Prefactor  = 9.08885
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  norm       = 0.62914
  norm       = 1.11022e-10
  Prefactor  = 4.44089e-10
  norm       = 5.55112e-11
  Prefactor  = 1.66533e-10
  Prefactor  = 2.58636
  Prefactor  = 6.29261
  Prefactor  = 0.434296
  norm       = 3.13251
  Normalizat = 0.984362
  Prefactor  = 0.712457
 **********
 **   18 **HESSE 
 **********

 FCN=   6101.716     FROM HESSE     STATUS=OK           359 CALLS     1975 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20539E-07    119.96        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1170        .94443        .11153E-02   -1.5687    
   3  Prefactor     .38858E-09    6.0158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .39466E-05    41.950        .97240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .64115E-07    7.4235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33695        2.0040        .34176E-02   -1.5696    
   7  Prefactor     8.4179        15.236        .34511E-03   -1.5650    
   8  Prefactor     9.0889        7.9176        .33223E-03   -1.5648    
   9  Prefactor      .0000        .94539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .16653E-09    2.5661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .62914        .15460        .32101E-03   -1.5692    
  12  norm          .11102E-09    4.0798        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .44409E-09    4.4126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    10.497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .16653E-09    .53620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5864        1.1320        .63427E-03   -1.5676    
  17  Prefactor     6.2926        10.115        .40024E-03   -1.5658    
  18  Prefactor     .43430        2.2595        .84930E-03   -1.5695    
  19  norm          3.1325        1.7078        .57256E-03   -1.5673    
  20  Normalizat    .98436        .16390        .45965E-01   -.93556    
  21  Prefactor     .71246        .12493        .42569E-01   -1.0304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13357e-07
Minuit parameter uncertainties:
  1  0.00314046
  2  0.944435
  3  9.79724e-05
  4  0.0257341
  5  0.00137963
  6  1.64345
  7  15.2359
  8  7.91765
  9  5.48622e-06
  10  3.82781e-05
  11  0.154602
  12  3.83229e-05
  13  9.05888e-05
  14  3.66703e-05
  15  1.74213e-05
  16  1.13202
  17  10.1154
  18  1.98122
  19  1.70783
  20  0.163984
  21  0.124983
Done.

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

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  0.000e+00  5.486e-06  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:  7.125e-01  1.250e-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.844e-01  1.640e-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: 4.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/458894/likelihoodResults_693705601_693964801_4FGL_J1613.6+3411_daily_bin1753.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) = 6101.71665824
delta logL = -0.000700864790815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6101.71595906
delta logL = -1.67760572367e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16098E-08   1.0000          .0000       .10000E+07
     2 'Index     '    1.4970       1.0000          .0000       10.000    
     3 'Normalizat'    .98403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71271       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=   6101.716     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      257 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-09    .69890E-01    .42118E-03** at limit **
   2  Index         1.7834        5.5056        .50000       -.29559E-09
   3  Normalizat    .98436        .10570E-02    .45966E-01    .11823E-02
   4  Prefactor     .71246        .83004E-03    .42570E-01    .16419E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-10
  Index      = 1.78339
  Normalizat = 0.984362
  Prefactor  = 0.71246
 **********
 **   18 **HESSE 
 **********

 FCN=   6101.716     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-09    .42181        .76725E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7834        7.2459        .50000       -.69883    
   3  Normalizat    .98436        .25949E-02    .23160E-03   -.93556    
   4  Prefactor     .71246        .20376E-02    .20955E-03   -1.0304    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.92241e-10
Minuit parameter uncertainties:
  1  2.49515e-05
  2  18684.7
  3  0.0025949
  4  0.00203759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458894': 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) = 6101.71595738
delta logL = -1.20871845866e-09

Extracting fit parameters...

4FGL J1613.6+3411
   Spectrum: PowerLaw
276    Prefactor:  3.886e-10  2.495e-05  0.000e+00  1.000e+06 ( 1.000e-12)
277        Index:  1.783e+00  1.868e+04  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:  7.125e-01  2.038e-03  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.844e-01  2.595e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 243.421 34.198

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/458894/cmap_HighResolution_693705601_693964801_4FGL_J1613.6+3411_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-03', job_status='DONE', photon_flux_upper_limit='4.53e-08', time_completed='2022-12-29 01:24:58.818610', job_id='458894', GAL2='0.71', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1672305898.82', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-1.21e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1753' AND source_name='4FGL J1613.6+3411' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 01:24:58 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 458894: <4FGL_J1613.6+3411_daily_bin1753> in cluster <slac> Done

Job <4FGL_J1613.6+3411_daily_bin1753> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Dec 29 01:10:23 2022
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 01:11:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 01:11:26 2022
Terminated at Thu Dec 29 01:24:59 2022
Results reported at Thu Dec 29 01:24:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1613.6+3411_daily_bin1753 243.421 34.1982 693705601 693964801 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 :                                   598.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             257.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            876 sec.

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

