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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin1770
RA = 178.514, Dec = 40.632
tmin = 698112001, tmax = 698371201
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='485297', job_status='RUN', time_executed='2023-02-18 00:46:57.180435', time_epoch_executed='1676710017.18' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/485297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/485297/ft1_4FGL_J1154.0+4037_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/485297/ft2_4FGL_J1154.0+4037_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/485297/ft1_4FGL_J1154.0+4037_daily_bin1770.fits outfile=/scratch/kocevski/485297/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin1770.fits ra=178.514 dec=40.632 rad=12.0 tmin=698112001.0 tmax=698371201.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 4.34
user 4.09
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/485297/ft2_4FGL_J1154.0+4037_daily_bin1770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/485297/ft2_4FGL_J1154.0+4037_daily_bin1770.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/485297/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin1770.fits evtable="EVENTS" outfile="/scratch/kocevski/485297/ft1_filtered_4FGL_J1154.0+4037_daily_bin1770.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.49
user 0.31
sys 0.16

Number of photons that the gtmktime cut: 450

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/485297/ft1_filtered_4FGL_J1154.0+4037_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/485297/ft2_4FGL_J1154.0+4037_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/485297/ltcube_698112001_698371201_4FGL_J1154.0+4037_daily_bin1770.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/485297/ft2_4FGL_J1154.0+4037_daily_bin1770.fits
.....................!
real 11.94
user 11.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/485297/ft1_filtered_4FGL_J1154.0+4037_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/485297/ft2_4FGL_J1154.0+4037_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/485297/ltcube_698112001_698371201_4FGL_J1154.0+4037_daily_bin1770.fits outfile=/scratch/kocevski/485297/expmap_698112001_698371201_4FGL_J1154.0+4037_daily_bin1770.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/485297/ltcube_698112001_698371201_4FGL_J1154.0+4037_daily_bin1770.fits
.....................!
real 192.28
user 187.32
sys 4.61

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 J1154.0+4037 @ 178.514 40.632

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/485297/ft1_filtered_4FGL_J1154.0+4037_daily_bin1770.fits scfile=/scratch/kocevski/485297/ft2_4FGL_J1154.0+4037_daily_bin1770.fits outfile=/scratch/kocevski/485297/cmap_698112001_698371201_4FGL_J1154.0+4037_daily_bin1770.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=178.514 yref=40.632 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/485297/ft1_filtered_4FGL_J1154.0+4037_daily_bin1770.fits scfile=/scratch/kocevski/485297/ft2_4FGL_J1154.0+4037_daily_bin1770.fits outfile=/scratch/kocevski/485297/cmap_HighResolution_698112001_698371201_4FGL_J1154.0+4037_daily_bin1770.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=178.514 yref=40.632 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/485297/ft1_filtered_4FGL_J1154.0+4037_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/485297/ft2_4FGL_J1154.0+4037_daily_bin1770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/485297/Model_4FGL_J1154.0+4037_daily_bin1770.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/485297/ft1_filtered_4FGL_J1154.0+4037_daily_bin1770.fits.....................!
real 43.83
user 42.48
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/485297/ft1_filtered_4FGL_J1154.0+4037_daily_bin1770.fits', '/scratch/kocevski/485297/ft2_4FGL_J1154.0+4037_daily_bin1770.fits', expMap='/scratch/kocevski/485297/expmap_698112001_698371201_4FGL_J1154.0+4037_daily_bin1770.fits', expCube='/scratch/kocevski/485297/ltcube_698112001_698371201_4FGL_J1154.0+4037_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/485297/Model_4FGL_J1154.0+4037_daily_bin1770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1154.0+4037'

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  8.147e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
348        Index:  2.115e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  2.078e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/485297/ft1_filtered_4FGL_J1154.0+4037_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/485297/ft2_4FGL_J1154.0+4037_daily_bin1770.fits
Exposure map: /scratch/kocevski/485297/expmap_698112001_698371201_4FGL_J1154.0+4037_daily_bin1770.fits
Exposure cube: /scratch/kocevski/485297/ltcube_698112001_698371201_4FGL_J1154.0+4037_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/485297/Model_4FGL_J1154.0+4037_daily_bin1770.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) = 4497.76677868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.488       1.0000          .0000       .10000E+07
     2 'norm      '    2.6082       1.0000          .0000       .10000E+07
     3 'Prefactor '    .14747E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .96210E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .24281E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .54854E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .29942E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.1347       1.0000          .0000       .10000E+07
     9 'Prefactor '    .10407E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    20.809       1.0000          .0000       .10000E+07
    11 'norm      '    8.3125       1.0000          .0000       .10000E+07
    12 'Prefactor '    .13953E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.9248       1.0000          .0000       .10000E+07
    14 'Prefactor '    13.928       1.0000          .0000       .10000E+07
    15 'norm      '    1.2678       1.0000          .0000       .10000E+07
    16 'norm      '    .12630E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .18624E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .49302E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    6.5375       1.0000          .0000       .10000E+07
    20 'norm      '    59.910       1.0000          .0000       .10000E+07
    21 'norm      '    .51552E-05   1.0000          .0000       .10000E+07
    22 'Prefactor '    .60782E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    3.5379       1.0000          .0000       .10000E+07
    24 'norm      '    6.3406       1.0000          .0000       .10000E+07
    25 'Prefactor '    6.2529       1.0000          .0000       .10000E+07
    26 'Prefactor '    .57728E-02   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.1675       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .63343       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4497.749     FROM MIGRAD    STATUS=CONVERGED    213 CALLS     2551 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.557        125.82       -.55125E-05    .43821E-02
   2  norm          2.6084        .55910        .13273E-07    .77374E-03
   3  Prefactor     .27756E-09    8.7919        .25099E-06** at limit **
   4  Prefactor     .22204E-09    7.6390        .29410E-06** at limit **
   5  Prefactor     .11102E-09    35.412       -.30093E-06** at limit **
   6  norm          .68368E-06    72.393       -.42321E-05** at limit **
   7  norm          .17819E-07    19.907        .10316E-05** at limit **
   8  Prefactor     2.1346        2.9353        .11716E-06   -.16188E-02
   9  Prefactor     .93980E-07    33.998       -.15043E-05** at limit **
  10  Prefactor     20.790        18.903       -.91160E-06   -.31122E-01
  11  norm          8.3188        3.7666        .12077E-06   -.86723E-02
  12  Prefactor     .12194E-05    15.265       -.60978E-06** at limit **
  13  Prefactor     3.8584        6.3392       -.28580E-06    .38353E-02
  14  Prefactor     13.458        41.754        .71355E-05   -.26551E-01
  15  norm          1.2727        1.2105        .80525E-08   -.13093E-01
  16  norm          .61062E-09    4.3129        .56151E-06** at limit **
  17  Prefactor      .0000        3.6057       -.15715E-06** at limit **
  18  Prefactor     .16049E-05    15.169        .11420E-05** at limit **
  19  Prefactor     6.5347        8.4017        .16859E-05    .76609E-01
  20  norm          59.867        6.0778        .19649E-07    .35468E-02
  21  norm          .11102E-09    2.1282       -.40872E-08** at limit **
  22  Prefactor     .44409E-09    8.6054        .50477E-06** at limit **
  23  Prefactor     3.5348        3.4199        .53693E-07   -.53070E-03
  24  norm          6.3843        8.3476        .52617E-06    .26356E-02
  25  Prefactor     6.1239        6.4027       -.18586E-05   -.22634E-01
  26  Prefactor     .22204E-09    12.373       -.28101E-07** at limit **
  27  Normalizat    1.1685        .26000       -.13062E-04    .39063E-03
  28  Prefactor     .63312        .29630        .19722E-05    .21913E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.5571
  norm       = 2.60839
  Prefactor  = 2.77556e-10
  Prefactor  = 2.22045e-10
  Prefactor  = 1.11022e-10
  norm       = 6.83675e-07
  norm       = 1.78191e-08
  Prefactor  = 2.13457
  Prefactor  = 9.39804e-08
  Prefactor  = 20.7904
  norm       = 8.31876
  Prefactor  = 1.21941e-06
  Prefactor  = 3.85836
  Prefactor  = 13.4577
  norm       = 1.27271
  norm       = 6.10623e-10
  Prefactor  = 0
  Prefactor  = 1.60488e-06
  Prefactor  = 6.53466
  norm       = 59.8672
  norm       = 1.11022e-10
  Prefactor  = 4.44089e-10
  Prefactor  = 3.53479
  norm       = 6.38435
  Prefactor  = 6.12393
  Prefactor  = 2.22045e-10
  Normalizat = 1.16846
  Prefactor  = 0.633117
 **********
 **   18 **HESSE 
 **********

 FCN=   4497.749     FROM HESSE     STATUS=OK           577 CALLS     3128 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.557        126.02        .13077E-03   -1.5558    
   2  norm          2.6084        .55792        .50733E-03   -1.5676    
   3  Prefactor     .27756E-09    8.7944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .22204E-09    7.6494        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11102E-09    35.424        .16770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .68368E-06    70.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .17819E-07    19.989        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.1346        2.9645        .70529E-03   -1.5679    
   9  Prefactor     .93980E-07    34.728        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.790        19.136        .21928E-03   -1.5617    
  11  norm          8.3188        3.7943        .34748E-03   -1.5650    
  12  Prefactor     .12194E-05    29.088        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8584        6.3691        .50898E-03   -1.5669    
  14  Prefactor     13.458        45.859        .26812E-03   -1.5635    
  15  norm          1.2727        1.2345        .98843E-04   -1.5685    
  16  norm          .61062E-09    4.3195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        3.5925        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16049E-05    29.126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5347        21.428        .39226E-03   -1.5657    
  20  norm          59.867        6.0781        .12920E-03   -1.5553    
  21  norm          .11102E-09    2.1254        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .44409E-09    8.5984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.5348        3.4147        .53716E-03   -1.5670    
  24  norm          6.3843        10.111        .39838E-03   -1.5657    
  25  Prefactor     6.1239        38.731        .40120E-03   -1.5658    
  26  Prefactor     .22204E-09    12.378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1685        .22146        .56748E-01   -.87583    
  28  Prefactor     .63312        .25459        .88201E-01   -1.0621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26636e-07
Minuit parameter uncertainties:
  1  126.026
  2  0.55792
  3  9.94048e-05
  4  8.48094e-05
  5  0.000118252
  6  0.0138682
  7  0.00119406
  8  2.9645
  9  0.00361318
  10  19.1362
  11  3.79426
  12  0.0119117
  13  6.36911
  14  45.8598
  15  1.23448
  16  0.000102638
  17  6.32567e-06
  18  0.013674
  19  21.4282
  20  6.07808
  21  2.81214e-05
  22  0.000121478
  23  3.41474
  24  10.1107
  25  30.802
  26  0.000109562
  27  0.221638
  28  0.25506
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.605e-06  1.367e-02  0.000e+00  1.000e+06 ( 1.000e-14)
348        Index:  2.115e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  2.078e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  6.331e-01  2.551e-01  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  1.168e+00  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.514 40.632
Photon Flux Upper Limit: 7.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/485297/likelihoodResults_698112001_698371201_4FGL_J1154.0+4037_daily_bin1770.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) = 4497.76576495
delta logL = -0.0163948133868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4497.74937023
delta logL = -1.02563717519e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16194E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .82774       1.0000          .0000       10.000    
     3 'Normalizat'    1.1684       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63322       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4497.749     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      197 TOTAL
                     EDM=   .26E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    21.805        .92634E-07** at limit **
   2  Index         2.4917        5.1396       -.13134E-04    .34709E-11
   3  Normalizat    1.1685        .24926        .29837E-05   -.32765E-04
   4  Prefactor     .63312        .29458        .13530E-05   -.16643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 2.49166
  Normalizat = 1.16846
  Prefactor  = 0.633117
 **********
 **   18 **HESSE 
 **********

 FCN=   4497.749     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      232 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    1027.4        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4917        5.8775        .44077       -.52553    
   3  Normalizat    1.1685        .39057E-01    .56748E-01   -.87583    
   4  Prefactor     .63312        .46264E-01    .88201E-01   -1.0621    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40874e-10
Minuit parameter uncertainties:
  1  0.000530824
  2  29.32
  3  0.0390581
  4  0.0462666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/485297': 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) = 4497.7493701
delta logL = 2.76586433756e-08

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  5.551e-11  5.308e-04  0.000e+00  1.000e+06 ( 1.000e-14)
348        Index:  2.492e+00  2.932e+01  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  2.078e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  6.331e-01  4.627e-02  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  1.168e+00  3.906e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.514 40.632

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/485297/cmap_HighResolution_698112001_698371201_4FGL_J1154.0+4037_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', job_status='DONE', photon_flux_upper_limit='7.34e-08', time_completed='2023-02-18 00:57:58.232627', job_id='485297', GAL2='0.63', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1676710678.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='2.77e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1770' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 00:57:58 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 485297: <4FGL_J1154.0+4037_daily_bin1770> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin1770> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Feb 18 00:45:15 2023
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 00:45:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 00:45:16 2023
Terminated at Sat Feb 18 00:57:59 2023
Results reported at Sat Feb 18 00:57:59 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin1770 178.514 40.632 698112001 698371201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1154.0+4037 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   663.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

