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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1471
RA = 177.154, Dec = 18.6861
tmin = 620611201, tmax = 620870401
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='89938', job_status='RUN', time_executed='2021-09-04 12:07:18.637089', time_epoch_executed='1630782438.64' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89938

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89938/ft1_4FGL_J1148.6+1841_daily_bin1471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89938/ft2_4FGL_J1148.6+1841_daily_bin1471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89938/ft1_4FGL_J1148.6+1841_daily_bin1471.fits outfile=/scratch/kocevski/89938/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1471.fits ra=177.154 dec=18.6861 rad=12.0 tmin=620611201.0 tmax=620870401.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.74
user 3.53
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/89938/ft2_4FGL_J1148.6+1841_daily_bin1471.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/89938/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1471.fits evtable="EVENTS" outfile="/scratch/kocevski/89938/ft1_filtered_4FGL_J1148.6+1841_daily_bin1471.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89938/ft1_filtered_4FGL_J1148.6+1841_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/89938/ft2_4FGL_J1148.6+1841_daily_bin1471.fits sctable="SC_DATA" expcube=/scratch/kocevski/89938/ltcube_620611201_620870401_4FGL_J1148.6+1841_daily_bin1471.fits outfile=/scratch/kocevski/89938/expmap_620611201_620870401_4FGL_J1148.6+1841_daily_bin1471.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/89938/ltcube_620611201_620870401_4FGL_J1148.6+1841_daily_bin1471.fits
.....................!
real 189.85
user 185.35
sys 4.04

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/89938/ft1_filtered_4FGL_J1148.6+1841_daily_bin1471.fits scfile=/scratch/kocevski/89938/ft2_4FGL_J1148.6+1841_daily_bin1471.fits outfile=/scratch/kocevski/89938/cmap_620611201_620870401_4FGL_J1148.6+1841_daily_bin1471.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89938/ft1_filtered_4FGL_J1148.6+1841_daily_bin1471.fits scfile=/scratch/kocevski/89938/ft2_4FGL_J1148.6+1841_daily_bin1471.fits outfile=/scratch/kocevski/89938/cmap_HighResolution_620611201_620870401_4FGL_J1148.6+1841_daily_bin1471.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.825       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.914       1.0000         .10000E-03   10000.    
     3 'norm      '    31.560       1.0000         .10000E-03   10000.    
     4 'norm      '    21.334       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    62.486       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .89045       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1067       1.0000         .10000E-03   10000.    
    11 'Prefactor '    62.230       1.0000         .10000E-03   10000.    
    12 'norm      '    4.4283       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .47417E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28064E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6321       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.307       1.0000         .10000E-03   10000.    
    22 'Prefactor '    67.873       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .49861       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4614       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=   2067.447     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2744 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.806        49.747       -.13777E-04    .21822E-05
   2  Prefactor     10.912        14.336        .31101E-06    .13186E-07
   3  norm          31.546        30.985       -.41814E-06   -.36597E-05
   4  norm          21.327        21.853        .12426E-05    .36449E-04
   5  Prefactor     .10000E-03    26.625       -.10137E-05** at limit **
   6  Prefactor     62.471        64.033       -.12321E-04    .32195E-05
   7  Prefactor     .10000E-03    19.158        .43572E-05** at limit **
   8  Prefactor     .71151        53.014       -.28187E-05    .22125E-05
   9  Prefactor     .10000E-03    22.605        .25074E-05** at limit **
  10  Prefactor     7.1080        5.2654       -.21402E-06    .43146E-03
  11  Prefactor     62.218        32.318       -.27701E-05    .22692E-04
  12  norm          4.4277        2.8939       -.14111E-06    .28376E-03
  13  Prefactor     .10000E-03    19.787       -.61798E-05** at limit **
  14  Prefactor     .10000E-03    6.4749       -.61618E-06** at limit **
  15  Prefactor     .10000E-03    80.898       -.90858E-06** at limit **
  16  Prefactor     .10000E-03    3.5610       -.51278E-06** at limit **
  17  Prefactor     .10000E-03    5.0127       -.97586E-07** at limit **
  18  Prefactor     5.6078        11.274       -.44375E-06   -.87965E-04
  19  norm          .10000E-03    .11389       -.30128E-07** at limit **
  20  norm          .10000E-03    6.6438        .29623E-07** at limit **
  21  Prefactor     11.290        27.978        .56646E-05   -.45248E-05
  22  Prefactor     67.870        77.925       -.26554E-05    .91294E-05
  23  Normalizat    .49905        .35758        .88112E-05    .13026E-03
  24  Prefactor     1.4614        .34379       -.12615E-05    .20742E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.8057
  Prefactor  = 10.9124
  norm       = 31.5465
  norm       = 21.3265
  Prefactor  = 0.0001
  Prefactor  = 62.4709
  Prefactor  = 0.0001
  Prefactor  = 0.71151
  Prefactor  = 0.0001
  Prefactor  = 7.10803
  Prefactor  = 62.218
  norm       = 4.42767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.60778
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.2896
  Prefactor  = 67.8702
  Normalizat = 0.499048
  Prefactor  = 1.46141
 **********
 **   18 **HESSE 
 **********

 FCN=   2067.447     FROM HESSE     STATUS=OK           403 CALLS     3147 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.806        49.807        .56254E-04   -1.4281    
   2  Prefactor     10.912        14.310        .12127E-03   -1.5047    
   3  norm          31.546        30.893        .71324E-04   -1.4584    
   4  norm          21.327        21.802        .86718E-04   -1.4784    
   5  Prefactor     .10000E-03    27.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     62.471        64.078        .25381E-03   -1.4126    
   7  Prefactor     .10000E-03    19.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .71151        558.98        .54934E-02   -1.5539    
   9  Prefactor     .10000E-03    22.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1080        5.3428        .77454E-04   -1.5175    
  11  Prefactor     62.218        32.270        .50866E-04   -1.4129    
  12  norm          4.4277        2.8922        .58476E-04   -1.5287    
  13  Prefactor     .10000E-03    19.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.609        .21488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    80.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.998        .15842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.1430        .19815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6078        11.233        .16927E-03   -1.5234    
  19  norm          .10000E-03    .11950        .29925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.6578        .11415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.290        27.873        .11914E-03   -1.5036    
  22  Prefactor     67.870        77.744        .48720E-04   -1.4058    
  23  Normalizat    .49905        .38328        .36080E-03   -1.1246    
  24  Prefactor     1.4614        .38422        .23803E-03   -.78626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87717e-10
Minuit parameter uncertainties:
  1  49.8481
  2  14.3145
  3  30.9083
  4  21.8106
  5  2.00757e-05
  6  64.1485
  7  1.9836e-05
  8  40.2659
  9  4.36047e-05
  10  5.34316
  11  32.2789
  12  2.89228
  13  1.6328e-05
  14  0.000167106
  15  4.5593e-05
  16  0.000320829
  17  2.83854e-05
  18  11.237
  19  6.97573e-07
  20  7.04987e-06
  21  27.9053
  22  77.8608
  23  0.385325
  24  0.384984
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  4.360e-05  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.461e+00  3.850e-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.990e-01  3.853e-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.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89938/likelihoodResults_620611201_620870401_4FGL_J1148.6+1841_daily_bin1471.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) = 2067.44683917
delta logL = -0.000209017964607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2067.44663147
delta logL = -1.32308514367e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5779       1.0000          .0000       10.000    
     3 'Normalizat'    .49905       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4614       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=   2067.447     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      290 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10486E-03    3.4351        .17545E-01** at limit **
   2  Index         2.4796        8.7145        .50000        .23153E-04
   3  Normalizat    .49905        .35383E-02    .36079E-03   -.19705E-03
   4  Prefactor     1.4614        .38347E-02    .23803E-03   -.27007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104865
  Index      = 2.4796
  Normalizat = 0.499045
  Prefactor  = 1.46141
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10486E-03    431.20        .36313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4796        8.3433        .50000       -.52832    
   3  Normalizat    .49905        .40183E-01    .14432E-04   -1.1246    
   4  Prefactor     1.4614        .43548E-01    .47606E-04   -.78626    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.14909e-08
Minuit parameter uncertainties:
  1  0.0922733
  2  508.985
  3  0.0401855
  4  0.0435489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89938': 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) = 2067.44663097
delta logL = -8.18095031718e-07

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.049e-04  9.227e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.480e+00  5.090e+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.461e+00  4.355e-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.990e-01  4.019e-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/89938/cmap_HighResolution_620611201_620870401_4FGL_J1148.6+1841_daily_bin1471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.58e-07', time_completed='2021-09-04 12:14:45.536308', job_id='89938', GAL2='1.46', fit_tolerance='1e-08', EG2='0.50', EG='0.50', time_epoch_completed='1630782885.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.46', dlogl='-8.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1471' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:14:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 89938: <4FGL_J1148.6+1841_daily_bin1471> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1471 177.154 18.6861 620611201 620870401 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 :                                   445.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   461 sec.
    Turnaround time :                            464 sec.

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

