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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1744
RA = 177.154, Dec = 18.6861
tmin = 691372801, tmax = 691632001
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='577863', job_status='RUN', time_executed='2022-12-02 00:53:26.812488', time_epoch_executed='1669971206.81' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577863

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577863/ft1_4FGL_J1148.6+1841_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577863/ft2_4FGL_J1148.6+1841_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577863/ft1_4FGL_J1148.6+1841_daily_bin1744.fits outfile=/scratch/kocevski/577863/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1744.fits ra=177.154 dec=18.6861 rad=12.0 tmin=691372801.0 tmax=691632001.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 2.52
user 2.31
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/577863/ft2_4FGL_J1148.6+1841_daily_bin1744.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/577863/ft2_4FGL_J1148.6+1841_daily_bin1744.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/577863/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1744.fits evtable="EVENTS" outfile="/scratch/kocevski/577863/ft1_filtered_4FGL_J1148.6+1841_daily_bin1744.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.32
sys 0.16

Number of photons that the gtmktime cut: 975

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/577863/ft1_filtered_4FGL_J1148.6+1841_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/577863/ft2_4FGL_J1148.6+1841_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/577863/ltcube_691372801_691632001_4FGL_J1148.6+1841_daily_bin1744.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/577863/ft2_4FGL_J1148.6+1841_daily_bin1744.fits
.....................!
real 13.22
user 12.86
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577863/ft1_filtered_4FGL_J1148.6+1841_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/577863/ft2_4FGL_J1148.6+1841_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/577863/ltcube_691372801_691632001_4FGL_J1148.6+1841_daily_bin1744.fits outfile=/scratch/kocevski/577863/expmap_691372801_691632001_4FGL_J1148.6+1841_daily_bin1744.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/577863/ltcube_691372801_691632001_4FGL_J1148.6+1841_daily_bin1744.fits
.....................!
real 191.01
user 185.70
sys 4.98

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

Setting source of interest to:
4FGL J1148.6+1841 @ 177.154 18.6861

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/577863/ft1_filtered_4FGL_J1148.6+1841_daily_bin1744.fits scfile=/scratch/kocevski/577863/ft2_4FGL_J1148.6+1841_daily_bin1744.fits outfile=/scratch/kocevski/577863/cmap_691372801_691632001_4FGL_J1148.6+1841_daily_bin1744.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=177.154 yref=18.6861 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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577863/ft1_filtered_4FGL_J1148.6+1841_daily_bin1744.fits scfile=/scratch/kocevski/577863/ft2_4FGL_J1148.6+1841_daily_bin1744.fits outfile=/scratch/kocevski/577863/cmap_HighResolution_691372801_691632001_4FGL_J1148.6+1841_daily_bin1744.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=177.154 yref=18.6861 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/577863/ft1_filtered_4FGL_J1148.6+1841_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/577863/ft2_4FGL_J1148.6+1841_daily_bin1744.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/577863/Model_4FGL_J1148.6+1841_daily_bin1744.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/577863/ft1_filtered_4FGL_J1148.6+1841_daily_bin1744.fits.....................!
real 88.97
user 87.56
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/577863/ft1_filtered_4FGL_J1148.6+1841_daily_bin1744.fits', '/scratch/kocevski/577863/ft2_4FGL_J1148.6+1841_daily_bin1744.fits', expMap='/scratch/kocevski/577863/expmap_691372801_691632001_4FGL_J1148.6+1841_daily_bin1744.fits', expCube='/scratch/kocevski/577863/ltcube_691372801_691632001_4FGL_J1148.6+1841_daily_bin1744.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/577863/Model_4FGL_J1148.6+1841_daily_bin1744.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1148.6+1841'

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.462e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/577863/ft1_filtered_4FGL_J1148.6+1841_daily_bin1744.fits
Spacecraft file(s): /scratch/kocevski/577863/ft2_4FGL_J1148.6+1841_daily_bin1744.fits
Exposure map: /scratch/kocevski/577863/expmap_691372801_691632001_4FGL_J1148.6+1841_daily_bin1744.fits
Exposure cube: /scratch/kocevski/577863/ltcube_691372801_691632001_4FGL_J1148.6+1841_daily_bin1744.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/577863/Model_4FGL_J1148.6+1841_daily_bin1744.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) = 10096.8936765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2469       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.5023       1.0000          .0000       .10000E+07
     3 'norm      '    .14048E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .42171       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.1055       1.0000          .0000       .10000E+07
     6 'Prefactor '    .81832E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10302E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     9 'Prefactor '    .40652       1.0000          .0000       .10000E+07
    10 'norm      '    39.810       1.0000          .0000       .10000E+07
    11 'Prefactor '    .15987E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .29067       1.0000          .0000       .10000E+07
    13 'Prefactor '    .41672E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .11396E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.7821       1.0000          .0000       .10000E+07
    16 'Prefactor '    .85026       1.0000          .0000       .10000E+07
    17 'norm      '    .49960E-09   1.0000          .0000       .10000E+07
    18 'norm      '    35.993       1.0000          .0000       .10000E+07
    19 'Prefactor '    18.393       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.2940       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .73774       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10096.78     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1347 TOTAL
                     EDM=   .73E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2843        1.2773        .60100E-08   -.23341E-03
   2  Prefactor     3.5463        4.3565        .14917E-07   -.32688E-04
   3  norm           .0000        5.5571       -.10351E-06** at limit **
   4  Prefactor     .17402        144.33       -.91673E-06** at limit **
   5  Prefactor     3.0759        2.6206       -.20119E-07   -.56809E-02
   6  Prefactor      .0000        7.2132        .14071E-06** at limit **
   7  Prefactor      .0000        9.5849       -.27137E-06** at limit **
   8  Prefactor      .0000        1.6177       -.70894E-08** at limit **
   9  Prefactor     .44106        10.270       -.18957E-06   -.48456E-04
  10  norm          39.831        3.0466        .23260E-08    .45941E-04
  11  Prefactor      .0000        4.1599        .58151E-07** at limit **
  12  Prefactor     .27471        7.1755        .18205E-06   -.12243E-03
  13  Prefactor     .55511E-10    12.960        .20661E-06** at limit **
  14  Prefactor      .0000        .63792        .27836E-07** at limit **
  15  Prefactor     1.7817        1.5594        .11080E-07   -.45403E-04
  16  Prefactor     .83783        2.9440        .13722E-07   -.39461E-04
  17  norm           .0000        .85302E-01    .83951E-08** at limit **
  18  norm          36.189        7.7381        .79230E-08   -.15298E-03
  19  Prefactor     18.437        1.1567       -.47631E-08   -.48036E-02
  20  Normalizat    1.2943        .17547       -.41825E-08    .30372E-05
  21  Prefactor     .73768        .16953        .32143E-06   -.60910E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.28428
  Prefactor  = 3.54626
  norm       = 0
  Prefactor  = 0.174016
  Prefactor  = 3.07586
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.441064
  norm       = 39.8312
  Prefactor  = 0
  Prefactor  = 0.274711
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.7817
  Prefactor  = 0.837826
  norm       = 0
  norm       = 36.1889
  Prefactor  = 18.4367
  Normalizat = 1.29425
  Prefactor  = 0.737677
 **********
 **   18 **HESSE 
 **********

 FCN=   10096.78     FROM HESSE     STATUS=OK           375 CALLS     1722 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2843        12.261        .56184E-03   -1.5672    
   2  Prefactor     3.5463        4.3610        .54000E-03   -1.5670    
   3  norm           .0000        5.5621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .17402        7.5458        .87013E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.0759        28.131        .57517E-03   -1.5673    
   6  Prefactor      .0000        7.2517        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        9.6051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.5879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44106        9.8340        .88736E-03   -1.5695    
  10  norm          39.831        3.0473        .15851E-03   -1.5582    
  11  Prefactor      .0000        4.1683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .27471        1.2521        .66220E-02   -1.5697    
  13  Prefactor     .55511E-10    12.994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        .63597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7817        1.5687        .78360E-03   -1.5681    
  16  Prefactor     .83783        2.9712        .49261E-03   -1.5690    
  17  norm           .0000        .51080E-01    .12322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          36.189        7.7725        .16670E-03   -1.5588    
  19  Prefactor     18.437        12.307        .23326E-03   -1.5622    
  20  Normalizat    1.2943        .14971        .55925E-01   -.83738    
  21  Prefactor     .73768        .14359        .71682E-01   -1.0207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14296e-06
Minuit parameter uncertainties:
  1  12.2609
  2  4.36096
  3  3.29372e-06
  4  2.2918
  5  18.604
  6  8.27323e-06
  7  3.06674e-05
  8  3.47466e-07
  9  4.16532
  10  3.04726
  11  8.80735e-07
  12  1.17296
  13  4.14512e-05
  14  1.77907e-07
  15  1.56866
  16  2.97125
  17  1.76835e-08
  18  7.77252
  19  12.3073
  20  0.149765
  21  0.14366
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  0.000e+00  3.067e-05  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  7.377e-01  1.437e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.294e+00  1.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 177.154 18.686
Photon Flux Upper Limit: 5.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/577863/likelihoodResults_691372801_691632001_4FGL_J1148.6+1841_daily_bin1744.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) = 10096.8335293
delta logL = -0.0544461121026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10095.7499577
delta logL = 1.02912546496

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10095.75     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      270 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25691E-01    .22718        .25839E-03** at limit **
   2  Index         5.3586        1.9223        .94735E-01    .30557E-03
   3  Normalizat    1.2026        .32914E-01    .57713E-01    .53098E-06
   4  Prefactor     .79394        .33006E-01    .69360E-01    .18030E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0256911
  Index      = 5.35863
  Normalizat = 1.20263
  Prefactor  = 0.793944
 **********
 **   18 **HESSE 
 **********

 FCN=   10095.75     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      305 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25691E-01    .65865        .11610E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.3586        3.7215        .48193E-02    .71787E-01
   3  Normalizat    1.2026        .12572        .25522E-03   -.86522    
   4  Prefactor     .79394        .12288        .30690E-03   -.99952    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.72128e-07
Minuit parameter uncertainties:
  1  0.260166
  2  4.20093
  3  0.125749
  4  0.122921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577863': 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) = 10095.7499574
delta logL = 1.02912575272

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  2.569e-02  2.602e-01  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  5.359e+00  4.201e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  7.939e-01  1.229e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.203e+00  1.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.25
Ra Dec: 177.154 18.686
Photon Index (Free Index): 5.36 +/- 4.20
Photon Flux (Free Index): 6.99e-08 +/- 4.91e-08
Energy Flux (Free Index): 9.04e-06 +/- 7.24e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/577863/cmap_HighResolution_691372801_691632001_4FGL_J1148.6+1841_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-03', comment='SUCCESS', energy_flux2='9.04e-06', dlogl='1.03e+00', photon_flux2='6.99e-08', job_status='DONE', time_completed='2022-12-02 01:05:36.945875', photon_index_error2='4.20', photon_index2='5.36', ts='0.00', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='5.95e-08', energy_flux_error2='7.24e-06', EG='1.29', time_epoch_completed='1669971936.95', return_code='0', job_id='577863', GAL2='0.79', EG2='1.20', return_code2='102', photon_flux_error2='4.91e-08', ts2='2.25', photon_index='2.32' WHERE bin_id='1744' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 01:05:36 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 577863: <4FGL_J1148.6+1841_daily_bin1744> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1744> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec  2 00:50:16 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:50:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:50:17 2022
Terminated at Fri Dec  2 01:05:37 2022
Results reported at Fri Dec  2 01:05:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1744 177.154 18.6861 691372801 691632001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1148.6+1841 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   731.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

