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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin772
RA = 177.141, Dec = 26.4986
tmin = 439430401, tmax = 439689601
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='76981', job_status='RUN', time_executed='2021-09-04 11:31:11.286519', time_epoch_executed='1630780271.29' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/76981

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/76981/ft1_4FGL_J1148.5+2629_daily_bin772.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/76981/ft2_4FGL_J1148.5+2629_daily_bin772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/76981/ft1_4FGL_J1148.5+2629_daily_bin772.fits outfile=/scratch/kocevski/76981/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin772.fits ra=177.141 dec=26.4986 rad=12.0 tmin=439430401.0 tmax=439689601.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.89
user 4.63
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/76981/ft1_filtered_4FGL_J1148.5+2629_daily_bin772.fits" evtable="EVENTS" scfile=/scratch/kocevski/76981/ft2_4FGL_J1148.5+2629_daily_bin772.fits sctable="SC_DATA" outfile=/scratch/kocevski/76981/ltcube_439430401_439689601_4FGL_J1148.5+2629_daily_bin772.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/76981/ft2_4FGL_J1148.5+2629_daily_bin772.fits
.....................!
real 11.54
user 11.19
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/76981/ft1_filtered_4FGL_J1148.5+2629_daily_bin772.fits evtable="EVENTS" scfile=/scratch/kocevski/76981/ft2_4FGL_J1148.5+2629_daily_bin772.fits sctable="SC_DATA" expcube=/scratch/kocevski/76981/ltcube_439430401_439689601_4FGL_J1148.5+2629_daily_bin772.fits outfile=/scratch/kocevski/76981/expmap_439430401_439689601_4FGL_J1148.5+2629_daily_bin772.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/76981/ltcube_439430401_439689601_4FGL_J1148.5+2629_daily_bin772.fits
.....................!
real 190.68
user 185.38
sys 4.95

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/76981/ft1_filtered_4FGL_J1148.5+2629_daily_bin772.fits scfile=/scratch/kocevski/76981/ft2_4FGL_J1148.5+2629_daily_bin772.fits outfile=/scratch/kocevski/76981/cmap_439430401_439689601_4FGL_J1148.5+2629_daily_bin772.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/76981/ft1_filtered_4FGL_J1148.5+2629_daily_bin772.fits scfile=/scratch/kocevski/76981/ft2_4FGL_J1148.5+2629_daily_bin772.fits outfile=/scratch/kocevski/76981/cmap_HighResolution_439430401_439689601_4FGL_J1148.5+2629_daily_bin772.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14204E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.461       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3581       1.0000         .10000E-03   10000.    
     5 'norm      '    13.320       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    74.025       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.392       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2074       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1840       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9430       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2392       1.0000         .10000E-03   10000.    
    16 'norm      '    .64126E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4202       1.0000         .10000E-03   10000.    
    21 'norm      '    6.6553       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .95568       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.1611       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.0302       1.0000         .10000E-03   10000.    
    26 'norm      '    1.7346       1.0000         .10000E-03   10000.    
    27 'norm      '    7.8138       1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.928       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97865       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .78172       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=   5722.439     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     3987 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2477        .75226E-06** at limit **
   2  Prefactor     .10000E-03    .76071        .67670E-07** at limit **
   3  norm          10.463        16.058        .11203E-05   -.21798E-04
   4  Prefactor     1.3577        3.6873        .16595E-06   -.23362E-04
   5  norm          13.321        10.093        .82059E-06   -.73520E-04
   6  Prefactor     .10000E-03    3.8967        .74016E-07** at limit **
   7  Prefactor     .10000E-03    2.1629       -.49525E-06** at limit **
   8  Prefactor     74.036        57.116        .10201E-04    .26688E-04
   9  Prefactor     .10000E-03    13.289        .36701E-05** at limit **
  10  Prefactor     12.391        12.417       -.42984E-06   -.15150E-03
  11  Prefactor     2.2051        5.0666       -.31265E-05   -.17406E-02
  12  Prefactor     .10000E-03    10.232       -.53257E-06** at limit **
  13  Prefactor     1.1819        4.1656        .38102E-05   -.12399E-02
  14  Prefactor     2.9430        1.8752        .22099E-06   -.74724E-04
  15  Prefactor     3.2611        61.665        .59038E-04    .77489E-04
  16  norm          .64433E-01    .73255       -.66833E-06   -.22873E-03
  17  Prefactor     .10000E-03    1.4428        .79347E-08** at limit **
  18  Prefactor     .10000E-03    29.115        .14839E-05** at limit **
  19  Prefactor     .10000E-03    1.4214       -.48571E-07** at limit **
  20  Prefactor     4.4172        4.1994        .81719E-06   -.22323E-04
  21  norm          6.6554        3.5377       -.44746E-06   -.13682E-04
  22  Prefactor     .10003E-03    5.0153       -.14510E-05** at limit **
  23  Prefactor     .95491        2.2067        .31541E-06    .17251E-03
  24  Prefactor     1.1620        2.9508        .89528E-06    .39849E-04
  25  Prefactor     5.0296        5.6416       -.15534E-06   -.37617E-04
  26  norm          1.7346        .38105        .55409E-07   -.78594E-03
  27  norm          7.8141        5.1515        .12317E-06   -.67479E-04
  28  Prefactor     15.925        13.558        .37793E-06   -.89045E-04
  29  Normalizat    .97851        .18517       -.70968E-05    .19118E-03
  30  Prefactor     .78188        .18500        .16073E-05   -.31033E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.4628
  Prefactor  = 1.35774
  norm       = 13.3206
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 74.0365
  Prefactor  = 0.0001
  Prefactor  = 12.3908
  Prefactor  = 2.20509
  Prefactor  = 0.0001
  Prefactor  = 1.18187
  Prefactor  = 2.94304
  Prefactor  = 3.26112
  norm       = 0.0644331
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 4.4172
  norm       = 6.65544
  Prefactor  = 0.000100032
  Prefactor  = 0.954915
  Prefactor  = 1.16201
  Prefactor  = 5.02956
  norm       = 1.73461
  norm       = 7.81415
  Prefactor  = 15.9251
  Normalizat = 0.978511
  Prefactor  = 0.781878
 **********
 **   18 **HESSE 
 **********

 FCN=   5722.439     FROM HESSE     STATUS=OK           600 CALLS     4587 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.057        .33682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .76911        .64396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.463        16.063        .12388E-03   -1.5061    
   4  Prefactor     1.3577        3.6295        .23246E-03   -1.5475    
   5  norm          13.321        10.117        .10975E-03   -1.4978    
   6  Prefactor     .10000E-03    3.9106        .14583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1990        .21555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     74.036        56.847        .46665E-04   -1.3985    
   9  Prefactor     .10000E-03    13.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.391        12.402        .11379E-03   -1.5004    
  11  Prefactor     2.2051        5.7953        .13283E-02   -1.5411    
  12  Prefactor     .10000E-03    10.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1819        12.704        .20980E-02   -1.5491    
  14  Prefactor     2.9430        1.8728        .78937E-04   -1.5365    
  15  Prefactor     3.2611        61.861        .22505E-03   -1.5347    
  16  norm          .64433E-01    1.9049        .12216E-02   -1.5657    
  17  Prefactor     .10000E-03    1.4623        .88691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.1079        .16812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.4172        4.0351        .13859E-03   -1.5288    
  21  norm          6.6554        3.4949        .91818E-04   -1.5192    
  22  Prefactor     .10003E-03    15.971        .32617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .95491        1.7836        .15041E-02   -1.5513    
  24  Prefactor     1.1620        2.8129        .17354E-03   -1.5492    
  25  Prefactor     5.0296        5.6281        .17929E-03   -1.5259    
  26  norm          1.7346        .38143        .20726E-04   -1.5445    
  27  norm          7.8141        5.1380        .13161E-03   -1.5149    
  28  Prefactor     15.925        13.386        .10036E-03   -1.4910    
  29  Normalizat    .97851        .21322        .23747E-03   -.93754    
  30  Prefactor     .78188        .21774        .28789E-03   -1.0040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13094e-08
Minuit parameter uncertainties:
  1  0.000182697
  2  4.50712e-06
  3  16.0698
  4  3.6301
  5  10.1184
  6  1.40636e-05
  7  7.71101e-05
  8  56.8887
  9  1.55204e-05
  10  12.4045
  11  5.79681
  12  1.09516e-05
  13  7.75146
  14  1.87288
  15  28.4402
  16  0.700166
  17  6.35274e-06
  18  0.000460689
  19  8.65086e-07
  20  4.03531
  21  3.49504
  22  0.00144041
  23  1.78373
  24  2.81325
  25  5.62865
  26  0.38143
  27  5.13826
  28  13.3881
  29  0.213402
  30  0.21798
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.095e-05  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:  7.819e-01  2.180e-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:  9.785e-01  2.134e-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: 7.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/76981/likelihoodResults_439430401_439689601_4FGL_J1148.5+2629_daily_bin772.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) = 5722.43910404
delta logL = -0.000464112756163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5722.43863994
delta logL = -1.58361217473e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9265       1.0000          .0000       10.000    
     3 'Normalizat'    .97849       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78191       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5722.171     FROM MIGRAD    STATUS=CONVERGED    141 CALLS      294 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49527E-02    .38122        .18142E-02    .17233E-01
   2  Index        10.0000        5.9631        .50000    ** at limit **
   3  Normalizat    .94518        .57760E-01    .23747E-03    .26474E-04
   4  Prefactor     .80710        .62170E-01    .28789E-03   -.26537E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00495268
  Index      = 10
  Normalizat = 0.945179
  Prefactor  = 0.807096
 **********
 **   18 **HESSE 
 **********

 FCN=   5722.171     FROM HESSE     STATUS=OK            33 CALLS      327 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49527E-02    .86740E-02    .82676E-04   -1.5694    
   2  Index        10.0000        7.1771        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .94518        .19969        .94990E-05   -.94890    
   4  Prefactor     .80710        .21653        .11516E-04   -.99467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43054e-11
Minuit parameter uncertainties:
  1  0.00867402
  2  0.000220144
  3  0.199842
  4  0.216761
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/76981': 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) = 5722.17084451
delta logL = 0.267795411506

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  4.953e-03  8.674e-03  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.000e+01  2.201e-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:  8.071e-01  2.168e-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:  9.452e-01  1.998e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/76981/cmap_HighResolution_439430401_439689601_4FGL_J1148.5+2629_daily_bin772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.16e-03', job_status='DONE', photon_flux_upper_limit='7.73e-08', time_completed='2021-09-04 11:45:34.892316', job_id='76981', GAL2='0.81', fit_tolerance='1e-08', EG2='0.95', EG='0.98', time_epoch_completed='1630781134.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.68e-01', ts2='0.56', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='772' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:45:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 76981: <4FGL_J1148.5+2629_daily_bin772> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin772> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 11:30:59 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:31:01 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:01 2021
Terminated at Sat Sep  4 11:45:35 2021
Results reported at Sat Sep  4 11:45:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin772 177.141 26.4986 439430401 439689601 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 :                                   862.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            876 sec.

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

