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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin54
RA = 177.154, Dec = 18.6861
tmin = 253324801, tmax = 253584001
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='82742', job_status='RUN', time_executed='2021-09-04 11:48:26.556492', time_epoch_executed='1630781306.56' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82742

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82742/ft1_4FGL_J1148.6+1841_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82742/ft2_4FGL_J1148.6+1841_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82742/ft1_4FGL_J1148.6+1841_daily_bin54.fits outfile=/scratch/kocevski/82742/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin54.fits ra=177.154 dec=18.6861 rad=12.0 tmin=253324801.0 tmax=253584001.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.58
user 1.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82742/ft1_filtered_4FGL_J1148.6+1841_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/82742/ft2_4FGL_J1148.6+1841_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/82742/ltcube_253324801_253584001_4FGL_J1148.6+1841_daily_bin54.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/82742/ft2_4FGL_J1148.6+1841_daily_bin54.fits
.....................!
real 13.30
user 12.86
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82742/ft1_filtered_4FGL_J1148.6+1841_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/82742/ft2_4FGL_J1148.6+1841_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/82742/ltcube_253324801_253584001_4FGL_J1148.6+1841_daily_bin54.fits outfile=/scratch/kocevski/82742/expmap_253324801_253584001_4FGL_J1148.6+1841_daily_bin54.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/82742/ltcube_253324801_253584001_4FGL_J1148.6+1841_daily_bin54.fits
.....................!
real 191.91
user 185.58
sys 5.51

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/82742/ft1_filtered_4FGL_J1148.6+1841_daily_bin54.fits scfile=/scratch/kocevski/82742/ft2_4FGL_J1148.6+1841_daily_bin54.fits outfile=/scratch/kocevski/82742/cmap_253324801_253584001_4FGL_J1148.6+1841_daily_bin54.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82742/ft1_filtered_4FGL_J1148.6+1841_daily_bin54.fits scfile=/scratch/kocevski/82742/ft2_4FGL_J1148.6+1841_daily_bin54.fits outfile=/scratch/kocevski/82742/cmap_HighResolution_253324801_253584001_4FGL_J1148.6+1841_daily_bin54.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/82742/ft1_filtered_4FGL_J1148.6+1841_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/82742/ft2_4FGL_J1148.6+1841_daily_bin54.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/82742/Model_4FGL_J1148.6+1841_daily_bin54.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/82742/ft1_filtered_4FGL_J1148.6+1841_daily_bin54.fits.....................!
real 60.06
user 57.57
sys 1.92

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3775       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11601E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2687       1.0000         .10000E-03   10000.    
     6 'Prefactor '    66.088       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0793       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7000       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.868       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4707       1.0000         .10000E-03   10000.    
    15 'Prefactor '    144.90       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0172       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9152       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .90750E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0453       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88315       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99113       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=   5977.771     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2785 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3548        27.551       -.15093E-05    .11431E-03
   2  Prefactor     .10000E-03    5.1484        .17303E-06** at limit **
   3  norm          .10000E-03    10.460       -.33390E-06** at limit **
   4  norm          .10000E-03    9.8513       -.10354E-07** at limit **
   5  Prefactor     4.2688        9.9682        .27222E-05   -.10139E-03
   6  Prefactor     66.094        38.092        .34615E-06    .10687E-03
   7  Prefactor     .10000E-03    7.9675       -.35063E-06** at limit **
   8  Prefactor     .10000E-03    5.4507       -.32805E-06** at limit **
   9  Prefactor     2.0778        13.753        .10748E-04   -.18697E-03
  10  Prefactor     4.7000        2.3158        .51391E-07    .15052E-03
  11  Prefactor     .10000E-03    5.7833        .13530E-07** at limit **
  12  norm          11.868        2.2341        .60514E-07    .20402E-03
  13  Prefactor     .10000E-03    20.955       -.13876E-06** at limit **
  14  Prefactor     2.4704        3.4478       -.20370E-06   -.35376E-04
  15  Prefactor     144.90        106.50        .32698E-06   -.70291E-04
  16  Prefactor     2.0171        2.1266        .15836E-07   -.58840E-04
  17  Prefactor     2.9150        2.8567        .14420E-06   -.13270E-03
  18  Prefactor     .10000E-03    2.4945       -.14238E-06** at limit **
  19  norm          .10000E-03    .82028E-01   -.24588E-07** at limit **
  20  norm          .10000E-03    1.3871       -.53987E-07** at limit **
  21  Prefactor     .10001E-03    11.975        .67081E-05** at limit **
  22  Prefactor     4.1150        64.037       -.10725E-04   -.24849E-03
  23  Normalizat    .88301        .18593       -.30403E-05   -.33213E-03
  24  Prefactor     .99133        .17698        .15246E-05   -.11576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.35481
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.000100001
  Prefactor  = 4.26879
  Prefactor  = 66.0937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.07783
  Prefactor  = 4.69996
  Prefactor  = 0.0001
  norm       = 11.8682
  Prefactor  = 0.0001
  Prefactor  = 2.47039
  Prefactor  = 144.898
  Prefactor  = 2.0171
  Prefactor  = 2.91503
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 4.11498
  Normalizat = 0.883015
  Prefactor  = 0.991329
 **********
 **   18 **HESSE 
 **********

 FCN=   5977.771     FROM HESSE     STATUS=OK           397 CALLS     3182 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3548        27.196        .19250E-03   -1.5291    
   2  Prefactor     .10000E-03    5.2189        .17113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.892        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    9.9903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2688        9.9696        .97504E-03   -1.5295    
   6  Prefactor     66.094        38.181        .49369E-04   -1.4080    
   7  Prefactor     .10000E-03    7.9879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4520        .17622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0778        14.459        .14320E-02   -1.5420    
  10  Prefactor     4.7000        2.3146        .78307E-04   -1.5274    
  11  Prefactor     .10000E-03    5.7985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.868        2.2365        .48148E-04   -1.5019    
  13  Prefactor     .10000E-03    21.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4704        3.4223        .15952E-03   -1.5394    
  15  Prefactor     144.90        106.33        .33474E-04   -1.3295    
  16  Prefactor     2.0171        2.1049        .10743E-03   -1.5424    
  17  Prefactor     2.9150        2.8338        .11971E-03   -1.5366    
  18  Prefactor     .10000E-03    2.5136        .11926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .29670        .42932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.3897        .88930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    36.119        .45332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.1150        64.917        .20048E-03   -1.5302    
  23  Normalizat    .88301        .20920        .25675E-03   -.97060    
  24  Prefactor     .99133        .20258        .25360E-03   -.93019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63061e-09
Minuit parameter uncertainties:
  1  21.7798
  2  6.09614e-06
  3  0.000151971
  4  0.000238945
  5  9.97347
  6  38.1951
  7  1.3252e-05
  8  2.34636e-05
  9  10.9658
  10  2.31462
  11  5.13382e-05
  12  2.23649
  13  0.000107718
  14  3.42261
  15  106.466
  16  2.10502
  17  2.8339
  18  1.1065e-05
  19  2.69312e-06
  20  3.02755e-06
  21  0.00130228
  22  32.7301
  23  0.209395
  24  0.202733
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  2.078e+00  1.097e+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:  9.913e-01  2.027e-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.830e-01  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/82742/likelihoodResults_253324801_253584001_4FGL_J1148.6+1841_daily_bin54.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) = 5977.76664338
delta logL = 0.00445463737196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5977.44702999
delta logL = 0.324068025893

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49762E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.7431       1.0000          .0000       10.000    
     3 'Normalizat'    .83745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0255       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=   5977.447     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      313 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48247E-03    .12399E-01    .48305E-03** at limit **
   2  Index         6.7561        2.6933        .11497        .14903E-03
   3  Normalizat    .83721        .31653E-01    .44097E-01   -.13600E-04
   4  Prefactor     1.0256        .33126E-01    .41629E-01   -.15894E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000482468
  Index      = 6.75614
  Normalizat = 0.837205
  Prefactor  = 1.02565
 **********
 **   18 **HESSE 
 **********

 FCN=   5977.447     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      346 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48247E-03    .51367E-01    .24101E-05   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.7561        8.2439        .66341E-02    .35888    
   3  Normalizat    .83721        .15140        .26293E-03   -.98703    
   4  Prefactor     1.0256        .15538        .24981E-03   -.91879    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06271e-06
Minuit parameter uncertainties:
  1  0.00886483
  2  7.4932
  3  0.151475
  4  0.155452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82742': 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) = 5977.44702523
delta logL = 0.324072790864

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  4.825e-04  8.865e-03  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  6.756e+00  7.493e+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.026e+00  1.555e-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.372e-01  1.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/82742/cmap_HighResolution_253324801_253584001_4FGL_J1148.6+1841_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.84e-03', job_status='DONE', photon_flux_upper_limit='8.90e-08', time_completed='2021-09-04 12:00:18.726748', job_id='82742', GAL2='1.03', fit_tolerance='1e-08', EG2='0.84', EG='0.88', time_epoch_completed='1630782018.73', return_code2='102', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.24e-01', ts2='0.74', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='54' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:00:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 82742: <4FGL_J1148.6+1841_daily_bin54> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin54 177.154 18.6861 253324801 253584001 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 :                                   700.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            851 sec.

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

