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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1404
RA = 177.154, Dec = 18.6861
tmin = 603244801, tmax = 603504001
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='89866', job_status='RUN', time_executed='2021-09-04 12:08:35.693113', time_epoch_executed='1630782515.69' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89866

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89866/ft1_4FGL_J1148.6+1841_daily_bin1404.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89866/ft2_4FGL_J1148.6+1841_daily_bin1404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89866/ft1_4FGL_J1148.6+1841_daily_bin1404.fits outfile=/scratch/kocevski/89866/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1404.fits ra=177.154 dec=18.6861 rad=12.0 tmin=603244801.0 tmax=603504001.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 2.89
user 2.69
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89866/ft1_filtered_4FGL_J1148.6+1841_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/89866/ft2_4FGL_J1148.6+1841_daily_bin1404.fits sctable="SC_DATA" expcube=/scratch/kocevski/89866/ltcube_603244801_603504001_4FGL_J1148.6+1841_daily_bin1404.fits outfile=/scratch/kocevski/89866/expmap_603244801_603504001_4FGL_J1148.6+1841_daily_bin1404.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/89866/ltcube_603244801_603504001_4FGL_J1148.6+1841_daily_bin1404.fits
.....................!
real 190.85
user 185.76
sys 4.58

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/89866/ft1_filtered_4FGL_J1148.6+1841_daily_bin1404.fits scfile=/scratch/kocevski/89866/ft2_4FGL_J1148.6+1841_daily_bin1404.fits outfile=/scratch/kocevski/89866/cmap_603244801_603504001_4FGL_J1148.6+1841_daily_bin1404.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.91
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89866/ft1_filtered_4FGL_J1148.6+1841_daily_bin1404.fits scfile=/scratch/kocevski/89866/ft2_4FGL_J1148.6+1841_daily_bin1404.fits outfile=/scratch/kocevski/89866/cmap_HighResolution_603244801_603504001_4FGL_J1148.6+1841_daily_bin1404.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.85
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.278       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1628       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.362       1.0000         .10000E-03   10000.    
    12 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    75.104       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.408       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.6384       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.551       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .45824       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3510       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=   1484.564     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2675 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    77.791        .41432E-04** at limit **
   2  Prefactor     .10000E-03    26.662        .20692E-04** at limit **
   3  norm          .10000E-03    17.157       -.51990E-05** at limit **
   4  norm          .10000E-03    30.020       -.15937E-05** at limit **
   5  Prefactor     .10000E-03    31.928       -.12348E-04** at limit **
   6  Prefactor     .10000E-03    42.137       -.24668E-04** at limit **
   7  Prefactor     24.289        75.760        .16554E-04    .13842E-03
   8  Prefactor     .10000E-03    117.84       -.86177E-04** at limit **
   9  Prefactor     .10000E-03    10.553       -.10109E-05** at limit **
  10  Prefactor     4.1631        6.4073        .49269E-06    .65291E-03
  11  Prefactor     34.358        30.759       -.79432E-06   -.70826E-05
  12  norm          .10000E-03    1.9971       -.61892E-06** at limit **
  13  Prefactor     75.094        57.472       -.80194E-05   -.68780E-05
  14  Prefactor     16.407        13.341       -.21463E-06    .19627E-03
  15  Prefactor     .10000E-03    77.280        .41886E-04** at limit **
  16  Prefactor     .10000E-03    2.4404       -.35142E-07** at limit **
  17  Prefactor     .10000E-03    3.1248        .86129E-07** at limit **
  18  Prefactor     .10000E-03    6.1291       -.16066E-07** at limit **
  19  norm          .10000E-03    .54197       -.12301E-06** at limit **
  20  norm          5.6375        7.7232       -.49303E-06    .19786E-04
  21  Prefactor     .10000E-03    12.330        .25022E-05** at limit **
  22  Prefactor     14.534        49.510       -.26509E-04   -.17190E-05
  23  Normalizat    .45822        .41637        .50581E-05    .22099E-03
  24  Prefactor     1.3511        .37773        .13167E-05    .23637E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2887
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 4.1631
  Prefactor  = 34.3584
  norm       = 0.000100001
  Prefactor  = 75.0941
  Prefactor  = 16.407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.6375
  Prefactor  = 0.0001
  Prefactor  = 14.5343
  Normalizat = 0.458223
  Prefactor  = 1.3511
 **********
 **   18 **HESSE 
 **********

 FCN=   1484.564     FROM HESSE     STATUS=OK           385 CALLS     3060 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    77.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    17.154        .15591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    30.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    42.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.289        75.337        .81297E-04   -1.4722    
   8  Prefactor     .10000E-03    118.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.558        .12227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1631        6.3415        .10564E-03   -1.5300    
  11  Prefactor     34.358        30.728        .68362E-04   -1.4535    
  12  norm          .10000E-03    3.1633        .10348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     75.094        57.257        .46331E-04   -1.3973    
  14  Prefactor     16.407        13.287        .98876E-04   -1.4898    
  15  Prefactor     .10000E-03    77.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.4462        .58747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.1446        .66460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.1662        .93067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1382        .52340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.6375        7.7014        .11955E-03   -1.5233    
  21  Prefactor     .10000E-03    12.339        .13218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.534        49.495        .10500E-03   -1.4945    
  23  Normalizat    .45822        .44099        .36922E-03   -1.1439    
  24  Prefactor     1.3511        .42086        .22662E-03   -.81800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30204e-09
Minuit parameter uncertainties:
  1  9.87204e-06
  2  3.60324e-05
  3  8.99743e-07
  4  0.000105586
  5  5.63158e-05
  6  5.95856e-06
  7  75.6347
  8  0.00113659
  9  1.26492e-06
  10  6.34251
  11  30.7417
  12  0.000110222
  13  57.2993
  14  13.2898
  15  8.81258e-05
  16  3.86326e-06
  17  1.52031e-05
  18  7.80513e-06
  19  1.50156e-05
  20  7.70272
  21  6.05229e-05
  22  49.6353
  23  0.444404
  24  0.421926
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.265e-06  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.351e+00  4.219e-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:  4.582e-01  4.444e-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: 1.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.34e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89866/likelihoodResults_603244801_603504001_4FGL_J1148.6+1841_daily_bin1404.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) = 1484.56440944
delta logL = -0.000429587787721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1484.56398149
delta logL = -1.63803542819e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11756E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2994       1.0000          .0000       10.000    
     3 'Normalizat'    .45876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3506       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=   1484.564     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      246 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10216E-03    147.54        .12497E-02** at limit **
   2  Index         2.2280        6.6202        .50000        .15989E-04
   3  Normalizat    .45822        .32862E-01    .36922E-03    .18136E-04
   4  Prefactor     1.3511        .33428E-01    .22662E-03    .28224E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102157
  Index      = 2.22801
  Normalizat = 0.458215
  Prefactor  = 1.3511
 **********
 **   18 **HESSE 
 **********

 FCN=   1484.564     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10216E-03    569.49        .24993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2280        7.0341        .50000       -.58764    
   3  Normalizat    .45822        .67984E-01    .14769E-04   -1.1439    
   4  Prefactor     1.3511        .69160E-01    .45324E-04   -.81800    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.91426e-08
Minuit parameter uncertainties:
  1  0.0707805
  2  822.244
  3  0.0679964
  4  0.0691644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89866': 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) = 1484.56397955
delta logL = 3.00157125821e-07

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.022e-04  7.078e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.228e+00  8.222e+02  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.351e+00  6.916e-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:  4.582e-01  6.800e-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/89866/cmap_HighResolution_603244801_603504001_4FGL_J1148.6+1841_daily_bin1404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', job_status='DONE', photon_flux_upper_limit='1.74e-07', time_completed='2021-09-04 12:15:38.737647', job_id='89866', GAL2='1.35', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1630782938.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='3.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1404' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:15:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 89866: <4FGL_J1148.6+1841_daily_bin1404> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1404 177.154 18.6861 603244801 603504001 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 :                                   401.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   522 sec.
    Turnaround time :                            524 sec.

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

