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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin89
RA = 177.154, Dec = 18.6861
tmin = 262396801, tmax = 262656001
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='82797', job_status='RUN', time_executed='2021-09-04 11:49:30.234829', time_epoch_executed='1630781370.23' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82797

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82797/ft1_4FGL_J1148.6+1841_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82797/ft2_4FGL_J1148.6+1841_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82797/ft1_4FGL_J1148.6+1841_daily_bin89.fits outfile=/scratch/kocevski/82797/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin89.fits ra=177.154 dec=18.6861 rad=12.0 tmin=262396801.0 tmax=262656001.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.42
user 1.22
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82797/ft2_4FGL_J1148.6+1841_daily_bin89.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/82797/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin89.fits evtable="EVENTS" outfile="/scratch/kocevski/82797/ft1_filtered_4FGL_J1148.6+1841_daily_bin89.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/82797/ft1_filtered_4FGL_J1148.6+1841_daily_bin89.fits" evtable="EVENTS" scfile=/scratch/kocevski/82797/ft2_4FGL_J1148.6+1841_daily_bin89.fits sctable="SC_DATA" outfile=/scratch/kocevski/82797/ltcube_262396801_262656001_4FGL_J1148.6+1841_daily_bin89.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/82797/ft2_4FGL_J1148.6+1841_daily_bin89.fits
.....................!
real 12.47
user 12.10
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82797/ft1_filtered_4FGL_J1148.6+1841_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/82797/ft2_4FGL_J1148.6+1841_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/82797/ltcube_262396801_262656001_4FGL_J1148.6+1841_daily_bin89.fits outfile=/scratch/kocevski/82797/expmap_262396801_262656001_4FGL_J1148.6+1841_daily_bin89.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/82797/ltcube_262396801_262656001_4FGL_J1148.6+1841_daily_bin89.fits
.....................!
real 192.02
user 185.83
sys 5.51

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/82797/ft1_filtered_4FGL_J1148.6+1841_daily_bin89.fits scfile=/scratch/kocevski/82797/ft2_4FGL_J1148.6+1841_daily_bin89.fits outfile=/scratch/kocevski/82797/cmap_262396801_262656001_4FGL_J1148.6+1841_daily_bin89.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82797/ft1_filtered_4FGL_J1148.6+1841_daily_bin89.fits scfile=/scratch/kocevski/82797/ft2_4FGL_J1148.6+1841_daily_bin89.fits outfile=/scratch/kocevski/82797/cmap_HighResolution_262396801_262656001_4FGL_J1148.6+1841_daily_bin89.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/82797/ft1_filtered_4FGL_J1148.6+1841_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/82797/ft2_4FGL_J1148.6+1841_daily_bin89.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/82797/Model_4FGL_J1148.6+1841_daily_bin89.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/82797/ft1_filtered_4FGL_J1148.6+1841_daily_bin89.fits.....................!
real 59.90
user 57.94
sys 1.49

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1638       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7192       1.0000         .10000E-03   10000.    
     3 'norm      '    8.1466       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5753       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7199       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.757       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5859       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2590       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.3286       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21204       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11597E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8943       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4045       1.0000         .10000E-03   10000.    
    19 'norm      '    .66602       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.868       1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.655       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0402       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92127       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=   6452.764     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2761 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1640        15.064        .54938E-06   -.48594E-04
   2  Prefactor     7.7213        6.2612       -.12155E-06   -.45054E-04
   3  norm          8.1521        9.7712        .56301E-05   -.15969E-03
   4  norm          .10000E-03    23.579        .45387E-05** at limit **
   5  Prefactor     6.5726        9.6873       -.48469E-06   -.12327E-03
   6  Prefactor     9.6935        18.855        .34803E-04   -.22693E-04
   7  Prefactor     13.749        19.847       -.36517E-05   -.44577E-04
   8  Prefactor     .10000E-03    6.3543        .81347E-07** at limit **
   9  Prefactor     9.5821        9.3505       -.21713E-05   -.10198E-03
  10  Prefactor     1.2583        1.6125        .65628E-07   -.77693E-03
  11  Prefactor     .10000E-03    3.2170       -.48541E-07** at limit **
  12  norm          4.3285        1.4664        .92855E-07   -.82342E-04
  13  Prefactor     .10831E-03    9.2876        .18176E-06** at limit **
  14  Prefactor     .10000E-03    1.5606        .66031E-07** at limit **
  15  Prefactor     .10000E-03    34.264       -.68220E-05** at limit **
  16  Prefactor     .10000E-03    1.2967        .23613E-06** at limit **
  17  Prefactor     1.8895        2.6114        .23721E-06   -.64123E-03
  18  Prefactor     5.4041        4.3734       -.21730E-07   -.36459E-06
  19  norm          .66587        .23892        .40951E-07   -.33914E-03
  20  norm          .10000E-03    1.2231        .17314E-07** at limit **
  21  Prefactor     12.866        12.965        .24377E-05    .16344E-04
  22  Prefactor     26.671        30.474       -.15832E-04   -.14569E-04
  23  Normalizat    1.0405        .17723       -.88215E-06   -.20763E-03
  24  Prefactor     .92122        .17242       -.17073E-05   -.12061E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.16402
  Prefactor  = 7.72131
  norm       = 8.15213
  norm       = 0.0001
  Prefactor  = 6.57262
  Prefactor  = 9.69347
  Prefactor  = 13.7488
  Prefactor  = 0.0001
  Prefactor  = 9.58211
  Prefactor  = 1.25827
  Prefactor  = 0.0001
  norm       = 4.32851
  Prefactor  = 0.000108311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.88947
  Prefactor  = 5.40408
  norm       = 0.66587
  norm       = 0.0001
  Prefactor  = 12.866
  Prefactor  = 26.6706
  Normalizat = 1.0405
  Prefactor  = 0.921219
 **********
 **   18 **HESSE 
 **********

 FCN=   6452.764     FROM HESSE     STATUS=OK           415 CALLS     3176 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1640        15.079        .13240E-03   -1.5102    
   2  Prefactor     7.7213        6.2619        .14433E-03   -1.5152    
   3  norm          8.1521        9.7568        .14047E-03   -1.5137    
   4  norm          .10000E-03    24.468        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.5726        9.6827        .15650E-03   -1.5195    
   6  Prefactor     9.6935        18.825        .12853E-03   -1.5085    
   7  Prefactor     13.749        19.899        .10799E-03   -1.4966    
   8  Prefactor     .10000E-03    6.3693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5821        9.3542        .12943E-03   -1.5089    
  10  Prefactor     1.2583        1.5849        .11013E-03   -1.5484    
  11  Prefactor     .10000E-03    3.2304        .14070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.3285        1.4671        .54654E-04   -1.5292    
  13  Prefactor     .10831E-03    15.051        .72583E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.5954        .97936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9565        .17090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.8895        2.5075        .14045E-03   -1.5433    
  18  Prefactor     5.4041        4.3726        .14689E-03   -1.5243    
  19  norm          .66587        .23908        .22551E-04   -1.5545    
  20  norm          .10000E-03    1.2239        .86758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.866        12.961        .11166E-03   -1.4990    
  22  Prefactor     26.671        30.471        .77594E-04   -1.4675    
  23  Normalizat    1.0405        .20200        .24317E-03   -.91686    
  24  Prefactor     .92122        .19634        .26373E-03   -.95404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39095e-10
Minuit parameter uncertainties:
  1  15.0854
  2  6.26248
  3  9.75872
  4  0.000135007
  5  9.68503
  6  18.8368
  7  19.9086
  8  1.4418e-05
  9  9.35559
  10  1.58498
  11  4.8485e-06
  12  1.46712
  13  0.022375
  14  9.26712e-06
  15  3.17764e-05
  16  3.30041e-05
  17  2.5076
  18  4.37283
  19  0.239079
  20  8.29363e-07
  21  12.9638
  22  30.4889
  23  0.202148
  24  0.196488
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  9.582e+00  9.356e+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:  9.212e-01  1.965e-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.041e+00  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 177.154 18.686
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.10e-08 +/- 3.03e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.11e-05

TS (Fixed Index): 1.83
Ra Dec: 177.154 18.686
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/82797/likelihoodResults_262396801_262656001_4FGL_J1148.6+1841_daily_bin89.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) = 6452.73689344
delta logL = 0.0274499143652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6452.73412338
delta logL = 0.0302199682683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.718       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1804       1.0000          .0000       10.000    
     3 'Normalizat'    1.0438       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91810       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=   6452.734     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      278 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.721        14.392        .11703E-03    .48573E-04
   2  Index         2.1804        .58095        .72925E-02    .35362E-03
   3  Normalizat    1.0438        .18926        .24282E-03   -.13704E-03
   4  Prefactor     .91808        .19574        .26412E-03   -.21048E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7209
  Index      = 2.18039
  Normalizat = 1.0438
  Prefactor  = 0.918077
 **********
 **   18 **HESSE 
 **********

 FCN=   6452.734     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.721        13.849        .46811E-05   -1.5023    
   2  Index         2.1804        .55915        .14585E-02   -.59913    
   3  Normalizat    1.0438        .18937        .97127E-05   -.91577    
   4  Prefactor     .91808        .19583        .10565E-04   -.95512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.56711e-11
Minuit parameter uncertainties:
  1  13.8528
  2  0.560871
  3  0.189488
  4  0.195983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82797': 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) = 6452.73412333
delta logL = 0.0302200254255

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.172e+01  1.385e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.180e+00  5.609e-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:  9.181e-01  1.960e-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.044e+00  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 177.154 18.686
Photon Index (Free Index): 2.18 +/- 0.56
Photon Flux (Free Index): 2.93e-08 +/- 2.96e-08
Energy Flux (Free Index): 1.37e-05 +/- 1.68e-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/82797/cmap_HighResolution_262396801_262656001_4FGL_J1148.6+1841_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.76e-03', comment='SUCCESS', photon_flux='3.10e-08', energy_flux2='1.37e-05', photon_flux_error='3.03e-08', dlogl='3.02e-02', energy_flux='1.13e-05', photon_flux2='2.93e-08', job_status='DONE', time_completed='2021-09-04 12:01:39.646816', photon_index_error2='0.56', photon_index2='2.18', ts='1.83', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.68e-05', EG='1.04', time_epoch_completed='1630782099.65', return_code='0', job_id='82797', GAL2='0.92', EG2='1.04', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='2.96e-08', ts2='1.88', photon_index='2.32' WHERE bin_id='89' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:01:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 82797: <4FGL_J1148.6+1841_daily_bin89> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin89> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:46:15 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:46:17 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:17 2021
Terminated at Sat Sep  4 12:01:40 2021
Results reported at Sat Sep  4 12:01:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin89 177.154 18.6861 262396801 262656001 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 :                                   724.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            925 sec.

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

