aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J0058.4+3315_weekly_bin280
RA = 14.6101, Dec = 33.2505
tmin = 408326401, tmax = 408931201
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='27816', job_status='RUN', time_executed='2021-07-03 13:40:54.030048', time_epoch_executed='1625344854.03' WHERE source_name='4FGL J0058.4+3315' and cadence='weekly' and bin_id='280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/27816

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/27816/ft1_4FGL_J0058.4+3315_weekly_bin280.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/27816/ft2_4FGL_J0058.4+3315_weekly_bin280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/27816/ft1_4FGL_J0058.4+3315_weekly_bin280.fits outfile=/scratch/kocevski/27816/ft1_filteredMKT_4FGL_J0058.4+3315_weekly_bin280.fits ra=14.6101 dec=33.2505 rad=12.0 tmin=408326401.0 tmax=408931201.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 10.37
user 9.84
sys 0.36

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/27816/ft2_4FGL_J0058.4+3315_weekly_bin280.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/27816/ft2_4FGL_J0058.4+3315_weekly_bin280.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/27816/ft1_filteredMKT_4FGL_J0058.4+3315_weekly_bin280.fits evtable="EVENTS" outfile="/scratch/kocevski/27816/ft1_filtered_4FGL_J0058.4+3315_weekly_bin280.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.68
user 0.39
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/27816/ft1_filtered_4FGL_J0058.4+3315_weekly_bin280.fits" evtable="EVENTS" scfile=/scratch/kocevski/27816/ft2_4FGL_J0058.4+3315_weekly_bin280.fits sctable="SC_DATA" outfile=/scratch/kocevski/27816/ltcube_408326401_408931201_4FGL_J0058.4+3315_weekly_bin280.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/27816/ft2_4FGL_J0058.4+3315_weekly_bin280.fits
.....................!
real 27.71
user 26.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/27816/ft1_filtered_4FGL_J0058.4+3315_weekly_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/27816/ft2_4FGL_J0058.4+3315_weekly_bin280.fits sctable="SC_DATA" expcube=/scratch/kocevski/27816/ltcube_408326401_408931201_4FGL_J0058.4+3315_weekly_bin280.fits outfile=/scratch/kocevski/27816/expmap_408326401_408931201_4FGL_J0058.4+3315_weekly_bin280.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/27816/ltcube_408326401_408931201_4FGL_J0058.4+3315_weekly_bin280.fits
.....................!
real 194.71
user 185.46
sys 4.97

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

Setting source of interest to:
4FGL J0058.4+3315 @ 14.6101 33.2505

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/27816/ft1_filtered_4FGL_J0058.4+3315_weekly_bin280.fits scfile=/scratch/kocevski/27816/ft2_4FGL_J0058.4+3315_weekly_bin280.fits outfile=/scratch/kocevski/27816/cmap_408326401_408931201_4FGL_J0058.4+3315_weekly_bin280.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=14.6101 yref=33.2505 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.64
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/27816/ft1_filtered_4FGL_J0058.4+3315_weekly_bin280.fits scfile=/scratch/kocevski/27816/ft2_4FGL_J0058.4+3315_weekly_bin280.fits outfile=/scratch/kocevski/27816/cmap_HighResolution_408326401_408931201_4FGL_J0058.4+3315_weekly_bin280.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=14.6101 yref=33.2505 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 1.02
user 0.43
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/27816/ft1_filtered_4FGL_J0058.4+3315_weekly_bin280.fits evtable="EVENTS" scfile=/scratch/kocevski/27816/ft2_4FGL_J0058.4+3315_weekly_bin280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/27816/Model_4FGL_J0058.4+3315_weekly_bin280.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/27816/ft1_filtered_4FGL_J0058.4+3315_weekly_bin280.fits.....................!
real 53.07
user 49.08
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/27816/ft1_filtered_4FGL_J0058.4+3315_weekly_bin280.fits', '/scratch/kocevski/27816/ft2_4FGL_J0058.4+3315_weekly_bin280.fits', expMap='/scratch/kocevski/27816/expmap_408326401_408931201_4FGL_J0058.4+3315_weekly_bin280.fits', expCube='/scratch/kocevski/27816/ltcube_408326401_408931201_4FGL_J0058.4+3315_weekly_bin280.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/27816/Model_4FGL_J0058.4+3315_weekly_bin280.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0058.4+3315'

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.596e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/27816/ft1_filtered_4FGL_J0058.4+3315_weekly_bin280.fits
Spacecraft file(s): /scratch/kocevski/27816/ft2_4FGL_J0058.4+3315_weekly_bin280.fits
Exposure map: /scratch/kocevski/27816/expmap_408326401_408931201_4FGL_J0058.4+3315_weekly_bin280.fits
Exposure cube: /scratch/kocevski/27816/ltcube_408326401_408931201_4FGL_J0058.4+3315_weekly_bin280.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/27816/Model_4FGL_J0058.4+3315_weekly_bin280.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) = 4608.06389042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.281       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .92783E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.115       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.704       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.728       1.0000         .10000E-03   10000.    
    14 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.935       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12383E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0579       1.0000         .10000E-03   10000.    
    20 'norm      '    .89595       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.2212       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0656       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83588       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4608.056     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2963 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.278        22.712        .95127E-07    .12394E-04
   2  Prefactor     .10000E-03    5.3408       -.14842E-06** at limit **
   3  Prefactor     .10001E-03    452.33        .67009E-05** at limit **
   4  Prefactor     47.112        32.640        .15083E-06    .27671E-04
   5  Prefactor     .10000E-03    48.899       -.23955E-06** at limit **
   6  norm          .10000E-03    1.3496       -.83990E-07** at limit **
   7  Prefactor     22.707        21.220       -.19400E-06   -.61396E-04
   8  Prefactor     .10000E-03    2.2329       -.25825E-07** at limit **
   9  Prefactor     .10000E-03    5.7779       -.49864E-07** at limit **
  10  Prefactor     .10000E-03    7.2651        .18694E-06** at limit **
  11  Prefactor     .10000E-03    17.168       -.44626E-06** at limit **
  12  Prefactor     .10000E-03    21.924        .74312E-06** at limit **
  13  Prefactor     29.755        44.674       -.10889E-05   -.22039E-04
  14  norm          .10000E-03    .45391       -.22693E-06** at limit **
  15  norm          .10000E-03    .61499       -.18851E-06** at limit **
  16  Prefactor     14.968        41.990        .55380E-05   -.13407E-04
  17  Prefactor     .10000E-03    8.3013        .41736E-05** at limit **
  18  Prefactor     .10000E-03    4.4131       -.22346E-05** at limit **
  19  Prefactor     1.0581        17.282        .26325E-05    .19348E-03
  20  norm          .89595        .80873       -.71937E-08   -.27273E-04
  21  Prefactor     .10000E-03    33.644       -.63558E-06** at limit **
  22  norm          2.2213        .91805        .57641E-09    .11426E-03
  23  Prefactor     .10000E-03    7.4948       -.90956E-07** at limit **
  24  Normalizat    1.0655        .21558       -.78661E-07    .72695E-04
  25  Prefactor     .83596        .13400        .68076E-07    .51865E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.2775
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 47.1123
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.7067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.755
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.9681
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.05808
  norm       = 0.895948
  Prefactor  = 0.0001
  norm       = 2.22125
  Prefactor  = 0.0001
  Normalizat = 1.06547
  Prefactor  = 0.835962
 **********
 **   18 **HESSE 
 **********

 FCN=   4608.056     FROM HESSE     STATUS=OK           431 CALLS     3394 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.278        22.708        .93675E-04   -1.4853    
   2  Prefactor     .10000E-03    5.4011        .15322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    452.08        .41622E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     47.112        32.641        .58416E-04   -1.4334    
   5  Prefactor     .10000E-03    49.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3721        .77013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.707        21.292        .84063E-04   -1.4755    
   8  Prefactor     .10000E-03    2.2376        .99058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7922        .15935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3674        .17860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     29.755        44.704        .73482E-04   -1.4616    
  14  norm          .10000E-03    2.4164        .87634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .89297        .10242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.968        42.236        .10364E-03   -1.4934    
  17  Prefactor     .10000E-03    9.0089        .27274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.0356        .25431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0581        18.195        .47768E-03   -1.5502    
  20  norm          .89595        .86762        .56538E-03   -1.5519    
  21  Prefactor     .10000E-03    33.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.2213        .91916        .40652E-04   -1.5410    
  23  Prefactor     .10000E-03    7.5491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0655        .25309        .26391E-03   -.90868    
  25  Prefactor     .83596        .15944        .18688E-03   -.98416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68037e-10
Minuit parameter uncertainties:
  1  22.7191
  2  1.75699e-05
  3  0.00367391
  4  32.6533
  5  7.16944e-05
  6  5.15964e-06
  7  21.2987
  8  2.5664e-06
  9  8.51654e-06
  10  5.2416e-05
  11  4.08735e-05
  12  5.588e-05
  13  44.7538
  14  3.29136e-05
  15  1.14189e-06
  16  42.3201
  17  0.000151911
  18  2.62075e-05
  19  8.77814
  20  0.867631
  21  8.94258e-05
  22  0.919167
  23  1.12072e-05
  24  0.253378
  25  0.159524
Done.

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

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.000e-04  8.517e-06  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  8.360e-01  1.595e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.065e+00  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 14.610 33.251
Photon Flux Upper Limit: 7.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/27816/likelihoodResults_408326401_408931201_4FGL_J0058.4+3315_weekly_bin280.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) = 4608.0567826
delta logL = -0.000821949140118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4608.0559609
delta logL = -2.52507561527e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10641E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3140       1.0000          .0000       10.000    
     3 'Normalizat'    1.0655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83595       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+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=   4608.056     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10260E-03    3.6528        .16497E-01** at limit **
   2  Index         2.2379        5.7401        .50000        .34793E-04
   3  Normalizat    1.0655        .40964E-02    .26391E-03    .58716E-04
   4  Prefactor     .83596        .26159E-02    .18688E-03    .61991E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102601
  Index      = 2.23789
  Normalizat = 1.06547
  Prefactor  = 0.835962
 **********
 **   18 **HESSE 
 **********

 FCN=   4608.056     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10260E-03    56.890        .16886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2379        7.4510        .50000       -.58527    
   3  Normalizat    1.0655        .16254E-01    .10556E-04   -.90868    
   4  Prefactor     .83596        .10380E-01    .74751E-05   -.98416    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.21402e-08
Minuit parameter uncertainties:
  1  0.0243508
  2  231.402
  3  0.016254
  4  0.0103799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/27816': 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) = 4608.05595986
delta logL = 7.83382347436e-07

Extracting fit parameters...

4FGL J0058.4+3315
   Spectrum: PowerLaw
189    Prefactor:  1.026e-04  2.435e-02  1.000e-04  1.000e+04 ( 1.000e-13)
190        Index:  2.238e+00  2.314e+02  0.000e+00  1.000e+01 (-1.000e+00)
191        Scale:  1.298e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  8.360e-01  1.038e-02  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.065e+00  1.625e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 14.610 33.251

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/27816/cmap_HighResolution_408326401_408931201_4FGL_J0058.4+3315_weekly_bin280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', job_status='DONE', photon_flux_upper_limit='7.50e-08', time_completed='2021-07-03 13:52:21.313109', job_id='27816', GAL2='0.84', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1625345541.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='7.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='280' AND source_name='4FGL J0058.4+3315' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul  3 13:52:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 27816: <4FGL_J0058.4+3315_weekly_bin280> in cluster <slac> Done

Job <4FGL_J0058.4+3315_weekly_bin280> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Jul  3 13:36:45 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  3 13:36:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  3 13:36:47 2021
Terminated at Sat Jul  3 13:52:23 2021
Results reported at Sat Jul  3 13:52:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0058.4+3315_weekly_bin280 14.6101 33.2505 408326401 408931201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0058.4+3315 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   667.04 sec.
    Max Memory :                                 1117 MB
    Average Memory :                             278.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            938 sec.

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

