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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin35
RA = 177.154, Dec = 18.6861
tmin = 248400001, tmax = 248659201
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='82712', job_status='RUN', time_executed='2021-09-04 11:48:50.142830', time_epoch_executed='1630781330.14' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82712

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82712/ft1_4FGL_J1148.6+1841_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82712/ft2_4FGL_J1148.6+1841_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82712/ft1_4FGL_J1148.6+1841_daily_bin35.fits outfile=/scratch/kocevski/82712/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin35.fits ra=177.154 dec=18.6861 rad=12.0 tmin=248400001.0 tmax=248659201.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.41
user 1.25
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82712/ft2_4FGL_J1148.6+1841_daily_bin35.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/82712/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin35.fits evtable="EVENTS" outfile="/scratch/kocevski/82712/ft1_filtered_4FGL_J1148.6+1841_daily_bin35.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82712/ft1_filtered_4FGL_J1148.6+1841_daily_bin35.fits" evtable="EVENTS" scfile=/scratch/kocevski/82712/ft2_4FGL_J1148.6+1841_daily_bin35.fits sctable="SC_DATA" outfile=/scratch/kocevski/82712/ltcube_248400001_248659201_4FGL_J1148.6+1841_daily_bin35.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/82712/ft2_4FGL_J1148.6+1841_daily_bin35.fits
.....................!
real 12.75
user 12.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82712/ft1_filtered_4FGL_J1148.6+1841_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/82712/ft2_4FGL_J1148.6+1841_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/82712/ltcube_248400001_248659201_4FGL_J1148.6+1841_daily_bin35.fits outfile=/scratch/kocevski/82712/expmap_248400001_248659201_4FGL_J1148.6+1841_daily_bin35.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/82712/ltcube_248400001_248659201_4FGL_J1148.6+1841_daily_bin35.fits
.....................!
real 189.64
user 185.05
sys 4.22

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/82712/ft1_filtered_4FGL_J1148.6+1841_daily_bin35.fits scfile=/scratch/kocevski/82712/ft2_4FGL_J1148.6+1841_daily_bin35.fits outfile=/scratch/kocevski/82712/cmap_248400001_248659201_4FGL_J1148.6+1841_daily_bin35.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82712/ft1_filtered_4FGL_J1148.6+1841_daily_bin35.fits scfile=/scratch/kocevski/82712/ft2_4FGL_J1148.6+1841_daily_bin35.fits outfile=/scratch/kocevski/82712/cmap_HighResolution_248400001_248659201_4FGL_J1148.6+1841_daily_bin35.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.55
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2237       1.0000         .10000E-03   10000.    
     3 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4434       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11098E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6639       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1847       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1505       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0400       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2159       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8726       1.0000         .10000E-03   10000.    
    15 'Prefactor '    55.174       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4975       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .20753       1.0000         .10000E-03   10000.    
    20 'norm      '    .10553E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.1813       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0106       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89706       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=   6238.699     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     3271 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2920        .18027E-07** at limit **
   2  Prefactor     3.2244        4.2051        .51287E-07   -.52710E-04
   3  norm          .10000E-03    4.0465        .65478E-07** at limit **
   4  norm          .10000E-03    4.4822       -.37546E-07** at limit **
   5  Prefactor     1.4423        4.3458        .65978E-06   -.12655E-03
   6  Prefactor     .10000E-03    91.506        .82975E-06** at limit **
   7  Prefactor     2.6594        26.985        .12971E-05   -.20726E-05
   8  Prefactor     4.2317        13.552        .52463E-08   -.14314E-04
   9  Prefactor     .10000E-03    23.569       -.98149E-06** at limit **
  10  Prefactor     1.1501        1.4932       -.72281E-07   -.22526E-03
  11  Prefactor     .10000E-03    3.3724       -.14893E-06** at limit **
  12  norm          3.0421        1.3431        .46167E-08   -.30351E-04
  13  Prefactor     4.2148        24.939        .68279E-05    .10641E-03
  14  Prefactor     4.8743        4.1614        .27266E-05   -.14496E-02
  15  Prefactor     55.099        86.301       -.15113E-04   -.21291E-03
  16  Prefactor     .10000E-03    1.4093       -.73275E-06** at limit **
  17  Prefactor     6.4943        3.2569        .65273E-07    .57679E-03
  18  Prefactor     .10000E-03    4.1094        .26514E-07** at limit **
  19  norm          .20740        .20673        .38706E-08   -.12121E-03
  20  norm          .10000E-03    6.6629        .97070E-07** at limit **
  21  Prefactor     9.1774        12.787        .16317E-06   -.19835E-05
  22  Prefactor     .10000E-03    14.925       -.73498E-08** at limit **
  23  Normalizat    1.0107        .16951       -.13820E-06    .96051E-04
  24  Prefactor     .89697        .16401       -.65643E-06    .11875E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.22441
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.44235
  Prefactor  = 0.0001
  Prefactor  = 2.65937
  Prefactor  = 4.23173
  Prefactor  = 0.000100001
  Prefactor  = 1.15013
  Prefactor  = 0.0001
  norm       = 3.04209
  Prefactor  = 4.21479
  Prefactor  = 4.87428
  Prefactor  = 55.0989
  Prefactor  = 0.0001
  Prefactor  = 6.49429
  Prefactor  = 0.0001
  norm       = 0.207397
  norm       = 0.0001
  Prefactor  = 9.17738
  Prefactor  = 0.0001
  Normalizat = 1.01066
  Prefactor  = 0.896967
 **********
 **   18 **HESSE 
 **********

 FCN=   6238.699     FROM HESSE     STATUS=OK           405 CALLS     3676 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2970        .17746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2244        4.1938        .17909E-03   -1.5349    
   3  norm          .10000E-03    4.0646        .15515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    34.990        .32135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4423        4.2935        .27746E-03   -1.5468    
   6  Prefactor     .10000E-03    93.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6594        26.947        .24972E-03   -1.5382    
   8  Prefactor     4.2317        13.447        .19701E-03   -1.5297    
   9  Prefactor     .10000E-03    24.395        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1501        1.4501        .10334E-03   -1.5493    
  11  Prefactor     .10000E-03    3.3917        .14161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0421        1.3406        .58617E-04   -1.5359    
  13  Prefactor     4.2148        25.821        .19626E-03   -1.5297    
  14  Prefactor     4.8743        4.4418        .74226E-03   -1.5266    
  15  Prefactor     55.099        93.114        .54002E-04   -1.4222    
  16  Prefactor     .10000E-03    4.8841        .17311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.4943        3.1666        .93371E-04   -1.5198    
  18  Prefactor     .10000E-03    4.1712        .15627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .20740        .19689        .33878E-03   -1.5617    
  20  norm          .10000E-03    6.9104        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.1774        12.780        .13227E-03   -1.5102    
  22  Prefactor     .10000E-03    14.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0107        .19459        .23288E-03   -.92674    
  24  Prefactor     .89697        .18908        .25257E-03   -.96247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75764e-09
Minuit parameter uncertainties:
  1  3.15119e-07
  2  4.19421
  3  9.65592e-07
  4  0.000172969
  5  4.29444
  6  2.29078e-05
  7  16.9401
  8  13.4565
  9  0.000291513
  10  1.45017
  11  2.02889e-05
  12  1.34062
  13  20.8773
  14  4.44206
  15  93.3609
  16  5.21868e-05
  17  3.16673
  18  2.17119e-06
  19  0.19689
  20  2.85117e-06
  21  12.7843
  22  1.59379e-06
  23  0.194727
  24  0.18922
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.915e-04  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:  8.970e-01  1.892e-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.011e+00  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/82712/likelihoodResults_248400001_248659201_4FGL_J1148.6+1841_daily_bin35.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): 102
logL (Free Index) = 6238.69945883
delta logL = -0.000195578993953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6238.69926189
delta logL = 1.36418657348e-06

Fit tolerance = 1e-08

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

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

 FCN=   6236.805     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      273 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17946E-01    .26437        .10671E-02   -.50201E-02
   2  Index         5.7008        2.6644        .80278E-01    .19581E-03
   3  Normalizat    .87879        .11059        .45493E-01    .92026E-04
   4  Prefactor     .97983        .98933E-01    .44964E-01    .56936E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0179462
  Index      = 5.70082
  Normalizat = 0.87879
  Prefactor  = 0.979826
 **********
 **   18 **HESSE 
 **********

 FCN=   6236.805     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      306 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17946E-01    .28483        .58122E-05   -1.5735    
   2  Index         5.7008        3.0637        .31841E-02    .14063    
   3  Normalizat    .87879        .17052        .24728E-03   -.97209    
   4  Prefactor     .97983        .17184        .24274E-03   -.93405    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.12481e-07
Minuit parameter uncertainties:
  1  0.142594
  2  3.30349
  3  0.170621
  4  0.171938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82712': 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): 102
logL (Free Index) = 6236.80512676
delta logL = 1.89413649806

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.795e-02  1.426e-01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  5.701e+00  3.303e+00  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.798e-01  1.719e-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:  8.788e-01  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.16
Ra Dec: 177.154 18.686
Photon Index (Free Index): 5.70 +/- 3.30
Photon Flux (Free Index): 1.11e-07 +/- 1.74e-06
Energy Flux (Free Index): 1.40e-05 +/- 2.18e-04

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/82712/cmap_HighResolution_248400001_248659201_4FGL_J1148.6+1841_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.29e-03', comment='SUCCESS', energy_flux2='1.40e-05', dlogl='1.89e+00', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-04 12:01:13.941726', photon_index_error2='3.30', photon_index2='5.70', ts='-0.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='8.19e-08', energy_flux_error2='2.18e-04', EG='1.01', time_epoch_completed='1630782073.94', return_code='0', job_id='82712', GAL2='0.98', EG2='0.88', return_code2='102', photon_flux_error2='1.74e-06', ts2='4.16', photon_index='2.32' WHERE bin_id='35' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:01:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 82712: <4FGL_J1148.6+1841_daily_bin35> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin35 177.154 18.6861 248400001 248659201 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 :                                   741.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

