/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 17 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 = 7539
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1148.5+2629_daily_bin655
RA = 177.141, Dec = 26.4986
tmin = 409104001, tmax = 409363201
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='75597', job_status='RUN', time_executed='2021-09-04 11:26:54.495330', time_epoch_executed='1630780014.5' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75597

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75597/ft1_4FGL_J1148.5+2629_daily_bin655.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75597/ft2_4FGL_J1148.5+2629_daily_bin655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75597/ft1_4FGL_J1148.5+2629_daily_bin655.fits outfile=/scratch/kocevski/75597/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin655.fits ra=177.141 dec=26.4986 rad=12.0 tmin=409104001.0 tmax=409363201.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 5.83
user 5.26
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75597/ft1_filtered_4FGL_J1148.5+2629_daily_bin655.fits" evtable="EVENTS" scfile=/scratch/kocevski/75597/ft2_4FGL_J1148.5+2629_daily_bin655.fits sctable="SC_DATA" outfile=/scratch/kocevski/75597/ltcube_409104001_409363201_4FGL_J1148.5+2629_daily_bin655.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/75597/ft2_4FGL_J1148.5+2629_daily_bin655.fits
.....................!
real 12.90
user 12.19
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75597/ft1_filtered_4FGL_J1148.5+2629_daily_bin655.fits evtable="EVENTS" scfile=/scratch/kocevski/75597/ft2_4FGL_J1148.5+2629_daily_bin655.fits sctable="SC_DATA" expcube=/scratch/kocevski/75597/ltcube_409104001_409363201_4FGL_J1148.5+2629_daily_bin655.fits outfile=/scratch/kocevski/75597/expmap_409104001_409363201_4FGL_J1148.5+2629_daily_bin655.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/75597/ltcube_409104001_409363201_4FGL_J1148.5+2629_daily_bin655.fits
.....................!
real 189.51
user 185.10
sys 4.04

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/75597/ft1_filtered_4FGL_J1148.5+2629_daily_bin655.fits scfile=/scratch/kocevski/75597/ft2_4FGL_J1148.5+2629_daily_bin655.fits outfile=/scratch/kocevski/75597/cmap_409104001_409363201_4FGL_J1148.5+2629_daily_bin655.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75597/ft1_filtered_4FGL_J1148.5+2629_daily_bin655.fits scfile=/scratch/kocevski/75597/ft2_4FGL_J1148.5+2629_daily_bin655.fits outfile=/scratch/kocevski/75597/cmap_HighResolution_409104001_409363201_4FGL_J1148.5+2629_daily_bin655.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/75597/ft1_filtered_4FGL_J1148.5+2629_daily_bin655.fits evtable="EVENTS" scfile=/scratch/kocevski/75597/ft2_4FGL_J1148.5+2629_daily_bin655.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75597/Model_4FGL_J1148.5+2629_daily_bin655.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/75597/ft1_filtered_4FGL_J1148.5+2629_daily_bin655.fits.....................!
real 50.97
user 49.68
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99105       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .59664       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5998       1.0000         .10000E-03   10000.    
     5 'norm      '    3.3928       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3271       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .49239       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.090       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.536       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2779       1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.641       1.0000         .10000E-03   10000.    
    16 'norm      '    .66763       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.631       1.0000         .10000E-03   10000.    
    18 'Prefactor '    65.127       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0549       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.9777       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.8005       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.644       1.0000         .10000E-03   10000.    
    26 'norm      '    6.0359       1.0000         .10000E-03   10000.    
    27 'norm      '    6.5510       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .99407       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .76024       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=   5197.373     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3994 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99214        13.551        .24555E-05   -.25033E-03
   2  Prefactor     .59617        2.2768       -.25418E-06   -.48297E-03
   3  norm          .10000E-03    9.8007        .79170E-07** at limit **
   4  Prefactor     8.5999        7.1398        .25248E-06   -.21814E-03
   5  norm          3.3916        12.798        .87128E-07   -.29586E-04
   6  Prefactor     .10000E-03    4.1276        .40391E-07** at limit **
   7  Prefactor     .10000E-03    .95321       -.41836E-07** at limit **
   8  Prefactor     .10000E-03    16.012       -.59266E-07** at limit **
   9  Prefactor     9.3184        15.993       -.22472E-05   -.22382E-03
  10  Prefactor     .10000E-03    20.813        .77348E-07** at limit **
  11  Prefactor     .49147        4.8761        .16893E-05   -.29562E-03
  12  Prefactor     24.086        26.527       -.18641E-05   -.17106E-03
  13  Prefactor     10.536        13.817       -.10022E-06   -.25087E-04
  14  Prefactor     1.2778        2.2919        .26123E-06   -.57192E-04
  15  Prefactor     34.637        35.025       -.19625E-05   -.16494E-03
  16  norm          .66749        .79524        .28365E-07    .16098E-03
  17  Prefactor     11.631        6.6256       -.33692E-07   -.68231E-04
  18  Prefactor     65.125        49.606       -.45543E-06   -.71720E-04
  19  Prefactor     3.0548        3.1159       -.27207E-06   -.33690E-03
  20  Prefactor     .10000E-03    1.4813        .19712E-07** at limit **
  21  norm          1.9779        2.1803       -.21138E-07   -.15495E-04
  22  Prefactor     7.8006        8.9417        .25109E-08   -.22799E-05
  23  Prefactor     .10000E-03    .94630        .68484E-09** at limit **
  24  Prefactor     .10000E-03    1.0093        .21808E-07** at limit **
  25  Prefactor     19.645        10.451       -.23432E-07   -.10823E-04
  26  norm          6.0359        .72902        .94017E-09    .18657E-03
  27  norm          6.5512        5.5486       -.41354E-07   -.45146E-04
  28  Prefactor     .10000E-03    3.2528       -.18791E-08** at limit **
  29  Normalizat    .99412        .22633        .14888E-05   -.10552E-03
  30  Prefactor     .76019        .22251       -.11723E-05    .18076E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.992138
  Prefactor  = 0.596167
  norm       = 0.0001
  Prefactor  = 8.59992
  norm       = 3.39158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.31843
  Prefactor  = 0.0001
  Prefactor  = 0.491468
  Prefactor  = 24.0857
  Prefactor  = 10.5361
  Prefactor  = 1.27776
  Prefactor  = 34.6371
  norm       = 0.667489
  Prefactor  = 11.6312
  Prefactor  = 65.1247
  Prefactor  = 3.05483
  Prefactor  = 0.0001
  norm       = 1.97791
  Prefactor  = 7.80061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6446
  norm       = 6.0359
  norm       = 6.55117
  Prefactor  = 0.0001
  Normalizat = 0.994119
  Prefactor  = 0.760192
 **********
 **   18 **HESSE 
 **********

 FCN=   5197.373     FROM HESSE     STATUS=OK           596 CALLS     4590 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99214        15.025        .52436E-03   -1.5509    
   2  Prefactor     .59617        2.1937        .19589E-03   -1.5554    
   3  norm          .10000E-03    9.8568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.5999        7.2155        .68346E-03   -1.5121    
   5  norm          3.3916        12.827        .21965E-03   -1.5340    
   6  Prefactor     .10000E-03    4.1331        .14303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.5503        .13688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.3184        16.394        .13123E-03   -1.5097    
  10  Prefactor     .10000E-03    21.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .49147        5.4460        .31883E-03   -1.5568    
  12  Prefactor     24.086        26.775        .81613E-04   -1.4726    
  13  Prefactor     10.536        13.828        .12344E-03   -1.5059    
  14  Prefactor     1.2778        2.2377        .13281E-03   -1.5482    
  15  Prefactor     34.637        35.363        .68087E-04   -1.4530    
  16  norm          .66749        .77007        .67700E-03   -1.5545    
  17  Prefactor     11.631        6.6143        .11746E-03   -1.5026    
  18  Prefactor     65.125        49.781        .49729E-04   -1.4092    
  19  Prefactor     3.0548        3.1373        .12398E-03   -1.5358    
  20  Prefactor     .10000E-03    1.4856        .85665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9779        2.1759        .10813E-03   -1.5427    
  22  Prefactor     7.8006        8.9512        .14357E-03   -1.5149    
  23  Prefactor     .10000E-03    .95161        .68417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.0250        .70676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     19.645        10.457        .90367E-04   -1.4821    
  26  norm          6.0359        .73065        .20274E-04   -1.5217    
  27  norm          6.5512        5.5497        .14800E-03   -1.5196    
  28  Prefactor     .10000E-03    3.2550        .12699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .99412        .26403        .26810E-03   -.93228    
  30  Prefactor     .76019        .25876        .32631E-03   -1.0121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08744e-09
Minuit parameter uncertainties:
  1  7.72372
  2  2.19395
  3  6.82512e-07
  4  7.21627
  5  12.8375
  6  5.73606e-08
  7  2.0092e-06
  8  8.33882e-06
  9  16.4015
  10  0.000152589
  11  3.27207
  12  26.788
  13  13.8319
  14  2.23781
  15  35.3841
  16  0.770078
  17  6.61473
  18  49.8129
  19  3.13751
  20  1.88863e-06
  21  2.17595
  22  8.95276
  23  5.51887e-07
  24  6.49115e-07
  25  10.4584
  26  0.730652
  27  5.5501
  28  1.37245e-06
  29  0.264382
  30  0.259173
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  2.409e+01  2.679e+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:  7.602e-01  2.592e-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.941e-01  2.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.19
Ra Dec: 177.141 26.499
Photon Index (Fixed Index): 2.92 +/- 0.00
Photon Flux (Fixed Index): 5.68e-08 +/- 6.31e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/75597/likelihoodResults_409104001_409363201_4FGL_J1148.5+2629_daily_bin655.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) = 5196.67084345
delta logL = 0.702598783347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5196.66549499
delta logL = 0.707947250313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.376       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2743       1.0000          .0000       10.000    
     3 'Normalizat'    .94327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79924       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=   5196.665     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      249 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.397        209.14        .28466E-02    .28339E-03
   2  Index         4.2739        7.1203        .20364        .12781E-03
   3  Normalizat    .94307        .74975E-01    .45452E-01   -.78558E-04
   4  Prefactor     .79954        .82088E-01    .72065E-01   -.11797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.3968
  Index      = 4.2739
  Normalizat = 0.943073
  Prefactor  = 0.799543
 **********
 **   18 **HESSE 
 **********

 FCN=   5196.665     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.397        26.117        .11387E-03   -1.5004    
   2  Index         4.2739        1.8358        .79112E-02   -.14574    
   3  Normalizat    .94307        .24235        .27410E-03   -.94963    
   4  Prefactor     .79954        .25483        .31891E-03   -.99745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96054e-10
Minuit parameter uncertainties:
  1  26.1409
  2  1.88077
  3  0.242635
  4  0.255205
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75597': 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) = 5196.66549277
delta logL = 0.707949465535

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.240e+01  2.614e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  4.274e+00  1.881e+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:  7.995e-01  2.552e-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.431e-01  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 177.141 26.499
Photon Index (Free Index): 4.27 +/- 1.88
Photon Flux (Free Index): 1.00e-07 +/- 7.56e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.19e-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/75597/cmap_HighResolution_409104001_409363201_4FGL_J1148.5+2629_daily_bin655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-02', comment='SUCCESS', photon_flux='5.68e-08', energy_flux2='1.44e-05', photon_flux_error='6.31e-08', dlogl='7.08e-01', energy_flux='1.18e-05', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-09-04 11:40:57.659275', photon_index_error2='1.88', photon_index2='4.27', ts='1.19', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='1.19e-05', EG='0.99', time_epoch_completed='1630780857.66', return_code='0', job_id='75597', GAL2='0.80', EG2='0.94', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='7.56e-08', ts2='2.71', photon_index='2.92' WHERE bin_id='655' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:40:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 75597: <4FGL_J1148.5+2629_daily_bin655> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin655> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 11:26:21 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:26:23 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:26:23 2021
Terminated at Sat Sep  4 11:40:58 2021
Results reported at Sat Sep  4 11:40:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin655 177.141 26.4986 409104001 409363201 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 :                                   839.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            877 sec.

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

