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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1552
RA = 177.154, Dec = 18.6861
tmin = 641606401, tmax = 641865601
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='90066', job_status='RUN', time_executed='2021-09-04 12:10:26.944874', time_epoch_executed='1630782626.94' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90066

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90066/ft1_4FGL_J1148.6+1841_daily_bin1552.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90066/ft2_4FGL_J1148.6+1841_daily_bin1552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90066/ft1_4FGL_J1148.6+1841_daily_bin1552.fits outfile=/scratch/kocevski/90066/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1552.fits ra=177.154 dec=18.6861 rad=12.0 tmin=641606401.0 tmax=641865601.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.52
user 2.33
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90066/ft1_filtered_4FGL_J1148.6+1841_daily_bin1552.fits evtable="EVENTS" scfile=/scratch/kocevski/90066/ft2_4FGL_J1148.6+1841_daily_bin1552.fits sctable="SC_DATA" expcube=/scratch/kocevski/90066/ltcube_641606401_641865601_4FGL_J1148.6+1841_daily_bin1552.fits outfile=/scratch/kocevski/90066/expmap_641606401_641865601_4FGL_J1148.6+1841_daily_bin1552.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/90066/ltcube_641606401_641865601_4FGL_J1148.6+1841_daily_bin1552.fits
.....................!
real 190.66
user 185.44
sys 4.88

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/90066/ft1_filtered_4FGL_J1148.6+1841_daily_bin1552.fits scfile=/scratch/kocevski/90066/ft2_4FGL_J1148.6+1841_daily_bin1552.fits outfile=/scratch/kocevski/90066/cmap_641606401_641865601_4FGL_J1148.6+1841_daily_bin1552.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.60
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90066/ft1_filtered_4FGL_J1148.6+1841_daily_bin1552.fits scfile=/scratch/kocevski/90066/ft2_4FGL_J1148.6+1841_daily_bin1552.fits outfile=/scratch/kocevski/90066/cmap_HighResolution_641606401_641865601_4FGL_J1148.6+1841_daily_bin1552.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37095E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9611       1.0000         .10000E-03   10000.    
     3 'norm      '    5.5845       1.0000         .10000E-03   10000.    
     4 'norm      '    4.7036       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0292       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17818E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3820       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.012       1.0000         .10000E-03   10000.    
    12 'norm      '    29.254       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13829E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7210       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .48641E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    11.036       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.9311       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1161       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0558       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=   7403.123     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2353 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    11.194       -.15072E-05** at limit **
   2  Prefactor     1.9641        2.1256        .32523E-06   -.11260E-02
   3  norm          5.5836        9.1777       -.86068E-07   -.20927E-05
   4  norm          4.7022        9.6608       -.43379E-07    .49833E-04
   5  Prefactor     2.0175        25.426       -.15670E-05    .71518E-05
   6  Prefactor     .10000E-03    10.358       -.54808E-06** at limit **
   7  Prefactor     .10000E-03    18.642       -.10804E-04** at limit **
   8  Prefactor     .10000E-03    43.340       -.91271E-05** at limit **
   9  Prefactor     .10000E-03    10.094       -.19540E-05** at limit **
  10  Prefactor     1.3822        1.9244       -.17153E-06    .23504E-03
  11  Prefactor     10.010        9.3769       -.62579E-07   -.11216E-04
  12  norm          29.254        2.8317        .84060E-09    .58103E-03
  13  Prefactor     .10000E-03    6.5391       -.31765E-06** at limit **
  14  Prefactor     .10000E-03    2.1051        .18920E-06** at limit **
  15  Prefactor     .10000E-03    31.846        .14495E-04** at limit **
  16  Prefactor     3.7218        3.0564       -.78089E-07   -.74984E-04
  17  Prefactor     .10000E-03    2.0697        .11775E-06** at limit **
  18  Prefactor     .10000E-03    3.4227        .61029E-07** at limit **
  19  norm          .48644E-01    .15029       -.59533E-07   -.10555E-03
  20  norm          11.036        5.3488       -.41767E-06    .10799E-04
  21  Prefactor     9.9317        16.769       -.96197E-07   -.16104E-04
  22  Prefactor     .10000E-03    14.592        .72894E-05** at limit **
  23  Normalizat    1.1164        .19686        .75248E-07    .25466E-03
  24  Prefactor     1.0556        .18862        .32379E-06    .17995E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100168
  Prefactor  = 1.9641
  norm       = 5.5836
  norm       = 4.70222
  Prefactor  = 2.01755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.38224
  Prefactor  = 10.01
  norm       = 29.2537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.72175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0486439
  norm       = 11.0364
  Prefactor  = 9.93168
  Prefactor  = 0.0001
  Normalizat = 1.11636
  Prefactor  = 1.05557
 **********
 **   18 **HESSE 
 **********

 FCN=   7403.123     FROM HESSE     STATUS=OK           403 CALLS     2756 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10017E-03    69.203        .55036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9641        7.3505        .14810E-02   -1.5428    
   3  norm          5.5836        9.1690        .17000E-03   -1.5235    
   4  norm          4.7022        9.6592        .18554E-03   -1.5274    
   5  Prefactor     2.0175        28.366        .29042E-03   -1.5424    
   6  Prefactor     .10000E-03    10.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    44.128        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3822        1.8958        .13213E-03   -1.5473    
  11  Prefactor     10.010        9.3788        .12664E-03   -1.5075    
  12  norm          29.254        2.8332        .43348E-04   -1.4626    
  13  Prefactor     .10000E-03    6.5457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.3005        .23521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7218        3.0202        .12826E-03   -1.5322    
  17  Prefactor     .10000E-03    2.1096        .24090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.4581        .15529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .48644E-01    .16781        .55504E-03   -1.5664    
  20  norm          11.036        5.3408        .12060E-03   -1.5043    
  21  Prefactor     9.9317        16.778        .12715E-03   -1.5078    
  22  Prefactor     .10000E-03    14.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1164        .23555        .28515E-03   -.89228    
  24  Prefactor     1.0556        .23013        .29729E-03   -.90899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00481e-08
Minuit parameter uncertainties:
  1  0.00682885
  2  7.35392
  3  9.17129
  4  9.66235
  5  15.1384
  6  1.14517e-06
  7  2.97255e-05
  8  0.000209982
  9  1.76648e-06
  10  1.89584
  11  9.38013
  12  2.83326
  13  1.64236e-06
  14  9.83353e-05
  15  5.46218e-05
  16  3.02029
  17  3.67274e-07
  18  7.71529e-06
  19  0.167814
  20  5.34106
  21  16.7862
  22  1.82114e-05
  23  0.235777
  24  0.23035
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.766e-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.056e+00  2.303e-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.116e+00  2.358e-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: 7.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/90066/likelihoodResults_641606401_641865601_4FGL_J1148.6+1841_daily_bin1552.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) = 7403.1230966
delta logL = -0.000467179606858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7403.12262935
delta logL = 6.97409632266e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2966       1.0000          .0000       10.000    
     3 'Normalizat'    1.1164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0556       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=   7403.123     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      251 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10212E-03    2.5742        .18142E-01** at limit **
   2  Index         2.2095        7.3076        .50000        .14965E-04
   3  Normalizat    1.1163        .23103E-02    .28515E-03   -.31163E-03
   4  Prefactor     1.0556        .23605E-02    .29729E-03    .12046E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010212
  Index      = 2.20955
  Normalizat = 1.11635
  Prefactor  = 1.05558
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10212E-03    413.64        .55425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2095        7.9619        .50000       -.59208    
   3  Normalizat    1.1163        .30061E-01    .57029E-04   -.89229    
   4  Prefactor     1.0556        .30710E-01    .11891E-04   -.90899    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.91624e-08
Minuit parameter uncertainties:
  1  0.0596451
  2  802.851
  3  0.0300614
  4  0.030711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90066': 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) = 7403.12262902
delta logL = 4.0121449274e-07

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.021e-04  5.965e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.210e+00  8.029e+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.056e+00  3.071e-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.116e+00  3.006e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/90066/cmap_HighResolution_641606401_641865601_4FGL_J1148.6+1841_daily_bin1552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.05e-03', job_status='DONE', photon_flux_upper_limit='7.87e-08', time_completed='2021-09-04 12:22:46.339742', job_id='90066', GAL2='1.06', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1630783366.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='4.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1552' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:22:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 90066: <4FGL_J1148.6+1841_daily_bin1552> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1552> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:07:12 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:07:14 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:07:14 2021
Terminated at Sat Sep  4 12:22:47 2021
Results reported at Sat Sep  4 12:22:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1552 177.154 18.6861 641606401 641865601 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 :                                   737.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

