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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1127
RA = 177.154, Dec = 18.6861
tmin = 531446401, tmax = 531705601
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='89424', job_status='RUN', time_executed='2021-09-04 12:08:47.548090', time_epoch_executed='1630782527.55' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89424

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89424/ft1_4FGL_J1148.6+1841_daily_bin1127.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89424/ft2_4FGL_J1148.6+1841_daily_bin1127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89424/ft1_4FGL_J1148.6+1841_daily_bin1127.fits outfile=/scratch/kocevski/89424/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1127.fits ra=177.154 dec=18.6861 rad=12.0 tmin=531446401.0 tmax=531705601.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.64
user 3.42
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89424/ft1_filtered_4FGL_J1148.6+1841_daily_bin1127.fits evtable="EVENTS" scfile=/scratch/kocevski/89424/ft2_4FGL_J1148.6+1841_daily_bin1127.fits sctable="SC_DATA" expcube=/scratch/kocevski/89424/ltcube_531446401_531705601_4FGL_J1148.6+1841_daily_bin1127.fits outfile=/scratch/kocevski/89424/expmap_531446401_531705601_4FGL_J1148.6+1841_daily_bin1127.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/89424/ltcube_531446401_531705601_4FGL_J1148.6+1841_daily_bin1127.fits
.....................!
real 190.87
user 185.41
sys 5.11

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/89424/ft1_filtered_4FGL_J1148.6+1841_daily_bin1127.fits scfile=/scratch/kocevski/89424/ft2_4FGL_J1148.6+1841_daily_bin1127.fits outfile=/scratch/kocevski/89424/cmap_531446401_531705601_4FGL_J1148.6+1841_daily_bin1127.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/89424/ft1_filtered_4FGL_J1148.6+1841_daily_bin1127.fits scfile=/scratch/kocevski/89424/ft2_4FGL_J1148.6+1841_daily_bin1127.fits outfile=/scratch/kocevski/89424/cmap_HighResolution_531446401_531705601_4FGL_J1148.6+1841_daily_bin1127.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    9.7643       1.0000         .10000E-03   10000.    
     3 'norm      '    18.686       1.0000         .10000E-03   10000.    
     4 'norm      '    11.893       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.980       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9566       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1336       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1221       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0680       1.0000         .10000E-03   10000.    
    12 'norm      '    59.968       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .56917E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8906       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3278       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5176       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4022       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .90852E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    14.131       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5884       1.0000         .10000E-03   10000.    
    22 'Prefactor '    36.246       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81624       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2268       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9012.585     FROM MIGRAD    STATUS=CONVERGED     78 CALLS     1908 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.615       -.88471E-06** at limit **
   2  Prefactor     9.7645        2.1028       -.64612E-06   -.32369E-02
   3  norm          18.687        1.5346        .32236E-06   -.23191E-02
   4  norm          11.895        1.5134        .39642E-06   -.17782E-02
   5  Prefactor     15.980        2.2576        .59371E-06   -.34087E-02
   6  Prefactor     2.9609        1.1110       -.25400E-06    .76505E-03
   7  Prefactor     .10000E-03    30.739       -.54026E-05** at limit **
   8  Prefactor     .10000E-03    7.1121       -.19524E-06** at limit **
   9  Prefactor     3.1337        1.0600        .83994E-07    .25161E-03
  10  Prefactor     1.1218        1.8325       -.30744E-06    .29722E-04
  11  Prefactor     8.0661        6.7008       -.26351E-05   -.67406E-04
  12  norm          59.968        2.4311       -.16136E-06   -.15602E-01
  13  Prefactor     .10033E-03    202.83       -.30499E-05** at limit **
  14  Prefactor     4.8913        3.7814       -.21224E-06    .24091E-02
  15  Prefactor     7.2841        3.3620       -.86773E-06    .46062E-02
  16  Prefactor     2.5172        2.4777       -.15433E-06   -.14719E-03
  17  Prefactor     3.4023        2.9865        .13935E-05   -.76797E-05
  18  Prefactor     .10000E-03    1.7132        .26240E-05** at limit **
  19  norm          .90928E-01    .18027       -.68276E-07    .85685E-04
  20  norm          14.130        1.9070       -.46922E-06   -.41719E-02
  21  Prefactor     5.5900        1.0842        .22158E-06   -.44558E-03
  22  Prefactor     36.242        1.0436       -.17222E-07    .60204E-03
  23  Normalizat    .81610        .20682        .64244E-05    .10132E-03
  24  Prefactor     1.2269        .20789        .11065E-05    .11235E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.76453
  norm       = 18.6873
  norm       = 11.8946
  Prefactor  = 15.9803
  Prefactor  = 2.96091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.13367
  Prefactor  = 1.12182
  Prefactor  = 8.0661
  norm       = 59.9677
  Prefactor  = 0.000100326
  Prefactor  = 4.89126
  Prefactor  = 7.28411
  Prefactor  = 2.51725
  Prefactor  = 3.40232
  Prefactor  = 0.0001
  norm       = 0.0909284
  norm       = 14.1304
  Prefactor  = 5.58995
  Prefactor  = 36.2416
  Normalizat = 0.816097
  Prefactor  = 1.22688
 **********
 **   18 **HESSE 
 **********

 FCN=   9012.585     FROM HESSE     STATUS=OK           467 CALLS     2375 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.587        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.7645        6.0502        .32060E-02   -1.5083    
   3  norm          18.687        11.734        .23163E-02   -1.4843    
   4  norm          11.895        11.653        .29040E-02   -1.5018    
   5  Prefactor     15.980        9.8436        .25048E-02   -1.4908    
   6  Prefactor     2.9609        40.102        .59044E-02   -1.5364    
   7  Prefactor     .10000E-03    30.362        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.1077        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1337        13.383        .57254E-02   -1.5354    
  10  Prefactor     1.1218        1.8666        .11074E-01   -1.5496    
  11  Prefactor     8.0661        8.0408        .35288E-02   -1.5140    
  12  norm          59.968        4.2993        .12953E-02   -1.4158    
  13  Prefactor     .10033E-03    15.124        .11094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8913        4.4173        .45471E-02   -1.5266    
  15  Prefactor     7.2841        279.19        .37042E-02   -1.5168    
  16  Prefactor     2.5172        2.5137        .64371E-02   -1.5391    
  17  Prefactor     3.4023        3.0178        .54834E-02   -1.5339    
  18  Prefactor     .10000E-03    1.7114        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .90928E-01    .19254        .94675E-02   -1.5648    
  20  norm          14.130        6.1171        .26638E-02   -1.4956    
  21  Prefactor     5.5900        11.253        .42485E-02   -1.5235    
  22  Prefactor     36.242        32.281        .16642E-02   -1.4503    
  23  Normalizat    .81610        .18446        .77651E-01   -.99474    
  24  Prefactor     1.2269        .17672        .65743E-01   -.85508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45446e-06
Minuit parameter uncertainties:
  1  3.57337e-05
  2  6.05057
  3  11.7351
  4  11.6557
  5  9.84459
  6  21.8108
  7  0.000149065
  8  6.66503e-06
  9  12.9566
  10  1.86667
  11  8.04185
  12  4.29937
  13  0.00444152
  14  4.41759
  15  90.6507
  16  2.51383
  17  3.01796
  18  6.26477e-06
  19  0.192538
  20  6.11736
  21  11.2571
  22  32.2963
  23  0.184606
  24  0.176802
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  3.134e+00  1.296e+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.227e+00  1.768e-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.161e-01  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/89424/likelihoodResults_531446401_531705601_4FGL_J1148.6+1841_daily_bin1127.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) = 9012.46480401
delta logL = 0.120233491014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9012.29467128
delta logL = 0.290366217456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30308E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.2104       1.0000          .0000       10.000    
     3 'Normalizat'    .75426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2705       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=   9012.295     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      284 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29566E-01    .39022        .43340E-02    .10681E-01
   2  Index         5.2223        2.0896        .12169        .24189E-03
   3  Normalizat    .75425        .28652E-01    .80484E-01    .37069E-04
   4  Prefactor     1.2706        .29237E-01    .64770E-01   -.36449E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.029566
  Index      = 5.22232
  Normalizat = 0.754246
  Prefactor  = 1.2706
 **********
 **   18 **HESSE 
 **********

 FCN=   9012.295     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      317 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29566E-01    2.0871        .19013E-04   -1.5674    
   2  Index         5.2223        7.5584        .65687E-02    .44479E-01
   3  Normalizat    .75425        .15884        .35640E-03   -1.0179    
   4  Prefactor     1.2706        .15750        .28646E-03   -.84185    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.81915e-09
Minuit parameter uncertainties:
  1  0.495994
  2  7.04042
  3  0.158937
  4  0.157559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89424': 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) = 9012.29466258
delta logL = 0.290374917142

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  2.957e-02  4.960e-01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  5.222e+00  7.040e+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.271e+00  1.576e-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.542e-01  1.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/89424/cmap_HighResolution_531446401_531705601_4FGL_J1148.6+1841_daily_bin1127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.89e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-04 12:22:43.709474', job_id='89424', GAL2='1.27', fit_tolerance='1e-08', EG2='0.75', EG='0.82', time_epoch_completed='1630783363.71', return_code2='102', ts='0.07', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='2.90e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1127' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:22:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 89424: <4FGL_J1148.6+1841_daily_bin1127> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1127> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:06:21 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:06:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 12:06:23 2021
Terminated at Sat Sep  4 12:22:44 2021
Results reported at Sat Sep  4 12:22:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1127 177.154 18.6861 531446401 531705601 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 :                                   828.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

