aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 5 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1148.5+2629_weekly_bin496
RA = 177.141, Dec = 26.4986
tmin = 538963201, tmax = 539568001
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='989736', job_status='RUN', time_executed='2021-07-18 10:56:59.033665', time_epoch_executed='1626631019.03' WHERE source_name='4FGL J1148.5+2629' and cadence='weekly' and bin_id='496'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/989736

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/989736/ft1_4FGL_J1148.5+2629_weekly_bin496.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/989736/ft2_4FGL_J1148.5+2629_weekly_bin496.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/989736/ft1_4FGL_J1148.5+2629_weekly_bin496.fits outfile=/scratch/kocevski/989736/ft1_filteredMKT_4FGL_J1148.5+2629_weekly_bin496.fits ra=177.141 dec=26.4986 rad=12.0 tmin=538963201.0 tmax=539568001.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 11.81
user 11.34
sys 0.37

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/989736/ft2_4FGL_J1148.5+2629_weekly_bin496.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/989736/ft2_4FGL_J1148.5+2629_weekly_bin496.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/989736/ft1_filteredMKT_4FGL_J1148.5+2629_weekly_bin496.fits evtable="EVENTS" outfile="/scratch/kocevski/989736/ft1_filtered_4FGL_J1148.5+2629_weekly_bin496.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.57
user 0.38
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/989736/ft1_filtered_4FGL_J1148.5+2629_weekly_bin496.fits" evtable="EVENTS" scfile=/scratch/kocevski/989736/ft2_4FGL_J1148.5+2629_weekly_bin496.fits sctable="SC_DATA" outfile=/scratch/kocevski/989736/ltcube_538963201_539568001_4FGL_J1148.5+2629_weekly_bin496.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/989736/ft2_4FGL_J1148.5+2629_weekly_bin496.fits
.....................!
real 29.76
user 29.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/989736/ft1_filtered_4FGL_J1148.5+2629_weekly_bin496.fits evtable="EVENTS" scfile=/scratch/kocevski/989736/ft2_4FGL_J1148.5+2629_weekly_bin496.fits sctable="SC_DATA" expcube=/scratch/kocevski/989736/ltcube_538963201_539568001_4FGL_J1148.5+2629_weekly_bin496.fits outfile=/scratch/kocevski/989736/expmap_538963201_539568001_4FGL_J1148.5+2629_weekly_bin496.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/989736/ltcube_538963201_539568001_4FGL_J1148.5+2629_weekly_bin496.fits
.....................!
real 192.94
user 186.25
sys 5.29

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 J1148.5+2629 @ 177.141 26.4986

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/989736/ft1_filtered_4FGL_J1148.5+2629_weekly_bin496.fits scfile=/scratch/kocevski/989736/ft2_4FGL_J1148.5+2629_weekly_bin496.fits outfile=/scratch/kocevski/989736/cmap_538963201_539568001_4FGL_J1148.5+2629_weekly_bin496.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.141 yref=26.4986 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/989736/ft1_filtered_4FGL_J1148.5+2629_weekly_bin496.fits scfile=/scratch/kocevski/989736/ft2_4FGL_J1148.5+2629_weekly_bin496.fits outfile=/scratch/kocevski/989736/cmap_HighResolution_538963201_539568001_4FGL_J1148.5+2629_weekly_bin496.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.141 yref=26.4986 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.61
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/989736/ft1_filtered_4FGL_J1148.5+2629_weekly_bin496.fits evtable="EVENTS" scfile=/scratch/kocevski/989736/ft2_4FGL_J1148.5+2629_weekly_bin496.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/989736/Model_4FGL_J1148.5+2629_weekly_bin496.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/989736/ft1_filtered_4FGL_J1148.5+2629_weekly_bin496.fits.....................!
real 42.53
user 40.72
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/989736/ft1_filtered_4FGL_J1148.5+2629_weekly_bin496.fits', '/scratch/kocevski/989736/ft2_4FGL_J1148.5+2629_weekly_bin496.fits', expMap='/scratch/kocevski/989736/expmap_538963201_539568001_4FGL_J1148.5+2629_weekly_bin496.fits', expCube='/scratch/kocevski/989736/ltcube_538963201_539568001_4FGL_J1148.5+2629_weekly_bin496.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/989736/Model_4FGL_J1148.5+2629_weekly_bin496.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1148.5+2629'

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  3.615e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.924e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  3.685e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/989736/ft1_filtered_4FGL_J1148.5+2629_weekly_bin496.fits
Spacecraft file(s): /scratch/kocevski/989736/ft2_4FGL_J1148.5+2629_weekly_bin496.fits
Exposure map: /scratch/kocevski/989736/expmap_538963201_539568001_4FGL_J1148.5+2629_weekly_bin496.fits
Exposure cube: /scratch/kocevski/989736/ltcube_538963201_539568001_4FGL_J1148.5+2629_weekly_bin496.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/989736/Model_4FGL_J1148.5+2629_weekly_bin496.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) = 3841.85062332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6232       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    22.610       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7898       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3426       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.707       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12885E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6779       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.757       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .89740       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1101       1.0000         .10000E-03   10000.    
    15 'Prefactor '    63.568       1.0000         .10000E-03   10000.    
    16 'norm      '    5.4038       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .50644E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .63522       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.2397       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0350       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.0164       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.8993       1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.785       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1870       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .53318       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3841.815     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3921 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6233        9.7430        .34369E-06   -.10831E-04
   2  Prefactor     .10000E-03    1.7745        .61968E-07** at limit **
   3  norm          22.610        18.949        .21061E-06   -.21427E-05
   4  Prefactor     .10000E-03    3.7377       -.80835E-08** at limit **
   5  norm          .10000E-03    12.238        .38452E-06** at limit **
   6  Prefactor     5.7927        9.4262        .30280E-06   -.18522E-04
   7  Prefactor     2.3426        2.4061        .58463E-07    .14475E-04
   8  Prefactor     .10000E-03    25.429        .25909E-06** at limit **
   9  Prefactor     40.717        23.820        .17506E-06    .90882E-04
  10  Prefactor     .10000E-03    15.814        .26243E-06** at limit **
  11  Prefactor     5.6795        6.5892        .28702E-06    .17921E-05
  12  Prefactor     17.765        24.895        .26729E-06    .33142E-04
  13  Prefactor     .92259        16.257        .86572E-06   -.69893E-04
  14  Prefactor     2.1122        2.9852        .34013E-06   -.33842E-04
  15  Prefactor     63.566        49.052       -.24799E-05    .22284E-04
  16  norm          5.4046        2.3356        .10906E-07    .12200E-04
  17  Prefactor     .10000E-03    6.4182       -.19420E-06** at limit **
  18  Prefactor     .10002E-03    182.13       -.66870E-05** at limit **
  19  Prefactor     .63906        3.0506        .13188E-05   -.37036E-04
  20  Prefactor     .10000E-03    2.1844       -.10375E-06** at limit **
  21  norm          3.2398        3.0860       -.20128E-07    .51747E-04
  22  Prefactor     5.0350        7.1158        .26358E-05   -.86902E-04
  23  Prefactor     9.0166        3.8685       -.15412E-07    .22898E-04
  24  Prefactor     .10000E-03    1.1764        .51177E-07** at limit **
  25  Prefactor     .10000E-03    3.8543        .51894E-07** at limit **
  26  norm          .10000E-03    .11991        .17748E-07** at limit **
  27  norm          5.8993        4.7706        .12573E-06   -.21811E-04
  28  Prefactor     14.787        13.384        .19374E-06   -.34715E-05
  29  Normalizat    1.1863        .23238       -.22915E-05   -.64931E-04
  30  Prefactor     .53398        .22195        .55960E-06   -.98984E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.62328
  Prefactor  = 0.0001
  norm       = 22.6104
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.79275
  Prefactor  = 2.34258
  Prefactor  = 0.0001
  Prefactor  = 40.717
  Prefactor  = 0.0001
  Prefactor  = 5.67953
  Prefactor  = 17.7653
  Prefactor  = 0.922587
  Prefactor  = 2.11222
  Prefactor  = 63.5655
  norm       = 5.40456
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.63906
  Prefactor  = 0.0001
  norm       = 3.23976
  Prefactor  = 5.03504
  Prefactor  = 9.01663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.89931
  Prefactor  = 14.7871
  Normalizat = 1.18626
  Prefactor  = 0.533984
 **********
 **   18 **HESSE 
 **********

 FCN=   3841.815     FROM HESSE     STATUS=OK           594 CALLS     4515 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6233        9.7268        .16941E-03   -1.5234    
   2  Prefactor     .10000E-03    1.8202        .16109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          22.610        18.941        .84238E-04   -1.4757    
   4  Prefactor     .10000E-03    3.7538        .11700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    12.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7927        9.4216        .16692E-03   -1.5227    
   7  Prefactor     2.3426        2.4058        .94077E-04   -1.5402    
   8  Prefactor     .10000E-03    25.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.717        23.849        .62827E-04   -1.4431    
  10  Prefactor     .10000E-03    16.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.6795        6.5742        .16189E-03   -1.5231    
  12  Prefactor     17.765        24.806        .95045E-04   -1.4865    
  13  Prefactor     .92259        50.753        .45150E-02   -1.5516    
  14  Prefactor     2.1122        2.9567        .11317E-03   -1.5417    
  15  Prefactor     63.566        48.982        .50332E-04   -1.4112    
  16  norm          5.4046        2.3344        .57440E-04   -1.5243    
  17  Prefactor     .10000E-03    6.6527        .30519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    186.02        .21151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .63906        3.0722        .19918E-03   -1.5548    
  20  Prefactor     .10000E-03    2.1953        .89111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.2398        3.0886        .10066E-03   -1.5348    
  22  Prefactor     5.0350        7.1416        .89602E-03   -1.5259    
  23  Prefactor     9.0166        3.8682        .75396E-04   -1.5107    
  24  Prefactor     .10000E-03    1.1874        .65590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.8922        .11876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .18271        .41579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.8993        4.7650        .11748E-03   -1.5222    
  28  Prefactor     14.787        13.386        .10417E-03   -1.4939    
  29  Normalizat    1.1863        .26195        .21756E-03   -.87028    
  30  Prefactor     .53398        .24841        .32953E-03   -1.1044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2371e-08
Minuit parameter uncertainties:
  1  9.72957
  2  5.26492e-06
  3  18.9456
  4  5.19867e-07
  5  7.26482e-05
  6  9.42398
  7  2.40585
  8  0.000126935
  9  23.8547
  10  8.03849e-05
  11  6.57508
  12  24.8206
  13  13.6971
  14  2.95695
  15  49.0129
  16  2.3344
  17  2.18271e-05
  18  0.00350254
  19  2.8024
  20  1.05449e-05
  21  3.0887
  22  7.14281
  23  3.86835
  24  3.25962e-06
  25  7.91793e-06
  26  7.29581e-07
  27  4.76533
  28  13.3884
  29  0.262241
  30  0.248915
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.777e+01  2.482e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.924e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  3.685e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  5.340e-01  2.489e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.186e+00  2.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.94
Ra Dec: 177.141 26.499
Photon Flux Upper Limit: 1.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/989736/likelihoodResults_538963201_539568001_4FGL_J1148.5+2629_weekly_bin496.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) = 3841.78289099
delta logL = 0.0319032972016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3841.77179076
delta logL = 0.0430035258046

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.916       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3458       1.0000          .0000       10.000    
     3 'Normalizat'    1.2085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51931       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3841.772     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      219 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 18.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.897        25.707       -.21009E-04   -.15750E-03
   2  Index         2.3454        1.6569       -.18687E-03    .45632E-04
   3  Normalizat    1.2085        .21591        .97020E-05    .93439E-03
   4  Prefactor     .51909        .22302       -.87273E-05    .42907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8966
  Index      = 2.34543
  Normalizat = 1.20852
  Prefactor  = 0.51909
 **********
 **   18 **HESSE 
 **********

 FCN=   3841.772     FROM HESSE     STATUS=OK            27 CALLS      246 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.897        24.545        .10737E-03   -1.4962    
   2  Index         2.3454        1.5853        .14183E-01   -.55968    
   3  Normalizat    1.2085        .23773        .21591E-03   -.86340    
   4  Prefactor     .51909        .24607        .33383E-03   -1.1111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38539e-09
Minuit parameter uncertainties:
  1  24.5629
  2  1.62484
  3  0.237943
  4  0.246578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/989736': 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) = 3841.77178907
delta logL = 0.0430052149045

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.390e+01  2.456e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.345e+00  1.625e+00  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  3.685e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  5.191e-01  2.466e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.209e+00  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 177.141 26.499
Photon Index (Free Index): 2.35 +/- 1.62
Photon Flux (Free Index): 2.20e-08 +/- 5.37e-08
Energy Flux (Free Index): 7.78e-06 +/- 1.12e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/989736/cmap_HighResolution_538963201_539568001_4FGL_J1148.5+2629_weekly_bin496.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', comment='SUCCESS', energy_flux2='7.78e-06', dlogl='4.30e-02', photon_flux2='2.20e-08', job_status='DONE', time_completed='2021-07-18 11:10:01.695774', photon_index_error2='1.62', photon_index2='2.35', ts='0.94', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='1.12e-05', EG='1.19', time_epoch_completed='1626631801.7', return_code='0', job_id='989736', GAL2='0.52', EG2='1.21', return_code2='0', photon_flux_error2='5.37e-08', ts2='1.02', photon_index='2.92' WHERE bin_id='496' AND source_name='4FGL J1148.5+2629' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 18 11:10:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 989736: <4FGL_J1148.5+2629_weekly_bin496> in cluster <slac> Done

Job <4FGL_J1148.5+2629_weekly_bin496> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jul 18 10:56:03 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 18 10:56:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 18 10:56:46 2021
Terminated at Sun Jul 18 11:10:02 2021
Results reported at Sun Jul 18 11:10:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_weekly_bin496 177.141 26.4986 538963201 539568001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1148.5+2629 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   766.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            839 sec.

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

