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


Performing analysis on: 4FGL_J0617.2+5701_weekly_bin532
RA = 94.3162, Dec = 57.0249
tmin = 560736001, tmax = 561340801
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='498368', job_status='RUN', time_executed='2021-07-09 15:26:56.068735', time_epoch_executed='1625869616.07' WHERE source_name='4FGL J0617.2+5701' and cadence='weekly' and bin_id='532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498368

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498368/ft1_4FGL_J0617.2+5701_weekly_bin532.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498368/ft2_4FGL_J0617.2+5701_weekly_bin532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498368/ft1_4FGL_J0617.2+5701_weekly_bin532.fits outfile=/scratch/kocevski/498368/ft1_filteredMKT_4FGL_J0617.2+5701_weekly_bin532.fits ra=94.3162 dec=57.0249 rad=12.0 tmin=560736001.0 tmax=561340801.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 8.36
user 7.85
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/498368/ft2_4FGL_J0617.2+5701_weekly_bin532.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/498368/ft2_4FGL_J0617.2+5701_weekly_bin532.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/498368/ft1_filteredMKT_4FGL_J0617.2+5701_weekly_bin532.fits evtable="EVENTS" outfile="/scratch/kocevski/498368/ft1_filtered_4FGL_J0617.2+5701_weekly_bin532.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 1.05
user 0.40
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498368/ft1_filtered_4FGL_J0617.2+5701_weekly_bin532.fits" evtable="EVENTS" scfile=/scratch/kocevski/498368/ft2_4FGL_J0617.2+5701_weekly_bin532.fits sctable="SC_DATA" outfile=/scratch/kocevski/498368/ltcube_560736001_561340801_4FGL_J0617.2+5701_weekly_bin532.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/498368/ft2_4FGL_J0617.2+5701_weekly_bin532.fits
.....................!
real 28.41
user 27.88
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498368/ft1_filtered_4FGL_J0617.2+5701_weekly_bin532.fits evtable="EVENTS" scfile=/scratch/kocevski/498368/ft2_4FGL_J0617.2+5701_weekly_bin532.fits sctable="SC_DATA" expcube=/scratch/kocevski/498368/ltcube_560736001_561340801_4FGL_J0617.2+5701_weekly_bin532.fits outfile=/scratch/kocevski/498368/expmap_560736001_561340801_4FGL_J0617.2+5701_weekly_bin532.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/498368/ltcube_560736001_561340801_4FGL_J0617.2+5701_weekly_bin532.fits
.....................!
real 192.09
user 185.54
sys 4.64

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
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 179 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0617.2+5701 @ 94.3162 57.0249

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/498368/ft1_filtered_4FGL_J0617.2+5701_weekly_bin532.fits scfile=/scratch/kocevski/498368/ft2_4FGL_J0617.2+5701_weekly_bin532.fits outfile=/scratch/kocevski/498368/cmap_560736001_561340801_4FGL_J0617.2+5701_weekly_bin532.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=94.3162 yref=57.0249 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.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498368/ft1_filtered_4FGL_J0617.2+5701_weekly_bin532.fits scfile=/scratch/kocevski/498368/ft2_4FGL_J0617.2+5701_weekly_bin532.fits outfile=/scratch/kocevski/498368/cmap_HighResolution_560736001_561340801_4FGL_J0617.2+5701_weekly_bin532.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=94.3162 yref=57.0249 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.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/498368/ft1_filtered_4FGL_J0617.2+5701_weekly_bin532.fits evtable="EVENTS" scfile=/scratch/kocevski/498368/ft2_4FGL_J0617.2+5701_weekly_bin532.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/498368/Model_4FGL_J0617.2+5701_weekly_bin532.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 G150.3+4.5
adding source GAL_V02
adding source HB 9
Working on...
/scratch/kocevski/498368/ft1_filtered_4FGL_J0617.2+5701_weekly_bin532.fits........!
real 15.49
user 14.05
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/498368/ft1_filtered_4FGL_J0617.2+5701_weekly_bin532.fits', '/scratch/kocevski/498368/ft2_4FGL_J0617.2+5701_weekly_bin532.fits', expMap='/scratch/kocevski/498368/expmap_560736001_561340801_4FGL_J0617.2+5701_weekly_bin532.fits', expCube='/scratch/kocevski/498368/ltcube_560736001_561340801_4FGL_J0617.2+5701_weekly_bin532.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/498368/Model_4FGL_J0617.2+5701_weekly_bin532.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0617.2+5701'

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  4.712e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
247        Scale:  1.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/498368/ft1_filtered_4FGL_J0617.2+5701_weekly_bin532.fits
Spacecraft file(s): /scratch/kocevski/498368/ft2_4FGL_J0617.2+5701_weekly_bin532.fits
Exposure map: /scratch/kocevski/498368/expmap_560736001_561340801_4FGL_J0617.2+5701_weekly_bin532.fits
Exposure cube: /scratch/kocevski/498368/ltcube_560736001_561340801_4FGL_J0617.2+5701_weekly_bin532.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/498368/Model_4FGL_J0617.2+5701_weekly_bin532.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 110.485860203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 110.367413497

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6238       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1320       1.0000         .10000E-03   10000.    
     3 'norm      '    5.6419       1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.2590       1.0000         .10000E-03   10000.    
     6 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4523       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6395       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7116       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3655       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5805       1.0000         .10000E-03   10000.    
    12 'norm      '    .66803       1.0000         .10000E-03   10000.    
    13 'norm      '    .88985E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3504       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.6300       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7677       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5212       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .45383       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .24462       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   110.3550     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      186 TOTAL
                     EDM=   .30E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6238        1.0040         .0000         .0000    
   2  Prefactor     3.1320        1.0133         .0000         .0000    
   3  norm          5.6419        1.0040         .0000         .0000    
   4  norm          .10000E-03    .20571        .34519E-05** at limit **
   5  Prefactor     .10000E-03    .27105E-01    .58983E-04** at limit **
   6  norm          .10000E-03    .20571       -.45713E-05** at limit **
   7  Prefactor     8.4523        1.0018         .0000         .0000    
   8  Prefactor     3.6395        1.0098         .0000         .0000    
   9  Prefactor     4.7116        1.0057         .0000         .0000    
  10  Prefactor     3.3655        1.0115         .0000         .0000    
  11  Prefactor     4.5805        1.0061         .0000         .0000    
  12  norm          .10000E-03    .35632       -.35607E-06** at limit **
  13  norm          .10000E-03    .22366        .19271E-05** at limit **
  14  Prefactor     2.3504        1.0246         .0000         .0000    
  15  Prefactor     .10000E-03    .29092E-01    .78867E-04** at limit **
  16  Prefactor     5.7677        1.0038         .0000         .0000    
  17  Prefactor     3.5212        1.0104         .0000         .0000    
  18  Normalizat    .45374        .78059        .72874E-04    .86951E-06
  19  Prefactor     .24464        .54360        .84062E-05   -.78467E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.62378
  Prefactor  = 3.132
  norm       = 5.64186
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.45226
  Prefactor  = 3.63954
  Prefactor  = 4.7116
  Prefactor  = 3.36551
  Prefactor  = 4.58054
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.35041
  Prefactor  = 0.0001
  Prefactor  = 5.76768
  Prefactor  = 3.52117
  Normalizat = 0.453738
  Prefactor  = 0.244644
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   110.3550     FROM HESSE     STATUS=FAILED        11 CALLS      197 TOTAL
                     EDM=   .30E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          525.45        519.78         .0000       -1.5234    
   2  Prefactor     3.1320        1.0133         .0000       -1.5354    
   3  norm          5.6419        1.0040         .0000       -1.5233    
   4  norm          .10000E-03    .20571        .34519E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .27105E-01    .58983E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .20571       -.45713E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.4523        1.0018         .0000       -1.5126    
   8  Prefactor     3.6395        1.0098         .0000       -1.5326    
   9  Prefactor     4.7116        1.0057         .0000       -1.5274    
  10  Prefactor     3.3655        1.0115         .0000       -1.5341    
  11  Prefactor     4.5805        1.0061         .0000       -1.5280    
  12  norm          .10000E-03    .35632       -.35607E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .22366        .19271E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.3504        1.0246         .0000       -1.5401    
  15  Prefactor     .10000E-03    .29092E-01    .78867E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.7677        1.0038         .0000       -1.5228    
  17  Prefactor     3.5212        1.0104         .0000       -1.5333    
  18  Normalizat    .45374        .78059        .72874E-04   -1.1461    
  19  Prefactor     .24464        .54360        .84062E-05   -1.2567    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.02662e-12
Minuit parameter uncertainties:
  1  1.00401
  2  1.01335
  3  1.00398
  4  1.16561e-06
  5  4.18032e-06
  6  1.60601e-06
  7  1.00176
  8  1.00976
  9  1.00574
  10  1.01148
  11  1.00608
  12  3.29507e-06
  13  1.2355e-06
  14  1.02464
  15  5.48923e-06
  16  1.00381
  17  1.01045
  18  0.800629
  19  0.555494
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 110.355004895

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  4.712e+00  1.006e+00  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
247        Scale:  1.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  2.446e-01  5.555e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  4.537e-01  8.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 0.00
Ra Dec: 94.316 57.025
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.55e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/498368/likelihoodResults_560736001_561340801_4FGL_J0617.2+5701_weekly_bin532.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): 101
logL (Free Index) = 110.35537347
delta logL = -0.000368574367442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 110.35537347
delta logL = -0.000368574367442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.0894       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   110.3554     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.0894        1.0176        .25299         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 2.08939
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   110.3554     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       .47509        1.7069        .25299       -.62134    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.02852
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498368': 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): 101
logL (Free Index) = 110.35537347
delta logL = -0.000368574367442

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  4.712e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
246        Index:  2.089e+00  1.029e+00  0.000e+00  1.000e+01 (-1.000e+00)
247        Scale:  1.613e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  2.446e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  4.542e-01  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.00
Ra Dec: 94.316 57.025

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/498368/cmap_HighResolution_560736001_561340801_4FGL_J0617.2+5701_weekly_bin532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.55e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-07-09 15:33:23.674601', job_id='498368', GAL2='0.24', fit_tolerance='1e-08', EG2='0.45', EG='0.45', time_epoch_completed='1625870003.67', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.24', dlogl='-3.69e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='532' AND source_name='4FGL J0617.2+5701' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul  9 15:33:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0012>
Subject: Job 498368: <4FGL_J0617.2+5701_weekly_bin532> in cluster <slac> Done

Job <4FGL_J0617.2+5701_weekly_bin532> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Jul  9 15:25:03 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  9 15:26:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul  9 15:26:39 2021
Terminated at Fri Jul  9 15:33:24 2021
Results reported at Fri Jul  9 15:33:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0617.2+5701_weekly_bin532 94.3162 57.0249 560736001 561340801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0617.2+5701 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   371.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             455.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   405 sec.
    Turnaround time :                            501 sec.

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

