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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1456
RA = 177.154, Dec = 18.6861
tmin = 616723201, tmax = 616982401
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='89920', job_status='RUN', time_executed='2021-09-04 12:10:10.392072', time_epoch_executed='1630782610.39' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1456'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89920

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89920/ft1_4FGL_J1148.6+1841_daily_bin1456.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89920/ft2_4FGL_J1148.6+1841_daily_bin1456.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89920/ft1_4FGL_J1148.6+1841_daily_bin1456.fits outfile=/scratch/kocevski/89920/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1456.fits ra=177.154 dec=18.6861 rad=12.0 tmin=616723201.0 tmax=616982401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.06
user 2.85
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89920/ft1_filtered_4FGL_J1148.6+1841_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/89920/ft2_4FGL_J1148.6+1841_daily_bin1456.fits sctable="SC_DATA" expcube=/scratch/kocevski/89920/ltcube_616723201_616982401_4FGL_J1148.6+1841_daily_bin1456.fits outfile=/scratch/kocevski/89920/expmap_616723201_616982401_4FGL_J1148.6+1841_daily_bin1456.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/89920/ltcube_616723201_616982401_4FGL_J1148.6+1841_daily_bin1456.fits
.....................!
real 191.60
user 186.24
sys 4.92

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89920/ft1_filtered_4FGL_J1148.6+1841_daily_bin1456.fits scfile=/scratch/kocevski/89920/ft2_4FGL_J1148.6+1841_daily_bin1456.fits outfile=/scratch/kocevski/89920/cmap_HighResolution_616723201_616982401_4FGL_J1148.6+1841_daily_bin1456.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/89920/ft1_filtered_4FGL_J1148.6+1841_daily_bin1456.fits evtable="EVENTS" scfile=/scratch/kocevski/89920/ft2_4FGL_J1148.6+1841_daily_bin1456.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/89920/Model_4FGL_J1148.6+1841_daily_bin1456.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/89920/ft1_filtered_4FGL_J1148.6+1841_daily_bin1456.fits.....................!
real 61.03
user 49.88
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .57399E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.0421       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3452       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5302       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2021       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4142       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10567E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11218E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2553       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.0218       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12586E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3143       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .64830       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=   5395.067     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2342 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.818        .23639E-05** at limit **
   2  Prefactor     .10000E-03    5.8005       -.71850E-06** at limit **
   3  norm          .10000E-03    5.9201       -.29178E-06** at limit **
   4  norm          2.0448        15.964        .80788E-06   -.55548E-04
   5  Prefactor     .10000E-03    4.2416       -.30960E-06** at limit **
   6  Prefactor     .10000E-03    14.795       -.30719E-05** at limit **
   7  Prefactor     .10000E-03    4.6637        .54265E-06** at limit **
   8  Prefactor     .10000E-03    3.4808        .54441E-07** at limit **
   9  Prefactor     4.3448        5.7309        .67176E-06   -.39766E-03
  10  Prefactor     2.5300        1.6870        .85516E-08   -.50390E-04
  11  Prefactor     4.2011        7.3878        .11863E-06   -.35284E-04
  12  norm          .10000E-03    .29033        .21371E-08** at limit **
  13  Prefactor     .10000E-03    5.8769       -.38989E-06** at limit **
  14  Prefactor     6.4138        3.7779        .11934E-06    .13376E-03
  15  Prefactor     .10002E-03    31.514       -.71559E-05** at limit **
  16  Prefactor     .10000E-03    1.1686        .42588E-07** at limit **
  17  Prefactor     .10000E-03    1.1867       -.75647E-10** at limit **
  18  Prefactor     9.2530        7.3396       -.88406E-06   -.41496E-04
  19  norm          .10000E-03    .68319E-01   -.19696E-07** at limit **
  20  norm          6.0225        5.8984        .22798E-05   -.15155E-02
  21  Prefactor     .10000E-03    8.1372        .89872E-06** at limit **
  22  Prefactor     .10001E-03    27.117        .66579E-05** at limit **
  23  Normalizat    1.3143        .17863       -.35065E-06    .65581E-04
  24  Prefactor     .64835        .17342       -.19460E-06    .17852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 2.04478
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.3448
  Prefactor  = 2.53001
  Prefactor  = 4.20114
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.41375
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.25305
  norm       = 0.0001
  norm       = 6.02255
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Normalizat = 1.31426
  Prefactor  = 0.648354
 **********
 **   18 **HESSE 
 **********

 FCN=   5395.067     FROM HESSE     STATUS=OK           399 CALLS     2741 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.101        .34065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.9432        .17458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0448        16.070        .28936E-03   -1.5422    
   5  Prefactor     .10000E-03    4.2525        .14779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6783        .15512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.4828        .13383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3448        5.7736        .96618E-03   -1.5291    
  10  Prefactor     2.5300        1.6871        .75002E-04   -1.5390    
  11  Prefactor     4.2011        7.3780        .19659E-03   -1.5298    
  12  norm          .10000E-03    .37660        .77187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.8929        .17398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.4138        3.7697        .10439E-03   -1.5201    
  15  Prefactor     .10002E-03    33.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0486        .15233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.7605        .15383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.2530        7.4593        .13174E-03   -1.5099    
  19  norm          .10000E-03    .82025E-01    .37160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.0225        6.6316        .81812E-03   -1.5217    
  21  Prefactor     .10000E-03    8.1983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    28.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3143        .20884        .21220E-03   -.83142    
  24  Prefactor     .64835        .20270        .28995E-03   -1.0559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30386e-09
Minuit parameter uncertainties:
  1  0.000350719
  2  0.000349409
  3  2.43631e-05
  4  11.4688
  5  2.1052e-05
  6  0.000427805
  7  4.21478e-05
  8  3.64904e-06
  9  5.77429
  10  1.68716
  11  7.37962
  12  1.72201e-07
  13  3.26139e-05
  14  3.76986
  15  0.00148424
  16  2.991e-06
  17  9.12571e-07
  18  7.46003
  19  9.80455e-08
  20  6.63244
  21  8.3697e-05
  22  0.00123372
  23  0.208972
  24  0.202931
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  4.345e+00  5.774e+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

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  6.484e-01  2.029e-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.314e+00  2.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 177.154 18.686
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 1.41e-08 +/- 1.87e-08
Energy Flux (Fixed Index): 5.14e-06 +/- 6.83e-06

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

Saving results to:
/scratch/kocevski/89920/likelihoodResults_616723201_616982401_4FGL_J1148.6+1841_daily_bin1456.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) = 5395.05488945
delta logL = 0.0125670948746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5395.04508105
delta logL = 0.0223754913222

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4621       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0731       1.0000          .0000       10.000    
     3 'Normalizat'    1.3178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64581       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=   5395.045     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      261 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4633        8.8238        .17193E-03   -.48905E-03
   2  Index         2.0743        1.1280        .11349E-01   -.98807E-04
   3  Normalizat    1.3181        .20373        .21194E-03    .40130E-03
   4  Prefactor     .64567        .20288        .29051E-03    .35322E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.46335
  Index      = 2.0743
  Normalizat = 1.31808
  Prefactor  = 0.645665
 **********
 **   18 **HESSE 
 **********

 FCN=   5395.045     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4633        8.5077        .34386E-04   -1.5240    
   2  Index         2.0743        1.0887        .45397E-03   -.62505    
   3  Normalizat    1.3181        .20377        .42389E-04   -.83028    
   4  Prefactor     .64567        .20297        .11620E-04   -1.0570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.31133e-10
Minuit parameter uncertainties:
  1  8.50956
  2  1.10226
  3  0.203896
  4  0.2032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89920': 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): 0
logL (Free Index) = 5395.04507754
delta logL = 0.0223790095488

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  5.463e+00  8.510e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.074e+00  1.102e+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:  6.457e-01  2.032e-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.318e+00  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 177.154 18.686
Photon Index (Free Index): 2.07 +/- 1.10
Photon Flux (Free Index): 1.14e-08 +/- 1.91e-08
Energy Flux (Free Index): 6.61e-06 +/- 1.29e-05

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/89920/cmap_HighResolution_616723201_616982401_4FGL_J1148.6+1841_daily_bin1456.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-03', comment='SUCCESS', photon_flux='1.41e-08', energy_flux2='6.61e-06', photon_flux_error='1.87e-08', dlogl='2.24e-02', energy_flux='5.14e-06', photon_flux2='1.14e-08', job_status='DONE', time_completed='2021-09-04 12:20:53.235196', photon_index_error2='1.10', photon_index2='2.07', ts='1.18', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='7.41e-08', energy_flux_error2='1.29e-05', EG='1.31', time_epoch_completed='1630783253.24', return_code='0', job_id='89920', GAL2='0.65', EG2='1.32', return_code2='0', energy_flux_error='6.83e-06', photon_flux_error2='1.91e-08', ts2='1.23', photon_index='2.32' WHERE bin_id='1456' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:20:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 89920: <4FGL_J1148.6+1841_daily_bin1456> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1456 177.154 18.6861 616723201 616982401 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 :                                   629.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

