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 222 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_J1159.5+2914_weekly_bin760
RA = 179.884, Dec = 29.2448
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='21202', job_status='RUN', time_executed='2023-02-28 01:09:13.305477', time_epoch_executed='1677575353.31' WHERE source_name='4FGL J1159.5+2914' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/21202

Creating custom pfile directory:
/scratch/kocevski/21202/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/21202/ft1_4FGL_J1159.5+2914_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/21202/ft2_4FGL_J1159.5+2914_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/21202/ft1_4FGL_J1159.5+2914_weekly_bin760.fits outfile=/scratch/kocevski/21202/ft1_filteredMKT_4FGL_J1159.5+2914_weekly_bin760.fits ra=179.884 dec=29.2448 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.92
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/21202/ft2_4FGL_J1159.5+2914_weekly_bin760.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/21202/ft2_4FGL_J1159.5+2914_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/21202/ft1_filteredMKT_4FGL_J1159.5+2914_weekly_bin760.fits evtable="EVENTS" outfile="/scratch/kocevski/21202/ft1_filtered_4FGL_J1159.5+2914_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.40
sys 0.14

Number of photons that the gtmktime cut: 248

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/21202/ft1_filtered_4FGL_J1159.5+2914_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/21202/ft2_4FGL_J1159.5+2914_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/21202/ltcube_698630401_699235201_4FGL_J1159.5+2914_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/21202/ft2_4FGL_J1159.5+2914_weekly_bin760.fits
.....................!
real 31.67
user 31.28
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/21202/ft1_filtered_4FGL_J1159.5+2914_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/21202/ft2_4FGL_J1159.5+2914_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/21202/ltcube_698630401_699235201_4FGL_J1159.5+2914_weekly_bin760.fits outfile=/scratch/kocevski/21202/expmap_698630401_699235201_4FGL_J1159.5+2914_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/21202/ltcube_698630401_699235201_4FGL_J1159.5+2914_weekly_bin760.fits
.....................!
real 190.54
user 185.98
sys 3.97

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1159.5+2914 @ 179.884 29.2448

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/21202/ft1_filtered_4FGL_J1159.5+2914_weekly_bin760.fits scfile=/scratch/kocevski/21202/ft2_4FGL_J1159.5+2914_weekly_bin760.fits outfile=/scratch/kocevski/21202/cmap_698630401_699235201_4FGL_J1159.5+2914_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.884 yref=29.2448 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.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/21202/ft1_filtered_4FGL_J1159.5+2914_weekly_bin760.fits scfile=/scratch/kocevski/21202/ft2_4FGL_J1159.5+2914_weekly_bin760.fits outfile=/scratch/kocevski/21202/cmap_HighResolution_698630401_699235201_4FGL_J1159.5+2914_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.884 yref=29.2448 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.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/21202/ft1_filtered_4FGL_J1159.5+2914_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/21202/ft2_4FGL_J1159.5+2914_weekly_bin760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/21202/Model_4FGL_J1159.5+2914_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/21202/ft1_filtered_4FGL_J1159.5+2914_weekly_bin760.fits.....................!
real 35.12
user 33.67
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/21202/ft1_filtered_4FGL_J1159.5+2914_weekly_bin760.fits', '/scratch/kocevski/21202/ft2_4FGL_J1159.5+2914_weekly_bin760.fits', expMap='/scratch/kocevski/21202/expmap_698630401_699235201_4FGL_J1159.5+2914_weekly_bin760.fits', expCube='/scratch/kocevski/21202/ltcube_698630401_699235201_4FGL_J1159.5+2914_weekly_bin760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/21202/Model_4FGL_J1159.5+2914_weekly_bin760.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.5+2914'

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.117e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
303        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  6.240e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/21202/ft1_filtered_4FGL_J1159.5+2914_weekly_bin760.fits
Spacecraft file(s): /scratch/kocevski/21202/ft2_4FGL_J1159.5+2914_weekly_bin760.fits
Exposure map: /scratch/kocevski/21202/expmap_698630401_699235201_4FGL_J1159.5+2914_weekly_bin760.fits
Exposure cube: /scratch/kocevski/21202/ltcube_698630401_699235201_4FGL_J1159.5+2914_weekly_bin760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/21202/Model_4FGL_J1159.5+2914_weekly_bin760.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 1
logL (Fixed Index) = 2924.31597878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23785       1.0000          .0000       .10000E+07
     2 'norm      '    305.00       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11355       1.0000          .0000       .10000E+07
     4 'Prefactor '    6.4755       1.0000          .0000       .10000E+07
     5 'Prefactor '    .44371       1.0000          .0000       .10000E+07
     6 'Prefactor '    .64569E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .38080E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .11592E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .13844       1.0000          .0000       .10000E+07
    10 'norm      '    .48772E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .80594E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.0133       1.0000          .0000       .10000E+07
    13 'Prefactor '    .11917E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    67.362       1.0000          .0000       .10000E+07
    15 'norm      '    42.570       1.0000          .0000       .10000E+07
    16 'Prefactor '    .22440E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .65458E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .13663E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .27534E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.4488       1.0000          .0000       .10000E+07
    21 'Prefactor '    7.9237       1.0000          .0000       .10000E+07
    22 'Prefactor '    .12019E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .11012       1.0000          .0000       .10000E+07
    24 'norm      '    22.337       1.0000          .0000       .10000E+07
    25 'Prefactor '    46.912       1.0000          .0000       .10000E+07
    26 'Normalizat'    .27044       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.7193       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2924.298     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     4294 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        112.94       -.62875E-09** at limit **
   2  norm          309.33        629.89       -.22666E-05    .23513E-03
   3  Prefactor      .0000        79.811        .10861E-07** at limit **
   4  Prefactor     6.4314        19.680       -.83085E-06   -.35404E-03
   5  Prefactor     .19984E-08    191.80       -.58724E-07** at limit **
   6  Prefactor     .16653E-09    40.782        .14935E-06** at limit **
   7  norm           .0000        6.0935        .81831E-08** at limit **
   8  Prefactor     .11102E-09    50.349        .13799E-06** at limit **
   9  Prefactor     .38819E-06    25.121        .84039E-06** at limit **
  10  norm           .0000        1.8053        .38080E-08** at limit **
  11  Prefactor      .0000        32.164        .50909E-08** at limit **
  12  Prefactor     3.9734        42.318        .17255E-07   -.31027E-03
  13  Prefactor      .0000        2.6021        .23901E-08** at limit **
  14  Prefactor     67.953        80.028       -.17778E-06   -.17632E-03
  15  norm          42.519        6.9961       -.60745E-07   -.59629E-02
  16  Prefactor      .0000        3.3440       -.15815E-08** at limit **
  17  Prefactor      .0000        2.4277       -.12605E-08** at limit **
  18  norm           .0000        7.9845       -.18469E-07** at limit **
  19  Prefactor      .0000        17.744       -.32112E-06** at limit **
  20  Prefactor     4.4406        4.1137       -.35647E-07   -.22705E-02
  21  Prefactor     7.9743        5.7511        .25081E-07   -.76793E-02
  22  Prefactor      .0000        8.8565        .37228E-08** at limit **
  23  norm          .10975        .54019       -.38442E-08** at limit **
  24  norm          22.314        11.256       -.41707E-07   -.55524E-02
  25  Prefactor     46.785        25.422       -.15375E-06   -.28071E-02
  26  Normalizat    .27043        .38407        .40485E-04    .17893E-04
  27  Prefactor     1.7199        .45044       -.18520E-04   -.64219E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 309.333
  Prefactor  = 0
  Prefactor  = 6.43145
  Prefactor  = 1.9984e-09
  Prefactor  = 1.66533e-10
  norm       = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 3.88189e-07
  norm       = 0
  Prefactor  = 0
  Prefactor  = 3.9734
  Prefactor  = 0
  Prefactor  = 67.9529
  norm       = 42.5188
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 4.44059
  Prefactor  = 7.97428
  Prefactor  = 0
  norm       = 0.109748
  norm       = 22.3144
  Prefactor  = 46.7852
  Normalizat = 0.270429
  Prefactor  = 1.71991
 **********
 **   18 **HESSE 
 **********

 FCN=   2924.298     FROM HESSE     STATUS=OK           478 CALLS     4772 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        112.94        .22275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          309.33        625.92        .11454E-04   -1.5356    
   3  Prefactor      .0000        79.809        .27157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4314        19.551        .15766E-04   -1.5657    
   5  Prefactor     .19984E-08    191.86        .16917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16653E-09    40.737        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        6.0947        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11102E-09    50.310        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .38819E-06    97.897        .49481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        1.8150        .70942E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        32.163        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9734        42.418        .20126E-04   -1.5668    
  13  Prefactor      .0000        2.6045        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     67.953        80.047        .24370E-04   -1.5543    
  15  norm          42.519        7.0115        .27521E-04   -1.5578    
  16  Prefactor      .0000        3.3443        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        2.4282        .82289E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        8.0372        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        18.293        .44365E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.4406        4.1048        .98662E-05   -1.5666    
  21  Prefactor     7.9743        5.7092        .47694E-04   -1.5651    
  22  Prefactor      .0000        8.8625        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10975        .82518        .65712E-04   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          22.314        11.129        .84657E-05   -1.5613    
  25  Prefactor     46.785        25.359        .58406E-05   -1.5571    
  26  Normalizat    .27043        .37645        .57611E-03   -1.2465    
  27  Prefactor     1.7199        .46071        .28508E-03   -.71553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70759e-09
Minuit parameter uncertainties:
  1  7.32012e-06
  2  626.053
  3  3.9703e-05
  4  19.5508
  5  0.00123222
  6  0.000151949
  7  2.45325e-05
  8  0.000136414
  9  0.0123298
  10  5.07124e-07
  11  6.40852e-06
  12  25.965
  13  1.33685e-06
  14  80.0483
  15  7.01146
  16  6.07255e-08
  17  6.09122e-07
  18  2.52222e-05
  19  3.47977e-05
  20  4.10479
  21  5.70919
  22  6.61064e-06
  23  0.601869
  24  11.1287
  25  25.3587
  26  0.38005
  27  0.461867
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  4.252e+01  7.011e+00  0.000e+00  1.000e+06 ( 1.000e-11)
303        alpha:  2.103e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
304         beta:  6.240e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.720e+00  4.619e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  2.704e-01  3.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 136.16
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.15e-06 +/- 1.90e-07
Energy Flux (Fixed Index): 5.17e-04 +/- 8.53e-05

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) = 2924.28789104
delta logL = 0.00990141086049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2924.28739786
delta logL = 0.0103945883643

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    42.518       1.0000          .0000       .10000E+07
     2 'alpha     '    2.0793       1.0000          .0000       5.0000    
     3 'Normalizat'    .28073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7125       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2924.287     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      197 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          42.491        7.0330        .15337E-03   -.94593E-02
   2  alpha         2.0793        .16751        .78536E-01   -.20843E-03
   3  Normalizat    .28090        .39588        .12787       -.22368E-03
   4  Prefactor     1.7125        .45666        .64614E-01   -.58586E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 42.4908
  alpha      = 2.07927
  Normalizat = 0.280903
  Prefactor  = 1.71245
 **********
 **   18 **HESSE 
 **********

 FCN=   2924.287     FROM HESSE     STATUS=OK            25 CALLS      222 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          42.491        6.9792        .55178E-05   -1.5578    
   2  alpha         2.0793        .16616        .34570E-03   -.16910    
   3  Normalizat    .28090        .37531        .56609E-03   -1.2399    
   4  Prefactor     1.7125        .43633        .28567E-03   -.71751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1262e-09
Minuit parameter uncertainties:
  1  6.97917
  2  0.166285
  3  0.37874
  4  0.437316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/21202': 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) = 2924.28739027
delta logL = 0.0104021772718

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  4.249e+01  6.979e+00  0.000e+00  1.000e+06 ( 1.000e-11)
303        alpha:  2.079e+00  1.663e-01  0.000e+00  5.000e+00 ( 1.000e+00)
304         beta:  6.240e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
305           Eb:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.712e+00  4.373e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  2.809e-01  3.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 133.56
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.08 +/- 0.17
Photon Flux (Free Index): 1.13e-06 +/- 2.37e-07
Energy Flux (Free Index): 5.27e-04 +/- 1.12e-04

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/21202/cmap_HighResolution_698630401_699235201_4FGL_J1159.5+2914_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-06', energy_flux2='5.27e-04', photon_flux_error='1.90e-07', dlogl='1.04e-02', energy_flux='5.17e-04', photon_flux2='1.13e-06', job_status='DONE', time_completed='2023-02-28 01:18:49.875987', photon_index_error2='0.17', photon_index2='2.08', ts='136.16', fit_tolerance='1e-08', GAL='1.72', photon_index_error='0.00', energy_flux_error2='1.12e-04', EG='0.27', time_epoch_completed='1677575929.88', return_code='0', job_id='21202', GAL2='1.71', EG2='0.28', return_code2='0', energy_flux_error='8.53e-05', photon_flux_error2='2.37e-07', ts2='133.56', photon_index='2.10' WHERE bin_id='760' AND source_name='4FGL J1159.5+2914' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 01:18:49 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 21202: <4FGL_J1159.5+2914_weekly_bin760> in cluster <slac> Done

Job <4FGL_J1159.5+2914_weekly_bin760> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Feb 28 01:05:22 2023
Job was executed on host(s) <bullet0008>, 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:18:51 2023
Results reported at Tue Feb 28 01:18:51 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_weekly_bin760 179.884 29.2448 698630401 699235201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.5+2914 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   577.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

