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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin1293
RA = 177.141, Dec = 26.4986
tmin = 574473601, tmax = 574732801
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='81105', job_status='RUN', time_executed='2021-09-04 11:41:47.875671', time_epoch_executed='1630780907.88' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='1293'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81105

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81105/ft1_4FGL_J1148.5+2629_daily_bin1293.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81105/ft2_4FGL_J1148.5+2629_daily_bin1293.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81105/ft1_4FGL_J1148.5+2629_daily_bin1293.fits outfile=/scratch/kocevski/81105/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin1293.fits ra=177.141 dec=26.4986 rad=12.0 tmin=574473601.0 tmax=574732801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.07
user 3.80
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/81105/ft2_4FGL_J1148.5+2629_daily_bin1293.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/81105/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin1293.fits evtable="EVENTS" outfile="/scratch/kocevski/81105/ft1_filtered_4FGL_J1148.5+2629_daily_bin1293.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.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/81105/ft1_filtered_4FGL_J1148.5+2629_daily_bin1293.fits" evtable="EVENTS" scfile=/scratch/kocevski/81105/ft2_4FGL_J1148.5+2629_daily_bin1293.fits sctable="SC_DATA" outfile=/scratch/kocevski/81105/ltcube_574473601_574732801_4FGL_J1148.5+2629_daily_bin1293.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/81105/ft2_4FGL_J1148.5+2629_daily_bin1293.fits
.....................!
real 12.23
user 11.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81105/ft1_filtered_4FGL_J1148.5+2629_daily_bin1293.fits evtable="EVENTS" scfile=/scratch/kocevski/81105/ft2_4FGL_J1148.5+2629_daily_bin1293.fits sctable="SC_DATA" expcube=/scratch/kocevski/81105/ltcube_574473601_574732801_4FGL_J1148.5+2629_daily_bin1293.fits outfile=/scratch/kocevski/81105/expmap_574473601_574732801_4FGL_J1148.5+2629_daily_bin1293.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/81105/ltcube_574473601_574732801_4FGL_J1148.5+2629_daily_bin1293.fits
.....................!
real 191.32
user 185.58
sys 5.32

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/81105/ft1_filtered_4FGL_J1148.5+2629_daily_bin1293.fits scfile=/scratch/kocevski/81105/ft2_4FGL_J1148.5+2629_daily_bin1293.fits outfile=/scratch/kocevski/81105/cmap_574473601_574732801_4FGL_J1148.5+2629_daily_bin1293.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/81105/ft1_filtered_4FGL_J1148.5+2629_daily_bin1293.fits scfile=/scratch/kocevski/81105/ft2_4FGL_J1148.5+2629_daily_bin1293.fits outfile=/scratch/kocevski/81105/cmap_HighResolution_574473601_574732801_4FGL_J1148.5+2629_daily_bin1293.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.54
user 0.35
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/81105/ft1_filtered_4FGL_J1148.5+2629_daily_bin1293.fits', '/scratch/kocevski/81105/ft2_4FGL_J1148.5+2629_daily_bin1293.fits', expMap='/scratch/kocevski/81105/expmap_574473601_574732801_4FGL_J1148.5+2629_daily_bin1293.fits', expCube='/scratch/kocevski/81105/ltcube_574473601_574732801_4FGL_J1148.5+2629_daily_bin1293.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/81105/Model_4FGL_J1148.5+2629_daily_bin1293.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/81105/ft1_filtered_4FGL_J1148.5+2629_daily_bin1293.fits
Spacecraft file(s): /scratch/kocevski/81105/ft2_4FGL_J1148.5+2629_daily_bin1293.fits
Exposure map: /scratch/kocevski/81105/expmap_574473601_574732801_4FGL_J1148.5+2629_daily_bin1293.fits
Exposure cube: /scratch/kocevski/81105/ltcube_574473601_574732801_4FGL_J1148.5+2629_daily_bin1293.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/81105/Model_4FGL_J1148.5+2629_daily_bin1293.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) = 5908.07969457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .37722E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8330       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4613       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5349       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1088       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16391E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6623       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.110       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0966       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4239       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6979       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0074       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12058E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .89754       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .55158E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    4.6853       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.3393       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.4295       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .57259E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    10.686       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1938       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89809       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=   5908.069     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     4037 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.151       -.37200E-06** at limit **
   2  Prefactor     .27629E-01    1.2921       -.22631E-07   -.68794E-04
   3  norm          2.8332        9.0422       -.93210E-07   -.35467E-04
   4  Prefactor     4.4603        6.0215       -.11057E-06   -.43177E-04
   5  norm          .10000E-03    4.7160        .50893E-07** at limit **
   6  Prefactor     5.5336        7.2433        .77159E-07   -.37221E-03
   7  Prefactor     .10000E-03    1.0103        .18077E-08** at limit **
   8  Prefactor     .10000E-03    20.144       -.26493E-06** at limit **
   9  Prefactor     5.0598        16.733        .63549E-06    .61015E-07
  10  Prefactor     .10000E-03    35.707        .12653E-06** at limit **
  11  Prefactor     1.6627        3.3907       -.94017E-07   -.13367E-03
  12  Prefactor     25.101        20.849       -.25619E-05   -.47277E-04
  13  Prefactor     4.0965        5.6344        .44807E-06   -.68358E-03
  14  Prefactor     2.4240        2.1285        .22897E-06    .29167E-04
  15  Prefactor     5.6801        18.772        .28875E-05    .51602E-04
  16  norm          1.0073        .88282        .60010E-08    .10229E-03
  17  Prefactor     .10000E-03    2.8833       -.20163E-06** at limit **
  18  Prefactor     .79715        17.223       -.12054E-05    .49086E-04
  19  Prefactor     .10000E-03    1.1674        .23348E-07** at limit **
  20  Prefactor     .10000E-03    1.5108       -.92859E-08** at limit **
  21  norm          4.6850        2.5709       -.35476E-08    .59036E-04
  22  Prefactor     .10000E-03    3.9890       -.90390E-08** at limit **
  23  Prefactor     3.3391        2.0535       -.82012E-08    .48128E-04
  24  Prefactor     5.4294        2.4533        .64983E-07   -.29409E-03
  25  Prefactor     .10000E-03    11.943        .47341E-06** at limit **
  26  norm          .57266E-01    .16618        .18022E-07   -.43022E-03
  27  norm          10.691        5.5307       -.10153E-05   -.18334E-03
  28  Prefactor     .10000E-03    2.6272        .24375E-07** at limit **
  29  Normalizat    1.1939        .18378        .42776E-06    .86537E-04
  30  Prefactor     .89821        .19325        .34533E-07    .86872E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.027629
  norm       = 2.83317
  Prefactor  = 4.4603
  norm       = 0.0001
  Prefactor  = 5.53357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.05985
  Prefactor  = 0.0001
  Prefactor  = 1.66271
  Prefactor  = 25.1013
  Prefactor  = 4.09647
  Prefactor  = 2.42398
  Prefactor  = 5.68014
  norm       = 1.00729
  Prefactor  = 0.0001
  Prefactor  = 0.79715
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.68497
  Prefactor  = 0.0001
  Prefactor  = 3.33911
  Prefactor  = 5.42938
  Prefactor  = 0.0001
  norm       = 0.0572657
  norm       = 10.6908
  Prefactor  = 0.0001
  Normalizat = 1.19389
  Prefactor  = 0.898211
 **********
 **   18 **HESSE 
 **********

 FCN=   5908.069     FROM HESSE     STATUS=OK           622 CALLS     4659 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .27629E-01    3.6239        .29557E-01   -1.5675    
   3  norm          2.8332        9.0345        .24161E-03   -1.5371    
   4  Prefactor     4.4603        6.0131        .19064E-03   -1.5286    
   5  norm          .10000E-03    4.7380        .16300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.5336        7.5392        .85387E-03   -1.5237    
   7  Prefactor     .10000E-03    1.5654        .14945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.0598        16.649        .17788E-03   -1.5258    
  10  Prefactor     .10000E-03    36.197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6627        3.3744        .19416E-03   -1.5450    
  12  Prefactor     25.101        20.887        .79941E-04   -1.4706    
  13  Prefactor     4.0965        10.341        .99591E-03   -1.5303    
  14  Prefactor     2.4240        2.1147        .96147E-04   -1.5397    
  15  Prefactor     5.6801        18.761        .16828E-03   -1.5231    
  16  norm          1.0073        .85453        .64845E-03   -1.5507    
  17  Prefactor     .10000E-03    5.8970        .24910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .79715        128.51        .59414E-02   -1.5529    
  19  Prefactor     .10000E-03    1.1800        .80994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.9228        .33778E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6850        2.5750        .86062E-04   -1.5275    
  22  Prefactor     .10000E-03    4.0138        .14989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.3391        2.0592        .81762E-04   -1.5342    
  24  Prefactor     5.4294        2.4687        .38621E-03   -1.5242    
  25  Prefactor     .10000E-03    12.338        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .57266E-01    .17958        .50747E-03   -1.5660    
  27  norm          10.691        5.5497        .12256E-03   -1.5054    
  28  Prefactor     .10000E-03    2.6297        .12167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1939        .22343        .22735E-03   -.86792    
  30  Prefactor     .89821        .23121        .28976E-03   -.96204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5426e-08
Minuit parameter uncertainties:
  1  8.48628e-06
  2  0.631742
  3  9.03888
  4  6.01394
  5  4.05643e-07
  6  7.54052
  7  6.50167e-06
  8  9.21309e-06
  9  16.6638
  10  7.68732e-05
  11  3.3748
  12  20.8933
  13  10.3452
  14  2.11473
  15  18.7805
  16  0.854536
  17  1.98604e-05
  18  20.2857
  19  3.72537e-07
  20  0.000125957
  21  2.5751
  22  1.59392e-06
  23  2.05929
  24  2.46877
  25  0.000124903
  26  0.179586
  27  5.54994
  28  8.63944e-07
  29  0.223609
  30  0.231466
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  2.510e+01  2.089e+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:  8.982e-01  2.315e-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.194e+00  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.34
Ra Dec: 177.141 26.499
Photon Index (Fixed Index): 2.92 +/- 0.00
Photon Flux (Fixed Index): 5.92e-08 +/- 4.92e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.02e-05

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

Saving results to:
/scratch/kocevski/81105/likelihoodResults_574473601_574732801_4FGL_J1148.5+2629_daily_bin1293.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) = 5907.89810752
delta logL = 0.171381254921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5907.88783642
delta logL = 0.181652359721

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.224       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4556       1.0000          .0000       10.000    
     3 'Normalizat'    1.2142       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87966       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=   5907.888     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      219 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 55.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.222        19.476       -.31594E-05    .64121E-03
   2  Index         2.4556        .52087        .86283E-05    .25342E-03
   3  Normalizat    1.2142        .17210       -.12937E-06   -.11974E-03
   4  Prefactor     .87966        .19273        .45912E-06   -.92207E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.2225
  Index      = 2.4556
  Normalizat = 1.21421
  Prefactor  = 0.879658
 **********
 **   18 **HESSE 
 **********

 FCN=   5907.888     FROM HESSE     STATUS=OK            29 CALLS      248 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.222        22.582        .75411E-04   -1.4645    
   2  Index         2.4556        .70804        .96759E-02   -.53388    
   3  Normalizat    1.2142        .20710        .22571E-03   -.86165    
   4  Prefactor     .87966        .22957        .29232E-03   -.96856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75043e-09
Minuit parameter uncertainties:
  1  22.589
  2  0.71127
  3  0.207241
  4  0.229821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81105': 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) = 5907.88783641
delta logL = 0.181652365771

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  2.822e+01  2.259e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.456e+00  7.113e-01  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:  8.797e-01  2.298e-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.214e+00  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.69
Ra Dec: 177.141 26.499
Photon Index (Free Index): 2.46 +/- 0.71
Photon Flux (Free Index): 4.77e-08 +/- 4.52e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.26e-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/81105/cmap_HighResolution_574473601_574732801_4FGL_J1148.5+2629_daily_bin1293.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='5.92e-08', energy_flux2='1.46e-05', photon_flux_error='4.92e-08', dlogl='1.82e-01', energy_flux='1.23e-05', photon_flux2='4.77e-08', job_status='DONE', time_completed='2021-09-04 11:57:12.848993', photon_index_error2='0.71', photon_index2='2.46', ts='2.34', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='1.26e-05', EG='1.19', time_epoch_completed='1630781832.85', return_code='0', job_id='81105', GAL2='0.88', EG2='1.21', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='4.52e-08', ts2='2.69', photon_index='2.92' WHERE bin_id='1293' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:57:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 81105: <4FGL_J1148.5+2629_daily_bin1293> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin1293> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:41:29 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:41:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 11:41:30 2021
Terminated at Sat Sep  4 11:57:13 2021
Results reported at Sat Sep  4 11:57:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin1293 177.141 26.4986 574473601 574732801 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 :                                   914.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            944 sec.

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

