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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin805
RA = 177.141, Dec = 26.4986
tmin = 447984001, tmax = 448243201
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='77066', job_status='RUN', time_executed='2021-09-04 11:31:33.262694', time_epoch_executed='1630780293.26' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='805'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77066

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77066/ft1_4FGL_J1148.5+2629_daily_bin805.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77066/ft2_4FGL_J1148.5+2629_daily_bin805.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77066/ft1_4FGL_J1148.5+2629_daily_bin805.fits outfile=/scratch/kocevski/77066/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin805.fits ra=177.141 dec=26.4986 rad=12.0 tmin=447984001.0 tmax=448243201.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.01
user 3.79
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/77066/ft2_4FGL_J1148.5+2629_daily_bin805.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/77066/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin805.fits evtable="EVENTS" outfile="/scratch/kocevski/77066/ft1_filtered_4FGL_J1148.5+2629_daily_bin805.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77066/ft1_filtered_4FGL_J1148.5+2629_daily_bin805.fits" evtable="EVENTS" scfile=/scratch/kocevski/77066/ft2_4FGL_J1148.5+2629_daily_bin805.fits sctable="SC_DATA" outfile=/scratch/kocevski/77066/ltcube_447984001_448243201_4FGL_J1148.5+2629_daily_bin805.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/77066/ft2_4FGL_J1148.5+2629_daily_bin805.fits
.....................!
real 12.75
user 12.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77066/ft1_filtered_4FGL_J1148.5+2629_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/77066/ft2_4FGL_J1148.5+2629_daily_bin805.fits sctable="SC_DATA" expcube=/scratch/kocevski/77066/ltcube_447984001_448243201_4FGL_J1148.5+2629_daily_bin805.fits outfile=/scratch/kocevski/77066/expmap_447984001_448243201_4FGL_J1148.5+2629_daily_bin805.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/77066/ltcube_447984001_448243201_4FGL_J1148.5+2629_daily_bin805.fits
.....................!
real 194.16
user 184.63
sys 4.56

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/77066/ft1_filtered_4FGL_J1148.5+2629_daily_bin805.fits scfile=/scratch/kocevski/77066/ft2_4FGL_J1148.5+2629_daily_bin805.fits outfile=/scratch/kocevski/77066/cmap_447984001_448243201_4FGL_J1148.5+2629_daily_bin805.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77066/ft1_filtered_4FGL_J1148.5+2629_daily_bin805.fits scfile=/scratch/kocevski/77066/ft2_4FGL_J1148.5+2629_daily_bin805.fits outfile=/scratch/kocevski/77066/cmap_HighResolution_447984001_448243201_4FGL_J1148.5+2629_daily_bin805.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5572       1.0000         .10000E-03   10000.    
     3 'norm      '    41.000       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4489       1.0000         .10000E-03   10000.    
     5 'norm      '    13.910       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5370       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.470       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1240       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8797       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .96618       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.918       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1519       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3624       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8117       1.0000         .10000E-03   10000.    
    21 'norm      '    6.8778       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0836       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.5101       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.6825       1.0000         .10000E-03   10000.    
    26 'norm      '    .69860       1.0000         .10000E-03   10000.    
    27 'norm      '    16.580       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .82963       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95307       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=   6001.490     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3864 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9280        .38227E-05** at limit **
   2  Prefactor     1.5575        1.7808        .36609E-07   -.12318E-03
   3  norm          41.021        17.957       -.27981E-06    .72648E-05
   4  Prefactor     4.4500        4.6355        .13642E-06    .63006E-05
   5  norm          13.918        10.344       -.46489E-05   -.12784E-03
   6  Prefactor     1.5369        2.8953        .94627E-06   -.19874E-02
   7  Prefactor     .10000E-03    1.1800       -.12252E-06** at limit **
   8  Prefactor     38.475        37.162        .44309E-05    .35564E-04
   9  Prefactor     .10000E-03    6.0263        .33296E-05** at limit **
  10  Prefactor     .10000E-03    5.4218       -.25605E-05** at limit **
  11  Prefactor     3.1261        5.1597       -.14737E-05   -.15228E-03
  12  Prefactor     8.8598        20.982       -.85332E-05   -.90116E-04
  13  Prefactor     .10000E-03    2.3035        .40619E-08** at limit **
  14  Prefactor     .97039        1.9421        .10925E-05    .47497E-03
  15  Prefactor     27.931        23.855        .79261E-05    .10069E-03
  16  norm          4.1528        1.5233        .43850E-07    .51445E-04
  17  Prefactor     .10000E-03    1.7445       -.40016E-07** at limit **
  18  Prefactor     .10000E-03    9.8784        .21764E-06** at limit **
  19  Prefactor     3.3624        3.1489        .12619E-06   -.13760E-02
  20  Prefactor     3.8119        3.5509       -.23173E-06   -.38385E-04
  21  norm          6.8781        3.0577       -.34002E-06    .27247E-04
  22  Prefactor     .10000E-03    2.5689       -.39478E-07** at limit **
  23  Prefactor     2.0832        1.8167        .27671E-06    .10924E-03
  24  Prefactor     5.5110        2.8701       -.71229E-06    .64279E-04
  25  Prefactor     2.6826        4.3558       -.16072E-06   -.37790E-04
  26  norm          .69868        .25299       -.56367E-08    .16926E-03
  27  norm          16.582        6.1958       -.29152E-07    .60501E-04
  28  Prefactor     .10000E-03    6.5218       -.50125E-05** at limit **
  29  Normalizat    .82905        .18824        .20133E-05   -.61633E-04
  30  Prefactor     .95355        .19644       -.83763E-06    .67287E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.55753
  norm       = 41.0207
  Prefactor  = 4.45004
  norm       = 13.9179
  Prefactor  = 1.53693
  Prefactor  = 0.0001
  Prefactor  = 38.4751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.12605
  Prefactor  = 8.8598
  Prefactor  = 0.0001
  Prefactor  = 0.970391
  Prefactor  = 27.9309
  norm       = 4.15278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.3624
  Prefactor  = 3.81186
  norm       = 6.87811
  Prefactor  = 0.0001
  Prefactor  = 2.08322
  Prefactor  = 5.51097
  Prefactor  = 2.68264
  norm       = 0.698675
  norm       = 16.5815
  Prefactor  = 0.0001
  Normalizat = 0.82905
  Prefactor  = 0.953547
 **********
 **   18 **HESSE 
 **********

 FCN=   6001.490     FROM HESSE     STATUS=OK           596 CALLS     4460 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5575        1.7684        .10659E-03   -1.5458    
   3  norm          41.021        17.977        .62602E-04   -1.4426    
   4  Prefactor     4.4500        4.6504        .16512E-03   -1.5286    
   5  norm          13.918        10.344        .10739E-03   -1.4962    
   6  Prefactor     1.5369        8.1612        .17202E-02   -1.5460    
   7  Prefactor     .10000E-03    1.1982        .81884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     38.475        37.073        .64621E-04   -1.4467    
   9  Prefactor     .10000E-03    6.0420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4322        .17602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.1261        5.1524        .20737E-03   -1.5354    
  12  Prefactor     8.8598        20.622        .13451E-03   -1.5113    
  13  Prefactor     .10000E-03    2.3049        .11482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .97039        1.8672        .13082E-03   -1.5511    
  15  Prefactor     27.931        23.921        .75823E-04   -1.4650    
  16  norm          4.1528        1.5224        .53974E-04   -1.5300    
  17  Prefactor     .10000E-03    1.7833        .99825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.8875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.3624        3.2051        .59871E-03   -1.5341    
  20  Prefactor     3.8119        3.5385        .12587E-03   -1.5317    
  21  norm          6.8781        3.0601        .84675E-04   -1.5183    
  22  Prefactor     .10000E-03    2.5830        .12126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.0832        1.8233        .92370E-04   -1.5419    
  24  Prefactor     5.5110        2.8638        .87797E-04   -1.5238    
  25  Prefactor     2.6826        4.3344        .19675E-03   -1.5380    
  26  norm          .69868        .25252        .22492E-04   -1.5541    
  27  norm          16.582        6.1933        .98363E-04   -1.4893    
  28  Prefactor     .10000E-03    6.5294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .82905        .21840        .25819E-03   -.99000    
  30  Prefactor     .95355        .22675        .27467E-03   -.94294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35609e-08
Minuit parameter uncertainties:
  1  7.48024e-06
  2  1.7685
  3  17.9792
  4  4.65079
  5  10.3449
  6  7.08456
  7  1.43916e-05
  8  37.0949
  9  2.03005e-05
  10  1.55652e-06
  11  5.15312
  12  20.639
  13  9.2154e-07
  14  1.86732
  15  23.9291
  16  1.52237
  17  2.65995e-06
  18  3.18277e-05
  19  3.20531
  20  3.53874
  21  3.06013
  22  4.72538e-06
  23  1.82339
  24  2.86385
  25  4.33489
  26  0.252519
  27  6.19357
  28  4.77051e-06
  29  0.218632
  30  0.226971
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  8.860e+00  2.064e+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:  9.535e-01  2.270e-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:  8.290e-01  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.25
Ra Dec: 177.141 26.499
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/77066/likelihoodResults_447984001_448243201_4FGL_J1148.5+2629_daily_bin805.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) = 6000.77150341
delta logL = 0.718440579873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6000.69258761
delta logL = 0.797356376956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12120E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9326       1.0000          .0000       10.000    
     3 'Normalizat'    .76929       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0072       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=   6000.693     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      487 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11145E-01    .34046        .14882E-02    .18272E-02
   2  Index        10.0000        9.9848        .50000    ** at limit **
   3  Normalizat    .77000        .79523E-01    .43208E-01    .50833E-04
   4  Prefactor     1.0066        .89743E-01    .43777E-01    .76664E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0111452
  Index      = 10
  Normalizat = 0.77
  Prefactor  = 1.00657
 **********
 **   18 **HESSE 
 **********

 FCN=   6000.693     FROM HESSE     STATUS=OK            37 CALLS      524 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11145E-01    .11258E-01    .67426E-04   -1.5687    
   2  Index        10.0000        1.8659        .50000        1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .77000        .20785        .26668E-03   -1.0119    
   4  Prefactor     1.0066        .23143        .26832E-03   -.92511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10573e-11
Minuit parameter uncertainties:
  1  0.0112584
  2  0.00192585
  3  0.208066
  4  0.231659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77066': 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) = 6000.69254085
delta logL = 0.797403140205

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.115e-02  1.126e-02  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.000e+01  1.926e-03  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.007e+00  2.317e-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.700e-01  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 177.141 26.499
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 5.91e-08 +/- 5.79e-08
Energy Flux (Free Index): 6.60e-06 +/- 6.51e-06

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/77066/cmap_HighResolution_447984001_448243201_4FGL_J1148.5+2629_daily_bin805.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.32e-03', comment='SUCCESS', energy_flux2='6.60e-06', dlogl='7.97e-01', photon_flux2='5.91e-08', job_status='DONE', time_completed='2021-09-04 11:46:56.347571', photon_index_error2='0.00', photon_index2='10.00', ts='0.25', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='6.51e-06', EG='0.83', time_epoch_completed='1630781216.35', return_code='0', job_id='77066', GAL2='1.01', EG2='0.77', return_code2='0', photon_flux_error2='5.79e-08', ts2='1.99', photon_index='2.92' WHERE bin_id='805' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:46:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 77066: <4FGL_J1148.5+2629_daily_bin805> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin805> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 11:31:13 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:31:15 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:31:15 2021
Terminated at Sat Sep  4 11:46:57 2021
Results reported at Sat Sep  4 11:46:57 2021

Your job looked like:

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

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

