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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1544
RA = 177.154, Dec = 18.6861
tmin = 639532801, tmax = 639792001
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='90053', job_status='RUN', time_executed='2021-09-04 12:10:53.990931', time_epoch_executed='1630782653.99' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90053

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90053/ft1_4FGL_J1148.6+1841_daily_bin1544.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90053/ft2_4FGL_J1148.6+1841_daily_bin1544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90053/ft1_4FGL_J1148.6+1841_daily_bin1544.fits outfile=/scratch/kocevski/90053/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1544.fits ra=177.154 dec=18.6861 rad=12.0 tmin=639532801.0 tmax=639792001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.63
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/90053/ft2_4FGL_J1148.6+1841_daily_bin1544.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/90053/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1544.fits evtable="EVENTS" outfile="/scratch/kocevski/90053/ft1_filtered_4FGL_J1148.6+1841_daily_bin1544.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.56
user 0.33
sys 0.22

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90053/ft1_filtered_4FGL_J1148.6+1841_daily_bin1544.fits" evtable="EVENTS" scfile=/scratch/kocevski/90053/ft2_4FGL_J1148.6+1841_daily_bin1544.fits sctable="SC_DATA" outfile=/scratch/kocevski/90053/ltcube_639532801_639792001_4FGL_J1148.6+1841_daily_bin1544.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/90053/ft2_4FGL_J1148.6+1841_daily_bin1544.fits
.....................!
real 11.72
user 11.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90053/ft1_filtered_4FGL_J1148.6+1841_daily_bin1544.fits evtable="EVENTS" scfile=/scratch/kocevski/90053/ft2_4FGL_J1148.6+1841_daily_bin1544.fits sctable="SC_DATA" expcube=/scratch/kocevski/90053/ltcube_639532801_639792001_4FGL_J1148.6+1841_daily_bin1544.fits outfile=/scratch/kocevski/90053/expmap_639532801_639792001_4FGL_J1148.6+1841_daily_bin1544.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/90053/ltcube_639532801_639792001_4FGL_J1148.6+1841_daily_bin1544.fits
.....................!
real 190.59
user 184.76
sys 5.27

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/90053/ft1_filtered_4FGL_J1148.6+1841_daily_bin1544.fits scfile=/scratch/kocevski/90053/ft2_4FGL_J1148.6+1841_daily_bin1544.fits outfile=/scratch/kocevski/90053/cmap_639532801_639792001_4FGL_J1148.6+1841_daily_bin1544.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90053/ft1_filtered_4FGL_J1148.6+1841_daily_bin1544.fits scfile=/scratch/kocevski/90053/ft2_4FGL_J1148.6+1841_daily_bin1544.fits outfile=/scratch/kocevski/90053/cmap_HighResolution_639532801_639792001_4FGL_J1148.6+1841_daily_bin1544.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.554       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.1034       1.0000         .10000E-03   10000.    
     4 'norm      '    16.304       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6570       1.0000         .10000E-03   10000.    
     6 'Prefactor '    64.041       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4919       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.273       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.648       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.943       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9004       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.649       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10499E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3083       1.0000         .10000E-03   10000.    
    19 'norm      '    .21649       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.950       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0493       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .63115       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=   5181.126     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2744 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.554        15.866       -.46783E-09   -.75747E-05
   2  Prefactor     .10000E-03    2.0026        .38081E-07** at limit **
   3  norm          8.0985        12.279        .11740E-05    .22583E-04
   4  norm          16.304        8.9457        .41964E-06    .40488E-04
   5  Prefactor     2.6561        7.1203       -.17979E-07   -.16413E-04
   6  Prefactor     64.040        38.030        .49149E-06   -.92308E-06
   7  Prefactor     .10000E-03    6.8985       -.53055E-06** at limit **
   8  Prefactor     2.4844        13.044       -.54801E-07   -.64124E-05
   9  Prefactor     26.274        13.643       -.66281E-06   -.76351E-04
  10  Prefactor     .10000E-03    .55537        .63298E-07** at limit **
  11  Prefactor     .10000E-03    3.9336        .65547E-07** at limit **
  12  norm          11.648        2.0977        .24901E-07    .31138E-04
  13  Prefactor     12.959        17.240       -.87624E-06   -.44857E-04
  14  Prefactor     2.8992        4.2298        .23756E-05   -.10270E-03
  15  Prefactor     21.380        57.936        .11414E-05   -.83318E-07
  16  Prefactor     .10000E-03    1.3292        .24449E-09** at limit **
  17  Prefactor     .10000E-03    1.8516       -.19804E-06** at limit **
  18  Prefactor     3.3081        4.9283       -.13973E-06   -.41429E-04
  19  norm          .21650        .16867        .35696E-08   -.16452E-03
  20  norm          .10000E-03    1.5231        .86702E-07** at limit **
  21  Prefactor     .10000E-03    6.9335        .25391E-06** at limit **
  22  Prefactor     34.956        32.884        .19279E-05    .10260E-04
  23  Normalizat    1.0492        .19069       -.10775E-05   -.52734E-04
  24  Prefactor     .63145        .17867       -.13554E-06   -.79903E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5541
  Prefactor  = 0.0001
  norm       = 8.09846
  norm       = 16.3038
  Prefactor  = 2.65606
  Prefactor  = 64.0405
  Prefactor  = 0.0001
  Prefactor  = 2.48444
  Prefactor  = 26.2739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.6483
  Prefactor  = 12.9585
  Prefactor  = 2.89917
  Prefactor  = 21.3798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.30811
  norm       = 0.216503
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.956
  Normalizat = 1.04916
  Prefactor  = 0.631449
 **********
 **   18 **HESSE 
 **********

 FCN=   5181.126     FROM HESSE     STATUS=OK           407 CALLS     3151 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.554        15.894        .92982E-04   -1.4846    
   2  Prefactor     .10000E-03    2.0063        .99471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.0985        12.300        .14084E-03   -1.5139    
   4  norm          16.304        8.9554        .99192E-04   -1.4900    
   5  Prefactor     2.6561        7.1057        .25007E-03   -1.5382    
   6  Prefactor     64.040        38.005        .50146E-04   -1.4106    
   7  Prefactor     .10000E-03    6.9062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.4844        12.999        .25893E-03   -1.5393    
   9  Prefactor     26.274        13.696        .78155E-04   -1.4682    
  10  Prefactor     .10000E-03    .56398        .52349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.9400        .13941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.648        2.1001        .42482E-04   -1.5025    
  13  Prefactor     12.959        17.283        .11134E-03   -1.4988    
  14  Prefactor     2.8992        4.2417        .82505E-03   -1.5367    
  15  Prefactor     21.380        57.893        .86085E-04   -1.4783    
  16  Prefactor     .10000E-03    2.0005        .15816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2142        .18559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3081        4.9127        .18772E-03   -1.5344    
  19  norm          .21650        .17057        .24951E-04   -1.5615    
  20  norm          .10000E-03    1.5254        .86731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.9174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     34.956        32.844        .67787E-04   -1.4525    
  23  Normalizat    1.0492        .22296        .22416E-03   -.91401    
  24  Prefactor     .63145        .20789        .28698E-03   -1.0628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31183e-11
Minuit parameter uncertainties:
  1  15.8976
  2  2.80161e-06
  3  12.3039
  4  8.95611
  5  7.10794
  6  38.0198
  7  4.80558e-06
  8  11.3694
  9  13.6973
  10  2.00184e-06
  11  7.07408e-06
  12  2.10013
  13  17.2892
  14  4.24211
  15  58.0459
  16  1.74885e-05
  17  1.20403e-05
  18  4.91327
  19  0.170566
  20  5.11551e-06
  21  2.86177e-05
  22  32.8605
  23  0.223158
  24  0.208141
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  2.627e+01  1.370e+01  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.314e-01  2.081e-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.049e+00  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.53
Ra Dec: 177.154 18.686
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 8.50e-08 +/- 4.43e-08
Energy Flux (Fixed Index): 3.11e-05 +/- 1.62e-05

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) = 5180.63534655
delta logL = 0.491026137317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5180.62664807
delta logL = 0.499724617171

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.898       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7955       1.0000          .0000       10.000    
     3 'Normalizat'    1.0025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65997       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=   5180.627     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      273 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.898        15.257        .10377E-03   -.12577E-03
   2  Index         2.7955        .56962        .32604E-02    .56563E-03
   3  Normalizat    1.0025        .21130        .22844E-03    .60864E-04
   4  Prefactor     .65996        .20952        .28102E-03    .11327E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8982
  Index      = 2.79546
  Normalizat = 1.00255
  Prefactor  = 0.659961
 **********
 **   18 **HESSE 
 **********

 FCN=   5180.627     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.898        13.455        .41508E-05   -1.4936    
   2  Index         2.7955        .50220        .65209E-03   -.45661    
   3  Normalizat    1.0025        .21073        .91377E-05   -.92945    
   4  Prefactor     .65996        .20922        .11241E-04   -1.0512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7614e-11
Minuit parameter uncertainties:
  1  13.4574
  2  0.50325
  3  0.210907
  4  0.209465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90053': 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) = 5180.62664806
delta logL = 0.499724619447

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.490e+01  1.346e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.795e+00  5.033e-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.600e-01  2.095e-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.003e+00  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.51
Ra Dec: 177.154 18.686
Photon Index (Free Index): 2.80 +/- 0.50
Photon Flux (Free Index): 1.22e-07 +/- 6.09e-08
Energy Flux (Free Index): 2.74e-05 +/- 1.23e-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/90053/cmap_HighResolution_639532801_639792001_4FGL_J1148.6+1841_daily_bin1544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.50e-08', energy_flux2='2.74e-05', photon_flux_error='4.43e-08', dlogl='5.00e-01', energy_flux='3.11e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-04 12:20:48.107095', photon_index_error2='0.50', photon_index2='2.80', ts='8.53', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='1.23e-05', EG='1.05', time_epoch_completed='1630783248.11', return_code='0', job_id='90053', GAL2='0.66', EG2='1.00', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='6.09e-08', ts2='9.51', photon_index='2.32' WHERE bin_id='1544' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:20:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 90053: <4FGL_J1148.6+1841_daily_bin1544> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1544> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:07:11 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:07:13 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:13 2021
Terminated at Sat Sep  4 12:20:48 2021
Results reported at Sat Sep  4 12:20:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1544 177.154 18.6861 639532801 639792001 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 :                                   583.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

