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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin78
RA = 177.154, Dec = 18.6861
tmin = 259545601, tmax = 259804801
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='82781', job_status='RUN', time_executed='2021-09-04 11:48:33.352574', time_epoch_executed='1630781313.35' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='78'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82781

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82781/ft1_4FGL_J1148.6+1841_daily_bin78.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82781/ft2_4FGL_J1148.6+1841_daily_bin78.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82781/ft1_4FGL_J1148.6+1841_daily_bin78.fits outfile=/scratch/kocevski/82781/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin78.fits ra=177.154 dec=18.6861 rad=12.0 tmin=259545601.0 tmax=259804801.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 1.65
user 1.48
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82781/ft2_4FGL_J1148.6+1841_daily_bin78.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/82781/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin78.fits evtable="EVENTS" outfile="/scratch/kocevski/82781/ft1_filtered_4FGL_J1148.6+1841_daily_bin78.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82781/ft1_filtered_4FGL_J1148.6+1841_daily_bin78.fits" evtable="EVENTS" scfile=/scratch/kocevski/82781/ft2_4FGL_J1148.6+1841_daily_bin78.fits sctable="SC_DATA" outfile=/scratch/kocevski/82781/ltcube_259545601_259804801_4FGL_J1148.6+1841_daily_bin78.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/82781/ft2_4FGL_J1148.6+1841_daily_bin78.fits
.....................!
real 12.67
user 12.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82781/ft1_filtered_4FGL_J1148.6+1841_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/82781/ft2_4FGL_J1148.6+1841_daily_bin78.fits sctable="SC_DATA" expcube=/scratch/kocevski/82781/ltcube_259545601_259804801_4FGL_J1148.6+1841_daily_bin78.fits outfile=/scratch/kocevski/82781/expmap_259545601_259804801_4FGL_J1148.6+1841_daily_bin78.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/82781/ltcube_259545601_259804801_4FGL_J1148.6+1841_daily_bin78.fits
.....................!
real 190.59
user 185.40
sys 4.79

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/82781/ft1_filtered_4FGL_J1148.6+1841_daily_bin78.fits scfile=/scratch/kocevski/82781/ft2_4FGL_J1148.6+1841_daily_bin78.fits outfile=/scratch/kocevski/82781/cmap_259545601_259804801_4FGL_J1148.6+1841_daily_bin78.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82781/ft1_filtered_4FGL_J1148.6+1841_daily_bin78.fits scfile=/scratch/kocevski/82781/ft2_4FGL_J1148.6+1841_daily_bin78.fits outfile=/scratch/kocevski/82781/cmap_HighResolution_259545601_259804801_4FGL_J1148.6+1841_daily_bin78.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.53
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/82781/ft1_filtered_4FGL_J1148.6+1841_daily_bin78.fits', '/scratch/kocevski/82781/ft2_4FGL_J1148.6+1841_daily_bin78.fits', expMap='/scratch/kocevski/82781/expmap_259545601_259804801_4FGL_J1148.6+1841_daily_bin78.fits', expCube='/scratch/kocevski/82781/ltcube_259545601_259804801_4FGL_J1148.6+1841_daily_bin78.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/82781/Model_4FGL_J1148.6+1841_daily_bin78.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/82781/ft1_filtered_4FGL_J1148.6+1841_daily_bin78.fits
Spacecraft file(s): /scratch/kocevski/82781/ft2_4FGL_J1148.6+1841_daily_bin78.fits
Exposure map: /scratch/kocevski/82781/expmap_259545601_259804801_4FGL_J1148.6+1841_daily_bin78.fits
Exposure cube: /scratch/kocevski/82781/ltcube_259545601_259804801_4FGL_J1148.6+1841_daily_bin78.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/82781/Model_4FGL_J1148.6+1841_daily_bin78.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) = 6692.92630281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.804       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6508       1.0000         .10000E-03   10000.    
     3 'norm      '    13.483       1.0000         .10000E-03   10000.    
     4 'norm      '    7.2746       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2970       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2526       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3169       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7150       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4061       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.5062       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.122       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8787       1.0000         .10000E-03   10000.    
    15 'Prefactor '    216.25       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14628E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.1025       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.5270       1.0000         .10000E-03   10000.    
    19 'norm      '    .20949       1.0000         .10000E-03   10000.    
    20 'norm      '    .10262E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.979       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .69453       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1497       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=   6692.917     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2781 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.800        24.303       -.45663E-05    .44873E-04
   2  Prefactor     4.6513        4.8422       -.13359E-06    .10493E-03
   3  norm          13.482        9.5900       -.90459E-06    .50903E-04
   4  norm          7.2736        8.4129       -.18530E-05   -.40780E-04
   5  Prefactor     .10000E-03    11.617       -.16497E-05** at limit **
   6  Prefactor     5.2930        23.913       -.11531E-04   -.10523E-04
   7  Prefactor     4.2507        8.6975       -.58042E-06   -.98410E-04
   8  Prefactor     6.3161        11.850       -.29519E-05   -.39987E-04
   9  Prefactor     7.7152        8.6358       -.12385E-05    .30446E-04
  10  Prefactor     2.4059        1.7396       -.42301E-06   -.14988E-03
  11  Prefactor     .10000E-03    2.5665        .71043E-06** at limit **
  12  norm          5.5060        1.4998       -.21325E-06    .28821E-03
  13  Prefactor     10.078        19.871       -.23823E-04    .79539E-04
  14  Prefactor     1.8797        2.8083       -.81747E-06   -.44004E-03
  15  Prefactor     216.17        112.20       -.47978E-04    .63460E-04
  16  Prefactor     .10000E-03    1.5319       -.53567E-06** at limit **
  17  Prefactor     9.1100        3.9067        .40759E-06    .74701E-03
  18  Prefactor     7.5250        5.6622        .47738E-06    .19290E-05
  19  norm          .20950        .16537       -.21052E-06   -.10169E-02
  20  norm          .10000E-03    5.2434       -.21417E-06** at limit **
  21  Prefactor     11.976        12.119        .86001E-06   -.41406E-04
  22  Prefactor     .10000E-03    36.352        .12945E-04** at limit **
  23  Normalizat    .69472        .17504        .10729E-04    .13900E-03
  24  Prefactor     1.1495        .17414        .20653E-05    .41481E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.8005
  Prefactor  = 4.65132
  norm       = 13.4819
  norm       = 7.27356
  Prefactor  = 0.000100001
  Prefactor  = 5.29296
  Prefactor  = 4.2507
  Prefactor  = 6.31609
  Prefactor  = 7.71521
  Prefactor  = 2.40593
  Prefactor  = 0.0001
  norm       = 5.50601
  Prefactor  = 10.0779
  Prefactor  = 1.87968
  Prefactor  = 216.173
  Prefactor  = 0.0001
  Prefactor  = 9.10998
  Prefactor  = 7.52499
  norm       = 0.209503
  norm       = 0.000100001
  Prefactor  = 11.9758
  Prefactor  = 0.0001
  Normalizat = 0.694721
  Prefactor  = 1.14955
 **********
 **   18 **HESSE 
 **********

 FCN=   6692.917     FROM HESSE     STATUS=OK           405 CALLS     3186 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.800        24.330        .55194E-04   -1.4253    
   2  Prefactor     4.6513        4.8424        .17799E-03   -1.5277    
   3  norm          13.482        9.5868        .10908E-03   -1.4973    
   4  norm          7.2736        8.4187        .14871E-03   -1.5169    
   5  Prefactor     .10000E-03    11.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2930        23.891        .17463E-03   -1.5248    
   7  Prefactor     4.2507        8.6849        .19539E-03   -1.5296    
   8  Prefactor     6.3161        11.823        .15971E-03   -1.5205    
   9  Prefactor     7.7152        8.6254        .14437E-03   -1.5152    
  10  Prefactor     2.4059        1.7294        .86376E-04   -1.5398    
  11  Prefactor     .10000E-03    2.5704        .12802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.5060        1.4999        .50436E-04   -1.5239    
  13  Prefactor     10.078        19.790        .12595E-03   -1.5073    
  14  Prefactor     1.8797        2.7785        .15951E-03   -1.5434    
  15  Prefactor     216.17        111.75        .13750E-03   -1.2757    
  16  Prefactor     .10000E-03    2.4456        .18664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.1100        3.7518        .95194E-04   -1.5104    
  18  Prefactor     7.5250        5.6420        .14618E-03   -1.5159    
  19  norm          .20950        .16397        .28168E-04   -1.5616    
  20  norm          .10000E-03    5.4520        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.976        12.115        .11574E-03   -1.5016    
  22  Prefactor     .10000E-03    36.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .69472        .20354        .29257E-03   -1.0410    
  24  Prefactor     1.1495        .20454        .24488E-03   -.87898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.72151e-10
Minuit parameter uncertainties:
  1  24.3341
  2  4.84281
  3  9.58791
  4  8.42009
  5  0.000167933
  6  22.505
  7  8.68749
  8  11.8275
  9  8.62678
  10  1.72945
  11  6.69937e-05
  12  1.49993
  13  19.8028
  14  2.7787
  15  111.858
  16  3.54903e-05
  17  3.75186
  18  5.64237
  19  0.163971
  20  0.000109907
  21  12.1178
  22  0.000219626
  23  0.203762
  24  0.204678
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  7.715e+00  8.627e+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:  1.150e+00  2.047e-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:  6.947e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.17
Ra Dec: 177.154 18.686
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 2.50e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 9.13e-06 +/- 1.02e-05

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

Saving results to:
/scratch/kocevski/82781/likelihoodResults_259545601_259804801_4FGL_J1148.6+1841_daily_bin78.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) = 6692.89977286
delta logL = 0.0168378218559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6692.88597235
delta logL = 0.0306383284587

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6692.886     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      254 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9729        11.904        .16431E-03   -.31689E-04
   2  Index         2.5310        1.0373        .83543E-02    .46838E-03
   3  Normalizat    .68929        .19413        .29364E-03    .19389E-03
   4  Prefactor     1.1535        .20446        .24452E-03    .28934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.97293
  Index      = 2.53098
  Normalizat = 0.689287
  Prefactor  = 1.15345
 **********
 **   18 **HESSE 
 **********

 FCN=   6692.886     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9729        10.294        .65724E-05   -1.5219    
   2  Index         2.5310        .89884        .16709E-02   -.51646    
   3  Normalizat    .68929        .19388        .11746E-04   -1.0432    
   4  Prefactor     1.1535        .20419        .48904E-04   -.87776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14059e-10
Minuit parameter uncertainties:
  1  10.297
  2  0.905365
  3  0.194068
  4  0.204333
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82781': 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) = 6692.88597209
delta logL = 0.0306385917038

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  5.973e+00  1.030e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.531e+00  9.054e-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:  1.153e+00  2.043e-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:  6.893e-01  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.22
Ra Dec: 177.154 18.686
Photon Index (Free Index): 2.53 +/- 0.91
Photon Flux (Free Index): 2.88e-08 +/- 3.36e-08
Energy Flux (Free Index): 8.08e-06 +/- 9.72e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/82781/cmap_HighResolution_259545601_259804801_4FGL_J1148.6+1841_daily_bin78.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', comment='SUCCESS', photon_flux='2.50e-08', energy_flux2='8.08e-06', photon_flux_error='2.79e-08', dlogl='3.06e-02', energy_flux='9.13e-06', photon_flux2='2.88e-08', job_status='DONE', time_completed='2021-09-04 12:00:46.748683', photon_index_error2='0.91', photon_index2='2.53', ts='1.17', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='9.04e-08', energy_flux_error2='9.72e-06', EG='0.69', time_epoch_completed='1630782046.75', return_code='0', job_id='82781', GAL2='1.15', EG2='0.69', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='3.36e-08', ts2='1.22', photon_index='2.32' WHERE bin_id='78' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:00:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 82781: <4FGL_J1148.6+1841_daily_bin78> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin78> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:46:13 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:46:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 11:46:15 2021
Terminated at Sat Sep  4 12:00:47 2021
Results reported at Sat Sep  4 12:00:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin78 177.154 18.6861 259545601 259804801 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 :                                   730.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

