aklog: Couldn't determine realm of user:aklog: No credentials cache found  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 18 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 = 17252
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1558.8+5625_weekly_bin715
RA = 239.718, Dec = 56.4268
tmin = 671414401, tmax = 672019201
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='935103', job_status='RUN', time_executed='2022-04-19 02:32:24.478002', time_epoch_executed='1650360744.48' WHERE source_name='4FGL J1558.8+5625' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935103

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935103/ft1_4FGL_J1558.8+5625_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935103/ft2_4FGL_J1558.8+5625_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935103/ft1_4FGL_J1558.8+5625_weekly_bin715.fits outfile=/scratch/kocevski/935103/ft1_filteredMKT_4FGL_J1558.8+5625_weekly_bin715.fits ra=239.718 dec=56.4268 rad=12.0 tmin=671414401.0 tmax=672019201.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.55
user 7.26
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/935103/ft2_4FGL_J1558.8+5625_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935103/ft2_4FGL_J1558.8+5625_weekly_bin715.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/935103/ft1_filteredMKT_4FGL_J1558.8+5625_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/935103/ft1_filtered_4FGL_J1558.8+5625_weekly_bin715.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.53
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 1559

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935103/ft1_filtered_4FGL_J1558.8+5625_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/935103/ft2_4FGL_J1558.8+5625_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/935103/ltcube_671414401_672019201_4FGL_J1558.8+5625_weekly_bin715.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/935103/ft2_4FGL_J1558.8+5625_weekly_bin715.fits
.....................!
real 26.06
user 25.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935103/ft1_filtered_4FGL_J1558.8+5625_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/935103/ft2_4FGL_J1558.8+5625_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/935103/ltcube_671414401_672019201_4FGL_J1558.8+5625_weekly_bin715.fits outfile=/scratch/kocevski/935103/expmap_671414401_672019201_4FGL_J1558.8+5625_weekly_bin715.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/935103/ltcube_671414401_672019201_4FGL_J1558.8+5625_weekly_bin715.fits
.....................!
real 195.28
user 188.92
sys 5.88

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

Setting source of interest to:
4FGL J1558.8+5625 @ 239.718 56.4268

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/935103/ft1_filtered_4FGL_J1558.8+5625_weekly_bin715.fits scfile=/scratch/kocevski/935103/ft2_4FGL_J1558.8+5625_weekly_bin715.fits outfile=/scratch/kocevski/935103/cmap_671414401_672019201_4FGL_J1558.8+5625_weekly_bin715.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=239.718 yref=56.4268 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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935103/ft1_filtered_4FGL_J1558.8+5625_weekly_bin715.fits scfile=/scratch/kocevski/935103/ft2_4FGL_J1558.8+5625_weekly_bin715.fits outfile=/scratch/kocevski/935103/cmap_HighResolution_671414401_672019201_4FGL_J1558.8+5625_weekly_bin715.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=239.718 yref=56.4268 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.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/935103/ft1_filtered_4FGL_J1558.8+5625_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/935103/ft2_4FGL_J1558.8+5625_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/935103/Model_4FGL_J1558.8+5625_weekly_bin715.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/935103/ft1_filtered_4FGL_J1558.8+5625_weekly_bin715.fits.....................!
real 115.53
user 114.00
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/935103/ft1_filtered_4FGL_J1558.8+5625_weekly_bin715.fits', '/scratch/kocevski/935103/ft2_4FGL_J1558.8+5625_weekly_bin715.fits', expMap='/scratch/kocevski/935103/expmap_671414401_672019201_4FGL_J1558.8+5625_weekly_bin715.fits', expCube='/scratch/kocevski/935103/ltcube_671414401_672019201_4FGL_J1558.8+5625_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/935103/Model_4FGL_J1558.8+5625_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1558.8+5625'

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  3.885e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  2.116e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
320        Scale:  1.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/935103/ft1_filtered_4FGL_J1558.8+5625_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/935103/ft2_4FGL_J1558.8+5625_weekly_bin715.fits
Exposure map: /scratch/kocevski/935103/expmap_671414401_672019201_4FGL_J1558.8+5625_weekly_bin715.fits
Exposure cube: /scratch/kocevski/935103/ltcube_671414401_672019201_4FGL_J1558.8+5625_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/935103/Model_4FGL_J1558.8+5625_weekly_bin715.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) = 16886.6639801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.313       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9833       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1019       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .77008       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2038       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2229       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8329       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8980       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8237       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16151       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10310E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.2714       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0668       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    34.613       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22635       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.232       1.0000         .10000E-03   10000.    
    22 'norm      '    3.6860       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1487       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.9117       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .36829       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11599       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.4240       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .89222       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0860       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16886.64     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     4438 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.313        11.518       -.12312E-06   -.92911E-05
   2  Prefactor     5.9852        10.396       -.10245E-06    .13857E-04
   3  Prefactor     .10000E-03    4.5252       -.25440E-06** at limit **
   4  norm          1.1020        .65686       -.44523E-07    .31865E-04
   5  Prefactor     .77141        3.5986        .11327E-06   -.86248E-04
   6  Prefactor     3.2052        4.6740       -.21751E-06   -.39717E-04
   7  Prefactor     8.2233        4.6138       -.15988E-06    .10919E-03
   8  Prefactor     4.8378        10.146        .19436E-06    .42235E-04
   9  Prefactor     8.8989        12.514        .22211E-06    .70406E-04
  10  norm          1.8244        1.3128        .43235E-07    .46965E-03
  11  Prefactor     .14321E-03    41.796       -.27817E-05** at limit **
  12  Prefactor     .10000E-03    1.7356       -.12451E-06** at limit **
  13  norm          .10000E-03    1.8664       -.29494E-06** at limit **
  14  Prefactor     9.2576        18.104        .78253E-06    .42354E-04
  15  Prefactor     .10000E-03    17.211       -.12257E-05** at limit **
  16  Prefactor     5.0677        3.3171        .10277E-05   -.52698E-03
  17  Prefactor     .10000E-03    17.386        .40319E-06** at limit **
  18  Prefactor     .10000E-03    1.3819       -.36070E-06** at limit **
  19  norm          34.605        12.659        .81932E-08    .20955E-03
  20  Prefactor     .21810        .89351       -.35365E-06   -.21759E-04
  21  Prefactor     12.229        4.4417        .11249E-06    .10298E-03
  22  norm          3.6857        4.1277       -.23960E-07    .15582E-04
  23  Prefactor     3.1498        2.0276        .16473E-08    .21311E-03
  24  Prefactor     4.9126        4.7744       -.67106E-07    .46609E-04
  25  Prefactor     .37837        30.306       -.62226E-05   -.13825E-03
  26  Prefactor     .12045        8.9805        .29064E-05   -.27852E-03
  27  Prefactor     1.4237        1.0340        .19590E-06   -.62362E-03
  28  Normalizat    .89209        .10923        .10210E-05    .48505E-03
  29  Prefactor     1.0860        .10786        .14387E-06    .55441E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3132
  Prefactor  = 5.98523
  Prefactor  = 0.0001
  norm       = 1.10202
  Prefactor  = 0.771411
  Prefactor  = 3.20517
  Prefactor  = 8.22333
  Prefactor  = 4.83782
  Prefactor  = 8.89888
  norm       = 1.82437
  Prefactor  = 0.000143208
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.25759
  Prefactor  = 0.0001
  Prefactor  = 5.06766
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 34.6052
  Prefactor  = 0.2181
  Prefactor  = 12.229
  norm       = 3.68566
  Prefactor  = 3.14976
  Prefactor  = 4.91262
  Prefactor  = 0.378371
  Prefactor  = 0.120451
  Prefactor  = 1.42368
  Normalizat = 0.892085
  Prefactor  = 1.086
 **********
 **   18 **HESSE 
 **********

 FCN=   16886.64     FROM HESSE     STATUS=OK           593 CALLS     5031 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.313        11.521        .11911E-03   -1.5035    
   2  Prefactor     5.9852        10.392        .16416E-03   -1.5219    
   3  Prefactor     .10000E-03    4.5357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1020        .65972        .79015E-04   -1.5498    
   5  Prefactor     .77141        3.4691        .46001E-03   -1.5532    
   6  Prefactor     3.2052        4.6695        .22636E-03   -1.5350    
   7  Prefactor     8.2233        4.5612        .13981E-03   -1.5134    
   8  Prefactor     4.8378        10.090        .18299E-03   -1.5268    
   9  Prefactor     8.8989        12.464        .13437E-03   -1.5111    
  10  norm          1.8244        1.3036        .11956E-03   -1.5438    
  11  Prefactor     .14321E-03    33.265        .19888       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.299        .31886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.3200        .32406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.2576        17.935        .13162E-03   -1.5099    
  15  Prefactor     .10000E-03    17.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0677        3.2187        .17863E-03   -1.5258    
  17  Prefactor     .10000E-03    17.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.9537        .29315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          34.605        12.588        .68115E-04   -1.4531    
  20  Prefactor     .21810        6.7515        .22909E-02   -1.5615    
  21  Prefactor     12.229        4.4423        .57269E-03   -1.5008    
  22  norm          3.6857        4.1149        .21037E-03   -1.5324    
  23  Prefactor     3.1498        2.0126        .13857E-03   -1.5353    
  24  Prefactor     4.9126        4.7698        .18148E-03   -1.5265    
  25  Prefactor     .37837        35.454        .47174E-02   -1.5585    
  26  Prefactor     .12045        2.8503        .57471E-01   -1.5639    
  27  Prefactor     1.4237        4.0541        .18117E-02   -1.5469    
  28  Normalizat    .89209        .12770        .24735E-03   -.96739    
  29  Prefactor     1.0860        .12662        .23481E-03   -.89915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35256e-07
Minuit parameter uncertainties:
  1  11.5235
  2  10.3954
  3  2.21758e-06
  4  0.659722
  5  3.27185
  6  4.67004
  7  4.56135
  8  10.0932
  9  12.4676
  10  1.30359
  11  0.0758665
  12  2.13134e-05
  13  9.29813e-05
  14  17.9458
  15  0.000144736
  16  3.21879
  17  0.00022211
  18  3.02837e-05
  19  12.5885
  20  2.42669
  21  4.44238
  22  4.11521
  23  2.01266
  24  4.77015
  25  7.32877
  26  1.17144
  27  4.05483
  28  0.12774
  29  0.126659
Done.

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

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.000e-04  2.131e-05  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  2.116e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
320        Scale:  1.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  1.086e+00  1.267e-01  0.000e+00  1.000e+01 ( 1.000e+00)
702        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
703        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
700   Normalization:  8.921e-01  1.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 239.718 56.427
Photon Flux Upper Limit: 2.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935103/likelihoodResults_671414401_672019201_4FGL_J1558.8+5625_weekly_bin715.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) = 16886.6357828
delta logL = -0.000377594802558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16886.6354047
delta logL = 4.8056608648e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24962E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2337       1.0000          .0000       10.000    
     3 'Normalizat'    .89199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0861       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7040E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16886.64     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      244 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10083E-03    .21078        .73987E-01** at limit **
   2  Index         2.2429        1.7788        .50000       -.99993E-04
   3  Normalizat    .89208        .10877E-02    .44799E-01   -.88389E-03
   4  Prefactor     1.0860        .11335E-02    .38140E-01   -.64510E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100831
  Index      = 2.24293
  Normalizat = 0.892083
  Prefactor  = 1.086
 **********
 **   18 **HESSE 
 **********

 FCN=   16886.64     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      283 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10083E-03    .44322        .49110E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2429        2.0338        .50000       -.58406    
   3  Normalizat    .89208        .12565E-02    .24735E-03   -.96739    
   4  Prefactor     1.0860        .13098E-02    .23481E-03   -.89915    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48043e-09
Minuit parameter uncertainties:
  1  0.00121349
  2  2.12444
  3  0.00125646
  4  0.00130981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935103': 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) = 16886.6354023
delta logL = 2.86428985419e-06

Extracting fit parameters...

4FGL J1558.8+5625
   Spectrum: PowerLaw
318    Prefactor:  1.008e-04  1.213e-03  1.000e-04  1.000e+04 ( 1.000e-13)
319        Index:  2.243e+00  2.124e+00  0.000e+00  1.000e+01 (-1.000e+00)
320        Scale:  1.645e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
701    Prefactor:  1.086e+00  1.310e-03  0.000e+00  1.000e+01 ( 1.000e+00)
702        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
703        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
700   Normalization:  8.921e-01  1.256e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 239.718 56.427

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/935103/cmap_HighResolution_671414401_672019201_4FGL_J1558.8+5625_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-03', job_status='DONE', photon_flux_upper_limit='2.61e-08', time_completed='2022-04-19 03:10:33.840528', job_id='935103', GAL2='1.09', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1650363033.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.86e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='715' AND source_name='4FGL J1558.8+5625' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:10:33 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 931333: <4FGL_J1558.8+5625_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1558.8+5625_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:07:17 2022
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:17:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:17:48 2022
Terminated at Tue Apr 19 02:57:35 2022
Results reported at Tue Apr 19 02:57:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1558.8+5625_weekly_bin715 239.718 56.4268 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1558.8+5625 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2295.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             319.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2387 sec.
    Turnaround time :                            10218 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 935103: <4FGL_J1558.8+5625_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1558.8+5625_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:18:34 2022
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:31:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:31:59 2022
Terminated at Tue Apr 19 03:10:34 2022
Results reported at Tue Apr 19 03:10:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1558.8+5625_weekly_bin715 239.718 56.4268 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1558.8+5625 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2288.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             340.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2315 sec.
    Turnaround time :                            10320 sec.

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

