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


Performing analysis on: 4FGL_J0010.6+2043_weekly_bin569
RA = 2.6502, Dec = 20.7332
tmin = 583113601, tmax = 583718401
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='752453', job_status='RUN', time_executed='2021-07-02 21:51:30.365967', time_epoch_executed='1625287890.37' WHERE source_name='4FGL J0010.6+2043' and cadence='weekly' and bin_id='569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/752453

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/752453/ft1_4FGL_J0010.6+2043_weekly_bin569.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/752453/ft2_4FGL_J0010.6+2043_weekly_bin569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/752453/ft1_4FGL_J0010.6+2043_weekly_bin569.fits outfile=/scratch/kocevski/752453/ft1_filteredMKT_4FGL_J0010.6+2043_weekly_bin569.fits ra=2.6502 dec=20.7332 rad=12.0 tmin=583113601.0 tmax=583718401.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.18
user 5.87
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/752453/ft2_4FGL_J0010.6+2043_weekly_bin569.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/752453/ft2_4FGL_J0010.6+2043_weekly_bin569.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/752453/ft1_filteredMKT_4FGL_J0010.6+2043_weekly_bin569.fits evtable="EVENTS" outfile="/scratch/kocevski/752453/ft1_filtered_4FGL_J0010.6+2043_weekly_bin569.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.47
user 0.31
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/752453/ft1_filtered_4FGL_J0010.6+2043_weekly_bin569.fits" evtable="EVENTS" scfile=/scratch/kocevski/752453/ft2_4FGL_J0010.6+2043_weekly_bin569.fits sctable="SC_DATA" outfile=/scratch/kocevski/752453/ltcube_583113601_583718401_4FGL_J0010.6+2043_weekly_bin569.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/752453/ft2_4FGL_J0010.6+2043_weekly_bin569.fits
.....................!
real 22.21
user 21.80
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/752453/ft1_filtered_4FGL_J0010.6+2043_weekly_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/752453/ft2_4FGL_J0010.6+2043_weekly_bin569.fits sctable="SC_DATA" expcube=/scratch/kocevski/752453/ltcube_583113601_583718401_4FGL_J0010.6+2043_weekly_bin569.fits outfile=/scratch/kocevski/752453/expmap_583113601_583718401_4FGL_J0010.6+2043_weekly_bin569.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/752453/ltcube_583113601_583718401_4FGL_J0010.6+2043_weekly_bin569.fits
.....................!
real 152.84
user 149.13
sys 3.45

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

Setting source of interest to:
4FGL J0010.6+2043 @ 2.6502 20.7332

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/752453/ft1_filtered_4FGL_J0010.6+2043_weekly_bin569.fits scfile=/scratch/kocevski/752453/ft2_4FGL_J0010.6+2043_weekly_bin569.fits outfile=/scratch/kocevski/752453/cmap_583113601_583718401_4FGL_J0010.6+2043_weekly_bin569.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=2.6502 yref=20.7332 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.49
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/752453/ft1_filtered_4FGL_J0010.6+2043_weekly_bin569.fits scfile=/scratch/kocevski/752453/ft2_4FGL_J0010.6+2043_weekly_bin569.fits outfile=/scratch/kocevski/752453/cmap_HighResolution_583113601_583718401_4FGL_J0010.6+2043_weekly_bin569.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=2.6502 yref=20.7332 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.49
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/752453/ft1_filtered_4FGL_J0010.6+2043_weekly_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/752453/ft2_4FGL_J0010.6+2043_weekly_bin569.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/752453/Model_4FGL_J0010.6+2043_weekly_bin569.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/752453/ft1_filtered_4FGL_J0010.6+2043_weekly_bin569.fits.....................!
real 136.44
user 135.20
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/752453/ft1_filtered_4FGL_J0010.6+2043_weekly_bin569.fits', '/scratch/kocevski/752453/ft2_4FGL_J0010.6+2043_weekly_bin569.fits', expMap='/scratch/kocevski/752453/expmap_583113601_583718401_4FGL_J0010.6+2043_weekly_bin569.fits', expCube='/scratch/kocevski/752453/ltcube_583113601_583718401_4FGL_J0010.6+2043_weekly_bin569.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/752453/Model_4FGL_J0010.6+2043_weekly_bin569.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0010.6+2043'

4FGL J0010.6+2043
   Spectrum: PowerLaw
45     Prefactor:  1.069e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
46         Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
47         Scale:  1.386e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/752453/ft1_filtered_4FGL_J0010.6+2043_weekly_bin569.fits
Spacecraft file(s): /scratch/kocevski/752453/ft2_4FGL_J0010.6+2043_weekly_bin569.fits
Exposure map: /scratch/kocevski/752453/expmap_583113601_583718401_4FGL_J0010.6+2043_weekly_bin569.fits
Exposure cube: /scratch/kocevski/752453/ltcube_583113601_583718401_4FGL_J0010.6+2043_weekly_bin569.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/752453/Model_4FGL_J0010.6+2043_weekly_bin569.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) = 17742.5230877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8045       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .42054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7722       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6774       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.536       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.560       1.0000         .10000E-03   10000.    
    10 'norm      '    4.3964       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0947       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8694       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.824       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .75443       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1630       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17742.18     FROM MIGRAD    STATUS=CONVERGED    352 CALLS     1540 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .64943       -.35991E-07** at limit **
   2  Prefactor     3.8032        6.8277       -.28833E-06    .15108E-04
   3  Prefactor     .10005E-03    2.3270       -.16301E-06** at limit **
   4  Prefactor     2.7721        1.7433        .87908E-06   -.24764E-02
   5  Prefactor     .10000E-03    10.638        .47284E-06** at limit **
   6  Prefactor     9.6774        2.6820       -.34774E-07    .29770E-03
   7  norm          .10000E-03    1.6927        .51846E-08** at limit **
   8  Prefactor     12.536        13.532       -.13856E-06    .46549E-04
   9  Prefactor     20.560        9.2040       -.29060E-06   -.33843E-04
  10  norm          4.3978        3.4386        .41359E-06    .34965E-03
  11  Prefactor     .10000E-03    3.1696        .50045E-06** at limit **
  12  Prefactor     1.0908        7.9352       -.76426E-05   -.20860E-03
  13  Prefactor     .10000E-03    3.0675       -.25654E-06** at limit **
  14  norm          .10000E-03    2.5561        .10516E-06** at limit **
  15  Prefactor     2.8693        2.7036       -.54545E-07   -.10250E-03
  16  Prefactor     11.822        24.703       -.22695E-05   -.14845E-04
  17  Normalizat    .75441        .12091        .99905E-06    .22670E-03
  18  Prefactor     1.1631        .80860E-01   -.14304E-06    .45763E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.80321
  Prefactor  = 0.000100052
  Prefactor  = 2.77208
  Prefactor  = 0.0001
  Prefactor  = 9.67736
  norm       = 0.0001
  Prefactor  = 12.5364
  Prefactor  = 20.5605
  norm       = 4.39775
  Prefactor  = 0.0001
  Prefactor  = 1.09077
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.86927
  Prefactor  = 11.8224
  Normalizat = 0.754407
  Prefactor  = 1.16307
 **********
 **   18 **HESSE 
 **********

 FCN=   17742.18     FROM HESSE     STATUS=OK           256 CALLS     1796 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .66747        .20912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8032        6.8215        .20694E-03   -1.5318    
   3  Prefactor     .10005E-03    4.8348        .62326E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7721        3.1309        .12165E-02   -1.5375    
   5  Prefactor     .10000E-03    10.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.6774        2.6802        .10734E-03   -1.5086    
   7  norm          .10000E-03    1.6965        .16923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.536        13.521        .11314E-03   -1.5000    
   9  Prefactor     20.560        9.2102        .88333E-04   -1.4801    
  10  norm          4.3978        3.4481        .19208E-03   -1.5289    
  11  Prefactor     .10000E-03    3.2876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0908        8.7559        .45588E-03   -1.5499    
  13  Prefactor     .10000E-03    3.0759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.5618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8693        2.6984        .20630E-03   -1.5369    
  16  Prefactor     11.822        24.746        .11650E-03   -1.5020    
  17  Normalizat    .75441        .13880        .32323E-03   -1.0178    
  18  Prefactor     1.1631        .93166E-01    .18360E-03   -.87475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51816e-09
Minuit parameter uncertainties:
  1  7.91778e-07
  2  6.82286
  3  0.00100421
  4  3.13111
  5  7.12535e-06
  6  2.68024
  7  2.59817e-08
  8  13.5241
  9  9.21084
  10  3.44823
  11  1.34161e-06
  12  6.1818
  13  3.51742e-06
  14  6.09554e-07
  15  2.69849
  16  24.7674
  17  0.138861
  18  0.0931792
Done.

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

Extracting fit parameters...

4FGL J0010.6+2043
   Spectrum: PowerLaw
45     Prefactor:  3.803e+00  6.823e+00  1.000e-04  1.000e+04 ( 1.000e-13)
46         Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
47         Scale:  1.386e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.163e+00  9.318e-02  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  7.544e-01  1.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 2.650 20.733
Photon Flux Upper Limit: 5.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/752453/likelihoodResults_583113601_583718401_4FGL_J0010.6+2043_weekly_bin569.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) = 17740.2697691
delta logL = 1.91157177534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17740.0419306
delta logL = 2.13941027739

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.5444       1.0000          .0000       10.000    
     3 'Normalizat'    .66973       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2073       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+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=   17740.04     FROM MIGRAD    STATUS=CONVERGED    166 CALLS      531 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .45259E-03    .99747E-05** at limit **
   2  Index         7.5445        .21651        .49805E-02    .16923E-02
   3  Normalizat    .66965        .14045        .34146E-03   -.30405E-03
   4  Prefactor     1.2073        .95761E-01    .18065E-03   -.72590E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.54449
  Normalizat = 0.669651
  Prefactor  = 1.20725
 **********
 **   18 **HESSE 
 **********

 FCN=   17740.04     FROM HESSE     STATUS=OK            27 CALLS      558 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .44949E-03    .39899E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.5445        .21150        .99611E-03    .53390    
   3  Normalizat    .66965        .14042        .13658E-04   -1.0510    
   4  Prefactor     1.2073        .95787E-01    .36129E-04   -.86108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22041e-10
Minuit parameter uncertainties:
  1  1.68104e-09
  2  0.211583
  3  0.140497
  4  0.0958004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/752453': 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) = 17740.0419212
delta logL = 2.13941970404

Extracting fit parameters...

4FGL J0010.6+2043
   Spectrum: PowerLaw
45     Prefactor:  1.000e-04  1.681e-09  1.000e-04  1.000e+04 ( 1.000e-13)
46         Index:  7.544e+00  2.116e-01  0.000e+00  1.000e+01 (-1.000e+00)
47         Scale:  1.386e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  1.207e+00  9.580e-02  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  6.697e-01  1.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.11
Ra Dec: 2.650 20.733
Photon Index (Free Index): 7.54 +/- 0.21
Photon Flux (Free Index): 6.40e-08 +/- 3.30e-08
Energy Flux (Free Index): 7.52e-06 +/- 3.85e-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/752453/cmap_HighResolution_583113601_583718401_4FGL_J0010.6+2043_weekly_bin569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-03', comment='SUCCESS', energy_flux2='7.52e-06', dlogl='2.14e+00', photon_flux2='6.40e-08', job_status='DONE', time_completed='2021-07-02 22:05:52.360940', photon_index_error2='0.21', photon_index2='7.54', ts='0.40', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='5.93e-08', energy_flux_error2='3.85e-06', EG='0.75', time_epoch_completed='1625288752.36', return_code='0', job_id='752453', GAL2='1.21', EG2='0.67', return_code2='0', photon_flux_error2='3.30e-08', ts2='5.11', photon_index='2.32' WHERE bin_id='569' AND source_name='4FGL J0010.6+2043' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul  2 22:05:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 752453: <4FGL_J0010.6+2043_weekly_bin569> in cluster <slac> Done

Job <4FGL_J0010.6+2043_weekly_bin569> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jul  2 21:50:40 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  2 21:51:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul  2 21:51:19 2021
Terminated at Fri Jul  2 22:05:53 2021
Results reported at Fri Jul  2 22:05:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0010.6+2043_weekly_bin569 2.6502 20.7332 583113601 583718401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0010.6+2043 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   853.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            913 sec.

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

