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


Performing analysis on: 4FGL_J1158.5+4824_weekly_bin760
RA = 179.637, Dec = 48.4161
tmin = 698630401, tmax = 699235201
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='21196', job_status='RUN', time_executed='2023-02-28 01:06:48.282145', time_epoch_executed='1677575208.28' WHERE source_name='4FGL J1158.5+4824' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/21196

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/21196/ft1_4FGL_J1158.5+4824_weekly_bin760.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/21196/ft2_4FGL_J1158.5+4824_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/21196/ft1_4FGL_J1158.5+4824_weekly_bin760.fits outfile=/scratch/kocevski/21196/ft1_filteredMKT_4FGL_J1158.5+4824_weekly_bin760.fits ra=179.637 dec=48.4161 rad=12.0 tmin=698630401.0 tmax=699235201.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 6.20
user 5.91
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/21196/ft2_4FGL_J1158.5+4824_weekly_bin760.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/21196/ft1_filteredMKT_4FGL_J1158.5+4824_weekly_bin760.fits evtable="EVENTS" outfile="/scratch/kocevski/21196/ft1_filtered_4FGL_J1158.5+4824_weekly_bin760.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.55
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 343

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/21196/ft1_filtered_4FGL_J1158.5+4824_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/21196/ft2_4FGL_J1158.5+4824_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/21196/ltcube_698630401_699235201_4FGL_J1158.5+4824_weekly_bin760.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/21196/ft2_4FGL_J1158.5+4824_weekly_bin760.fits
.....................!
real 31.75
user 31.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/21196/ft1_filtered_4FGL_J1158.5+4824_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/21196/ft2_4FGL_J1158.5+4824_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/21196/ltcube_698630401_699235201_4FGL_J1158.5+4824_weekly_bin760.fits outfile=/scratch/kocevski/21196/expmap_698630401_699235201_4FGL_J1158.5+4824_weekly_bin760.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/21196/ltcube_698630401_699235201_4FGL_J1158.5+4824_weekly_bin760.fits
.....................!
real 191.03
user 185.33
sys 5.21

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/21196/ft1_filtered_4FGL_J1158.5+4824_weekly_bin760.fits scfile=/scratch/kocevski/21196/ft2_4FGL_J1158.5+4824_weekly_bin760.fits outfile=/scratch/kocevski/21196/cmap_698630401_699235201_4FGL_J1158.5+4824_weekly_bin760.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/21196/ft1_filtered_4FGL_J1158.5+4824_weekly_bin760.fits scfile=/scratch/kocevski/21196/ft2_4FGL_J1158.5+4824_weekly_bin760.fits outfile=/scratch/kocevski/21196/cmap_HighResolution_698630401_699235201_4FGL_J1158.5+4824_weekly_bin760.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.59
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/21196/ft1_filtered_4FGL_J1158.5+4824_weekly_bin760.fits', '/scratch/kocevski/21196/ft2_4FGL_J1158.5+4824_weekly_bin760.fits', expMap='/scratch/kocevski/21196/expmap_698630401_699235201_4FGL_J1158.5+4824_weekly_bin760.fits', expCube='/scratch/kocevski/21196/ltcube_698630401_699235201_4FGL_J1158.5+4824_weekly_bin760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/21196/Model_4FGL_J1158.5+4824_weekly_bin760.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/21196/ft1_filtered_4FGL_J1158.5+4824_weekly_bin760.fits
Spacecraft file(s): /scratch/kocevski/21196/ft2_4FGL_J1158.5+4824_weekly_bin760.fits
Exposure map: /scratch/kocevski/21196/expmap_698630401_699235201_4FGL_J1158.5+4824_weekly_bin760.fits
Exposure cube: /scratch/kocevski/21196/ltcube_698630401_699235201_4FGL_J1158.5+4824_weekly_bin760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/21196/Model_4FGL_J1158.5+4824_weekly_bin760.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) = 3990.00613343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92852       1.0000          .0000       .10000E+07
     2 'Prefactor '    .93105       1.0000          .0000       .10000E+07
     3 'Prefactor '    97.966       1.0000          .0000       .10000E+07
     4 'Prefactor '    .80137       1.0000          .0000       .10000E+07
     5 'norm      '    .51376       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.2355       1.0000          .0000       .10000E+07
     7 'Prefactor '    25.474       1.0000          .0000       .10000E+07
     8 'norm      '    .56866E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .48903       1.0000          .0000       .10000E+07
    10 'norm      '    .89651E-06   1.0000          .0000       .10000E+07
    11 'norm      '    47.136       1.0000          .0000       .10000E+07
    12 'Prefactor '    5.2840       1.0000          .0000       .10000E+07
    13 'Prefactor '    62.540       1.0000          .0000       .10000E+07
    14 'norm      '    .15051E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    32.227       1.0000          .0000       .10000E+07
    16 'norm      '    2.8941       1.0000          .0000       .10000E+07
    17 'norm      '    .20278       1.0000          .0000       .10000E+07
    18 'Prefactor '    .43116E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    3.3647       1.0000          .0000       .10000E+07
    20 'Prefactor '    59.386       1.0000          .0000       .10000E+07
    21 'norm      '    1.4657       1.0000          .0000       .10000E+07
    22 'Normalizat'    .77975       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94757       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=   3990.002     FROM MIGRAD    STATUS=CONVERGED    280 CALLS     2047 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14313E-02    918.47        .21745E-05** at limit **
   2  Prefactor     .24687E-02    610.73        .22159E-05** at limit **
   3  Prefactor     85.240        273.83        .12443E-05    .62459E-02
   4  Prefactor      .0000        221.50        .12460E-06** at limit **
   5  norm           .0000        64.465        .10203E-06** at limit **
   6  Prefactor     1.3451        44.919       -.17844E-06   -.95551E-04
   7  Prefactor     25.499        34.045       -.10553E-06    .58609E-03
   8  norm           .0000        8.9302        .65170E-07** at limit **
   9  Prefactor      .0000        61.850        .22488E-06** at limit **
  10  norm           .0000        1.4488       -.87019E-08** at limit **
  11  norm          46.923        28.376        .14202E-06    .30935E-04
  12  Prefactor     5.3183        5.4978       -.19489E-07   -.38343E-03
  13  Prefactor     61.943        73.091        .43539E-06   -.16496E-02
  14  norm           .0000        3.7870        .23307E-07** at limit **
  15  Prefactor     33.724        48.638       -.28655E-07   -.35920E-03
  16  norm          2.8904        2.6521       -.20402E-08   -.63472E-03
  17  norm          .53047E-01    478.85        .15066E-05** at limit **
  18  Prefactor      .0000        30.596        .35974E-06** at limit **
  19  Prefactor     3.3635        3.0946        .17826E-07    .14069E-04
  20  Prefactor     59.290        25.395       -.69003E-07   -.52915E-03
  21  norm          1.4665        1.2048        .39841E-08   -.18573E-03
  22  Normalizat    .78056        .25791       -.24794E-05   -.68140E-04
  23  Prefactor     .94686        .28143        .30839E-06   -.51819E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00143128
  Prefactor  = 0.0024687
  Prefactor  = 85.2402
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.34507
  Prefactor  = 25.4991
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 46.9229
  Prefactor  = 5.31831
  Prefactor  = 61.9428
  norm       = 0
  Prefactor  = 33.7244
  norm       = 2.89036
  norm       = 0.0530472
  Prefactor  = 0
  Prefactor  = 3.36353
  Prefactor  = 59.29
  norm       = 1.46649
  Normalizat = 0.780557
  Prefactor  = 0.946859
 **********
 **   18 **HESSE 
 **********

 FCN=   3990.002     FROM HESSE     STATUS=OK           420 CALLS     2467 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14313E-02    1500.1        .43808E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .24687E-02    1594.9        .43636E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     85.240        280.96        .10104E-03   -1.5523    
   4  Prefactor      .0000        223.79        .52833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        65.578        .77337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3451        43.800        .10099E-02   -1.5685    
   7  Prefactor     25.499        34.589        .19817E-03   -1.5607    
   8  norm           .0000        8.9615        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        62.136        .79821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        1.4489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          46.923        28.414        .14567E-03   -1.5571    
  12  Prefactor     5.3183        5.5390        .43701E-03   -1.5662    
  13  Prefactor     61.943        72.787        .12646E-03   -1.5551    
  14  norm           .0000        3.7767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     33.724        48.939        .17618E-03   -1.5592    
  16  norm          2.8904        2.6581        .59708E-03   -1.5674    
  17  norm          .53047E-01    5.5020        .95930E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        30.709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.3635        3.0939        .55143E-03   -1.5671    
  20  Prefactor     59.290        25.206        .12977E-03   -1.5554    
  21  norm          1.4665        1.2228        .88785E-03   -1.5684    
  22  Normalizat    .78056        .21979        .43345E-01   -1.0079    
  23  Prefactor     .94686        .24309        .45609E-01   -.94522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01053e-06
Minuit parameter uncertainties:
  1  2.93132
  2  3.96957
  3  281.002
  4  0.00011017
  5  1.78382e-05
  6  15.3513
  7  34.5889
  8  2.65914e-06
  9  4.09859e-05
  10  2.60674e-07
  11  28.4137
  12  5.53897
  13  72.7883
  14  5.4318e-07
  15  48.94
  16  2.65806
  17  1.0805
  18  2.94854e-05
  19  3.09386
  20  25.2064
  21  1.22281
  22  0.220041
  23  0.243369
Done.

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

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  3.372e+01  4.894e+01  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:  9.469e-01  2.434e-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:  7.806e-01  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.68
Ra Dec: 179.637 48.416
Photon Flux Upper Limit: 2.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.68e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/21196/likelihoodResults_698630401_699235201_4FGL_J1158.5+4824_weekly_bin760.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): 0
logL (Free Index) = 3989.79112914
delta logL = 0.210704310965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3989.78344901
delta logL = 0.218384444759

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.818       1.0000          .0000       .10000E+07
     2 'Index     '    3.0880       1.0000          .0000       10.000    
     3 'Normalizat'    .74523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97305       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+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=   3989.783     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      295 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.797        45.411        .87694E-05    .13515E-02
   2  Index         3.0882        1.2979        .64388E-02    .84658E-04
   3  Normalizat    .74540        .24173        .25493E-03    .17425E-03
   4  Prefactor     .97330        .28499        .27155E-03   -.92964E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7966
  Index      = 3.08819
  Normalizat = 0.745402
  Prefactor  = 0.973295
 **********
 **   18 **HESSE 
 **********

 FCN=   3989.783     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.797        37.246        .35077E-06   -1.5617    
   2  Index         3.0882        1.0663        .25755E-03   -.39235    
   3  Normalizat    .74540        .24061        .10197E-04   -1.0213    
   4  Prefactor     .97330        .28329        .10862E-04   -.93625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66879e-10
Minuit parameter uncertainties:
  1  37.246
  2  1.07602
  3  0.24095
  4  0.283719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/21196': 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) = 3989.78344378
delta logL = 0.218389675997

Extracting fit parameters...

4FGL J1158.5+4824
   Spectrum: PowerLaw
349    Prefactor:  2.080e+01  3.725e+01  0.000e+00  1.000e+06 ( 1.000e-13)
350        Index:  3.088e+00  1.076e+00  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:  9.733e-01  2.837e-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:  7.454e-01  2.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 179.637 48.416
Photon Index (Free Index): 3.09 +/- 1.08
Photon Flux (Free Index): 1.03e-07 +/- 1.17e-07
Energy Flux (Free Index): 1.98e-05 +/- 2.06e-05

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/21196/cmap_HighResolution_698630401_699235201_4FGL_J1158.5+4824_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-02', comment='SUCCESS', energy_flux2='1.98e-05', dlogl='2.18e-01', photon_flux2='1.03e-07', job_status='DONE', time_completed='2023-02-28 01:16:29.868245', photon_index_error2='1.08', photon_index2='3.09', ts='0.68', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='2.17e-07', energy_flux_error2='2.06e-05', EG='0.78', time_epoch_completed='1677575789.87', return_code='0', job_id='21196', GAL2='0.97', EG2='0.75', return_code2='0', photon_flux_error2='1.17e-07', ts2='1.15', photon_index='2.44' WHERE bin_id='760' AND source_name='4FGL J1158.5+4824' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 01:16:29 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 21196: <4FGL_J1158.5+4824_weekly_bin760> in cluster <slac> Done

Job <4FGL_J1158.5+4824_weekly_bin760> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Feb 28 01:05:21 2023
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 01:05:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 01:05:23 2023
Terminated at Tue Feb 28 01:16:30 2023
Results reported at Tue Feb 28 01:16:30 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1158.5+4824_weekly_bin760 179.637 48.4161 698630401 699235201 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 :                                   582.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             304.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            669 sec.

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

