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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1114
RA = 177.154, Dec = 18.6861
tmin = 528076801, tmax = 528336001
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='89403', job_status='RUN', time_executed='2021-09-04 12:09:05.502834', time_epoch_executed='1630782545.5' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89403

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89403/ft1_4FGL_J1148.6+1841_daily_bin1114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89403/ft2_4FGL_J1148.6+1841_daily_bin1114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89403/ft1_4FGL_J1148.6+1841_daily_bin1114.fits outfile=/scratch/kocevski/89403/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1114.fits ra=177.154 dec=18.6861 rad=12.0 tmin=528076801.0 tmax=528336001.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.46
user 3.23
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89403/ft1_filtered_4FGL_J1148.6+1841_daily_bin1114.fits evtable="EVENTS" scfile=/scratch/kocevski/89403/ft2_4FGL_J1148.6+1841_daily_bin1114.fits sctable="SC_DATA" expcube=/scratch/kocevski/89403/ltcube_528076801_528336001_4FGL_J1148.6+1841_daily_bin1114.fits outfile=/scratch/kocevski/89403/expmap_528076801_528336001_4FGL_J1148.6+1841_daily_bin1114.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/89403/ltcube_528076801_528336001_4FGL_J1148.6+1841_daily_bin1114.fits
.....................!
real 190.96
user 185.08
sys 5.14

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/89403/ft1_filtered_4FGL_J1148.6+1841_daily_bin1114.fits scfile=/scratch/kocevski/89403/ft2_4FGL_J1148.6+1841_daily_bin1114.fits outfile=/scratch/kocevski/89403/cmap_528076801_528336001_4FGL_J1148.6+1841_daily_bin1114.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89403/ft1_filtered_4FGL_J1148.6+1841_daily_bin1114.fits scfile=/scratch/kocevski/89403/ft2_4FGL_J1148.6+1841_daily_bin1114.fits outfile=/scratch/kocevski/89403/cmap_HighResolution_528076801_528336001_4FGL_J1148.6+1841_daily_bin1114.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.618       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.535       1.0000         .10000E-03   10000.    
     3 'norm      '    11.078       1.0000         .10000E-03   10000.    
     4 'norm      '    8.7735       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .96356       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5024       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .97098       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.112       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .73705       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .35680       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .15382       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.604       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90092       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4188       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=   6804.992     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2392 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.621        17.665        .10950E-06   -.18658E-04
   2  Prefactor     10.536        8.4036       -.12010E-06   -.94917E-04
   3  norm          11.081        13.990        .19520E-06   -.17248E-04
   4  norm          8.7756        11.795        .24490E-05   -.53931E-04
   5  Prefactor     .96812        11.821        .86405E-06   -.14194E-03
   6  Prefactor     .10000E-03    29.082       -.64699E-06** at limit **
   7  Prefactor     .10000E-03    7.0333       -.26716E-07** at limit **
   8  Prefactor     .10000E-03    42.407        .12326E-05** at limit **
   9  Prefactor     2.5023        11.186        .83258E-06   -.28596E-04
  10  Prefactor     .97192        1.6123        .63831E-06    .47721E-03
  11  Prefactor     .10000E-03    6.1483        .36757E-07** at limit **
  12  norm          18.113        2.7899        .54774E-07   -.25942E-03
  13  Prefactor     .10000E-03    15.728        .43466E-06** at limit **
  14  Prefactor     .74182        3.0581        .30619E-06   -.94255E-04
  15  Prefactor     .10000E-03    71.063       -.83634E-06** at limit **
  16  Prefactor     .36622        2.0527       -.48639E-06    .56078E-03
  17  Prefactor     .10000E-03    2.0650       -.29326E-07** at limit **
  18  Prefactor     .10000E-03    1.3869        .43884E-08** at limit **
  19  norm          .15382        .18462        .28795E-07    .58298E-03
  20  norm          .10000E-03    2.5794        .75866E-08** at limit **
  21  Prefactor     16.597        18.171        .11445E-06    .36630E-05
  22  Prefactor     .10000E-03    14.371       -.15963E-06** at limit **
  23  Normalizat    .90065        .20457       -.12364E-05   -.86180E-04
  24  Prefactor     1.4190        .19549       -.10133E-06   -.99543E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6207
  Prefactor  = 10.5357
  norm       = 11.0813
  norm       = 8.77556
  Prefactor  = 0.968122
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 2.50227
  Prefactor  = 0.97192
  Prefactor  = 0.0001
  norm       = 18.1135
  Prefactor  = 0.0001
  Prefactor  = 0.74182
  Prefactor  = 0.000100002
  Prefactor  = 0.366219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.153818
  norm       = 0.0001
  Prefactor  = 16.5973
  Prefactor  = 0.0001
  Normalizat = 0.900655
  Prefactor  = 1.41898
 **********
 **   18 **HESSE 
 **********

 FCN=   6804.992     FROM HESSE     STATUS=OK           409 CALLS     2801 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.621        17.687        .11277E-03   -1.4997    
   2  Prefactor     10.536        8.4055        .12344E-03   -1.5059    
   3  norm          11.081        14.005        .12037E-03   -1.5042    
   4  norm          8.7756        11.609        .67662E-03   -1.5115    
   5  Prefactor     .96812        49.585        .49775E-02   -1.5511    
   6  Prefactor     .10000E-03    29.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.0384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    43.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5023        10.997        .25834E-03   -1.5392    
  10  Prefactor     .97192        1.5021        .13556E-02   -1.5511    
  11  Prefactor     .10000E-03    6.1775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.113        2.7879        .51640E-04   -1.4857    
  13  Prefactor     .10000E-03    15.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .74182        8.5882        .24396E-02   -1.5536    
  15  Prefactor     .10000E-03    71.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .36622        8.7093        .19972E-02   -1.5587    
  17  Prefactor     .10000E-03    2.0888        .11528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.3879        .94873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .15382        .16856        .37187E-03   -1.5630    
  20  norm          .10000E-03    2.6506        .25875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.597        18.190        .98290E-04   -1.4893    
  22  Prefactor     .10000E-03    14.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .90065        .24224        .30700E-03   -.96437    
  24  Prefactor     1.4190        .23458        .25893E-03   -.79835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63692e-08
Minuit parameter uncertainties:
  1  17.6942
  2  8.40644
  3  14.0095
  4  11.6124
  5  13.8685
  6  0.000325652
  7  6.29319e-06
  8  0.000607105
  9  10.4946
  10  1.50215
  11  6.21381e-06
  12  2.78793
  13  0.000140135
  14  5.04868
  15  0.000721351
  16  3.57194
  17  9.80242e-06
  18  3.96304e-07
  19  0.168564
  20  9.33113e-07
  21  18.1964
  22  5.78402e-05
  23  0.242538
  24  0.234761
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  2.502e+00  1.049e+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:  1.419e+00  2.348e-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:  9.007e-01  2.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/89403/likelihoodResults_528076801_528336001_4FGL_J1148.6+1841_daily_bin1114.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) = 6804.93851749
delta logL = 0.0536121198083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6804.84686498
delta logL = 0.145264630256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.3211       1.0000          .0000       10.000    
     3 'Normalizat'    .86404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4489       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=   6804.847     FROM MIGRAD    STATUS=CONVERGED    235 CALLS      547 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .17918E-03    .50498E-03** at limit **
   2  Index         7.3298        .59580        .20000       -.17264E-03
   3  Normalizat    .86401        .23267        .30640E-03    .31739E-03
   4  Prefactor     1.4489        .23514        .25871E-03    .48210E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.3298
  Normalizat = 0.864014
  Prefactor  = 1.44893
 **********
 **   18 **HESSE 
 **********

 FCN=   6804.847     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      584 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .37911E-01    .25358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.3298        5.2863        .78312E-02   -3.6263    
   3  Normalizat    .86401        .86567E-01    .12256E-04   -.97736    
   4  Prefactor     1.4489        .89138E-01    .51741E-04   -.78980    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57737e-08
Minuit parameter uncertainties:
  1  1.5821e-06
  2  9.01422
  3  0.0865811
  4  0.089148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89403': 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) = 6804.84683595
delta logL = 0.14529366007

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.582e-06  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  7.330e+00  9.014e+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:  1.449e+00  8.915e-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:  8.640e-01  8.658e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 177.154 18.686

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/89403/cmap_HighResolution_528076801_528336001_4FGL_J1148.6+1841_daily_bin1114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.90e-03', job_status='DONE', photon_flux_upper_limit='8.98e-08', time_completed='2021-09-04 12:21:34.566036', job_id='89403', GAL2='1.45', fit_tolerance='1e-08', EG2='0.86', EG='0.90', time_epoch_completed='1630783294.57', return_code2='102', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='1.45e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1114' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:21:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 89403: <4FGL_J1148.6+1841_daily_bin1114> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1114 177.154 18.6861 528076801 528336001 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 :                                   744.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

