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


Performing analysis on: 4FGL_J1058.0+4305_weekly_bin602
RA = 164.518, Dec = 43.0938
tmin = 603072001, tmax = 603676801
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='615907', job_status='RUN', time_executed='2021-07-17 12:54:52.530664', time_epoch_executed='1626551692.53' WHERE source_name='4FGL J1058.0+4305' and cadence='weekly' and bin_id='602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/615907

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/615907/ft1_4FGL_J1058.0+4305_weekly_bin602.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/615907/ft2_4FGL_J1058.0+4305_weekly_bin602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/615907/ft1_4FGL_J1058.0+4305_weekly_bin602.fits outfile=/scratch/kocevski/615907/ft1_filteredMKT_4FGL_J1058.0+4305_weekly_bin602.fits ra=164.518 dec=43.0938 rad=12.0 tmin=603072001.0 tmax=603676801.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.07
user 5.77
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/615907/ft2_4FGL_J1058.0+4305_weekly_bin602.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/615907/ft2_4FGL_J1058.0+4305_weekly_bin602.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/615907/ft1_filteredMKT_4FGL_J1058.0+4305_weekly_bin602.fits evtable="EVENTS" outfile="/scratch/kocevski/615907/ft1_filtered_4FGL_J1058.0+4305_weekly_bin602.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.55
user 0.38
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/615907/ft1_filtered_4FGL_J1058.0+4305_weekly_bin602.fits" evtable="EVENTS" scfile=/scratch/kocevski/615907/ft2_4FGL_J1058.0+4305_weekly_bin602.fits sctable="SC_DATA" outfile=/scratch/kocevski/615907/ltcube_603072001_603676801_4FGL_J1058.0+4305_weekly_bin602.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/615907/ft2_4FGL_J1058.0+4305_weekly_bin602.fits
.....................!
real 34.84
user 34.21
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/615907/ft1_filtered_4FGL_J1058.0+4305_weekly_bin602.fits evtable="EVENTS" scfile=/scratch/kocevski/615907/ft2_4FGL_J1058.0+4305_weekly_bin602.fits sctable="SC_DATA" expcube=/scratch/kocevski/615907/ltcube_603072001_603676801_4FGL_J1058.0+4305_weekly_bin602.fits outfile=/scratch/kocevski/615907/expmap_603072001_603676801_4FGL_J1058.0+4305_weekly_bin602.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/615907/ltcube_603072001_603676801_4FGL_J1058.0+4305_weekly_bin602.fits
.....................!
real 191.73
user 186.02
sys 5.31

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

Setting source of interest to:
4FGL J1058.0+4305 @ 164.518 43.0938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/615907/ft1_filtered_4FGL_J1058.0+4305_weekly_bin602.fits scfile=/scratch/kocevski/615907/ft2_4FGL_J1058.0+4305_weekly_bin602.fits outfile=/scratch/kocevski/615907/cmap_603072001_603676801_4FGL_J1058.0+4305_weekly_bin602.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=164.518 yref=43.0938 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.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/615907/ft1_filtered_4FGL_J1058.0+4305_weekly_bin602.fits scfile=/scratch/kocevski/615907/ft2_4FGL_J1058.0+4305_weekly_bin602.fits outfile=/scratch/kocevski/615907/cmap_HighResolution_603072001_603676801_4FGL_J1058.0+4305_weekly_bin602.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=164.518 yref=43.0938 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.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/615907/ft1_filtered_4FGL_J1058.0+4305_weekly_bin602.fits evtable="EVENTS" scfile=/scratch/kocevski/615907/ft2_4FGL_J1058.0+4305_weekly_bin602.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/615907/Model_4FGL_J1058.0+4305_weekly_bin602.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/615907/ft1_filtered_4FGL_J1058.0+4305_weekly_bin602.fits....................!
real 34.44
user 33.14
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/615907/ft1_filtered_4FGL_J1058.0+4305_weekly_bin602.fits', '/scratch/kocevski/615907/ft2_4FGL_J1058.0+4305_weekly_bin602.fits', expMap='/scratch/kocevski/615907/expmap_603072001_603676801_4FGL_J1058.0+4305_weekly_bin602.fits', expCube='/scratch/kocevski/615907/ltcube_603072001_603676801_4FGL_J1058.0+4305_weekly_bin602.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/615907/Model_4FGL_J1058.0+4305_weekly_bin602.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.0+4305'

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  7.092e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/615907/ft1_filtered_4FGL_J1058.0+4305_weekly_bin602.fits
Spacecraft file(s): /scratch/kocevski/615907/ft2_4FGL_J1058.0+4305_weekly_bin602.fits
Exposure map: /scratch/kocevski/615907/expmap_603072001_603676801_4FGL_J1058.0+4305_weekly_bin602.fits
Exposure cube: /scratch/kocevski/615907/ltcube_603072001_603676801_4FGL_J1058.0+4305_weekly_bin602.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/615907/Model_4FGL_J1058.0+4305_weekly_bin602.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) = 3050.41338323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    974.59       1.0000         .10000E-03   10000.    
     2 'Prefactor '    906.67       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .61739E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24948E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10571E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10661E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.158       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    59.908       1.0000         .10000E-03   10000.    
    14 'Prefactor '    57.568       1.0000         .10000E-03   10000.    
    15 'norm      '    .86320       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5112       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.1348       1.0000         .10000E-03   10000.    
    20 'norm      '    67.046       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10736E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.7436       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10625E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13729E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.0455       1.0000         .10000E-03   10000.    
    27 'norm      '    6.4728       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    16.968       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.6677       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .66838       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3050.192     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     4987 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          975.86        676.93        .88764E-06    .27178E-04
   2  Prefactor     903.43        963.10       -.53740E-05   -.15893E-04
   3  Prefactor     .10003E-03    972.97       -.10943E-04** at limit **
   4  norm          .10000E-03    5.0192        .12822E-05** at limit **
   5  Prefactor     .10001E-03    968.20       -.79472E-04** at limit **
   6  norm          .10000E-03    86.387       -.38503E-05** at limit **
   7  Prefactor     .10000E-03    115.63       -.13407E-05** at limit **
   8  Prefactor     10.176        27.895       -.12436E-05    .20073E-04
   9  Prefactor     .10000E-03    19.730       -.18839E-05** at limit **
  10  Prefactor     .10000E-03    74.760       -.59727E-06** at limit **
  11  Prefactor     .10000E-03    61.060        .33011E-06** at limit **
  12  Prefactor     .10000E-03    64.757       -.18536E-05** at limit **
  13  Prefactor     60.190        181.44        .74256E-08    .23721E-04
  14  Prefactor     57.726        82.918        .15928E-07    .54764E-04
  15  norm          .86311        .53950       -.32872E-06    .13471E-02
  16  Prefactor     .10000E-03    9.9374       -.79842E-06** at limit **
  17  Prefactor     2.5159        33.967        .21134E-04   -.40333E-04
  18  Prefactor     .10000E-03    76.498        .12855E-06** at limit **
  19  norm          3.1360        33.759        .13924E-04   -.42480E-05
  20  norm          67.053        63.287       -.19019E-06    .81091E-05
  21  Prefactor     .10000E-03    3.0129       -.40809E-06** at limit **
  22  Prefactor     .10000E-03    46.056       -.24046E-06** at limit **
  23  norm          3.7432        4.8587        .43333E-06    .18818E-03
  24  Prefactor     .10000E-03    14.563       -.16004E-05** at limit **
  25  Prefactor     .10000E-03    137.29       -.25015E-05** at limit **
  26  norm          2.0461        1.9242        .46501E-08    .19018E-03
  27  norm          6.4732        6.5632       -.76232E-07   -.11608E-04
  28  Prefactor     .10001E-03    2.6037       -.15645E-05** at limit **
  29  Prefactor     16.982        102.41       -.85283E-06    .80626E-05
  30  Prefactor     .10000E-03    72.876       -.31282E-05** at limit **
  31  Normalizat    1.6675        .30629       -.18953E-06    .35067E-03
  32  Prefactor     .66813        .34896        .32135E-05    .16207E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 975.862
  Prefactor  = 903.43
  Prefactor  = 0.000100035
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.1901
  Prefactor  = 57.726
  norm       = 0.863105
  Prefactor  = 0.0001
  Prefactor  = 2.51588
  Prefactor  = 0.0001
  norm       = 3.13596
  norm       = 67.0532
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.7432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.04611
  norm       = 6.47318
  Prefactor  = 0.000100005
  Prefactor  = 16.9821
  Prefactor  = 0.000100001
  Normalizat = 1.66754
  Prefactor  = 0.668128
 **********
 **   18 **HESSE 
 **********

 FCN=   3050.192     FROM HESSE     STATUS=OK           651 CALLS     5638 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          975.86        677.56        .67435E-04   -.93538    
   2  Prefactor     903.43        963.79        .69654E-04   -.96021    
   3  Prefactor     .10003E-03    974.47        .18897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.0198        .12084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    977.55        .21466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    86.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    115.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.176        27.854        .12572E-03   -1.5070    
   9  Prefactor     .10000E-03    19.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    74.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    61.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    64.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     60.190        180.97        .25918E-03   -1.4155    
  14  Prefactor     57.726        83.033        .26437E-03   -1.4187    
  15  norm          .86311        .54400        .29465E-04   -1.5522    
  16  Prefactor     .10000E-03    9.9521        .17014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.5159        34.210        .12892E-02   -1.5391    
  18  Prefactor     .10000E-03    76.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.1360        33.618        .11448E-02   -1.5354    
  20  norm          67.053        63.292        .49017E-04   -1.4068    
  21  Prefactor     .10000E-03    3.0628        .93357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    46.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.7432        4.7741        .12475E-03   -1.5321    
  24  Prefactor     .10000E-03    103.04        .39814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    138.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.0461        1.9184        .55967E-04   -1.5422    
  27  norm          6.4732        6.5647        .13843E-03   -1.5199    
  28  Prefactor     .10001E-03    5.1306        .16836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     16.982        103.71        .97231E-04   -1.4884    
  30  Prefactor     .10000E-03    74.427        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.6675        .35745        .23843E-03   -.73173    
  32  Prefactor     .66813        .39893        .40231E-03   -1.0479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50447e-09
Minuit parameter uncertainties:
  1  683.589
  2  982.932
  3  0.0118604
  4  2.63125e-06
  5  0.00460177
  6  0.000214486
  7  0.000224952
  8  27.8898
  9  7.06201e-06
  10  2.67717e-05
  11  0.000140273
  12  0.000114853
  13  182.66
  14  83.1999
  15  0.544007
  16  6.91689e-05
  17  18.5673
  18  1.0612e-05
  19  20.5499
  20  63.3561
  21  2.58813e-05
  22  3.79067e-05
  23  4.77456
  24  0.0003408
  25  0.000360855
  26  1.91851
  27  6.56538
  28  0.000322552
  29  84.1515
  30  0.000392268
  31  0.358002
  32  0.400647
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  6.019e+01  1.827e+02  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.346e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  6.681e-01  4.006e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  1.668e+00  3.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 164.518 43.094
Photon Flux Upper Limit: 2.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.64e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/615907/likelihoodResults_603072001_603676801_4FGL_J1058.0+4305_weekly_bin602.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) = 3050.19126943
delta logL = 0.00108859373404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3050.19099789
delta logL = 0.00136013110523

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.302       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2524       1.0000          .0000       10.000    
     3 'Normalizat'    1.6693       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66730       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7170E+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=   3050.191     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      276 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.581        205.45        .25023E-03    .62708E-04
   2  Index         2.2433        1.8567        .67535E-02    .11541E-03
   3  Normalizat    1.6694        .34730        .23832E-03   -.28064E-03
   4  Prefactor     .66676        .39097        .40271E-03    .12550E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.5805
  Index      = 2.24329
  Normalizat = 1.66938
  Prefactor  = 0.666757
 **********
 **   18 **HESSE 
 **********

 FCN=   3050.191     FROM HESSE     STATUS=OK            23 CALLS      299 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.581        202.94        .50045E-04   -1.4099    
   2  Index         2.2433        1.8344        .27014E-03   -.58397    
   3  Normalizat    1.6694        .34741        .47665E-04   -.73124    
   4  Prefactor     .66676        .39113        .16108E-04   -1.0484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76307e-09
Minuit parameter uncertainties:
  1  205.174
  2  1.89931
  3  0.347916
  4  0.392755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/615907': 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) = 3050.19098169
delta logL = 0.00137633011946

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  6.458e+01  2.052e+02  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.243e+00  1.899e+00  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.363e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
714    Prefactor:  6.668e-01  3.928e-01  0.000e+00  1.000e+01 ( 1.000e+00)
715        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
716        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
713   Normalization:  1.669e+00  3.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 164.518 43.094

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/615907/cmap_HighResolution_603072001_603676801_4FGL_J1058.0+4305_weekly_bin602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-02', job_status='DONE', photon_flux_upper_limit='2.13e-07', time_completed='2021-07-17 13:07:44.952636', job_id='615907', GAL2='0.67', fit_tolerance='1e-08', EG2='1.67', EG='1.67', time_epoch_completed='1626552464.95', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.38e-03', ts2='0.14', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='602' AND source_name='4FGL J1058.0+4305' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 17 13:07:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 615907: <4FGL_J1058.0+4305_weekly_bin602> in cluster <slac> Done

Job <4FGL_J1058.0+4305_weekly_bin602> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Jul 17 12:53:01 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 17 12:54:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 17 12:54:42 2021
Terminated at Sat Jul 17 13:07:46 2021
Results reported at Sat Jul 17 13:07:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_weekly_bin602 164.518 43.0938 603072001 603676801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.0+4305 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   761.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             304.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            885 sec.

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

