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


Performing analysis on: 4FGL_J1013.7+3444_weekly_bin521
RA = 153.449, Dec = 34.7384
tmin = 554083201, tmax = 554688001
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='218314', job_status='RUN', time_executed='2021-07-16 13:15:38.572092', time_epoch_executed='1626466538.57' WHERE source_name='4FGL J1013.7+3444' and cadence='weekly' and bin_id='521'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/218314

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/218314/ft1_4FGL_J1013.7+3444_weekly_bin521.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/218314/ft2_4FGL_J1013.7+3444_weekly_bin521.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/218314/ft1_4FGL_J1013.7+3444_weekly_bin521.fits outfile=/scratch/kocevski/218314/ft1_filteredMKT_4FGL_J1013.7+3444_weekly_bin521.fits ra=153.449 dec=34.7384 rad=12.0 tmin=554083201.0 tmax=554688001.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.01
user 7.64
sys 0.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/218314/ft2_4FGL_J1013.7+3444_weekly_bin521.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/218314/ft2_4FGL_J1013.7+3444_weekly_bin521.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/218314/ft1_filteredMKT_4FGL_J1013.7+3444_weekly_bin521.fits evtable="EVENTS" outfile="/scratch/kocevski/218314/ft1_filtered_4FGL_J1013.7+3444_weekly_bin521.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.65
user 0.41
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/218314/ft1_filtered_4FGL_J1013.7+3444_weekly_bin521.fits" evtable="EVENTS" scfile=/scratch/kocevski/218314/ft2_4FGL_J1013.7+3444_weekly_bin521.fits sctable="SC_DATA" outfile=/scratch/kocevski/218314/ltcube_554083201_554688001_4FGL_J1013.7+3444_weekly_bin521.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/218314/ft2_4FGL_J1013.7+3444_weekly_bin521.fits
.....................!
real 41.69
user 41.21
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/218314/ft1_filtered_4FGL_J1013.7+3444_weekly_bin521.fits evtable="EVENTS" scfile=/scratch/kocevski/218314/ft2_4FGL_J1013.7+3444_weekly_bin521.fits sctable="SC_DATA" expcube=/scratch/kocevski/218314/ltcube_554083201_554688001_4FGL_J1013.7+3444_weekly_bin521.fits outfile=/scratch/kocevski/218314/expmap_554083201_554688001_4FGL_J1013.7+3444_weekly_bin521.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/218314/ltcube_554083201_554688001_4FGL_J1013.7+3444_weekly_bin521.fits
.....................!
real 197.37
user 191.41
sys 5.30

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

Setting source of interest to:
4FGL J1013.7+3444 @ 153.449 34.7384

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/218314/ft1_filtered_4FGL_J1013.7+3444_weekly_bin521.fits scfile=/scratch/kocevski/218314/ft2_4FGL_J1013.7+3444_weekly_bin521.fits outfile=/scratch/kocevski/218314/cmap_554083201_554688001_4FGL_J1013.7+3444_weekly_bin521.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=153.449 yref=34.7384 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.62
user 0.44
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/218314/ft1_filtered_4FGL_J1013.7+3444_weekly_bin521.fits scfile=/scratch/kocevski/218314/ft2_4FGL_J1013.7+3444_weekly_bin521.fits outfile=/scratch/kocevski/218314/cmap_HighResolution_554083201_554688001_4FGL_J1013.7+3444_weekly_bin521.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=153.449 yref=34.7384 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.61
user 0.43
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/218314/ft1_filtered_4FGL_J1013.7+3444_weekly_bin521.fits evtable="EVENTS" scfile=/scratch/kocevski/218314/ft2_4FGL_J1013.7+3444_weekly_bin521.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/218314/Model_4FGL_J1013.7+3444_weekly_bin521.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/218314/ft1_filtered_4FGL_J1013.7+3444_weekly_bin521.fits.....................!
real 49.40
user 48.00
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/218314/ft1_filtered_4FGL_J1013.7+3444_weekly_bin521.fits', '/scratch/kocevski/218314/ft2_4FGL_J1013.7+3444_weekly_bin521.fits', expMap='/scratch/kocevski/218314/expmap_554083201_554688001_4FGL_J1013.7+3444_weekly_bin521.fits', expCube='/scratch/kocevski/218314/ltcube_554083201_554688001_4FGL_J1013.7+3444_weekly_bin521.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/218314/Model_4FGL_J1013.7+3444_weekly_bin521.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1013.7+3444'

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.162e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  6.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/218314/ft1_filtered_4FGL_J1013.7+3444_weekly_bin521.fits
Spacecraft file(s): /scratch/kocevski/218314/ft2_4FGL_J1013.7+3444_weekly_bin521.fits
Exposure map: /scratch/kocevski/218314/expmap_554083201_554688001_4FGL_J1013.7+3444_weekly_bin521.fits
Exposure cube: /scratch/kocevski/218314/ltcube_554083201_554688001_4FGL_J1013.7+3444_weekly_bin521.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/218314/Model_4FGL_J1013.7+3444_weekly_bin521.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) = 5140.11504521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7471       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.631       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.363       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2210       1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.432       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11324E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8024       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.063       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14836E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .52179       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.9270       1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.733       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98846       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3002       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5140.109     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3269 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7474        31.455        .12068E-05    .19390E-04
   2  Prefactor     .10000E-03    11.564        .20124E-06** at limit **
   3  norm          .10000E-03    23.709        .11136E-06** at limit **
   4  Prefactor     16.622        34.790        .37344E-07   -.24193E-04
   5  Prefactor     .10000E-03    40.355        .55502E-06** at limit **
   6  Prefactor     .10000E-03    34.548       -.29012E-07** at limit **
   7  Prefactor     .10000E-03    6.6145       -.70450E-07** at limit **
   8  Prefactor     .10088E-03    29.164        .44786E-05** at limit **
   9  Prefactor     .10000E-03    1.7527       -.68223E-07** at limit **
  10  norm          .10000E-03    10.130       -.98109E-08** at limit **
  11  Prefactor     13.357        11.602       -.43508E-07   -.47428E-03
  12  Prefactor     .10000E-03    31.401       -.99472E-07** at limit **
  13  Prefactor     8.2237        15.185        .14435E-06   -.23208E-03
  14  norm          .10000E-03    6.1800        .16703E-06** at limit **
  15  Prefactor     54.405        89.005       -.45608E-06   -.48690E-04
  16  Prefactor     .10000E-03    31.286       -.21248E-06** at limit **
  17  Prefactor     .10001E-03    21.608        .72209E-05** at limit **
  18  Prefactor     5.8046        9.4831       -.62839E-07   -.10105E-03
  19  Prefactor     35.101        46.996        .54850E-06   -.75088E-05
  20  Prefactor     .10000E-03    15.265       -.11401E-06** at limit **
  21  Prefactor     .10000E-03    129.49       -.16909E-06** at limit **
  22  Prefactor     .10000E-03    12.166       -.13071E-06** at limit **
  23  norm          .52179        .27753       -.50560E-10   -.11725E-03
  24  Prefactor     7.9273        22.169        .24370E-06   -.17279E-05
  25  Prefactor     26.734        22.755       -.59039E-07   -.12950E-04
  26  Normalizat    .98836        .22715       -.27757E-06   -.31124E-03
  27  Prefactor     1.3003        .23925        .34759E-07   -.27205E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.74736
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.6223
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100879
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.3572
  Prefactor  = 0.0001
  Prefactor  = 8.22371
  norm       = 0.0001
  Prefactor  = 54.4049
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 5.80457
  Prefactor  = 35.1014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.521789
  Prefactor  = 7.92729
  Prefactor  = 26.7342
  Normalizat = 0.988363
  Prefactor  = 1.30029
 **********
 **   18 **HESSE 
 **********

 FCN=   5140.109     FROM HESSE     STATUS=OK           482 CALLS     3751 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7474        31.502        .20858E-03   -1.5321    
   2  Prefactor     .10000E-03    11.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    23.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.622        34.811        .98210E-04   -1.4892    
   5  Prefactor     .10000E-03    40.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.7251        .17989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10088E-03    115.72        .55125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.7840        .92574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    10.371        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.357        11.372        .10957E-03   -1.4977    
  12  Prefactor     .10000E-03    31.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2237        14.987        .13983E-03   -1.5134    
  14  norm          .10000E-03    6.1897        .17406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     54.405        89.138        .54367E-04   -1.4231    
  16  Prefactor     .10000E-03    31.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    22.566        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.8046        9.4124        .16673E-03   -1.5226    
  19  Prefactor     35.101        46.651        .67678E-04   -1.4522    
  20  Prefactor     .10000E-03    15.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    129.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .52179        .27835        .25724E-04   -1.5564    
  24  Prefactor     7.9273        22.037        .14241E-03   -1.5145    
  25  Prefactor     26.734        22.723        .77481E-04   -1.4673    
  26  Normalizat    .98836        .27093        .28441E-03   -.93421    
  27  Prefactor     1.3003        .28657        .27676E-03   -.83298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.8856e-09
Minuit parameter uncertainties:
  1  21.7454
  2  3.51507e-05
  3  3.55643e-05
  4  34.8532
  5  0.000310844
  6  4.36559e-05
  7  5.12909e-06
  8  0.0202126
  9  4.50695e-06
  10  2.48766e-06
  11  11.3739
  12  0.000116154
  13  14.9942
  14  9.72e-06
  15  89.3578
  16  0.000135333
  17  0.00096816
  18  9.41483
  19  46.6992
  20  2.45798e-05
  21  0.000450355
  22  2.53957e-05
  23  0.278349
  24  22.0599
  25  22.7304
  26  0.271308
  27  0.286917
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.336e+01  1.137e+01  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  6.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.300e+00  2.869e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  9.884e-01  2.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.22
Ra Dec: 153.449 34.738
Photon Index (Fixed Index): 2.59 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 1.09e-07
Energy Flux (Fixed Index): 3.37e-05 +/- 2.87e-05

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) = 5140.06485359
delta logL = 0.0437441434015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5140.05916164
delta logL = 0.0494360953344

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.630       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8747       1.0000          .0000       10.000    
     3 'Normalizat'    .95292       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3286       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+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=   5140.059     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      298 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.633        11.584        .11747E-03   -.61628E-03
   2  Index         2.8747        1.0386        .70125E-02   -.12266E-03
   3  Normalizat    .95309        .28921        .28907E-03    .50088E-03
   4  Prefactor     1.3283        .30240        .27430E-03    .10767E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.633
  Index      = 2.87468
  Normalizat = 0.953089
  Prefactor  = 1.32832
 **********
 **   18 **HESSE 
 **********

 FCN=   5140.059     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.633        10.302        .46989E-05   -1.5026    
   2  Index         2.8747        .92204        .28050E-03   -.43903    
   3  Normalizat    .95309        .28551        .57813E-04   -.94619    
   4  Prefactor     1.3283        .29948        .54861E-04   -.82469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24153e-09
Minuit parameter uncertainties:
  1  10.3032
  2  0.928539
  3  0.285968
  4  0.299871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/218314': 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) = 5140.05916057
delta logL = 0.0494371683362

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.163e+01  1.030e+01  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.875e+00  9.285e-01  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  6.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.328e+00  2.999e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  9.531e-01  2.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.49
Ra Dec: 153.449 34.738
Photon Index (Free Index): 2.87 +/- 0.93
Photon Flux (Free Index): 1.63e-07 +/- 1.44e-07
Energy Flux (Free Index): 3.49e-05 +/- 2.11e-05

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/218314/cmap_HighResolution_554083201_554688001_4FGL_J1013.7+3444_weekly_bin521.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='3.49e-05', photon_flux_error='1.09e-07', dlogl='4.94e-02', energy_flux='3.37e-05', photon_flux2='1.63e-07', job_status='DONE', time_completed='2021-07-16 13:29:56.517402', photon_index_error2='0.93', photon_index2='2.87', ts='4.22', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='2.11e-05', EG='0.99', time_epoch_completed='1626467396.52', return_code='0', job_id='218314', GAL2='1.33', EG2='0.95', return_code2='0', energy_flux_error='2.87e-05', photon_flux_error2='1.44e-07', ts2='4.49', photon_index='2.59' WHERE bin_id='521' AND source_name='4FGL J1013.7+3444' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul 16 13:29:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0012>
Subject: Job 218314: <4FGL_J1013.7+3444_weekly_bin521> in cluster <slac> Done

Job <4FGL_J1013.7+3444_weekly_bin521> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Jul 16 13:15:23 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 16 13:15:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 16 13:15:26 2021
Terminated at Fri Jul 16 13:29:57 2021
Results reported at Fri Jul 16 13:29:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_weekly_bin521 153.449 34.7384 554083201 554688001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1013.7+3444 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   695.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             280.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

