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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin61
RA = 177.154, Dec = 18.6861
tmin = 255139201, tmax = 255398401
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='82752', job_status='RUN', time_executed='2021-09-04 11:49:43.933619', time_epoch_executed='1630781383.93' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82752

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82752/ft1_4FGL_J1148.6+1841_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82752/ft2_4FGL_J1148.6+1841_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82752/ft1_4FGL_J1148.6+1841_daily_bin61.fits outfile=/scratch/kocevski/82752/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin61.fits ra=177.154 dec=18.6861 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.50
user 7.10
sys 0.36

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82752/ft1_filtered_4FGL_J1148.6+1841_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/82752/ft2_4FGL_J1148.6+1841_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/82752/ltcube_255139201_255398401_4FGL_J1148.6+1841_daily_bin61.fits outfile=/scratch/kocevski/82752/expmap_255139201_255398401_4FGL_J1148.6+1841_daily_bin61.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/82752/ltcube_255139201_255398401_4FGL_J1148.6+1841_daily_bin61.fits
.....................!
real 190.72
user 184.59
sys 5.77

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/82752/ft1_filtered_4FGL_J1148.6+1841_daily_bin61.fits scfile=/scratch/kocevski/82752/ft2_4FGL_J1148.6+1841_daily_bin61.fits outfile=/scratch/kocevski/82752/cmap_255139201_255398401_4FGL_J1148.6+1841_daily_bin61.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82752/ft1_filtered_4FGL_J1148.6+1841_daily_bin61.fits scfile=/scratch/kocevski/82752/ft2_4FGL_J1148.6+1841_daily_bin61.fits outfile=/scratch/kocevski/82752/cmap_HighResolution_255139201_255398401_4FGL_J1148.6+1841_daily_bin61.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .35072E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2370       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65986       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.097       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8394       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .91071       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .35904       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.198       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8351       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .92827       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7163       1.0000         .10000E-03   10000.    
    19 'norm      '    .36505       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.799       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2213       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .67192       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=   4733.138     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     3754 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4688       -.45388E-07** at limit **
   2  Prefactor     .10000E-03    4.7594        .26185E-06** at limit **
   3  norm          .10000E-03    5.9706       -.12974E-06** at limit **
   4  norm          .10000E-03    4.5742        .23945E-07** at limit **
   5  Prefactor     5.2383        13.082       -.32338E-06    .15993E-04
   6  Prefactor     .10000E-03    11.215       -.19042E-06** at limit **
   7  Prefactor     .10000E-03    12.987        .67721E-06** at limit **
   8  Prefactor     .10000E-03    11.496       -.12036E-06** at limit **
   9  Prefactor     .10000E-03    21.748        .24022E-06** at limit **
  10  Prefactor     .65972        1.2424        .79509E-06    .36008E-03
  11  Prefactor     18.105        15.203        .60360E-06   -.97587E-05
  12  norm          1.8392        1.3036       -.52468E-07    .23435E-04
  13  Prefactor     .86800        112.06       -.59941E-05    .86659E-05
  14  Prefactor     .36183        2.8186       -.16940E-06    .19863E-03
  15  Prefactor     33.286        112.35        .44712E-05   -.74352E-05
  16  Prefactor     3.8359        3.6881       -.14070E-06    .34976E-03
  17  Prefactor     .92756        2.7353        .47516E-07    .36576E-04
  18  Prefactor     3.7158        4.7738       -.11449E-06    .36350E-04
  19  norm          .36500        .23555       -.35593E-08    .27356E-03
  20  norm          .10000E-03    2.4298        .32444E-07** at limit **
  21  Prefactor     .10000E-03    7.2511        .78859E-06** at limit **
  22  Prefactor     24.774        35.366        .13299E-05   -.74876E-05
  23  Normalizat    1.2214        .19736       -.13330E-06    .17925E-03
  24  Prefactor     .67190        .19025        .13534E-06    .13123E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 5.23832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.659717
  Prefactor  = 18.105
  norm       = 1.83922
  Prefactor  = 0.867999
  Prefactor  = 0.361826
  Prefactor  = 33.2856
  Prefactor  = 3.83593
  Prefactor  = 0.927557
  Prefactor  = 3.71583
  norm       = 0.365004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7739
  Normalizat = 1.22144
  Prefactor  = 0.671898
 **********
 **   18 **HESSE 
 **********

 FCN=   4733.138     FROM HESSE     STATUS=OK           405 CALLS     4159 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4713        .15715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.7774        .14640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    15.305        .32523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.5964        .14372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.2383        13.093        .17565E-03   -1.5250    
   6  Prefactor     .10000E-03    11.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.506        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .65972        1.2298        .11850E-02   -1.5546    
  11  Prefactor     18.105        15.155        .94149E-04   -1.4857    
  12  norm          1.8392        1.3011        .63832E-04   -1.5437    
  13  Prefactor     .86800        118.61        .45910E-02   -1.5522    
  14  Prefactor     .36183        10.909        .20768E-02   -1.5588    
  15  Prefactor     33.286        114.23        .69547E-04   -1.4553    
  16  Prefactor     3.8359        3.5647        .10959E-03   -1.5316    
  17  Prefactor     .92756        2.6437        .17238E-03   -1.5515    
  18  Prefactor     3.7158        4.7614        .16486E-03   -1.5322    
  19  norm          .36500        .23398        .25489E-04   -1.5587    
  20  norm          .10000E-03    2.4453        .10466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.1721        .17977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.774        35.250        .80441E-04   -1.4712    
  23  Normalizat    1.2214        .22473        .21604E-03   -.85943    
  24  Prefactor     .67190        .21641        .28344E-03   -1.0464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6941e-10
Minuit parameter uncertainties:
  1  2.14049e-06
  2  8.44066e-06
  3  0.000257431
  4  6.17534e-06
  5  13.0999
  6  6.29063e-06
  7  2.61288e-05
  8  2.08879e-05
  9  6.67601e-05
  10  1.2298
  11  15.1584
  12  1.30115
  13  20.3332
  14  3.97367
  15  114.993
  16  3.56489
  17  2.64404
  18  4.76192
  19  0.233982
  20  5.47234e-07
  21  5.55571e-05
  22  35.28
  23  0.224911
  24  0.216679
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  6.676e-05  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.719e-01  2.167e-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.221e+00  2.249e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/82752/likelihoodResults_255139201_255398401_4FGL_J1148.6+1841_daily_bin61.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) = 4733.13849938
delta logL = -0.000212018193452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4733.13828798
delta logL = -6.18413650955e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15485E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3943       1.0000          .0000       10.000    
     3 'Normalizat'    1.2216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67177       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=   4733.138     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      230 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10045E-03    2.9244        .68581E-01** at limit **
   2  Index         2.5069        2.5886        .50000       -.40129E-04
   3  Normalizat    1.2214        .29991E-02    .34382E-01    .97158E-04
   4  Prefactor     .67190        .30195E-02    .64065E-01    .67726E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010045
  Index      = 2.50687
  Normalizat = 1.22144
  Prefactor  = 0.671898
 **********
 **   18 **HESSE 
 **********

 FCN=   4733.138     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      265 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10045E-03    6953.2        .35955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5069        5.2220        .50000       -.52201    
   3  Normalizat    1.2214        .43775E-01    .21604E-03   -.85943    
   4  Prefactor     .67190        .43835E-01    .28344E-03   -1.0464    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11859e-07
Minuit parameter uncertainties:
  1  0.0906155
  2  36.7553
  3  0.0437765
  4  0.0438371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82752': 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) = 4733.13828589
delta logL = 1.47316040966e-06

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.005e-04  9.062e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.507e+00  3.676e+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.719e-01  4.384e-02  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.221e+00  4.378e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.154 18.686

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/82752/cmap_HighResolution_255139201_255398401_4FGL_J1148.6+1841_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-03', job_status='DONE', photon_flux_upper_limit='8.83e-08', time_completed='2021-09-04 12:01:17.397060', job_id='82752', GAL2='0.67', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630782077.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.47e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='61' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:01:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 82752: <4FGL_J1148.6+1841_daily_bin61> in cluster <slac> Done

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

Your job looked like:

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

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

