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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin102
RA = 177.154, Dec = 18.6861
tmin = 265766401, tmax = 266025601
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='82819', job_status='RUN', time_executed='2021-09-04 11:46:32.303277', time_epoch_executed='1630781192.3' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='102'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82819/ft1_4FGL_J1148.6+1841_daily_bin102.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82819/ft2_4FGL_J1148.6+1841_daily_bin102.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82819/ft1_4FGL_J1148.6+1841_daily_bin102.fits outfile=/scratch/kocevski/82819/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin102.fits ra=177.154 dec=18.6861 rad=12.0 tmin=265766401.0 tmax=266025601.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.45
user 1.26
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82819/ft1_filtered_4FGL_J1148.6+1841_daily_bin102.fits evtable="EVENTS" scfile=/scratch/kocevski/82819/ft2_4FGL_J1148.6+1841_daily_bin102.fits sctable="SC_DATA" expcube=/scratch/kocevski/82819/ltcube_265766401_266025601_4FGL_J1148.6+1841_daily_bin102.fits outfile=/scratch/kocevski/82819/expmap_265766401_266025601_4FGL_J1148.6+1841_daily_bin102.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/82819/ltcube_265766401_266025601_4FGL_J1148.6+1841_daily_bin102.fits
.....................!
real 191.83
user 187.29
sys 4.12

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/82819/ft1_filtered_4FGL_J1148.6+1841_daily_bin102.fits scfile=/scratch/kocevski/82819/ft2_4FGL_J1148.6+1841_daily_bin102.fits outfile=/scratch/kocevski/82819/cmap_265766401_266025601_4FGL_J1148.6+1841_daily_bin102.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82819/ft1_filtered_4FGL_J1148.6+1841_daily_bin102.fits scfile=/scratch/kocevski/82819/ft2_4FGL_J1148.6+1841_daily_bin102.fits outfile=/scratch/kocevski/82819/cmap_HighResolution_265766401_266025601_4FGL_J1148.6+1841_daily_bin102.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.58
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.5849       1.0000         .10000E-03   10000.    
     3 'norm      '    10.875       1.0000         .10000E-03   10000.    
     4 'norm      '    15.864       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8047       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11074E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13814E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.403       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13195E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0439       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5523       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4823       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .61769       1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.576       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12149E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .66298       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .81206       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3280       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.787       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1207       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88707       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=   8954.414     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2821 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2689        .59606E-07** at limit **
   2  Prefactor     8.5843        6.1955       -.12120E-05    .17528E-03
   3  norm          10.874        9.5864        .58396E-06   -.14995E-03
   4  norm          15.866        10.263       -.16966E-06    .33932E-04
   5  Prefactor     4.8060        12.691       -.30738E-06   -.57981E-04
   6  Prefactor     .10000E-03    53.931        .36430E-06** at limit **
   7  Prefactor     .10001E-03    8.4761       -.60123E-06** at limit **
   8  Prefactor     .10000E-03    23.967       -.78830E-06** at limit **
   9  Prefactor     11.405        9.6302       -.10446E-05    .33708E-03
  10  Prefactor     .10000E-03    .67533       -.22648E-07** at limit **
  11  Prefactor     5.0441        5.0752       -.15545E-05    .21759E-03
  12  norm          1.5524        .80579        .21351E-07   -.46401E-04
  13  Prefactor     3.4828        5.8304       -.20344E-05    .71996E-04
  14  Prefactor     .60931        2.3840       -.17865E-05   -.27369E-03
  15  Prefactor     41.567        50.563       -.87671E-05    .15479E-03
  16  Prefactor     .10000E-03    1.0469        .41370E-06** at limit **
  17  Prefactor     .66343        1.5165       -.11754E-06   -.16130E-02
  18  Prefactor     .10000E-03    1.6797       -.74346E-07** at limit **
  19  norm          .81206        .22712       -.54496E-07    .99839E-03
  20  norm          .10000E-03    1.1871        .97475E-07** at limit **
  21  Prefactor     1.3399        16.843       -.36216E-05   -.38858E-03
  22  Prefactor     24.767        23.419       -.47229E-07    .91075E-04
  23  Normalizat    1.1207        .15165        .21141E-05    .18433E-03
  24  Prefactor     .88715        .14663       -.29598E-07    .33806E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.58433
  norm       = 10.874
  norm       = 15.8656
  Prefactor  = 4.80601
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 11.4047
  Prefactor  = 0.0001
  Prefactor  = 5.04413
  norm       = 1.55242
  Prefactor  = 3.48279
  Prefactor  = 0.609306
  Prefactor  = 41.5671
  Prefactor  = 0.0001
  Prefactor  = 0.663432
  Prefactor  = 0.0001
  norm       = 0.812061
  norm       = 0.0001
  Prefactor  = 1.33992
  Prefactor  = 24.7665
  Normalizat = 1.12068
  Prefactor  = 0.887147
 **********
 **   18 **HESSE 
 **********

 FCN=   8954.414     FROM HESSE     STATUS=OK           419 CALLS     3240 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.5843        6.1406        .13681E-03   -1.5122    
   3  norm          10.874        9.5605        .12149E-03   -1.5048    
   4  norm          15.866        10.298        .10056E-03   -1.4911    
   5  Prefactor     4.8060        12.649        .18354E-03   -1.5269    
   6  Prefactor     .10000E-03    54.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    8.5869        .90010E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.405        9.4838        .11863E-03   -1.5032    
  10  Prefactor     .10000E-03    1.8208        .15030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.0441        5.0548        .17904E-03   -1.5259    
  12  norm          1.5524        .80619        .59315E-04   -1.5459    
  13  Prefactor     3.4828        5.8162        .21669E-03   -1.5335    
  14  Prefactor     .60931        4.1576        .25367E-02   -1.5552    
  15  Prefactor     41.567        49.436        .62169E-04   -1.4418    
  16  Prefactor     .10000E-03    3.2591        .17239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .66343        1.3510        .16398E-02   -1.5545    
  18  Prefactor     .10000E-03    1.6940        .11975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .81206        .22607        .22643E-04   -1.5528    
  20  norm          .10000E-03    1.1917        .10067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.3399        18.334        .38128E-03   -1.5476    
  22  Prefactor     24.767        23.041        .80459E-04   -1.4712    
  23  Normalizat    1.1207        .17549        .23809E-03   -.89091    
  24  Prefactor     .88715        .17080        .26978E-03   -.96592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99106e-08
Minuit parameter uncertainties:
  1  1.0051e-05
  2  6.14103
  3  9.56184
  4  10.2993
  5  12.6557
  6  0.000253044
  7  0.000511543
  8  7.19488e-05
  9  9.485
  10  2.33131e-05
  11  5.05525
  12  0.806195
  13  5.81717
  14  3.1833
  15  49.4851
  16  1.68757e-05
  17  1.35107
  18  1.08804e-06
  19  0.226074
  20  2.14103e-06
  21  9.91609
  22  23.0496
  23  0.175585
  24  0.170905
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.140e+01  9.485e+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:  8.871e-01  1.709e-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.121e+00  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.16
Ra Dec: 177.154 18.686
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.69e-08 +/- 3.07e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.12e-05

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

Saving results to:
/scratch/kocevski/82819/likelihoodResults_265766401_266025601_4FGL_J1148.6+1841_daily_bin102.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) = 8953.96660224
delta logL = 0.447189501112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8953.96458229
delta logL = 0.449209449143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1728       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9805       1.0000          .0000       10.000    
     3 'Normalizat'    1.0868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90925       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=   8953.965     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      274 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1639        63.761        .44189E-02    .81429E-03
   2  Index         2.9818        2.7533        .10545        .30027E-03
   3  Normalizat    1.0866        .54295E-01    .38567E-01    .26573E-04
   4  Prefactor     .90945        .50902E-01    .45123E-01   -.25242E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.16391
  Index      = 2.98175
  Normalizat = 1.08657
  Prefactor  = 0.909452
 **********
 **   18 **HESSE 
 **********

 FCN=   8953.965     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1639        15.202        .13293E-03   -1.5253    
   2  Index         2.9818        1.4772        .53540E-02   -.41550    
   3  Normalizat    1.0866        .17557        .24116E-03   -.90184    
   4  Prefactor     .90945        .17653        .26681E-03   -.95812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98525e-10
Minuit parameter uncertainties:
  1  15.2135
  2  1.50416
  3  0.175662
  4  0.176645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82819': 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) = 8953.96458032
delta logL = 0.44921141158

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  5.164e+00  1.521e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.982e+00  1.504e+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.095e-01  1.766e-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.087e+00  1.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.09
Ra Dec: 177.154 18.686
Photon Index (Free Index): 2.98 +/- 1.50
Photon Flux (Free Index): 6.23e-08 +/- 4.50e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/82819/cmap_HighResolution_265766401_266025601_4FGL_J1148.6+1841_daily_bin102.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.63e-03', comment='SUCCESS', photon_flux='3.69e-08', energy_flux2='1.25e-05', photon_flux_error='3.07e-08', dlogl='4.49e-01', energy_flux='1.35e-05', photon_flux2='6.23e-08', job_status='DONE', time_completed='2021-09-04 12:01:40.257784', photon_index_error2='1.50', photon_index2='2.98', ts='2.16', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='9.92e-08', energy_flux_error2='1.02e-05', EG='1.12', time_epoch_completed='1630782100.26', return_code='0', job_id='82819', GAL2='0.91', EG2='1.09', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='4.50e-08', ts2='3.09', photon_index='2.32' WHERE bin_id='102' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:01:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 82819: <4FGL_J1148.6+1841_daily_bin102> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin102> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:46:16 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:46:18 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:18 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_bin102 177.154 18.6861 265766401 266025601 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 :                                   898.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             305.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

