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


Performing analysis on: 4FGL_J0617.2+5701_weekly_bin517
RA = 94.3162, Dec = 57.0249
tmin = 551664001, tmax = 552268801
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='498347', job_status='RUN', time_executed='2021-07-09 15:27:56.866078', time_epoch_executed='1625869676.87' WHERE source_name='4FGL J0617.2+5701' and cadence='weekly' and bin_id='517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498347

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498347/ft1_4FGL_J0617.2+5701_weekly_bin517.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498347/ft2_4FGL_J0617.2+5701_weekly_bin517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498347/ft1_4FGL_J0617.2+5701_weekly_bin517.fits outfile=/scratch/kocevski/498347/ft1_filteredMKT_4FGL_J0617.2+5701_weekly_bin517.fits ra=94.3162 dec=57.0249 rad=12.0 tmin=551664001.0 tmax=552268801.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.57
user 7.75
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/498347/ft2_4FGL_J0617.2+5701_weekly_bin517.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/498347/ft1_filteredMKT_4FGL_J0617.2+5701_weekly_bin517.fits evtable="EVENTS" outfile="/scratch/kocevski/498347/ft1_filtered_4FGL_J0617.2+5701_weekly_bin517.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.58
user 0.37
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498347/ft1_filtered_4FGL_J0617.2+5701_weekly_bin517.fits" evtable="EVENTS" scfile=/scratch/kocevski/498347/ft2_4FGL_J0617.2+5701_weekly_bin517.fits sctable="SC_DATA" outfile=/scratch/kocevski/498347/ltcube_551664001_552268801_4FGL_J0617.2+5701_weekly_bin517.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/498347/ft2_4FGL_J0617.2+5701_weekly_bin517.fits
.....................!
real 26.70
user 26.01
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498347/ft1_filtered_4FGL_J0617.2+5701_weekly_bin517.fits evtable="EVENTS" scfile=/scratch/kocevski/498347/ft2_4FGL_J0617.2+5701_weekly_bin517.fits sctable="SC_DATA" expcube=/scratch/kocevski/498347/ltcube_551664001_552268801_4FGL_J0617.2+5701_weekly_bin517.fits outfile=/scratch/kocevski/498347/expmap_551664001_552268801_4FGL_J0617.2+5701_weekly_bin517.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/498347/ltcube_551664001_552268801_4FGL_J0617.2+5701_weekly_bin517.fits
.....................!
real 194.10
user 186.74
sys 5.12

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/498347/ft1_filtered_4FGL_J0617.2+5701_weekly_bin517.fits scfile=/scratch/kocevski/498347/ft2_4FGL_J0617.2+5701_weekly_bin517.fits outfile=/scratch/kocevski/498347/cmap_551664001_552268801_4FGL_J0617.2+5701_weekly_bin517.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498347/ft1_filtered_4FGL_J0617.2+5701_weekly_bin517.fits scfile=/scratch/kocevski/498347/ft2_4FGL_J0617.2+5701_weekly_bin517.fits outfile=/scratch/kocevski/498347/cmap_HighResolution_551664001_552268801_4FGL_J0617.2+5701_weekly_bin517.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.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4981       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0286       1.0000         .10000E-03   10000.    
     3 'norm      '    5.6271       1.0000         .10000E-03   10000.    
     4 'norm      '    .86394       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5683       1.0000         .10000E-03   10000.    
     6 'norm      '    58.658       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.3783       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5532       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5746       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3345       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5482       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3539       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9451       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3430       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0669       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7631       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5212       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    .22354       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=   143.4929     FROM MIGRAD    STATUS=CONVERGED    224 CALLS      524 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12291E-02    918.58        .42839E-02** at limit **
   2  Prefactor     .38990E-02    1128.6        .58295E-02    .26254E-02
   3  norm          .34786E-01    8114.7        .42337E-02   -.11301E-02
   4  norm          1.0972        4.7305        .11462E-01   -1.2242    
   5  Prefactor     .33548E-02    1412.4        .32388E-02   -.19217E-02
   6  norm          56.059        30.571        .13096E-02    .31497E-03
   7  Prefactor     .65008E-02    1524.6        .34625E-02    .24861E-02
   8  Prefactor     .71350E-02    1332.2        .53605E-02   -.30042E-02
   9  Prefactor     .13902E-01    849.61        .47051E-02   -.67146E-02
  10  Prefactor     .19263E-01    6705.6        .55414E-02    .17714E-02
  11  Prefactor     .92900E-01    6652.6        .47191E-02   -.41006E-02
  12  norm          .26405E-03    673.71        .66788E-02** at limit **
  13  norm          171.62        434.38        .74406E-02   -.52175E-03
  14  Prefactor     .73881E-01    9638.2        .66960E-02   -.80892E-03
  15  Prefactor     .21476        7932.8        .33276E-02    .30117E-02
  16  Prefactor     1.6132        9995.6        .41827E-02    .24493E-02
  17  Prefactor     3.5212        1.0104         .0000         .0000    
  18  Normalizat    .10000E-01    .25667        .14799E-04** at limit **
  19  Prefactor     .21141        .50188        .28368E-05    .48955E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00122913
  Prefactor  = 0.00389902
  norm       = 0.0347862
  norm       = 1.09717
  Prefactor  = 0.00335485
  norm       = 56.0593
  Prefactor  = 0.00650076
  Prefactor  = 0.00713505
  Prefactor  = 0.0139019
  Prefactor  = 0.019263
  Prefactor  = 0.0928998
  norm       = 0.000264052
  norm       = 171.621
  Prefactor  = 0.0738809
  Prefactor  = 0.214762
  Prefactor  = 1.6132
  Prefactor  = 3.52117
  Normalizat = 0.01
  Prefactor  = 0.211414
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   143.4929     FROM HESSE     STATUS=FAILED        41 CALLS      565 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12291E-02    918.58        .42839E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .38990E-02    1128.6        .58295E-02   -1.5696    
   3  norm          .34786E-01    8114.7        .42337E-02   -1.5745    
   4  norm          1.0972        4.7305        .11462E-01   -1.5917    
   5  Prefactor     .33548E-02    1412.4        .32388E-02   -1.5719    
   6  norm          56.059        30.571        .13096E-02   -1.4209    
   7  Prefactor     .65008E-02    1524.6        .34625E-02   -1.5692    
   8  Prefactor     .71350E-02    1332.2        .53605E-02   -1.5725    
   9  Prefactor     .13902E-01    849.61        .47051E-02   -1.5731    
  10  Prefactor     .19263E-01    6705.6        .55414E-02   -1.5680    
  11  Prefactor     .92900E-01    6652.6        .47191E-02   -1.5769    
  12  norm          .26405E-03    673.71        .66788E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          171.62        434.38        .74406E-02   -1.3080    
  14  Prefactor     .73881E-01    9638.2        .66960E-02   -1.5762    
  15  Prefactor     .21476        7932.8        .33276E-02   -1.5615    
  16  Prefactor     1.6132        9995.6        .41827E-02   -1.5454    
  17  Prefactor     547.76        544.17         .0000       -1.5333    
  18  Normalizat    .10000E-01    .25667        .14799E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .21141        .50188        .28368E-05   -1.2790    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.82515e-09
Minuit parameter uncertainties:
  1  2.06941
  2  4.22349
  3  33.8127
  4  4.55677
  5  4.39618
  6  30.58
  7  6.41841
  8  6.26758
  9  6.9496
  10  17.3063
  11  37.1322
  12  0.672605
  13  442.913
  14  70.3913
  15  81.2703
  16  409.033
  17  1.01045
  18  2.14425e-06
  19  0.512661
Done.

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

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  1.390e-02  6.950e+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.114e-01  5.127e-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.000e-02  2.144e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/498347/likelihoodResults_551664001_552268801_4FGL_J0617.2+5701_weekly_bin517.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) = 143.492949458
delta logL = -5.39947109246e-09

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 143.492949438
delta logL = 1.39987719194e-08

Fit tolerance = 1e-08

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

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

 FCN=   143.4929     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      204 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1508.2        .90923E-02** at limit **
   2  Index         2.0436        5.5970        .50000        .27187E-06
   3  Normalizat    .10000E-01    .15661E-02    .11366    ** at limit **
   4  Prefactor     .21141        .84606E-02    .26596E-01    .14713E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04358
  Normalizat = 0.01
  Prefactor  = 0.211414
 **********
 **   18 **HESSE 
 **********

 FCN=   143.4929     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      233 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7998.2        .18185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0436        5.9133        .50000       -.63265    
   3  Normalizat    .10000E-01    .78893E-02    .25024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .21141        .18916E-01    .11754E-03   -1.2790    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.423e-08
Minuit parameter uncertainties:
  1  0.00198526
  2  2759.97
  3  3.64428e-08
  4  0.018917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498347': 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) = 143.49294156
delta logL = 7.89162271531e-06

Extracting fit parameters...

4FGL J0617.2+5701
   Spectrum: PowerLaw
245    Prefactor:  1.000e-04  1.985e-03  1.000e-04  1.000e+04 ( 1.000e-13)
246        Index:  2.044e+00  2.760e+03  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.114e-01  1.892e-02  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.000e-02  3.644e-08  1.000e-02  1.000e+01 ( 1.000e+00)


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/498347/cmap_HighResolution_551664001_552268801_4FGL_J0617.2+5701_weekly_bin517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e+00', job_status='DONE', photon_flux_upper_limit='1.57e-05', time_completed='2021-07-09 15:34:24.188616', job_id='498347', GAL2='0.21', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625870064.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.21', dlogl='7.89e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='517' AND source_name='4FGL J0617.2+5701' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul  9 15:34:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 498347: <4FGL_J0617.2+5701_weekly_bin517> in cluster <slac> Done

Job <4FGL_J0617.2+5701_weekly_bin517> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Jul  9 15:25:01 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  9 15:26:30 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:30 2021
Terminated at Fri Jul  9 15:34:25 2021
Results reported at Fri Jul  9 15:34:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0617.2+5701_weekly_bin517 94.3162 57.0249 551664001 552268801 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 :                                   372.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             364.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   474 sec.
    Turnaround time :                            564 sec.

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

