/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 = 7485
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1148.5+2629_daily_bin270
RA = 177.141, Dec = 26.4986
tmin = 309312001, tmax = 309571201
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='73741', job_status='RUN', time_executed='2021-09-04 11:21:38.474983', time_epoch_executed='1630779698.48' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73741

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73741/ft1_4FGL_J1148.5+2629_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73741/ft2_4FGL_J1148.5+2629_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73741/ft1_4FGL_J1148.5+2629_daily_bin270.fits outfile=/scratch/kocevski/73741/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin270.fits ra=177.141 dec=26.4986 rad=12.0 tmin=309312001.0 tmax=309571201.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 3.98
user 3.76
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73741/ft2_4FGL_J1148.5+2629_daily_bin270.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/73741/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin270.fits evtable="EVENTS" outfile="/scratch/kocevski/73741/ft1_filtered_4FGL_J1148.5+2629_daily_bin270.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73741/ft1_filtered_4FGL_J1148.5+2629_daily_bin270.fits" evtable="EVENTS" scfile=/scratch/kocevski/73741/ft2_4FGL_J1148.5+2629_daily_bin270.fits sctable="SC_DATA" outfile=/scratch/kocevski/73741/ltcube_309312001_309571201_4FGL_J1148.5+2629_daily_bin270.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/73741/ft2_4FGL_J1148.5+2629_daily_bin270.fits
.....................!
real 11.85
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73741/ft1_filtered_4FGL_J1148.5+2629_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/73741/ft2_4FGL_J1148.5+2629_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/73741/ltcube_309312001_309571201_4FGL_J1148.5+2629_daily_bin270.fits outfile=/scratch/kocevski/73741/expmap_309312001_309571201_4FGL_J1148.5+2629_daily_bin270.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/73741/ltcube_309312001_309571201_4FGL_J1148.5+2629_daily_bin270.fits
.....................!
real 190.65
user 185.74
sys 4.54

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/73741/ft1_filtered_4FGL_J1148.5+2629_daily_bin270.fits scfile=/scratch/kocevski/73741/ft2_4FGL_J1148.5+2629_daily_bin270.fits outfile=/scratch/kocevski/73741/cmap_309312001_309571201_4FGL_J1148.5+2629_daily_bin270.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73741/ft1_filtered_4FGL_J1148.5+2629_daily_bin270.fits scfile=/scratch/kocevski/73741/ft2_4FGL_J1148.5+2629_daily_bin270.fits outfile=/scratch/kocevski/73741/cmap_HighResolution_309312001_309571201_4FGL_J1148.5+2629_daily_bin270.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1035       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7875       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6898       1.0000         .10000E-03   10000.    
     5 'norm      '    5.8580       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.499       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11194E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.103       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10212       1.0000         .10000E-03   10000.    
    16 'norm      '    7.5717       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1146       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0595       1.0000         .10000E-03   10000.    
    21 'norm      '    7.2498       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6505       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8892       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.5219       1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.789       1.0000         .10000E-03   10000.    
    26 'norm      '    4.2932       1.0000         .10000E-03   10000.    
    27 'norm      '    .27610       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.5316       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .78453       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1959       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=   6918.792     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     3412 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1048        8.9712        .16719E-06    .68423E-05
   2  Prefactor     3.7809        3.5836        .15253E-06    .26934E-03
   3  norm          .10000E-03    3.3944       -.37189E-07** at limit **
   4  Prefactor     4.6865        6.2658       -.92621E-07    .63902E-05
   5  norm          5.8792        10.240        .95896E-06    .22584E-04
   6  Prefactor     .10000E-03    5.0555       -.87858E-08** at limit **
   7  Prefactor     .10000E-03    .43459       -.19009E-06** at limit **
   8  Prefactor     20.498        20.794       -.23477E-05   -.26647E-04
   9  Prefactor     .10000E-03    7.2000        .20149E-06** at limit **
  10  Prefactor     .10000E-03    10.398        .40256E-06** at limit **
  11  Prefactor     .10000E-03    1.7363       -.10509E-06** at limit **
  12  Prefactor     .10000E-03    28.827       -.22342E-06** at limit **
  13  Prefactor     10.105        9.8335       -.34538E-06    .14358E-04
  14  Prefactor     .10000E-03    .67648        .38562E-08** at limit **
  15  Prefactor     .11040E-03    19.679       -.52564E-06** at limit **
  16  norm          7.5725        1.7789       -.12330E-07    .14725E-03
  17  Prefactor     1.1113        3.6563       -.42513E-06    .26528E-04
  18  Prefactor     .10000E-03    9.8028       -.93388E-07** at limit **
  19  Prefactor     .10000E-03    1.4581        .25323E-07** at limit **
  20  Prefactor     7.0591        3.8905        .22153E-07    .45074E-04
  21  norm          7.2491        3.6204       -.93931E-08    .51792E-04
  22  Prefactor     1.6467        5.6624        .12431E-05    .33369E-03
  23  Prefactor     2.8890        2.4916       -.69844E-08    .23569E-04
  24  Prefactor     7.5224        3.1725        .17267E-06    .25164E-03
  25  Prefactor     16.816        9.4169        .86970E-06    .30718E-03
  26  norm          4.2932        .51777        .43045E-07    .11775E-02
  27  norm          .25482        12.018       -.28352E-05    .24043E-03
  28  Prefactor     6.5353        7.5833        .27657E-06    .45851E-04
  29  Normalizat    .78471        .18989       -.12427E-05    .20459E-03
  30  Prefactor     1.1959        .20288        .15805E-05    .45394E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.10481
  Prefactor  = 3.78091
  norm       = 0.0001
  Prefactor  = 4.6865
  norm       = 5.87924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4977
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1052
  Prefactor  = 0.0001
  Prefactor  = 0.000110404
  norm       = 7.57255
  Prefactor  = 1.11131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.05905
  norm       = 7.24907
  Prefactor  = 1.64671
  Prefactor  = 2.88897
  Prefactor  = 7.52242
  Prefactor  = 16.8162
  norm       = 4.29318
  norm       = 0.254818
  Prefactor  = 6.5353
  Normalizat = 0.784713
  Prefactor  = 1.19592
 **********
 **   18 **HESSE 
 **********

 FCN=   6918.792     FROM HESSE     STATUS=OK           604 CALLS     4016 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1048        8.9692        .13284E-03   -1.5104    
   2  Prefactor     3.7809        3.6760        .70051E-03   -1.5319    
   3  norm          .10000E-03    3.3976        .14967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6865        6.2646        .18582E-03   -1.5275    
   5  norm          5.8792        10.246        .16593E-03   -1.5223    
   6  Prefactor     .10000E-03    5.0863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .43458        .53488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.498        20.841        .88464E-04   -1.4802    
   9  Prefactor     .10000E-03    7.2202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.647        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.7523        .10700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.105        9.7965        .12606E-03   -1.5072    
  14  Prefactor     .10000E-03    .68754        .66752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11040E-03    25.107        .98173E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.5725        1.7833        .50925E-04   -1.5158    
  17  Prefactor     1.1113        3.6373        .26834E-03   -1.5497    
  18  Prefactor     .10000E-03    9.8076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4784        .97814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.0591        3.8818        .11706E-03   -1.5177    
  21  norm          7.2491        3.6317        .10028E-03   -1.5169    
  22  Prefactor     1.6467        7.3768        .16432E-02   -1.5451    
  23  Prefactor     2.8890        2.4997        .11005E-03   -1.5368    
  24  Prefactor     7.5224        3.1660        .88803E-04   -1.5159    
  25  Prefactor     16.816        9.8371        .97748E-04   -1.4888    
  26  norm          4.2932        .51925        .19721E-04   -1.5294    
  27  norm          .25482        25.215        .25984E-02   -1.5607    
  28  Prefactor     6.5353        7.5756        .15703E-03   -1.5197    
  29  Normalizat    .78471        .22230        .30227E-03   -1.0064    
  30  Prefactor     1.1959        .23345        .28678E-03   -.86457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27639e-09
Minuit parameter uncertainties:
  1  8.97054
  2  3.67624
  3  7.65987e-08
  4  6.26545
  5  10.2489
  6  1.24881e-06
  7  5.26469e-07
  8  20.8488
  9  2.79179e-06
  10  1.51307e-05
  11  1.6943e-07
  12  2.35583e-05
  13  9.79806
  14  5.33816e-07
  15  0.0323377
  16  1.78334
  17  3.63804
  18  1.603e-06
  19  9.9425e-08
  20  3.88189
  21  3.63184
  22  6.97185
  23  2.4998
  24  3.16607
  25  9.83804
  26  0.51925
  27  5.07076
  28  7.57673
  29  0.222561
  30  0.233656
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  2.356e-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:  1.196e+00  2.337e-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.847e-01  2.226e-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: 8.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73741/likelihoodResults_309312001_309571201_4FGL_J1148.5+2629_daily_bin270.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) = 6918.79219827
delta logL = -0.000162337805705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6918.79203636
delta logL = -4.27045051765e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8392       1.0000          .0000       10.000    
     3 'Normalizat'    .78473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1959       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=   6918.792     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      293 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    34.835        .18142E-02** at limit **
   2  Index         2.8900        6.4449        .50000       -.20650E-04
   3  Normalizat    .78471        .19855        .30227E-03   -.11359E-04
   4  Prefactor     1.1959        .22900        .28678E-03   -.17046E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.89
  Normalizat = 0.784711
  Prefactor  = 1.19592
 **********
 **   18 **HESSE 
 **********

 FCN=   6918.792     FROM HESSE     STATUS=OK            29 CALLS      322 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    26.891        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8900        6.4238        .50000       -.43565    
   3  Normalizat    .78471        .19872        .12091E-04   -1.0064    
   4  Prefactor     1.1959        .22921        .11471E-04   -.86457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87173e-10
Minuit parameter uncertainties:
  1  0.00113303
  2  4.55514
  3  0.198908
  4  0.2294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73741': 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) = 6918.79203609
delta logL = -1.5512068785e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.196e+00  2.294e-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.847e-01  1.989e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/73741/cmap_HighResolution_309312001_309571201_4FGL_J1148.5+2629_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-03', job_status='DONE', photon_flux_upper_limit='8.81e-08', time_completed='2021-09-04 11:37:40.950653', job_id='73741', GAL2='1.20', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1630780660.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='-1.55e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='270' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:37:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 73741: <4FGL_J1148.5+2629_daily_bin270> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin270> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 11:21:26 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:21:27 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:21:27 2021
Terminated at Sat Sep  4 11:37:41 2021
Results reported at Sat Sep  4 11:37:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin270 177.141 26.4986 309312001 309571201 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 :                                   961.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            975 sec.

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

