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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1498
RA = 177.154, Dec = 18.6861
tmin = 627609601, tmax = 627868801
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='89981', job_status='RUN', time_executed='2021-09-04 12:08:02.670997', time_epoch_executed='1630782482.67' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89981

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89981/ft1_4FGL_J1148.6+1841_daily_bin1498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89981/ft2_4FGL_J1148.6+1841_daily_bin1498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89981/ft1_4FGL_J1148.6+1841_daily_bin1498.fits outfile=/scratch/kocevski/89981/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1498.fits ra=177.154 dec=18.6861 rad=12.0 tmin=627609601.0 tmax=627868801.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 2.50
user 2.30
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/89981/ft2_4FGL_J1148.6+1841_daily_bin1498.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/89981/ft2_4FGL_J1148.6+1841_daily_bin1498.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/89981/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1498.fits evtable="EVENTS" outfile="/scratch/kocevski/89981/ft1_filtered_4FGL_J1148.6+1841_daily_bin1498.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/89981/ft1_filtered_4FGL_J1148.6+1841_daily_bin1498.fits" evtable="EVENTS" scfile=/scratch/kocevski/89981/ft2_4FGL_J1148.6+1841_daily_bin1498.fits sctable="SC_DATA" outfile=/scratch/kocevski/89981/ltcube_627609601_627868801_4FGL_J1148.6+1841_daily_bin1498.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/89981/ft2_4FGL_J1148.6+1841_daily_bin1498.fits
.....................!
real 12.27
user 11.89
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89981/ft1_filtered_4FGL_J1148.6+1841_daily_bin1498.fits evtable="EVENTS" scfile=/scratch/kocevski/89981/ft2_4FGL_J1148.6+1841_daily_bin1498.fits sctable="SC_DATA" expcube=/scratch/kocevski/89981/ltcube_627609601_627868801_4FGL_J1148.6+1841_daily_bin1498.fits outfile=/scratch/kocevski/89981/expmap_627609601_627868801_4FGL_J1148.6+1841_daily_bin1498.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/89981/ltcube_627609601_627868801_4FGL_J1148.6+1841_daily_bin1498.fits
.....................!
real 191.51
user 185.68
sys 5.43

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1148.6+1841 @ 177.154 18.6861

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/89981/ft1_filtered_4FGL_J1148.6+1841_daily_bin1498.fits scfile=/scratch/kocevski/89981/ft2_4FGL_J1148.6+1841_daily_bin1498.fits outfile=/scratch/kocevski/89981/cmap_627609601_627868801_4FGL_J1148.6+1841_daily_bin1498.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.154 yref=18.6861 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.62
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89981/ft1_filtered_4FGL_J1148.6+1841_daily_bin1498.fits scfile=/scratch/kocevski/89981/ft2_4FGL_J1148.6+1841_daily_bin1498.fits outfile=/scratch/kocevski/89981/cmap_HighResolution_627609601_627868801_4FGL_J1148.6+1841_daily_bin1498.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.154 yref=18.6861 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/89981/ft1_filtered_4FGL_J1148.6+1841_daily_bin1498.fits evtable="EVENTS" scfile=/scratch/kocevski/89981/ft2_4FGL_J1148.6+1841_daily_bin1498.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/89981/Model_4FGL_J1148.6+1841_daily_bin1498.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/89981/ft1_filtered_4FGL_J1148.6+1841_daily_bin1498.fits.....................!
real 71.05
user 67.66
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/89981/ft1_filtered_4FGL_J1148.6+1841_daily_bin1498.fits', '/scratch/kocevski/89981/ft2_4FGL_J1148.6+1841_daily_bin1498.fits', expMap='/scratch/kocevski/89981/expmap_627609601_627868801_4FGL_J1148.6+1841_daily_bin1498.fits', expCube='/scratch/kocevski/89981/ltcube_627609601_627868801_4FGL_J1148.6+1841_daily_bin1498.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/89981/Model_4FGL_J1148.6+1841_daily_bin1498.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1148.6+1841'

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.462e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/89981/ft1_filtered_4FGL_J1148.6+1841_daily_bin1498.fits
Spacecraft file(s): /scratch/kocevski/89981/ft2_4FGL_J1148.6+1841_daily_bin1498.fits
Exposure map: /scratch/kocevski/89981/expmap_627609601_627868801_4FGL_J1148.6+1841_daily_bin1498.fits
Exposure cube: /scratch/kocevski/89981/ltcube_627609601_627868801_4FGL_J1148.6+1841_daily_bin1498.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/89981/Model_4FGL_J1148.6+1841_daily_bin1498.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) = 7764.34128192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .80998       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .16809E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2647       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .74703E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.302       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32743       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11707E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.8578       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.773       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4793       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11893E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .66525       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.7515       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.463       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.5799       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2569       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .66512       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7764.332     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2919 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0566       -.13017E-06** at limit **
   2  Prefactor     .80934        2.6427        .93264E-07   -.14368E-03
   3  norm          .10000E-03    9.3312       -.34790E-06** at limit **
   4  norm          .10000E-03    3.7688       -.28665E-06** at limit **
   5  Prefactor     .10000E-03    2.9356       -.85041E-07** at limit **
   6  Prefactor     7.2636        18.187        .28506E-06    .18593E-04
   7  Prefactor     .10000E-03    4.3060       -.38359E-07** at limit **
   8  Prefactor     .10018E-03    8.6395       -.45200E-05** at limit **
   9  Prefactor     11.302        8.4326        .15402E-06    .56862E-04
  10  Prefactor     .32640        1.3693        .47973E-05   -.73885E-03
  11  Prefactor     .10000E-03    10.370       -.37594E-06** at limit **
  12  norm          4.8576        1.3345        .80533E-08    .75207E-03
  13  Prefactor     10.773        8.8783        .10759E-06    .24358E-04
  14  Prefactor     2.4799        2.5247        .43613E-06   -.10158E-03
  15  Prefactor     .10000E-03    23.540       -.29324E-07** at limit **
  16  Prefactor     .10000E-03    .88701        .35141E-06** at limit **
  17  Prefactor     .10000E-03    .88073        .21792E-06** at limit **
  18  Prefactor     .66541        2.9918        .67719E-06    .17146E-03
  19  norm          .10000E-03    .61220E-01    .79172E-07** at limit **
  20  norm          7.7515        4.3381       -.67855E-07    .73280E-04
  21  Prefactor     13.453        18.522        .33017E-05    .45786E-03
  22  Prefactor     9.6230        38.302       -.78412E-05   -.11723E-03
  23  Normalizat    1.2568        .15231       -.20461E-05    .45177E-03
  24  Prefactor     .66520        .14442        .18279E-05    .56020E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.809341
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.26356
  Prefactor  = 0.0001
  Prefactor  = 0.00010018
  Prefactor  = 11.302
  Prefactor  = 0.326396
  Prefactor  = 0.0001
  norm       = 4.85762
  Prefactor  = 10.7733
  Prefactor  = 2.47988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.665413
  norm       = 0.0001
  norm       = 7.75146
  Prefactor  = 13.4525
  Prefactor  = 9.62302
  Normalizat = 1.25678
  Prefactor  = 0.665201
 **********
 **   18 **HESSE 
 **********

 FCN=   7764.332     FROM HESSE     STATUS=OK           409 CALLS     3328 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .80934        2.8688        .24999E-02   -1.5528    
   3  norm          .10000E-03    9.5103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    15.499        .32893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.9434        .14742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2636        18.163        .14881E-03   -1.5169    
   7  Prefactor     .10000E-03    4.3117        .17858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10018E-03    127.88        .45493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.302        8.4222        .59585E-03   -1.5035    
  10  Prefactor     .32640        1.3922        .77183E-02   -1.5594    
  11  Prefactor     .10000E-03    10.833        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8576        1.3281        .51154E-04   -1.5267    
  13  Prefactor     10.773        8.8751        .12206E-03   -1.5051    
  14  Prefactor     2.4799        2.5017        .67354E-03   -1.5393    
  15  Prefactor     .10000E-03    23.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.2501        .15802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .89187        .80684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .66541        2.8233        .28856E-03   -1.5545    
  19  norm          .10000E-03    .76286E-01    .42188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.7515        4.3052        .13013E-03   -1.5151    
  21  Prefactor     13.453        18.747        .10916E-03   -1.4974    
  22  Prefactor     9.6230        39.144        .12947E-03   -1.5087    
  23  Normalizat    1.2568        .16686        .21148E-03   -.84866    
  24  Prefactor     .66520        .16297        .28331E-03   -1.0491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43537e-08
Minuit parameter uncertainties:
  1  2.36429e-05
  2  2.86929
  3  8.8524e-05
  4  5.14859e-05
  5  1.12807e-05
  6  18.1769
  7  8.06077e-06
  8  0.00961833
  9  8.42309
  10  1.34805
  11  0.00010107
  12  1.32807
  13  8.87623
  14  2.50183
  15  3.74701e-05
  16  2.20008e-05
  17  1.59817e-05
  18  2.74129
  19  1.51903e-06
  20  4.30535
  21  18.755
  22  38.8606
  23  0.16693
  24  0.163086
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.130e+01  8.423e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  6.652e-01  1.631e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.257e+00  1.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.86
Ra Dec: 177.154 18.686
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.66e-08 +/- 2.72e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 9.97e-06

TS (Fixed Index): 2.86
Ra Dec: 177.154 18.686
Photon Flux Upper Limit: 9.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89981/likelihoodResults_627609601_627868801_4FGL_J1148.6+1841_daily_bin1498.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) = 7764.32525726
delta logL = 0.00647570218098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7764.31928874
delta logL = 0.0124442210808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.529       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2281       1.0000          .0000       10.000    
     3 'Normalizat'    1.2604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66251       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7764.319     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      261 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.534        12.628        .56583E-03    .47731E-04
   2  Index         2.2278        .62385        .77603E-02    .43697E-03
   3  Normalizat    1.2604        .16243        .21122E-03   -.59205E-06
   4  Prefactor     .66253        .16295        .28382E-03   -.36051E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5335
  Index      = 2.2278
  Normalizat = 1.26042
  Prefactor  = 0.662534
 **********
 **   18 **HESSE 
 **********

 FCN=   7764.319     FROM HESSE     STATUS=OK            27 CALLS      288 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.534        11.965        .11317E-03   -1.5000    
   2  Index         2.2278        .59101        .15521E-02   -.58769    
   3  Normalizat    1.2604        .16232        .84490E-05   -.84756    
   4  Prefactor     .66253        .16290        .11353E-04   -1.0501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01644e-12
Minuit parameter uncertainties:
  1  11.967
  2  0.59302
  3  0.16239
  4  0.16302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89981': 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) = 7764.31928858
delta logL = 0.0124443790601

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.253e+01  1.197e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.228e+00  5.930e-01  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  6.625e-01  1.630e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.260e+00  1.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 177.154 18.686
Photon Index (Free Index): 2.23 +/- 0.59
Photon Flux (Free Index): 3.41e-08 +/- 3.00e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.38e-05

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/89981/cmap_HighResolution_627609601_627868801_4FGL_J1148.6+1841_daily_bin1498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-03', comment='SUCCESS', photon_flux='3.66e-08', energy_flux2='1.46e-05', photon_flux_error='2.72e-08', dlogl='1.24e-02', energy_flux='1.34e-05', photon_flux2='3.41e-08', job_status='DONE', time_completed='2021-09-04 12:21:59.049106', photon_index_error2='0.59', photon_index2='2.23', ts='2.86', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='9.53e-08', energy_flux_error2='1.38e-05', EG='1.26', time_epoch_completed='1630783319.05', return_code='0', job_id='89981', GAL2='0.66', EG2='1.26', return_code2='0', energy_flux_error='9.97e-06', photon_flux_error2='3.00e-08', ts2='2.88', photon_index='2.32' WHERE bin_id='1498' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:21:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 89981: <4FGL_J1148.6+1841_daily_bin1498> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1498> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:07:05 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:07:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 12:07:07 2021
Terminated at Sat Sep  4 12:22:00 2021
Results reported at Sat Sep  4 12:22:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1498 177.154 18.6861 627609601 627868801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1148.6+1841 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   815.07 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             351.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

