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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin77
RA = 177.154, Dec = 18.6861
tmin = 259286401, tmax = 259545601
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='82779', job_status='RUN', time_executed='2021-09-04 11:48:35.894474', time_epoch_executed='1630781315.89' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='77'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82779

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82779/ft1_4FGL_J1148.6+1841_daily_bin77.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82779/ft2_4FGL_J1148.6+1841_daily_bin77.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82779/ft1_4FGL_J1148.6+1841_daily_bin77.fits outfile=/scratch/kocevski/82779/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin77.fits ra=177.154 dec=18.6861 rad=12.0 tmin=259286401.0 tmax=259545601.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.26
user 2.05
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82779/ft1_filtered_4FGL_J1148.6+1841_daily_bin77.fits" evtable="EVENTS" scfile=/scratch/kocevski/82779/ft2_4FGL_J1148.6+1841_daily_bin77.fits sctable="SC_DATA" outfile=/scratch/kocevski/82779/ltcube_259286401_259545601_4FGL_J1148.6+1841_daily_bin77.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/82779/ft2_4FGL_J1148.6+1841_daily_bin77.fits
.....................!
real 13.34
user 12.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82779/ft1_filtered_4FGL_J1148.6+1841_daily_bin77.fits evtable="EVENTS" scfile=/scratch/kocevski/82779/ft2_4FGL_J1148.6+1841_daily_bin77.fits sctable="SC_DATA" expcube=/scratch/kocevski/82779/ltcube_259286401_259545601_4FGL_J1148.6+1841_daily_bin77.fits outfile=/scratch/kocevski/82779/expmap_259286401_259545601_4FGL_J1148.6+1841_daily_bin77.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/82779/ltcube_259286401_259545601_4FGL_J1148.6+1841_daily_bin77.fits
.....................!
real 190.45
user 185.30
sys 4.78

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/82779/ft1_filtered_4FGL_J1148.6+1841_daily_bin77.fits scfile=/scratch/kocevski/82779/ft2_4FGL_J1148.6+1841_daily_bin77.fits outfile=/scratch/kocevski/82779/cmap_259286401_259545601_4FGL_J1148.6+1841_daily_bin77.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=177.154 yref=18.6861 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82779/ft1_filtered_4FGL_J1148.6+1841_daily_bin77.fits scfile=/scratch/kocevski/82779/ft2_4FGL_J1148.6+1841_daily_bin77.fits outfile=/scratch/kocevski/82779/cmap_HighResolution_259286401_259545601_4FGL_J1148.6+1841_daily_bin77.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/82779/ft1_filtered_4FGL_J1148.6+1841_daily_bin77.fits evtable="EVENTS" scfile=/scratch/kocevski/82779/ft2_4FGL_J1148.6+1841_daily_bin77.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/82779/Model_4FGL_J1148.6+1841_daily_bin77.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/82779/ft1_filtered_4FGL_J1148.6+1841_daily_bin77.fits....................!
real 62.86
user 61.50
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .56945       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.556       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.260       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1659       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2293       1.0000         .10000E-03   10000.    
    12 'norm      '    4.5436       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14173E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7339       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5459       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10499E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .66137       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    92.647       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81186       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1989       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=   6763.362     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2714 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.236        .23101E-05** at limit **
   2  Prefactor     .10000E-03    3.4016       -.53703E-07** at limit **
   3  norm          .10000E-03    6.4335       -.12868E-05** at limit **
   4  norm          .57842        6.9064       -.30294E-06    .65091E-04
   5  Prefactor     .10000E-03    2.4060        .58105E-08** at limit **
   6  Prefactor     19.547        31.309       -.11058E-04   -.82542E-05
   7  Prefactor     .10000E-03    6.6178        .16078E-05** at limit **
   8  Prefactor     .10000E-03    13.511        .70191E-06** at limit **
   9  Prefactor     10.257        10.507        .49604E-06    .89611E-05
  10  Prefactor     3.1657        1.8628        .19588E-07   -.29137E-04
  11  Prefactor     1.2275        2.3104        .62829E-06   -.13142E-02
  12  norm          4.5438        1.4190        .35108E-07   -.30070E-04
  13  Prefactor     .10000E-03    11.280       -.22641E-05** at limit **
  14  Prefactor     .10000E-03    2.4976        .41444E-08** at limit **
  15  Prefactor     .10000E-03    30.668        .53854E-06** at limit **
  16  Prefactor     1.7334        1.5548       -.57379E-07   -.13043E-04
  17  Prefactor     1.5459        1.9336       -.23827E-06   -.15717E-03
  18  Prefactor     .10000E-03    1.9644        .70792E-07** at limit **
  19  norm          .66136        .23256       -.22430E-07   -.19909E-03
  20  norm          .10000E-03    1.4915       -.87865E-07** at limit **
  21  Prefactor     .10000E-03    10.645       -.10156E-05** at limit **
  22  Prefactor     92.663        39.436        .11805E-04    .72321E-04
  23  Normalizat    .81179        .17356       -.30798E-07    .31158E-04
  24  Prefactor     1.1989        .17419       -.26270E-06    .37802E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.578417
  Prefactor  = 0.0001
  Prefactor  = 19.5474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2566
  Prefactor  = 3.16573
  Prefactor  = 1.22749
  norm       = 4.54381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.73345
  Prefactor  = 1.54586
  Prefactor  = 0.0001
  norm       = 0.661359
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 92.6626
  Normalizat = 0.811794
  Prefactor  = 1.19894
 **********
 **   18 **HESSE 
 **********

 FCN=   6763.362     FROM HESSE     STATUS=OK           403 CALLS     3117 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.4447        .14811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.4584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .57842        27.646        .41022E-02   -1.5556    
   5  Prefactor     .10000E-03    2.4083        .12458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.547        31.330        .90571E-04   -1.4823    
   7  Prefactor     .10000E-03    6.6248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.257        10.529        .12509E-03   -1.5067    
  10  Prefactor     3.1657        1.8622        .82177E-04   -1.5352    
  11  Prefactor     1.2275        13.310        .20288E-02   -1.5486    
  12  norm          4.5438        1.4203        .52861E-04   -1.5282    
  13  Prefactor     .10000E-03    11.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.6071        .25347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    30.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7334        1.5599        .93041E-04   -1.5445    
  17  Prefactor     1.5459        1.9107        .12194E-03   -1.5459    
  18  Prefactor     .10000E-03    4.2897        .22450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .66136        .23223        .22407E-04   -1.5545    
  20  norm          .10000E-03    1.4992        .98069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     92.663        39.495        .20876E-03   -1.3780    
  23  Normalizat    .81179        .20415        .27017E-03   -.99633    
  24  Prefactor     1.1989        .20566        .24043E-03   -.86364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19528e-09
Minuit parameter uncertainties:
  1  5.87902e-06
  2  3.18293e-06
  3  4.79301e-05
  4  8.00102
  5  1.85953e-06
  6  31.3567
  7  3.16563e-06
  8  2.3629e-08
  9  10.5308
  10  1.8622
  11  8.08594
  12  1.42032
  13  4.85277e-06
  14  1.40865e-06
  15  4.52821e-06
  16  1.5599
  17  1.91077
  18  1.49121e-05
  19  0.23223
  20  1.35276e-07
  21  0.000262598
  22  39.506
  23  0.204345
  24  0.205801
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.026e+01  1.053e+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.199e+00  2.058e-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.118e-01  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.23
Ra Dec: 177.154 18.686
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.32e-08 +/- 3.41e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.25e-05

TS (Fixed Index): 1.23
Ra Dec: 177.154 18.686
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/82779/likelihoodResults_259286401_259545601_4FGL_J1148.6+1841_daily_bin77.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6762.02361768
delta logL = 1.33804239927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6762.00465647
delta logL = 1.35700361422

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6903       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6156       1.0000          .0000       10.000    
     3 'Normalizat'    .75001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2390       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=   6762.005     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      264 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6815        15.637        .80946E-02    .56130E-03
   2  Index         3.6181        2.2698        .99533E-01    .18732E-03
   3  Normalizat    .75006        .51438E-01    .63321E-01    .24845E-04
   4  Prefactor     1.2390        .53300E-01    .53577E-01    .29026E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.68155
  Index      = 3.61814
  Normalizat = 0.750059
  Prefactor  = 1.23897
 **********
 **   18 **HESSE 
 **********

 FCN=   6762.005     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      297 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6815        29.356        .61033E-04   -1.5449    
   2  Index         3.6181        3.4354        .37906E-02   -.28002    
   3  Normalizat    .75006        .19962        .28011E-03   -1.0195    
   4  Prefactor     1.2390        .20995        .23688E-03   -.85140    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.38131e-10
Minuit parameter uncertainties:
  1  14.0596
  2  3.82742
  3  0.199815
  4  0.210088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82779': 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) = 6762.00465257
delta logL = 1.35700750799

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.682e+00  1.406e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  3.618e+00  3.827e+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.239e+00  2.101e-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:  7.501e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.09
Ra Dec: 177.154 18.686
Photon Index (Free Index): 3.62 +/- 3.83
Photon Flux (Free Index): 8.09e-08 +/- 5.10e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/82779/cmap_HighResolution_259286401_259545601_4FGL_J1148.6+1841_daily_bin77.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.07e-03', comment='SUCCESS', photon_flux='3.32e-08', energy_flux2='1.31e-05', photon_flux_error='3.41e-08', dlogl='1.36e+00', energy_flux='1.21e-05', photon_flux2='8.09e-08', job_status='DONE', time_completed='2021-09-04 12:01:10.655046', photon_index_error2='3.83', photon_index2='3.62', ts='1.23', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.23e-05', EG='0.81', time_epoch_completed='1630782070.66', return_code='0', job_id='82779', GAL2='1.24', EG2='0.75', return_code2='102', energy_flux_error='1.25e-05', photon_flux_error2='5.10e-08', ts2='4.09', photon_index='2.32' WHERE bin_id='77' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:01:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 82779: <4FGL_J1148.6+1841_daily_bin77> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin77 177.154 18.6861 259286401 259545601 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 :                                   751.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            898 sec.

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

