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


Performing analysis on: 4FGL_J1148.5+2629_weekly_bin759
RA = 177.141, Dec = 26.4986
tmin = 698025601, tmax = 698630401
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='588583', job_status='RUN', time_executed='2023-02-21 03:27:04.333473', time_epoch_executed='1676978824.33' WHERE source_name='4FGL J1148.5+2629' and cadence='weekly' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588583

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588583/ft1_4FGL_J1148.5+2629_weekly_bin759.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588583/ft2_4FGL_J1148.5+2629_weekly_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588583/ft1_4FGL_J1148.5+2629_weekly_bin759.fits outfile=/scratch/kocevski/588583/ft1_filteredMKT_4FGL_J1148.5+2629_weekly_bin759.fits ra=177.141 dec=26.4986 rad=12.0 tmin=698025601.0 tmax=698630401.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 8.48
user 8.20
sys 0.25

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

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

Number of photons that the gtmktime cut: 786

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588583/ft1_filtered_4FGL_J1148.5+2629_weekly_bin759.fits" evtable="EVENTS" scfile=/scratch/kocevski/588583/ft2_4FGL_J1148.5+2629_weekly_bin759.fits sctable="SC_DATA" outfile=/scratch/kocevski/588583/ltcube_698025601_698630401_4FGL_J1148.5+2629_weekly_bin759.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/588583/ft2_4FGL_J1148.5+2629_weekly_bin759.fits
.....................!
real 26.57
user 26.10
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588583/ft1_filtered_4FGL_J1148.5+2629_weekly_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/588583/ft2_4FGL_J1148.5+2629_weekly_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/588583/ltcube_698025601_698630401_4FGL_J1148.5+2629_weekly_bin759.fits outfile=/scratch/kocevski/588583/expmap_698025601_698630401_4FGL_J1148.5+2629_weekly_bin759.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/588583/ltcube_698025601_698630401_4FGL_J1148.5+2629_weekly_bin759.fits
.....................!
real 189.41
user 185.01
sys 4.09

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/588583/ft1_filtered_4FGL_J1148.5+2629_weekly_bin759.fits scfile=/scratch/kocevski/588583/ft2_4FGL_J1148.5+2629_weekly_bin759.fits outfile=/scratch/kocevski/588583/cmap_698025601_698630401_4FGL_J1148.5+2629_weekly_bin759.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.60
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588583/ft1_filtered_4FGL_J1148.5+2629_weekly_bin759.fits scfile=/scratch/kocevski/588583/ft2_4FGL_J1148.5+2629_weekly_bin759.fits outfile=/scratch/kocevski/588583/cmap_HighResolution_698025601_698630401_4FGL_J1148.5+2629_weekly_bin759.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.57
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/588583/ft1_filtered_4FGL_J1148.5+2629_weekly_bin759.fits', '/scratch/kocevski/588583/ft2_4FGL_J1148.5+2629_weekly_bin759.fits', expMap='/scratch/kocevski/588583/expmap_698025601_698630401_4FGL_J1148.5+2629_weekly_bin759.fits', expCube='/scratch/kocevski/588583/ltcube_698025601_698630401_4FGL_J1148.5+2629_weekly_bin759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/588583/Model_4FGL_J1148.5+2629_weekly_bin759.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  0.000e+00  1.000e+06 ( 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/588583/ft1_filtered_4FGL_J1148.5+2629_weekly_bin759.fits
Spacecraft file(s): /scratch/kocevski/588583/ft2_4FGL_J1148.5+2629_weekly_bin759.fits
Exposure map: /scratch/kocevski/588583/expmap_698025601_698630401_4FGL_J1148.5+2629_weekly_bin759.fits
Exposure cube: /scratch/kocevski/588583/ltcube_698025601_698630401_4FGL_J1148.5+2629_weekly_bin759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/588583/Model_4FGL_J1148.5+2629_weekly_bin759.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) = 7967.81964564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14960E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .13878E-08   1.0000          .0000       .10000E+07
     3 'norm      '    .20255E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    11.835       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.5584       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.5589       1.0000          .0000       .10000E+07
     7 'Prefactor '    .20539E-08   1.0000          .0000       .10000E+07
     8 'Prefactor '    10.880       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.7109       1.0000          .0000       .10000E+07
    10 'Prefactor '    10.476       1.0000          .0000       .10000E+07
    11 'Prefactor '    .37394E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .23913E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .53929       1.0000          .0000       .10000E+07
    14 'norm      '    53.824       1.0000          .0000       .10000E+07
    15 'Prefactor '    .89578E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .16154E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.8253       1.0000          .0000       .10000E+07
    18 'norm      '    .15876E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .11152E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    1.4556       1.0000          .0000       .10000E+07
    21 'Prefactor '    1.2570       1.0000          .0000       .10000E+07
    22 'Prefactor '    .72387E-07   1.0000          .0000       .10000E+07
    23 'norm      '    .42054E-01   1.0000          .0000       .10000E+07
    24 'norm      '    13.082       1.0000          .0000       .10000E+07
    25 'Prefactor '    10.959       1.0000          .0000       .10000E+07
    26 'Normalizat'    .73477       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3218       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=   7966.048     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     2082 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        10.730       -.30397E-08** at limit **
   2  Prefactor      .0000        1.2393        .42107E-08** at limit **
   3  norm           .0000        8.6075       -.23342E-08** at limit **
   4  Prefactor     11.849        7.6809       -.14395E-07   -.13482E-02
   5  Prefactor     6.5578        9.9834        .68467E-08   -.54643E-03
   6  Prefactor     2.5596        2.7053        .80334E-08   -.16696E-02
   7  Prefactor      .0000        38.574        .16391E-07** at limit **
   8  Prefactor     10.884        11.633       -.60656E-07   -.18114E-02
   9  Prefactor     7.7439        9.4703       -.39275E-08   -.73166E-03
  10  Prefactor     10.462        5.4711        .54669E-07   -.83752E-02
  11  Prefactor      .0000        11.042       -.14822E-07** at limit **
  12  Prefactor      .0000        3.4976        .40777E-08** at limit **
  13  Prefactor     .53838        1.8998        .86520E-07   -.60394E-02
  14  norm          53.825        3.8800       -.52027E-09   -.10842E-02
  15  Prefactor     .31134E-03    2.9230        .75748E-09** at limit **
  16  Prefactor      .0000        2.0035        .45595E-09** at limit **
  17  Prefactor     2.8264        2.7057        .27445E-08   -.20094E-02
  18  norm           .0000        1.6671        .33886E-08** at limit **
  19  Prefactor      .0000        2.6547        .68386E-08** at limit **
  20  Prefactor     1.4560        1.4957       -.26435E-08    .24614E-04
  21  Prefactor     1.2577        1.5272        .26583E-08   -.22729E-02
  22  Prefactor      .0000        3.0334       -.78627E-08** at limit **
  23  norm          .41853E-01    .13242        .10263E-07** at limit **
  24  norm          13.085        5.4627       -.74188E-08   -.13104E-02
  25  Prefactor     10.901        7.1619        .12696E-06    .77118E-02
  26  Normalizat    .73484        .18525       -.71369E-06   -.92387E-04
  27  Prefactor     1.3218        .20482       -.30764E-06   -.93931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 11.8493
  Prefactor  = 6.55783
  Prefactor  = 2.55956
  Prefactor  = 0
  Prefactor  = 10.8844
  Prefactor  = 7.74388
  Prefactor  = 10.4617
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.538375
  norm       = 53.8251
  Prefactor  = 0.000311344
  Prefactor  = 0
  Prefactor  = 2.82644
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.45598
  Prefactor  = 1.25774
  Prefactor  = 0
  norm       = 0.041853
  norm       = 13.0846
  Prefactor  = 10.9008
  Normalizat = 0.734835
  Prefactor  = 1.32179
 **********
 **   18 **HESSE 
 **********

 FCN=   7966.048     FROM HESSE     STATUS=OK           496 CALLS     2578 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        10.768        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.2435        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        8.6360        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.849        7.6954        .11638E-04   -1.5639    
   5  Prefactor     6.5578        9.9846        .15665E-04   -1.5657    
   6  Prefactor     2.5596        2.6906        .14217E-04   -1.5676    
   7  Prefactor      .0000        38.586        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.884        11.693        .12140E-04   -1.5642    
   9  Prefactor     7.7439        9.4601        .14435E-04   -1.5652    
  10  Prefactor     10.462        5.7443        .61863E-04   -1.5643    
  11  Prefactor      .0000        11.050        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        3.5022        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .53838        2.0497        .23448E-04   -1.5693    
  14  norm          53.825        3.8801        .44678E-05   -1.5561    
  15  Prefactor     .31134E-03    3.9149        .41171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        2.0201        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.8264        2.7009        .13871E-04   -1.5674    
  18  norm           .0000        1.6753        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.6569        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.4560        1.5026        .10721E-04   -1.5684    
  21  Prefactor     1.2577        1.4978        .11729E-04   -1.5686    
  22  Prefactor      .0000        3.0371        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .41853E-01    .16131        .54913E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          13.085        5.4600        .11068E-04   -1.5636    
  25  Prefactor     10.901        7.6607        .12096E-04   -1.5642    
  26  Normalizat    .73484        .21825        .34409E-03   -1.0253    
  27  Prefactor     1.3218        .24411        .30069E-03   -.82661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.24585e-10
Minuit parameter uncertainties:
  1  1.41451e-06
  2  2.01667e-06
  3  1.36902e-06
  4  7.69545
  5  9.9846
  6  2.69058
  7  3.1021e-05
  8  11.6933
  9  9.46009
  10  5.74432
  11  1.42946e-05
  12  2.8902e-06
  13  2.04968
  14  3.88015
  15  0.0698247
  16  1.38058e-06
  17  2.70086
  18  1.11827e-06
  19  3.65923e-06
  20  1.50257
  21  1.49782
  22  3.93641e-06
  23  0.161314
  24  5.45998
  25  7.66071
  26  0.21851
  27  0.244318
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  0.000e+00  1.429e-05  0.000e+00  1.000e+06 ( 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:  1.322e+00  2.443e-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:  7.348e-01  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 177.141 26.499
Photon Flux Upper Limit: 9.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/588583/likelihoodResults_698025601_698630401_4FGL_J1148.5+2629_weekly_bin759.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) = 7966.04845157
delta logL = -5.83603923587e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7966.04844578
delta logL = -4.41232259618e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21594E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.5100       1.0000          .0000       10.000    
     3 'Normalizat'    .73478       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3219       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.

 FCN=   7966.048     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      281 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38858E-08    .47432        .42118E-03** at limit **
   2  Index         3.4784        8.1810        .50000        .77307E-09
   3  Normalizat    .73483        .10627E-02    .77718E-01   -.10180E-03
   4  Prefactor     1.3218        .12137E-02    .67981E-01    .16503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.88578e-09
  Index      = 3.47838
  Normalizat = 0.734831
  Prefactor  = 1.32179
 **********
 **   18 **HESSE 
 **********

 FCN=   7966.048     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      308 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38858E-08    6.6255        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4784        5.0604        .20000       -.30923    
   3  Normalizat    .73483        .39619E-02    .34409E-03   -1.0253    
   4  Prefactor     1.3218        .45317E-02    .30069E-03   -.82661    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.23923e-10
Minuit parameter uncertainties:
  1  0.000321358
  2  44140.7
  3  0.00396194
  4  0.00453174
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588583': 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) = 7966.04844574
delta logL = -4.48380887974e-10

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  3.886e-09  3.214e-04  0.000e+00  1.000e+06 ( 1.000e-12)
288        Index:  3.478e+00  4.414e+04  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:  1.322e+00  4.532e-03  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:  7.348e-01  3.962e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 177.141 26.499

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/588583/cmap_HighResolution_698025601_698630401_4FGL_J1148.5+2629_weekly_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.30e-03', job_status='DONE', photon_flux_upper_limit='9.16e-08', time_completed='2023-02-21 03:41:49.914371', job_id='588583', GAL2='1.32', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1676979709.91', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='-4.48e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='759' AND source_name='4FGL J1148.5+2629' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 21 03:41:49 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 588583: <4FGL_J1148.5+2629_weekly_bin759> in cluster <slac> Done

Job <4FGL_J1148.5+2629_weekly_bin759> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 03:25:27 2023
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 03:25:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 03:25:28 2023
Terminated at Tue Feb 21 03:41:50 2023
Results reported at Tue Feb 21 03:41:50 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_weekly_bin759 177.141 26.4986 698025601 698630401 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 :                                   879.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            983 sec.

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

