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


Performing analysis on: 4FGL_J1148.6+1841_weekly_bin763
RA = 177.154, Dec = 18.6861
tmin = 700444801, tmax = 701049601
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='426361', job_status='RUN', time_executed='2023-03-21 01:30:38.830372', time_epoch_executed='1679387438.83' WHERE source_name='4FGL J1148.6+1841' and cadence='weekly' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/426361

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/426361/ft1_4FGL_J1148.6+1841_weekly_bin763.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/426361/ft2_4FGL_J1148.6+1841_weekly_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/426361/ft1_4FGL_J1148.6+1841_weekly_bin763.fits outfile=/scratch/kocevski/426361/ft1_filteredMKT_4FGL_J1148.6+1841_weekly_bin763.fits ra=177.154 dec=18.6861 rad=12.0 tmin=700444801.0 tmax=701049601.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 9.64
user 9.28
sys 0.31

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

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

Number of photons that the gtmktime cut: 1058

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/426361/ft1_filtered_4FGL_J1148.6+1841_weekly_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/426361/ft2_4FGL_J1148.6+1841_weekly_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/426361/ltcube_700444801_701049601_4FGL_J1148.6+1841_weekly_bin763.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/426361/ft2_4FGL_J1148.6+1841_weekly_bin763.fits
.....................!
real 27.72
user 27.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/426361/ft1_filtered_4FGL_J1148.6+1841_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/426361/ft2_4FGL_J1148.6+1841_weekly_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/426361/ltcube_700444801_701049601_4FGL_J1148.6+1841_weekly_bin763.fits outfile=/scratch/kocevski/426361/expmap_700444801_701049601_4FGL_J1148.6+1841_weekly_bin763.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/426361/ltcube_700444801_701049601_4FGL_J1148.6+1841_weekly_bin763.fits
.....................!
real 191.06
user 185.54
sys 4.96

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/426361/ft1_filtered_4FGL_J1148.6+1841_weekly_bin763.fits scfile=/scratch/kocevski/426361/ft2_4FGL_J1148.6+1841_weekly_bin763.fits outfile=/scratch/kocevski/426361/cmap_700444801_701049601_4FGL_J1148.6+1841_weekly_bin763.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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/426361/ft1_filtered_4FGL_J1148.6+1841_weekly_bin763.fits scfile=/scratch/kocevski/426361/ft2_4FGL_J1148.6+1841_weekly_bin763.fits outfile=/scratch/kocevski/426361/cmap_HighResolution_700444801_701049601_4FGL_J1148.6+1841_weekly_bin763.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.58
user 0.42
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/426361/ft1_filtered_4FGL_J1148.6+1841_weekly_bin763.fits', '/scratch/kocevski/426361/ft2_4FGL_J1148.6+1841_weekly_bin763.fits', expMap='/scratch/kocevski/426361/expmap_700444801_701049601_4FGL_J1148.6+1841_weekly_bin763.fits', expCube='/scratch/kocevski/426361/ltcube_700444801_701049601_4FGL_J1148.6+1841_weekly_bin763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/426361/Model_4FGL_J1148.6+1841_weekly_bin763.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/426361/ft1_filtered_4FGL_J1148.6+1841_weekly_bin763.fits
Spacecraft file(s): /scratch/kocevski/426361/ft2_4FGL_J1148.6+1841_weekly_bin763.fits
Exposure map: /scratch/kocevski/426361/expmap_700444801_701049601_4FGL_J1148.6+1841_weekly_bin763.fits
Exposure cube: /scratch/kocevski/426361/ltcube_700444801_701049601_4FGL_J1148.6+1841_weekly_bin763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/426361/Model_4FGL_J1148.6+1841_weekly_bin763.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) = 12086.8446984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.469       1.0000          .0000       .10000E+07
     2 'Prefactor '    .28834E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .21263E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.5575       1.0000          .0000       .10000E+07
     5 'Prefactor '    .46252E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.5527       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.2566       1.0000          .0000       .10000E+07
     8 'Prefactor '    .79693       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.8645       1.0000          .0000       .10000E+07
    10 'norm      '    23.747       1.0000          .0000       .10000E+07
    11 'Prefactor '    17.221       1.0000          .0000       .10000E+07
    12 'Prefactor '    .29038       1.0000          .0000       .10000E+07
    13 'Prefactor '    .90938E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    2.2884       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.4896       1.0000          .0000       .10000E+07
    16 'Prefactor '    .20762E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .78826E-08   1.0000          .0000       .10000E+07
    18 'norm      '    .78876E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    4.6455       1.0000          .0000       .10000E+07
    20 'Normalizat'    .83367       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1613       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=   12086.80     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1749 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.041        20.258       -.12710E-06    .37840E-01
   2  Prefactor     .17431E-07    5.6108        .12550E-06** at limit **
   3  norm           .0000        4.4815        .56645E-07** at limit **
   4  Prefactor     3.5694        6.4059       -.16545E-06   -.69245E-01
   5  Prefactor     .44409E-08    3.0420        .94961E-07** at limit **
   6  Prefactor     6.6853        1.8408       -.11169E-07    .54775E-02
   7  Prefactor     5.2302        6.9055        .26121E-07    .42754E-03
   8  Prefactor     .79870        1.2040       -.28013E-08   -.25883E-03
   9  Prefactor     3.8101        5.8076       -.78359E-09   -.30703E-02
  10  norm          23.737        2.0589        .30656E-07    .12199E-01
  11  Prefactor     17.355        4.9953       -.31877E-07    .73372E-01
  12  Prefactor     .29951        8.3611        .28890E-06   -.93819E-03
  13  Prefactor     .17875E-07    32.282        .76503E-07** at limit **
  14  Prefactor     2.2935        2.3781        .20104E-07   -.27384E-03
  15  Prefactor     2.4935        2.4561       -.12422E-06   -.34575E-02
  16  Prefactor     .95368E-07    5.5077       -.39422E-06** at limit **
  17  norm           .0000        .63626E-01    .12144E-08** at limit **
  18  norm          .24369E-06    8.6039       -.19508E-06** at limit **
  19  Prefactor     4.6616        2.0931       -.35773E-07   -.10135E-02
  20  Normalizat    .83251        .16694       -.23112E-05    .90211E-04
  21  Prefactor     1.1618        .16157        .38266E-05    .18030E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.0409
  Prefactor  = 1.74305e-08
  norm       = 0
  Prefactor  = 3.56938
  Prefactor  = 4.44089e-09
  Prefactor  = 6.68526
  Prefactor  = 5.23023
  Prefactor  = 0.7987
  Prefactor  = 3.81009
  norm       = 23.7373
  Prefactor  = 17.3552
  Prefactor  = 0.299509
  Prefactor  = 1.78746e-08
  Prefactor  = 2.29348
  Prefactor  = 2.49346
  Prefactor  = 9.53682e-08
  norm       = 0
  norm       = 2.43694e-07
  Prefactor  = 4.66155
  Normalizat = 0.832513
  Prefactor  = 1.16178
 **********
 **   18 **HESSE 
 **********

 FCN=   12086.80     FROM HESSE     STATUS=OK           383 CALLS     2132 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.041        21.089        .16125E-03   -1.5583    
   2  Prefactor     .17431E-07    5.7115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        4.4783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.5694        9.8537        .53561E-03   -1.5670    
   5  Prefactor     .44409E-08    3.0740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6853        16.217        .39180E-03   -1.5656    
   7  Prefactor     5.2302        6.9364        .43817E-03   -1.5662    
   8  Prefactor     .79870        1.2591        .53164E-03   -1.5690    
   9  Prefactor     3.8101        5.8523        .51308E-03   -1.5669    
  10  norm          23.737        2.0843        .20526E-03   -1.5611    
  11  Prefactor     17.355        16.646        .24108E-03   -1.5625    
  12  Prefactor     .29951        1.3914        .70879E-02   -1.5697    
  13  Prefactor     .17875E-07    32.374        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2935        2.4495        .67832E-03   -1.5678    
  15  Prefactor     2.4935        2.5016        .64756E-03   -1.5676    
  16  Prefactor     .95368E-07    1.3781        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .41362E-01    .11645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .24369E-06    1.2062        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.6616        11.775        .46671E-03   -1.5665    
  20  Normalizat    .83251        .14493        .68336E-01   -.98874    
  21  Prefactor     1.1618        .13628        .59772E-01   -.87516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68288e-07
Minuit parameter uncertainties:
  1  21.0888
  2  0.000631472
  3  2.00034e-05
  4  9.85379
  5  0.000233342
  6  16.217
  7  6.9364
  8  1.25914
  9  5.85235
  10  2.0843
  11  16.6458
  12  1.2911
  13  0.00152083
  14  2.4495
  15  2.50157
  16  0.000725089
  17  5.50395e-08
  18  0.00108429
  19  11.7752
  20  0.144993
  21  0.136321
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  5.230e+00  6.936e+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

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.162e+00  1.363e-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:  8.325e-01  1.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/426361/likelihoodResults_700444801_701049601_4FGL_J1148.6+1841_weekly_bin763.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) = 12086.7652923
delta logL = 0.034842534058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12086.7620061
delta logL = 0.0381287404107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0395       1.0000          .0000       .10000E+07
     2 'Index     '    2.6441       1.0000          .0000       10.000    
     3 'Normalizat'    .82370       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1670       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12086.76     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      297 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0374        11.087        .10029E-03   -.58740E-03
   2  Index         2.6443        1.7798        .91102E-02    .33981E-03
   3  Normalizat    .82372        .16622        .30385E-03    .23617E-03
   4  Prefactor     1.1670        .16531        .26382E-03    .34387E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.03739
  Index      = 2.64431
  Normalizat = 0.823721
  Prefactor  = 1.16701
 **********
 **   18 **HESSE 
 **********

 FCN=   12086.76     FROM HESSE     STATUS=OK            27 CALLS      324 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0374        7.8955        .40117E-05   -1.5668    
   2  Index         2.6443        1.2842        .18220E-02   -.49058    
   3  Normalizat    .82372        .16290        .12154E-04   -.99195    
   4  Prefactor     1.1670        .16312        .10553E-04   -.87353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10686e-10
Minuit parameter uncertainties:
  1  7.89551
  2  1.30303
  3  0.162992
  4  0.163187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/426361': 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) = 12086.762006
delta logL = 0.0381287957789

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  4.037e+00  7.896e+00  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.644e+00  1.303e+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:  1.167e+00  1.632e-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:  8.237e-01  1.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.81
Ra Dec: 177.154 18.686

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/426361/cmap_HighResolution_700444801_701049601_4FGL_J1148.6+1841_weekly_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-03', job_status='DONE', photon_flux_upper_limit='7.10e-08', time_completed='2023-03-21 01:45:47.829098', job_id='426361', GAL2='1.17', fit_tolerance='1e-08', EG2='0.82', EG='0.83', time_epoch_completed='1679388347.83', return_code2='0', ts='0.81', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='3.81e-02', ts2='0.88', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='763' AND source_name='4FGL J1148.6+1841' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 21 01:45:47 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 426361: <4FGL_J1148.6+1841_weekly_bin763> in cluster <slac> Done

Job <4FGL_J1148.6+1841_weekly_bin763> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar 21 01:30:20 2023
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 21 01:30:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 21 01:30:21 2023
Terminated at Tue Mar 21 01:45:48 2023
Results reported at Tue Mar 21 01:45:48 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_weekly_bin763 177.154 18.6861 700444801 701049601 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 :                                   907.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            928 sec.

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

