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


Performing analysis on: 4FGL_J1058.5+8115_monthly_bin170
RA = 164.626, Dec = 81.2547
tmin = 677635201, tmax = 680227201
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='93822', job_status='RUN', time_executed='2022-07-23 01:16:43.540614', time_epoch_executed='1658564203.54' WHERE source_name='4FGL J1058.5+8115' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/93822

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/93822/ft1_4FGL_J1058.5+8115_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/93822/ft2_4FGL_J1058.5+8115_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/93822/ft1_4FGL_J1058.5+8115_monthly_bin170.fits outfile=/scratch/kocevski/93822/ft1_filteredMKT_4FGL_J1058.5+8115_monthly_bin170.fits ra=164.626 dec=81.2547 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.51
user 31.57
sys 0.87

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/93822/ft2_4FGL_J1058.5+8115_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/93822/ft2_4FGL_J1058.5+8115_monthly_bin170.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/93822/ft1_filteredMKT_4FGL_J1058.5+8115_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/93822/ft1_filtered_4FGL_J1058.5+8115_monthly_bin170.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.86
user 0.64
sys 0.18

Number of photons that the gtmktime cut: 9473

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/93822/ft1_filtered_4FGL_J1058.5+8115_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/93822/ft2_4FGL_J1058.5+8115_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/93822/ltcube_677635201_680227201_4FGL_J1058.5+8115_monthly_bin170.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/93822/ft2_4FGL_J1058.5+8115_monthly_bin170.fits
.....................!
real 114.04
user 113.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/93822/ft1_filtered_4FGL_J1058.5+8115_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/93822/ft2_4FGL_J1058.5+8115_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/93822/ltcube_677635201_680227201_4FGL_J1058.5+8115_monthly_bin170.fits outfile=/scratch/kocevski/93822/expmap_677635201_680227201_4FGL_J1058.5+8115_monthly_bin170.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/93822/ltcube_677635201_680227201_4FGL_J1058.5+8115_monthly_bin170.fits
.....................!
real 191.88
user 186.30
sys 5.25

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

Setting source of interest to:
4FGL J1058.5+8115 @ 164.626 81.2547

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/93822/ft1_filtered_4FGL_J1058.5+8115_monthly_bin170.fits scfile=/scratch/kocevski/93822/ft2_4FGL_J1058.5+8115_monthly_bin170.fits outfile=/scratch/kocevski/93822/cmap_677635201_680227201_4FGL_J1058.5+8115_monthly_bin170.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.626 yref=81.2547 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.78
user 0.61
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/93822/ft1_filtered_4FGL_J1058.5+8115_monthly_bin170.fits scfile=/scratch/kocevski/93822/ft2_4FGL_J1058.5+8115_monthly_bin170.fits outfile=/scratch/kocevski/93822/cmap_HighResolution_677635201_680227201_4FGL_J1058.5+8115_monthly_bin170.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.626 yref=81.2547 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.79
user 0.63
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/93822/ft1_filtered_4FGL_J1058.5+8115_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/93822/ft2_4FGL_J1058.5+8115_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/93822/Model_4FGL_J1058.5+8115_monthly_bin170.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/93822/ft1_filtered_4FGL_J1058.5+8115_monthly_bin170.fits.....................!
real 1101.77
user 1098.68
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/93822/ft1_filtered_4FGL_J1058.5+8115_monthly_bin170.fits', '/scratch/kocevski/93822/ft2_4FGL_J1058.5+8115_monthly_bin170.fits', expMap='/scratch/kocevski/93822/expmap_677635201_680227201_4FGL_J1058.5+8115_monthly_bin170.fits', expCube='/scratch/kocevski/93822/ltcube_677635201_680227201_4FGL_J1058.5+8115_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/93822/Model_4FGL_J1058.5+8115_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1058.5+8115'

4FGL J1058.5+8115
   Spectrum: PowerLaw
349    Prefactor:  3.777e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.510e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  1.245e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/93822/ft1_filtered_4FGL_J1058.5+8115_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/93822/ft2_4FGL_J1058.5+8115_monthly_bin170.fits
Exposure map: /scratch/kocevski/93822/expmap_677635201_680227201_4FGL_J1058.5+8115_monthly_bin170.fits
Exposure cube: /scratch/kocevski/93822/ltcube_677635201_680227201_4FGL_J1058.5+8115_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/93822/Model_4FGL_J1058.5+8115_monthly_bin170.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) = 100031.624234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.8113       1.0000         .10000E-03   10000.    
     4 'norm      '    .39626E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9074       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4518       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8316       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23745E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.950       1.0000         .10000E-03   10000.    
    12 'Prefactor '    108.03       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5716       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10821E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6817       1.0000         .10000E-03   10000.    
    16 'norm      '    .41587       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28387E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6264       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3191       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.6144       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.6554       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.7881       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.1026       1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.3630       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .97325       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0296       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   100031.4     FROM MIGRAD    STATUS=CONVERGED    842 CALLS     3776 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .77515        .12406E-07** at limit **
   2  Prefactor     .10000E-03    .57975        .21310E-07** at limit **
   3  norm          5.8112        2.8744        .14846E-07    .55780E-05
   4  norm          .10001E-03    2.1970       -.21503E-05** at limit **
   5  Prefactor     .10000E-03    3.3955        .51766E-08** at limit **
   6  Prefactor     3.9074        1.1858        .25230E-07    .37126E-04
   7  Prefactor     2.4521        4.2235        .15039E-06    .18998E-04
   8  Prefactor     7.8317        2.4706        .44577E-07   -.16271E-03
   9  Prefactor     .10000E-03    .76766        .32705E-06** at limit **
  10  Prefactor     .10000E-03    1.0632        .56280E-07** at limit **
  11  Prefactor     17.960        7.0847       -.14625E-06    .12540E-03
  12  Prefactor     108.03        15.876        .43242E-07    .78975E-05
  13  norm          4.5715        1.4589       -.86984E-07   -.25360E-02
  14  Prefactor     .10000E-03    .29773       -.32907E-06** at limit **
  15  norm          1.6814        .22519       -.34522E-07    .46513E-04
  16  norm          .41612        .71237        .52621E-06    .10593E-02
  17  Prefactor     .10000E-03    .72170       -.76714E-07** at limit **
  18  Prefactor     4.6258        2.1165       -.28819E-06   -.22697E-03
  19  Prefactor     1.3191        .78716        .39449E-07    .10882E-03
  20  Prefactor     9.6151        3.0895        .26364E-06   -.10260E-02
  21  Prefactor     .10000E-03    2.6807        .56850E-07** at limit **
  22  norm          .10000E-03    .28015        .30377E-07** at limit **
  23  norm          1.6554        .74430       -.10464E-08   -.16276E-03
  24  Prefactor     .10000E-03    1.5447        .74152E-08** at limit **
  25  Prefactor     .10000E-03    .99439        .17786E-07** at limit **
  26  Prefactor     .10000E-03    .60580        .29876E-07** at limit **
  27  Prefactor     1.7880        2.6983        .18107E-06   -.49311E-04
  28  Prefactor     .10000E-03    7.0830       -.15333E-06** at limit **
  29  Prefactor     2.0845        14.811        .19552E-05   -.57664E-04
  30  Prefactor     2.3633        6.1481        .25071E-05   -.18799E-04
  31  Normalizat    .97325        .46485E-01   -.11273E-06   -.70208E-03
  32  Prefactor     1.0295        .30102E-01   -.16274E-06   -.16352E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.81119
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 3.90745
  Prefactor  = 2.45212
  Prefactor  = 7.83172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.9597
  Prefactor  = 108.027
  norm       = 4.57152
  Prefactor  = 0.0001
  norm       = 1.68145
  norm       = 0.416121
  Prefactor  = 0.000100005
  Prefactor  = 4.62581
  Prefactor  = 1.31909
  Prefactor  = 9.61512
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.65536
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.78796
  Prefactor  = 0.0001
  Prefactor  = 2.08454
  Prefactor  = 2.36328
  Normalizat = 0.97325
  Prefactor  = 1.02954
 **********
 **   18 **HESSE 
 **********

 FCN=   100031.4     FROM HESSE     STATUS=OK           683 CALLS     4459 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .77661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .58519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.8112        2.8725        .16660E-03   -1.5226    
   4  norm          .10001E-03    7.3158        .58830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.4149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9074        1.1852        .18412E-03   -1.5313    
   7  Prefactor     2.4521        4.2129        .26124E-03   -1.5395    
   8  Prefactor     7.8317        2.4715        .14328E-03   -1.5148    
   9  Prefactor     .10000E-03    1.1186        .74215E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.0823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.960        7.6721        .94535E-04   -1.4860    
  12  Prefactor     108.03        16.139        .38694E-04   -1.3625    
  13  norm          4.5715        1.4948        .17458E-03   -1.5280    
  14  Prefactor     .10000E-03    .69438        .29659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6814        .22027        .48721E-04   -1.5449    
  16  norm          .41612        .65123        .24291E-03   -1.5579    
  17  Prefactor     .10000E-03    .94745        .66961E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6258        1.9141        .18712E-03   -1.5278    
  19  Prefactor     1.3191        .78167        .21075E-03   -1.5478    
  20  Prefactor     9.6151        3.1099        .64620E-03   -1.5088    
  21  Prefactor     .10000E-03    2.6857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .28802        .32695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.6554        .73310        .16854E-03   -1.5451    
  24  Prefactor     .10000E-03    1.5468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.0179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .61152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.7880        2.6870        .31284E-03   -1.5441    
  28  Prefactor     .10000E-03    7.1974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.0845        14.722        .28458E-03   -1.5419    
  30  Prefactor     2.3633        6.3266        .13329E-02   -1.5400    
  31  Normalizat    .97325        .52157E-01    .29232E-03   -.93932    
  32  Prefactor     1.0295        .33879E-01    .19195E-03   -.91751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23845e-09
Minuit parameter uncertainties:
  1  8.63879e-07
  2  1.37577e-06
  3  2.87259
  4  0.000473644
  5  1.42737e-05
  6  1.18521
  7  4.21339
  8  2.47153
  9  3.45027e-05
  10  4.34909e-06
  11  7.67257
  12  16.1393
  13  1.49485
  14  1.61898e-05
  15  0.220266
  16  0.651237
  17  0.000131289
  18  1.9141
  19  0.781674
  20  3.10992
  21  3.23314e-06
  22  1.32532e-06
  23  0.733099
  24  1.35808e-06
  25  2.73173e-06
  26  1.77849e-06
  27  2.68717
  28  2.62052e-05
  29  11.083
  30  6.32842
  31  0.05216
  32  0.0338797
Done.

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

Extracting fit parameters...

4FGL J1058.5+8115
   Spectrum: PowerLaw
349    Prefactor:  1.000e-04  1.313e-04  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  2.510e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  1.245e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  1.030e+00  3.388e-02  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  9.733e-01  5.216e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 164.626 81.255
Photon Flux Upper Limit: 1.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/93822/likelihoodResults_677635201_680227201_4FGL_J1058.5+8115_monthly_bin170.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) = 100031.431274
delta logL = -0.000253112433711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 100029.957224
delta logL = 1.4737962857

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   100030.0     FROM MIGRAD    STATUS=FAILED       104 CALLS      361 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33956E-03    .83620E-02    .34466E-04** at limit **
   2  Index         6.8985        3.1388        .83046E-02    .18966E-03
   3  Normalizat    .95065        .31104E-01    .29531E-03   -.17863E-04
   4  Prefactor     1.0381        .20727E-01    .19125E-03   -.85600E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   100030.0     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      443 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33956E-03    .83620E-02    .28921E-05** at limit **
   2  Index         6.8985        3.1388        .10647E-02    .18966E-03
   3  Normalizat    .95065        .31104E-01    .33015E-04   -.17863E-04
   4  Prefactor     1.0381        .20727E-01    .19278E-04   -.85600E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   100030.0     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      477 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33956E-03    .92801E-02    .13787E-05** at limit **
   2  Index         6.8985        3.2730        .33219E-03    .43807E-05
   3  Normalizat    .95065        .49793E-01    .11812E-04   -.18479E-04
   4  Prefactor     1.0381        .32908E-01    .76500E-05   -.95111E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000339561
  Index      = 6.89845
  Normalizat = 0.950646
  Prefactor  = 1.03809
 **********
 **   18 **HESSE 
 **********

 FCN=   100030.0     FROM HESSE     STATUS=OK            25 CALLS      502 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33956E-03    .43908E-02    .74887E-07   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.8985        2.3810        .13287E-04    .38946    
   3  Normalizat    .95065        .50948E-01    .23625E-05   -.94703    
   4  Prefactor     1.0381        .33724E-01    .15300E-05   -.91470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82437e-10
Minuit parameter uncertainties:
  1  0.00205122
  2  2.50107
  3  0.0509502
  4  0.0337246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/93822': 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) = 100029.957217
delta logL = 1.47380405416

Extracting fit parameters...

4FGL J1058.5+8115
   Spectrum: PowerLaw
349    Prefactor:  3.396e-04  2.051e-03  1.000e-04  1.000e+04 ( 1.000e-13)
350        Index:  6.898e+00  2.501e+00  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  1.245e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  1.038e+00  3.372e-02  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  9.506e-01  5.095e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.12
Ra Dec: 164.626 81.255
Photon Index (Free Index): 6.90 +/- 2.50
Photon Flux (Free Index): 2.10e-08 +/- 1.31e-08
Energy Flux (Free Index): 2.52e-06 +/- 1.63e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/93822/cmap_HighResolution_677635201_680227201_4FGL_J1058.5+8115_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-03', comment='SUCCESS', energy_flux2='2.52e-06', dlogl='1.47e+00', photon_flux2='2.10e-08', job_status='DONE', time_completed='2022-07-23 04:44:30.257871', photon_index_error2='2.50', photon_index2='6.90', ts='-0.00', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.77e-08', energy_flux_error2='1.63e-06', EG='0.97', time_epoch_completed='1658576670.26', return_code='0', job_id='93822', GAL2='1.04', EG2='0.95', return_code2='0', photon_flux_error2='1.31e-08', ts2='3.12', photon_index='2.51' WHERE bin_id='170' AND source_name='4FGL J1058.5+8115' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 04:44:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 93822: <4FGL_J1058.5+8115_monthly_bin170> in cluster <slac> Done

Job <4FGL_J1058.5+8115_monthly_bin170> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jul 23 01:15:33 2022
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 01:15:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 01:15:35 2022
Terminated at Sat Jul 23 04:44:31 2022
Results reported at Sat Jul 23 04:44:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1058.5+8115_monthly_bin170 164.626 81.2547 677635201 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1058.5+8115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   12440.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             467.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12535 sec.
    Turnaround time :                            12538 sec.

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

