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/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 83 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 = 17017
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0617.2+5701_weekly_bin596
RA = 94.3162, Dec = 57.0249
tmin = 599443201, tmax = 600048001
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='498684', job_status='RUN', time_executed='2021-07-09 15:31:30.832486', time_epoch_executed='1625869890.83' WHERE source_name='4FGL J0617.2+5701' and cadence='weekly' and bin_id='596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498684

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498684/ft1_4FGL_J0617.2+5701_weekly_bin596.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498684/ft2_4FGL_J0617.2+5701_weekly_bin596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498684/ft1_4FGL_J0617.2+5701_weekly_bin596.fits outfile=/scratch/kocevski/498684/ft1_filteredMKT_4FGL_J0617.2+5701_weekly_bin596.fits ra=94.3162 dec=57.0249 rad=12.0 tmin=599443201.0 tmax=600048001.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 5.91
user 4.99
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/498684/ft2_4FGL_J0617.2+5701_weekly_bin596.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/498684/ft1_filteredMKT_4FGL_J0617.2+5701_weekly_bin596.fits evtable="EVENTS" outfile="/scratch/kocevski/498684/ft1_filtered_4FGL_J0617.2+5701_weekly_bin596.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.18
user 0.38
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498684/ft1_filtered_4FGL_J0617.2+5701_weekly_bin596.fits" evtable="EVENTS" scfile=/scratch/kocevski/498684/ft2_4FGL_J0617.2+5701_weekly_bin596.fits sctable="SC_DATA" outfile=/scratch/kocevski/498684/ltcube_599443201_600048001_4FGL_J0617.2+5701_weekly_bin596.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/498684/ft2_4FGL_J0617.2+5701_weekly_bin596.fits
.....................!
real 32.37
user 29.32
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498684/ft1_filtered_4FGL_J0617.2+5701_weekly_bin596.fits evtable="EVENTS" scfile=/scratch/kocevski/498684/ft2_4FGL_J0617.2+5701_weekly_bin596.fits sctable="SC_DATA" expcube=/scratch/kocevski/498684/ltcube_599443201_600048001_4FGL_J0617.2+5701_weekly_bin596.fits outfile=/scratch/kocevski/498684/expmap_599443201_600048001_4FGL_J0617.2+5701_weekly_bin596.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/498684/ltcube_599443201_600048001_4FGL_J0617.2+5701_weekly_bin596.fits
.....................!
real 199.57
user 185.55
sys 6.13

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/498684/ft1_filtered_4FGL_J0617.2+5701_weekly_bin596.fits scfile=/scratch/kocevski/498684/ft2_4FGL_J0617.2+5701_weekly_bin596.fits outfile=/scratch/kocevski/498684/cmap_599443201_600048001_4FGL_J0617.2+5701_weekly_bin596.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.76
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498684/ft1_filtered_4FGL_J0617.2+5701_weekly_bin596.fits scfile=/scratch/kocevski/498684/ft2_4FGL_J0617.2+5701_weekly_bin596.fits outfile=/scratch/kocevski/498684/cmap_HighResolution_599443201_600048001_4FGL_J0617.2+5701_weekly_bin596.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.59
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/498684/ft1_filtered_4FGL_J0617.2+5701_weekly_bin596.fits evtable="EVENTS" scfile=/scratch/kocevski/498684/ft2_4FGL_J0617.2+5701_weekly_bin596.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/498684/Model_4FGL_J0617.2+5701_weekly_bin596.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/498684/ft1_filtered_4FGL_J0617.2+5701_weekly_bin596.fits....................!
real 60.06
user 55.90
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/498684/ft1_filtered_4FGL_J0617.2+5701_weekly_bin596.fits', '/scratch/kocevski/498684/ft2_4FGL_J0617.2+5701_weekly_bin596.fits', expMap='/scratch/kocevski/498684/expmap_599443201_600048001_4FGL_J0617.2+5701_weekly_bin596.fits', expCube='/scratch/kocevski/498684/ltcube_599443201_600048001_4FGL_J0617.2+5701_weekly_bin596.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/498684/Model_4FGL_J0617.2+5701_weekly_bin596.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/498684/ft1_filtered_4FGL_J0617.2+5701_weekly_bin596.fits
Spacecraft file(s): /scratch/kocevski/498684/ft2_4FGL_J0617.2+5701_weekly_bin596.fits
Exposure map: /scratch/kocevski/498684/expmap_599443201_600048001_4FGL_J0617.2+5701_weekly_bin596.fits
Exposure cube: /scratch/kocevski/498684/ltcube_599443201_600048001_4FGL_J0617.2+5701_weekly_bin596.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/498684/Model_4FGL_J0617.2+5701_weekly_bin596.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) = 2980.01135862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    290.24       1.0000         .10000E-03   10000.    
     3 'norm      '    .58718E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.527       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.409       1.0000         .10000E-03   10000.    
     9 'Prefactor '    175.96       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10521E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    140.17       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18508E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3694       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .62560       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2965.829     FROM MIGRAD    STATUS=CONVERGED    369 CALLS     2146 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.380       -.10137E-05** at limit **
   2  Prefactor     290.41        261.77        .95447E-04   -.63005E-04
   3  norm          .10000E-03    269.07        .82482E-04** at limit **
   4  norm          .10000E-03    80.846        .16354E-04** at limit **
   5  Prefactor    10000.0        959.54        .31995E-03** at limit **
   6  norm         10000.0        600.48        .91044E-04** at limit **
   7  Prefactor     18.517        24.507        .71636E-05   -.16073E-03
   8  Prefactor     11.591        126.20        .30476E-03    .10373E-04
   9  Prefactor     176.00        132.47        .18902E-04   -.10297E-03
  10  Prefactor     .10000E-03    72.484       -.30294E-04** at limit **
  11  Prefactor     .10000E-03    41.006       -.22524E-04** at limit **
  12  norm          .10000E-03    42.866        .26404E-04** at limit **
  13  norm          .10000E-03    15.772        .17246E-06** at limit **
  14  Prefactor     .10000E-03    10.829        .18967E-06** at limit **
  15  Prefactor     140.20        95.681        .20388E-04   -.11269E-03
  16  Prefactor     .10007E-03    303.25        .80440E-04** at limit **
  17  Prefactor     .10001E-03    78.068        .25960E-05** at limit **
  18  Normalizat    1.3701        .32704       -.27398E-04   -.30926E-03
  19  Prefactor     .62532        .13671       -.13325E-04   -.60693E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 290.406
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 18.517
  Prefactor  = 11.5907
  Prefactor  = 175.998
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 140.197
  Prefactor  = 0.000100073
  Prefactor  = 0.000100012
  Normalizat = 1.37013
  Prefactor  = 0.625316
 **********
 **   18 **HESSE 
 **********

 FCN=   2965.829     FROM HESSE     STATUS=OK           252 CALLS     2398 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     290.41        262.52        .11914E-03   -1.2283    
   3  norm          .10000E-03    269.08        .21075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    80.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        959.41        .20463E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm         10000.0        600.54        .20866E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.517        24.528        .93051E-04   -1.4847    
   8  Prefactor     11.591        125.33        .11860E-03   -1.5027    
   9  Prefactor     176.00        132.25        .15212E-03   -1.3047    
  10  Prefactor     .10000E-03    72.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    41.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    43.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    15.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.837        .17505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     140.20        95.602        .17013E-03   -1.3334    
  16  Prefactor     .10007E-03    316.67        .36461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    78.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3701        .36440        .32136E-03   -.81496    
  19  Prefactor     .62532        .15269        .18984E-03   -1.0653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24036e-09
Minuit parameter uncertainties:
  1  0.000283665
  2  263.603
  3  0.000684536
  4  5.90482e-06
  5  0.00121111
  6  0.000497611
  7  24.5408
  8  76.4329
  9  132.477
  10  0.000538776
  11  0.000470065
  12  0.00024263
  13  2.69432e-05
  14  5.52719e-05
  15  95.7073
  16  0.00967564
  17  0.00196948
  18  0.36509
  19  0.152787
Done.

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

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  1.760e+02  1.325e+02  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:  6.253e-01  1.528e-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:  1.370e+00  3.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.30
Ra Dec: 94.316 57.025
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 5.39e-07 +/- 4.06e-07
Energy Flux (Fixed Index): 3.03e-04 +/- 2.28e-04

TS (Fixed Index): 3.30
Ra Dec: 94.316 57.025
Photon Flux Upper Limit: 1.42e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/498684/likelihoodResults_599443201_600048001_4FGL_J0617.2+5701_weekly_bin596.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2960.92945121
delta logL = 4.89952696785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2960.88067852
delta logL = 4.94829966018

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6640       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3914       1.0000          .0000       10.000    
     3 'Normalizat'    .88772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74043       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2960.881     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      264 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6623        15.478        .50637E-04   -.16356E-03
   2  Index         4.3916        .79018        .14898E-03   -.12000E-03
   3  Normalizat    .88841        .39467        .38134E-03   -.15040E-03
   4  Prefactor     .74025        .15888        .17467E-03   -.47764E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.66225
  Index      = 4.39161
  Normalizat = 0.888411
  Prefactor  = 0.740246
 **********
 **   18 **HESSE 
 **********

 FCN=   2960.881     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6623        14.310        .20255E-05   -1.5119    
   2  Index         4.3916        .73091        .59591E-05   -.12198    
   3  Normalizat    .88841        .39397        .15254E-04   -.96869    
   4  Prefactor     .74025        .15861        .34934E-04   -1.0197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82747e-10
Minuit parameter uncertainties:
  1  14.3154
  2  0.733573
  3  0.395258
  4  0.158711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498684': 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): 0
logL (Free Index) = 2960.88067515
delta logL = 4.94830302859

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  8.662e+00  1.432e+01  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  4.392e+00  7.336e-01  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:  7.402e-01  1.587e-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:  8.884e-01  3.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.32
Ra Dec: 94.316 57.025
Photon Index (Free Index): 4.39 +/- 0.73
Photon Flux (Free Index): 5.16e-06 +/- 2.12e-06
Energy Flux (Free Index): 7.31e-04 +/- 2.73e-04

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/498684/cmap_HighResolution_599443201_600048001_4FGL_J0617.2+5701_weekly_bin596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-01', comment='SUCCESS', photon_flux='5.39e-07', energy_flux2='7.31e-04', photon_flux_error='4.06e-07', dlogl='4.95e+00', energy_flux='3.03e-04', photon_flux2='5.16e-06', job_status='DONE', time_completed='2021-07-09 15:40:33.916262', photon_index_error2='0.73', photon_index2='4.39', ts='3.30', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='1.42e-06', energy_flux_error2='2.73e-04', EG='1.37', time_epoch_completed='1625870433.92', return_code='0', job_id='498684', GAL2='0.74', EG2='0.89', return_code2='0', energy_flux_error='2.28e-04', photon_flux_error2='2.12e-06', ts2='15.32', photon_index='2.09' WHERE bin_id='596' AND source_name='4FGL J0617.2+5701' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul  9 15:40:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 498684: <4FGL_J0617.2+5701_weekly_bin596> in cluster <slac> Done

Job <4FGL_J0617.2+5701_weekly_bin596> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Jul  9 15:25:49 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  9 15:27:55 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:27:55 2021
Terminated at Fri Jul  9 15:40:38 2021
Results reported at Fri Jul  9 15:40:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0617.2+5701_weekly_bin596 94.3162 57.0249 599443201 600048001 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 :                                   516.15 sec.
    Max Memory :                                 1062 MB
    Average Memory :                             260.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            889 sec.

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

