aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 3 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 = 17268
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1615.6+2130_weekly_bin664
RA = 243.913, Dec = 21.5064
tmin = 640569601, tmax = 641174401
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='503433', job_status='RUN', time_executed='2021-07-24 13:35:38.373497', time_epoch_executed='1627158938.37' WHERE source_name='4FGL J1615.6+2130' and cadence='weekly' and bin_id='664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503433

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503433/ft1_4FGL_J1615.6+2130_weekly_bin664.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503433/ft2_4FGL_J1615.6+2130_weekly_bin664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/503433/ft1_4FGL_J1615.6+2130_weekly_bin664.fits outfile=/scratch/kocevski/503433/ft1_filteredMKT_4FGL_J1615.6+2130_weekly_bin664.fits ra=243.913 dec=21.5064 rad=12.0 tmin=640569601.0 tmax=641174401.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 6.40
user 6.08
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/503433/ft2_4FGL_J1615.6+2130_weekly_bin664.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/503433/ft2_4FGL_J1615.6+2130_weekly_bin664.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/503433/ft1_filteredMKT_4FGL_J1615.6+2130_weekly_bin664.fits evtable="EVENTS" outfile="/scratch/kocevski/503433/ft1_filtered_4FGL_J1615.6+2130_weekly_bin664.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.55
user 0.38
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/503433/ft1_filtered_4FGL_J1615.6+2130_weekly_bin664.fits" evtable="EVENTS" scfile=/scratch/kocevski/503433/ft2_4FGL_J1615.6+2130_weekly_bin664.fits sctable="SC_DATA" outfile=/scratch/kocevski/503433/ltcube_640569601_641174401_4FGL_J1615.6+2130_weekly_bin664.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/503433/ft2_4FGL_J1615.6+2130_weekly_bin664.fits
.....................!
real 35.22
user 34.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503433/ft1_filtered_4FGL_J1615.6+2130_weekly_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/503433/ft2_4FGL_J1615.6+2130_weekly_bin664.fits sctable="SC_DATA" expcube=/scratch/kocevski/503433/ltcube_640569601_641174401_4FGL_J1615.6+2130_weekly_bin664.fits outfile=/scratch/kocevski/503433/expmap_640569601_641174401_4FGL_J1615.6+2130_weekly_bin664.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/503433/ltcube_640569601_641174401_4FGL_J1615.6+2130_weekly_bin664.fits
.....................!
real 192.56
user 186.36
sys 5.43

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J1615.6+2130 @ 243.913 21.5064

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/503433/ft1_filtered_4FGL_J1615.6+2130_weekly_bin664.fits scfile=/scratch/kocevski/503433/ft2_4FGL_J1615.6+2130_weekly_bin664.fits outfile=/scratch/kocevski/503433/cmap_640569601_641174401_4FGL_J1615.6+2130_weekly_bin664.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.913 yref=21.5064 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.59
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503433/ft1_filtered_4FGL_J1615.6+2130_weekly_bin664.fits scfile=/scratch/kocevski/503433/ft2_4FGL_J1615.6+2130_weekly_bin664.fits outfile=/scratch/kocevski/503433/cmap_HighResolution_640569601_641174401_4FGL_J1615.6+2130_weekly_bin664.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.913 yref=21.5064 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.61
user 0.44
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/503433/ft1_filtered_4FGL_J1615.6+2130_weekly_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/503433/ft2_4FGL_J1615.6+2130_weekly_bin664.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/503433/Model_4FGL_J1615.6+2130_weekly_bin664.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/503433/ft1_filtered_4FGL_J1615.6+2130_weekly_bin664.fits.....................!
real 121.52
user 119.68
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/503433/ft1_filtered_4FGL_J1615.6+2130_weekly_bin664.fits', '/scratch/kocevski/503433/ft2_4FGL_J1615.6+2130_weekly_bin664.fits', expMap='/scratch/kocevski/503433/expmap_640569601_641174401_4FGL_J1615.6+2130_weekly_bin664.fits', expCube='/scratch/kocevski/503433/ltcube_640569601_641174401_4FGL_J1615.6+2130_weekly_bin664.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/503433/Model_4FGL_J1615.6+2130_weekly_bin664.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1615.6+2130'

4FGL J1615.6+2130
   Spectrum: PowerLaw
274    Prefactor:  3.532e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
275        Index:  2.755e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  4.684e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/503433/ft1_filtered_4FGL_J1615.6+2130_weekly_bin664.fits
Spacecraft file(s): /scratch/kocevski/503433/ft2_4FGL_J1615.6+2130_weekly_bin664.fits
Exposure map: /scratch/kocevski/503433/expmap_640569601_641174401_4FGL_J1615.6+2130_weekly_bin664.fits
Exposure cube: /scratch/kocevski/503433/ltcube_640569601_641174401_4FGL_J1615.6+2130_weekly_bin664.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/503433/Model_4FGL_J1615.6+2130_weekly_bin664.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) = 17820.9635716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2840       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.9522       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0989       1.0000         .10000E-03   10000.    
     5 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.7706       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .17876       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5041       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6346       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20940E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.633       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Normalizat'    1.2171       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .84282       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17820.94     FROM MIGRAD    STATUS=CONVERGED    338 CALLS     1337 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2839        1.3726        .17329E-06   -.83073E-04
   2  Prefactor     .10000E-03    18.271       -.21483E-06** at limit **
   3  norm          4.9517        2.2332       -.81074E-07    .71087E-04
   4  Prefactor     9.0917        25.967        .19292E-05    .66613E-04
   5  norm          .10000E-03    13.561       -.82955E-06** at limit **
   6  norm          4.7709        1.7811       -.43205E-07    .18217E-03
   7  Prefactor     .10000E-03    3.9986        .12638E-06** at limit **
   8  norm          .58772E-01    9.0889       -.77578E-06    .17149E-03
   9  Prefactor     6.5019        9.0433        .96663E-07    .57595E-04
  10  Prefactor     .10000E-03    14.906        .12342E-05** at limit **
  11  Prefactor     9.6334        9.8236        .30156E-05    .13529E-03
  12  Prefactor     .10003E-03    2.2338       -.12701E-05** at limit **
  13  Prefactor     31.634        20.076       -.12485E-05   -.69432E-04
  14  Prefactor     .10000E-03    8.3491       -.65053E-07** at limit **
  15  Normalizat    1.2171        .13568        .52798E-06    .53652E-03
  16  Prefactor     .84284        .68012E-01    .31040E-07    .86128E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.28389
  Prefactor  = 0.0001
  norm       = 4.95171
  Prefactor  = 9.09167
  norm       = 0.0001
  norm       = 4.77093
  Prefactor  = 0.0001
  norm       = 0.0587717
  Prefactor  = 6.50185
  Prefactor  = 0.0001
  Prefactor  = 9.63337
  Prefactor  = 0.000100029
  Prefactor  = 31.6343
  Prefactor  = 0.0001
  Normalizat = 1.21711
  Prefactor  = 0.842845
 **********
 **   18 **HESSE 
 **********

 FCN=   17820.94     FROM HESSE     STATUS=OK           213 CALLS     1550 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2839        1.3559        .15428E-03   -1.5481    
   2  Prefactor     .10000E-03    18.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.9517        2.2306        .12823E-03   -1.5263    
   4  Prefactor     9.0917        25.987        .13287E-03   -1.5105    
   5  norm          .10000E-03    14.115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.7709        1.7797        .10570E-03   -1.5271    
   7  Prefactor     .10000E-03    4.0337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .58772E-01    10.252        .11845       -1.5660    
   9  Prefactor     6.5019        9.0565        .15736E-03   -1.5198    
  10  Prefactor     .10000E-03    14.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.6334        9.9948        .64552E-03   -1.5087    
  12  Prefactor     .10003E-03    8.4877        .35059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.634        20.505        .71241E-04   -1.4582    
  14  Prefactor     .10000E-03    8.3583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.2171        .16123        .30488E-03   -.86076    
  16  Prefactor     .84284        .81410E-01    .18587E-03   -.98168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95515e-09
Minuit parameter uncertainties:
  1  1.35595
  2  8.12024e-05
  3  2.23064
  4  26.0195
  5  5.44132e-05
  6  1.77973
  7  5.72272e-06
  8  1.55141
  9  9.05844
  10  7.82845e-05
  11  9.9965
  12  0.000992172
  13  20.5099
  14  8.17783e-06
  15  0.161293
  16  0.0814221
Done.

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

Extracting fit parameters...

4FGL J1615.6+2130
   Spectrum: PowerLaw
274    Prefactor:  6.502e+00  9.058e+00  1.000e-04  1.000e+04 ( 1.000e-12)
275        Index:  2.755e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  4.684e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  8.428e-01  8.142e-02  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.217e+00  1.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.59
Ra Dec: 243.913 21.506
Photon Flux Upper Limit: 9.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/503433/likelihoodResults_640569601_641174401_4FGL_J1615.6+2130_weekly_bin664.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) = 17820.197663
delta logL = 0.741249522656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 17820.1704635
delta logL = 0.768449047704

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18316       1.0000         .10000E-03   10000.    
     2 'Index     '    6.3829       1.0000          .0000       10.000    
     3 'Normalizat'    1.1648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86429       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17820.17     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      337 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17848        1.2705        .91949E-02    .83647E-02
   2  Index         6.4018        2.6901        .21005        .30675E-03
   3  Normalizat    1.1650        .24963E-01    .70216E-01    .75479E-04
   4  Prefactor     .86428        .12979E-01    .44548E-01    .15243E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.178483
  Index      = 6.40181
  Normalizat = 1.16498
  Prefactor  = 0.864284
 **********
 **   18 **HESSE 
 **********

 FCN=   17820.17     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      372 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17848        4.8629        .42453E-03   -1.5623    
   2  Index         6.4018        8.0705        .11206E-01    .28417    
   3  Normalizat    1.1650        .10529        .31069E-03   -.87692    
   4  Prefactor     .86428        .53432E-01    .18377E-03   -.97401    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.49768e-11
Minuit parameter uncertainties:
  1  1.86292
  2  7.34579
  3  0.105313
  4  0.0534354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503433': 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) = 17820.1704552
delta logL = 0.768457289887

Extracting fit parameters...

4FGL J1615.6+2130
   Spectrum: PowerLaw
274    Prefactor:  1.785e-01  1.863e+00  1.000e-04  1.000e+04 ( 1.000e-12)
275        Index:  6.402e+00  7.346e+00  0.000e+00  1.000e+01 (-1.000e+00)
276        Scale:  4.684e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  8.643e-01  5.344e-02  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.165e+00  1.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.26
Ra Dec: 243.913 21.506
Photon Index (Free Index): 6.40 +/- 7.35
Photon Flux (Free Index): 6.57e-08 +/- 5.32e-08
Energy Flux (Free Index): 8.03e-06 +/- 8.10e-06

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/503433/cmap_HighResolution_640569601_641174401_4FGL_J1615.6+2130_weekly_bin664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.72e-03', comment='SUCCESS', energy_flux2='8.03e-06', dlogl='7.68e-01', photon_flux2='6.57e-08', job_status='DONE', time_completed='2021-07-24 13:51:51.183334', photon_index_error2='7.35', photon_index2='6.40', ts='0.59', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='9.77e-08', energy_flux_error2='8.10e-06', EG='1.22', time_epoch_completed='1627159911.18', return_code='0', job_id='503433', GAL2='0.86', EG2='1.16', return_code2='102', photon_flux_error2='5.32e-08', ts2='2.26', photon_index='2.76' WHERE bin_id='664' AND source_name='4FGL J1615.6+2130' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 24 13:51:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 503433: <4FGL_J1615.6+2130_weekly_bin664> in cluster <slac> Done

Job <4FGL_J1615.6+2130_weekly_bin664> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Jul 24 13:35:18 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 24 13:35:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 24 13:35:26 2021
Terminated at Sat Jul 24 13:51:51 2021
Results reported at Sat Jul 24 13:51:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1615.6+2130_weekly_bin664 243.913 21.5064 640569601 641174401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1615.6+2130 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   959.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             340.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            993 sec.

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

