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 76 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1158.5+4824_daily_bin1754
RA = 179.637, Dec = 48.4161
tmin = 693964801, tmax = 694224001
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='641946', job_status='RUN', time_executed='2023-01-01 01:07:06.499578', time_epoch_executed='1672564026.5' WHERE source_name='4FGL J1158.5+4824' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641946

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641946/ft1_4FGL_J1158.5+4824_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641946/ft2_4FGL_J1158.5+4824_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641946/ft1_4FGL_J1158.5+4824_daily_bin1754.fits outfile=/scratch/kocevski/641946/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin1754.fits ra=179.637 dec=48.4161 rad=12.0 tmin=693964801.0 tmax=694224001.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 3.91
user 3.67
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/641946/ft2_4FGL_J1158.5+4824_daily_bin1754.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641946/ft2_4FGL_J1158.5+4824_daily_bin1754.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/641946/ft1_filteredMKT_4FGL_J1158.5+4824_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/641946/ft1_filtered_4FGL_J1158.5+4824_daily_bin1754.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.50
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 383

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641946/ft1_filtered_4FGL_J1158.5+4824_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/641946/ft2_4FGL_J1158.5+4824_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/641946/ltcube_693964801_694224001_4FGL_J1158.5+4824_daily_bin1754.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/641946/ft2_4FGL_J1158.5+4824_daily_bin1754.fits
.....................!
real 14.31
user 13.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641946/ft1_filtered_4FGL_J1158.5+4824_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/641946/ft2_4FGL_J1158.5+4824_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/641946/ltcube_693964801_694224001_4FGL_J1158.5+4824_daily_bin1754.fits outfile=/scratch/kocevski/641946/expmap_693964801_694224001_4FGL_J1158.5+4824_daily_bin1754.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/641946/ltcube_693964801_694224001_4FGL_J1158.5+4824_daily_bin1754.fits
.....................!
real 191.25
user 185.52
sys 5.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 213 point sources and 0 extended sources

Setting source of interest to:
4FGL J1158.5+4824 @ 179.637 48.4161

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/641946/ft1_filtered_4FGL_J1158.5+4824_daily_bin1754.fits scfile=/scratch/kocevski/641946/ft2_4FGL_J1158.5+4824_daily_bin1754.fits outfile=/scratch/kocevski/641946/cmap_693964801_694224001_4FGL_J1158.5+4824_daily_bin1754.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=179.637 yref=48.4161 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641946/ft1_filtered_4FGL_J1158.5+4824_daily_bin1754.fits scfile=/scratch/kocevski/641946/ft2_4FGL_J1158.5+4824_daily_bin1754.fits outfile=/scratch/kocevski/641946/cmap_HighResolution_693964801_694224001_4FGL_J1158.5+4824_daily_bin1754.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=179.637 yref=48.4161 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.37
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641946/ft1_filtered_4FGL_J1158.5+4824_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/641946/ft2_4FGL_J1158.5+4824_daily_bin1754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641946/Model_4FGL_J1158.5+4824_daily_bin1754.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/641946/ft1_filtered_4FGL_J1158.5+4824_daily_bin1754.fits.....................!
real 40.05
user 38.72
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/641946/ft1_filtered_4FGL_J1158.5+4824_daily_bin1754.fits', '/scratch/kocevski/641946/ft2_4FGL_J1158.5+4824_daily_bin1754.fits', expMap='/scratch/kocevski/641946/expmap_693964801_694224001_4FGL_J1158.5+4824_daily_bin1754.fits', expCube='/scratch/kocevski/641946/ltcube_693964801_694224001_4FGL_J1158.5+4824_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/641946/Model_4FGL_J1158.5+4824_daily_bin1754.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1158.5+4824'

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  5.005e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/641946/ft1_filtered_4FGL_J1158.5+4824_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/641946/ft2_4FGL_J1158.5+4824_daily_bin1754.fits
Exposure map: /scratch/kocevski/641946/expmap_693964801_694224001_4FGL_J1158.5+4824_daily_bin1754.fits
Exposure cube: /scratch/kocevski/641946/ltcube_693964801_694224001_4FGL_J1158.5+4824_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/641946/Model_4FGL_J1158.5+4824_daily_bin1754.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) = 4200.21213812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44643E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .62255E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .47730E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .39371E-04   1.0000          .0000       .10000E+07
     5 'norm      '    78.758       1.0000          .0000       .10000E+07
     6 'Prefactor '    23.390       1.0000          .0000       .10000E+07
     7 'Prefactor '    .87138E-02   1.0000          .0000       .10000E+07
     8 'norm      '    1.2493       1.0000          .0000       .10000E+07
     9 'Prefactor '    .41821E-03   1.0000          .0000       .10000E+07
    10 'norm      '    1.3101       1.0000          .0000       .10000E+07
    11 'norm      '    3.0181       1.0000          .0000       .10000E+07
    12 'Prefactor '    .40840E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    18.803       1.0000          .0000       .10000E+07
    14 'norm      '    1.2167       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10303E-06   1.0000          .0000       .10000E+07
    16 'norm      '    .78157       1.0000          .0000       .10000E+07
    17 'norm      '    8.2509       1.0000          .0000       .10000E+07
    18 'Prefactor '    .21410E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .24183E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .42725E-02   1.0000          .0000       .10000E+07
    21 'norm      '    3.7321       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.2001       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .60839       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4200.115     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     1515 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96931E-05    80.942       -.28528E-06** at limit **
   2  Prefactor     .31898E-04    32.894        .16567E-06** at limit **
   3  Prefactor     .75323E-06    1.3889       -.62898E-07** at limit **
   4  Prefactor     .10641E-05    35.258       -.19045E-06** at limit **
   5  norm          80.546        63.779       -.65960E-06   -.44228E-01
   6  Prefactor     23.284        14.084        .21500E-06    .42215E-03
   7  Prefactor     .27756E-09    27.237        .60697E-06** at limit **
   8  norm          1.2492        2.4397       -.12524E-06   -.46178E-03
   9  Prefactor     .55511E-10    13.783       -.18670E-07** at limit **
  10  norm          1.3118        .94555       -.49285E-07   -.13155E-02
  11  norm          2.9602        10.082       -.18615E-06   -.13773E-04
  12  Prefactor      .0000        1.4119       -.27564E-07** at limit **
  13  Prefactor     18.257        3.4154        .34294E-07   -.32530E-02
  14  norm          1.2086        5.0714       -.13358E-06   -.10833E-03
  15  Prefactor      .0000        5.8962        .54616E-06** at limit **
  16  norm          .78040        2.3763       -.68927E-07   -.37063E-03
  17  norm          8.2398        6.6075       -.64802E-07   -.25934E-03
  18  Prefactor     .27756E-09    11.532        .47552E-06** at limit **
  19  Prefactor      .0000        3.1768        .22533E-06** at limit **
  20  Prefactor     .25091E-04    30.011        .79951E-06** at limit **
  21  norm          3.7319        2.1121       -.23448E-07   -.48104E-03
  22  Normalizat    1.2005        .21530       -.88709E-05   -.49366E-04
  23  Prefactor     .60838        .25344        .13073E-04   -.96553E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.69314e-06
  Prefactor  = 3.18978e-05
  Prefactor  = 7.53231e-07
  Prefactor  = 1.06415e-06
  norm       = 80.546
  Prefactor  = 23.2837
  Prefactor  = 2.77556e-10
  norm       = 1.24922
  Prefactor  = 5.55112e-11
  norm       = 1.31176
  norm       = 2.9602
  Prefactor  = 0
  Prefactor  = 18.257
  norm       = 1.20861
  Prefactor  = 0
  norm       = 0.780401
  norm       = 8.23983
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 2.5091e-05
  norm       = 3.73188
  Normalizat = 1.20047
  Prefactor  = 0.608375
 **********
 **   18 **HESSE 
 **********

 FCN=   4200.115     FROM HESSE     STATUS=OK           412 CALLS     1927 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96931E-05    88.288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .31898E-04    57.309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .75323E-06    185.51        .15632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10641E-05    36.061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          80.546        66.566        .11269E-03   -1.5528    
   6  Prefactor     23.284        14.057        .20682E-03   -1.5611    
   7  Prefactor     .27756E-09    27.244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2492        2.4967        .10004E-02   -1.5686    
   9  Prefactor     .55511E-10    13.857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3118        .95900        .96306E-03   -1.5685    
  11  norm          2.9602        10.288        .58392E-03   -1.5674    
  12  Prefactor      .0000        1.4052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.257        33.490        .23070E-03   -1.5623    
  14  norm          1.2086        5.1759        .10234E-02   -1.5686    
  15  Prefactor      .0000        5.9035        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .78040        2.3825        .54319E-03   -1.5690    
  17  norm          8.2398        6.6030        .34878E-03   -1.5651    
  18  Prefactor     .27756E-09    11.553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        3.1953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .25091E-04    49.329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.7319        2.1102        .52243E-03   -1.5669    
  22  Normalizat    1.2005        .18986        .34890E-01   -.86588    
  23  Prefactor     .60838        .22517        .73558E-01   -1.0723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37551e-06
Minuit parameter uncertainties:
  1  0.0585084
  2  0.0855117
  3  0.0236426
  4  0.0123895
  5  66.5668
  6  14.0567
  7  0.000181064
  8  2.49669
  9  6.65407e-05
  10  0.958996
  11  10.2878
  12  7.80664e-07
  13  33.4901
  14  5.00226
  15  2.47354e-05
  16  2.38253
  17  6.60296
  18  0.000111839
  19  5.91316e-06
  20  0.0703626
  21  2.11022
  22  0.189964
  23  0.225501
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  0.000e+00  2.474e-05  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  2.443e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  6.084e-01  2.255e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.200e+00  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 179.637 48.416
Photon Flux Upper Limit: 5.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641946/likelihoodResults_693964801_694224001_4FGL_J1158.5+4824_daily_bin1754.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) = 4200.13478756
delta logL = -0.0193484220117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4200.11543938
delta logL = -2.43828253588e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47418E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.6813       1.0000          .0000       10.000    
     3 'Normalizat'    1.2004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60845       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4200.115     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      226 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    6.0294       -.99679E-07** at limit **
   2  Index         1.2601        2.5750       -.11684E-04   -.18746E-10
   3  Normalizat    1.2005        .20688        .10596E-04   -.13644E-03
   4  Prefactor     .60837        .24768       -.56694E-06   -.15360E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 1.26012
  Normalizat = 1.20048
  Prefactor  = 0.608373
 **********
 **   18 **HESSE 
 **********

 FCN=   4200.115     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      261 TOTAL
                     EDM=   .89E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .37168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2601        5.3550        .50000       -.84501    
   3  Normalizat    1.2005        .11350E-02    .34882E-01   -.86588    
   4  Prefactor     .60837        .13688E-02    .73558E-01   -1.0723    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.90286e-14
Minuit parameter uncertainties:
  1  6.95922e-06
  2  43333.5
  3  0.00113503
  4  0.00136882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641946': 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) = 4200.11543914
delta logL = -4.72937244922e-11

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  5.551e-11  6.959e-06  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  1.260e+00  4.333e+04  0.000e+00  1.000e+01 (-1.000e+00)
351        Scale:  9.466e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  6.084e-01  1.369e-03  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.200e+00  1.135e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 179.637 48.416

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/641946/cmap_HighResolution_693964801_694224001_4FGL_J1158.5+4824_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-03', job_status='DONE', photon_flux_upper_limit='5.20e-08', time_completed='2023-01-01 01:15:56.509690', job_id='641946', GAL2='0.61', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1672564556.51', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='-4.73e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1754' AND source_name='4FGL J1158.5+4824' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:15:56 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 641946: <4FGL_J1158.5+4824_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1158.5+4824_daily_bin1754> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jan  1 01:05:14 2023
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:05:42 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:05:42 2023
Terminated at Sun Jan  1 01:15:57 2023
Results reported at Sun Jan  1 01:15:57 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_daily_bin1754 179.637 48.4161 693964801 694224001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1158.5+4824 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   532.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            643 sec.

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

