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


Performing analysis on: 4FGL_J1058.0+4305_weekly_bin631
RA = 164.518, Dec = 43.0938
tmin = 620611201, tmax = 621216001
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='615989', job_status='RUN', time_executed='2021-07-17 12:55:35.203240', time_epoch_executed='1626551735.2' WHERE source_name='4FGL J1058.0+4305' and cadence='weekly' and bin_id='631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/615989

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/615989/ft1_4FGL_J1058.0+4305_weekly_bin631.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/615989/ft2_4FGL_J1058.0+4305_weekly_bin631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/615989/ft1_4FGL_J1058.0+4305_weekly_bin631.fits outfile=/scratch/kocevski/615989/ft1_filteredMKT_4FGL_J1058.0+4305_weekly_bin631.fits ra=164.518 dec=43.0938 rad=12.0 tmin=620611201.0 tmax=621216001.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 7.34
user 7.03
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/615989/ft2_4FGL_J1058.0+4305_weekly_bin631.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/615989/ft1_filteredMKT_4FGL_J1058.0+4305_weekly_bin631.fits evtable="EVENTS" outfile="/scratch/kocevski/615989/ft1_filtered_4FGL_J1058.0+4305_weekly_bin631.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.39
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/615989/ft1_filtered_4FGL_J1058.0+4305_weekly_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/615989/ft2_4FGL_J1058.0+4305_weekly_bin631.fits sctable="SC_DATA" expcube=/scratch/kocevski/615989/ltcube_620611201_621216001_4FGL_J1058.0+4305_weekly_bin631.fits outfile=/scratch/kocevski/615989/expmap_620611201_621216001_4FGL_J1058.0+4305_weekly_bin631.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/615989/ltcube_620611201_621216001_4FGL_J1058.0+4305_weekly_bin631.fits
.....................!
real 193.87
user 187.19
sys 6.27

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/615989/ft1_filtered_4FGL_J1058.0+4305_weekly_bin631.fits scfile=/scratch/kocevski/615989/ft2_4FGL_J1058.0+4305_weekly_bin631.fits outfile=/scratch/kocevski/615989/cmap_620611201_621216001_4FGL_J1058.0+4305_weekly_bin631.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.59
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/615989/ft1_filtered_4FGL_J1058.0+4305_weekly_bin631.fits scfile=/scratch/kocevski/615989/ft2_4FGL_J1058.0+4305_weekly_bin631.fits outfile=/scratch/kocevski/615989/cmap_HighResolution_620611201_621216001_4FGL_J1058.0+4305_weekly_bin631.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.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/615989/ft1_filtered_4FGL_J1058.0+4305_weekly_bin631.fits', '/scratch/kocevski/615989/ft2_4FGL_J1058.0+4305_weekly_bin631.fits', expMap='/scratch/kocevski/615989/expmap_620611201_621216001_4FGL_J1058.0+4305_weekly_bin631.fits', expCube='/scratch/kocevski/615989/ltcube_620611201_621216001_4FGL_J1058.0+4305_weekly_bin631.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/615989/Model_4FGL_J1058.0+4305_weekly_bin631.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/615989/ft1_filtered_4FGL_J1058.0+4305_weekly_bin631.fits
Spacecraft file(s): /scratch/kocevski/615989/ft2_4FGL_J1058.0+4305_weekly_bin631.fits
Exposure map: /scratch/kocevski/615989/expmap_620611201_621216001_4FGL_J1058.0+4305_weekly_bin631.fits
Exposure cube: /scratch/kocevski/615989/ltcube_620611201_621216001_4FGL_J1058.0+4305_weekly_bin631.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/615989/Model_4FGL_J1058.0+4305_weekly_bin631.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) = 3402.81910125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5612       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11380E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.9343       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.808       1.0000         .10000E-03   10000.    
     7 'Prefactor '    58.999       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10651E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.475       1.0000         .10000E-03   10000.    
    15 'norm      '    .48598       1.0000         .10000E-03   10000.    
    16 'Prefactor '    74.983       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.391       1.0000         .10000E-03   10000.    
    19 'norm      '    .22841E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8995       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    11.843       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.5292       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .33654       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .89702       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .77290       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=   3402.749     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4363 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5619        9.0644        .31492E-05   -.27890E-03
   2  Prefactor     .10000E-03    9.4418        .28730E-06** at limit **
   3  Prefactor     .10000E-03    19.411        .23714E-05** at limit **
   4  norm          9.9346        3.1952        .19110E-07   -.49640E-04
   5  Prefactor     .10000E-03    3.0191        .37671E-07** at limit **
   6  norm          12.812        13.084        .48838E-06   -.52861E-04
   7  Prefactor     59.001        41.521        .51356E-06    .13322E-04
   8  Prefactor     .10000E-03    2.2703       -.10723E-07** at limit **
   9  Prefactor     .10000E-03    3.3820        .85807E-07** at limit **
  10  Prefactor     .10000E-03    20.582        .20701E-05** at limit **
  11  Prefactor     .10000E-03    26.948       -.22562E-05** at limit **
  12  Prefactor     .10000E-03    47.667        .34566E-05** at limit **
  13  Prefactor     .10000E-03    67.525        .12221E-05** at limit **
  14  Prefactor     32.487        57.274        .31542E-05    .44390E-04
  15  norm          .48600        .35257       -.57699E-07   -.36766E-03
  16  Prefactor     75.030        36.530        .35845E-05    .51298E-03
  17  Prefactor     .10000E-03    24.426        .47597E-06** at limit **
  18  Prefactor     34.379        89.926       -.24485E-05   -.29061E-04
  19  norm          .10002E-03    74.859       -.75427E-06** at limit **
  20  norm          .10000E-03    37.042       -.15444E-05** at limit **
  21  Prefactor     2.8998        4.4172        .31731E-05   -.61831E-03
  22  Prefactor     .10000E-03    49.004        .30405E-05** at limit **
  23  norm          11.843        6.4432       -.69374E-06   -.53439E-04
  24  Prefactor     .10000E-03    7.4593       -.34545E-06** at limit **
  25  Prefactor     .10000E-03    39.384       -.43437E-06** at limit **
  26  norm          3.5290        2.0480        .46621E-07    .30537E-04
  27  norm          .10000E-03    25.482       -.19451E-05** at limit **
  28  Prefactor     .35257        4.3899       -.38842E-06    .12962E-03
  29  Prefactor     .10000E-03    42.116        .80893E-06** at limit **
  30  Prefactor     .10000E-03    15.197       -.16277E-05** at limit **
  31  Normalizat    .89685        .20020       -.21294E-05    .21889E-04
  32  Prefactor     .77307        .25266        .21554E-06   -.64364E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.56189
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.93457
  Prefactor  = 0.0001
  norm       = 12.8122
  Prefactor  = 59.0015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 32.4866
  norm       = 0.485996
  Prefactor  = 75.0297
  Prefactor  = 0.000100001
  Prefactor  = 34.3789
  norm       = 0.000100017
  norm       = 0.0001
  Prefactor  = 2.89983
  Prefactor  = 0.000100001
  norm       = 11.8428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.52904
  norm       = 0.0001
  Prefactor  = 0.352569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.89685
  Prefactor  = 0.773075
 **********
 **   18 **HESSE 
 **********

 FCN=   3402.749     FROM HESSE     STATUS=OK           649 CALLS     5012 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5619        9.1406        .85182E-03   -1.5236    
   2  Prefactor     .10000E-03    9.8412        .34974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.9346        3.1962        .57013E-04   -1.5077    
   5  Prefactor     .10000E-03    3.0565        .98931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.812        13.092        .11193E-03   -1.4992    
   7  Prefactor     59.001        41.505        .52232E-04   -1.4170    
   8  Prefactor     .10000E-03    2.3006        .85757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3918        .10469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    47.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    67.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.487        57.545        .70315E-04   -1.4567    
  15  norm          .48600        .35760        .28351E-04   -1.5569    
  16  Prefactor     75.030        38.270        .23184E-03   -1.3973    
  17  Prefactor     .10000E-03    24.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.379        90.112        .68333E-04   -1.4535    
  19  norm          .10002E-03    77.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    37.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8998        4.5451        .72530E-03   -1.5367    
  22  Prefactor     .10000E-03    49.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.843        6.4488        .10057E-03   -1.5020    
  24  Prefactor     .10000E-03    7.5027        .15564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    39.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.5290        2.0458        .61036E-04   -1.5332    
  27  norm          .10000E-03    26.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .35257        9.1093        .23602E-02   -1.5589    
  29  Prefactor     .10000E-03    42.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    15.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .89685        .23896        .21504E-03   -.96571    
  32  Prefactor     .77307        .30193        .29711E-03   -1.0073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69481e-09
Minuit parameter uncertainties:
  1  9.14293
  2  3.87522e-05
  3  0.000253644
  4  3.19628
  5  4.08866e-06
  6  13.0948
  7  41.5257
  8  2.53024e-07
  9  3.36476e-06
  10  0.000205472
  11  0.000266474
  12  0.000426279
  13  0.000239556
  14  57.6436
  15  0.357599
  16  38.2826
  17  0.000273736
  18  90.4721
  19  0.00232727
  20  0.000201246
  21  4.54565
  22  0.000405937
  23  6.44917
  24  4.04923e-05
  25  5.49331e-05
  26  2.04583
  27  0.000153212
  28  3.58433
  29  0.000133348
  30  0.000130836
  31  0.239239
  32  0.302577
Done.

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

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  2.396e-04  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:  7.731e-01  3.026e-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:  8.968e-01  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.518 43.094
Photon Flux Upper Limit: 8.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/615989/likelihoodResults_620611201_621216001_4FGL_J1058.0+4305_weekly_bin631.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) = 3402.74945952
delta logL = -7.03645655449e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3402.74939207
delta logL = -2.91451897283e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27884E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8295       1.0000          .0000       10.000    
     3 'Normalizat'    .89685       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77308       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=   3402.749     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      275 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11867E-03    11.759        .21420E-01** at limit **
   2  Index         2.5410        8.6384        .50000        .54447E-05
   3  Normalizat    .89685        .22189E-02    .21504E-03    .13191E-04
   4  Prefactor     .77308        .28785E-02    .29711E-03    .74806E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000118668
  Index      = 2.541
  Normalizat = 0.896848
  Prefactor  = 0.773077
 **********
 **   18 **HESSE 
 **********

 FCN=   3402.749     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11867E-03    257.62        .42181E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5410        5.6561        .50000       -.51416    
   3  Normalizat    .89685        .10448E-01    .86016E-05   -.96571    
   4  Prefactor     .77308        .13554E-01    .11884E-04   -1.0073    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.31384e-08
Minuit parameter uncertainties:
  1  0.139301
  2  849.459
  3  0.0104481
  4  0.0135541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/615989': 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) = 3402.74938949
delta logL = -3.38260633725e-07

Extracting fit parameters...

4FGL J1058.0+4305
   Spectrum: PowerLaw
355    Prefactor:  1.187e-04  1.393e-01  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.541e+00  8.495e+02  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:  7.731e-01  1.355e-02  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:  8.968e-01  1.045e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/615989/cmap_HighResolution_620611201_621216001_4FGL_J1058.0+4305_weekly_bin631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.37e-03', job_status='DONE', photon_flux_upper_limit='8.28e-08', time_completed='2021-07-17 13:08:57.443399', job_id='615989', GAL2='0.77', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1626552537.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='-3.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='631' AND source_name='4FGL J1058.0+4305' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 17 13:08:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 615989: <4FGL_J1058.0+4305_weekly_bin631> in cluster <slac> Done

Job <4FGL_J1058.0+4305_weekly_bin631> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Jul 17 12:53:14 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 17 12:55:24 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:55:24 2021
Terminated at Sat Jul 17 13:08:58 2021
Results reported at Sat Jul 17 13:08:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.0+4305_weekly_bin631 164.518 43.0938 620611201 621216001 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 :                                   784.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             325.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            944 sec.

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

