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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin952
RA = 177.154, Dec = 18.6861
tmin = 486086401, tmax = 486345601
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='87917', job_status='RUN', time_executed='2021-09-04 12:01:52.415618', time_epoch_executed='1630782112.42' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='952'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87917

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87917/ft1_4FGL_J1148.6+1841_daily_bin952.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87917/ft2_4FGL_J1148.6+1841_daily_bin952.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87917/ft1_4FGL_J1148.6+1841_daily_bin952.fits outfile=/scratch/kocevski/87917/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin952.fits ra=177.154 dec=18.6861 rad=12.0 tmin=486086401.0 tmax=486345601.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.80
user 3.58
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87917/ft1_filtered_4FGL_J1148.6+1841_daily_bin952.fits" evtable="EVENTS" scfile=/scratch/kocevski/87917/ft2_4FGL_J1148.6+1841_daily_bin952.fits sctable="SC_DATA" outfile=/scratch/kocevski/87917/ltcube_486086401_486345601_4FGL_J1148.6+1841_daily_bin952.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/87917/ft2_4FGL_J1148.6+1841_daily_bin952.fits
.....................!
real 12.04
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87917/ft1_filtered_4FGL_J1148.6+1841_daily_bin952.fits evtable="EVENTS" scfile=/scratch/kocevski/87917/ft2_4FGL_J1148.6+1841_daily_bin952.fits sctable="SC_DATA" expcube=/scratch/kocevski/87917/ltcube_486086401_486345601_4FGL_J1148.6+1841_daily_bin952.fits outfile=/scratch/kocevski/87917/expmap_486086401_486345601_4FGL_J1148.6+1841_daily_bin952.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/87917/ltcube_486086401_486345601_4FGL_J1148.6+1841_daily_bin952.fits
.....................!
real 189.92
user 185.12
sys 4.34

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/87917/ft1_filtered_4FGL_J1148.6+1841_daily_bin952.fits scfile=/scratch/kocevski/87917/ft2_4FGL_J1148.6+1841_daily_bin952.fits outfile=/scratch/kocevski/87917/cmap_486086401_486345601_4FGL_J1148.6+1841_daily_bin952.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/87917/ft1_filtered_4FGL_J1148.6+1841_daily_bin952.fits scfile=/scratch/kocevski/87917/ft2_4FGL_J1148.6+1841_daily_bin952.fits outfile=/scratch/kocevski/87917/cmap_HighResolution_486086401_486345601_4FGL_J1148.6+1841_daily_bin952.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.373       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    17.006       1.0000         .10000E-03   10000.    
     4 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.391       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.719       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.281       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.685       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8494       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.882       1.0000         .10000E-03   10000.    
    12 'norm      '    .85287E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11310E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9116       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1838       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1277       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.1087       1.0000         .10000E-03   10000.    
    19 'norm      '    .90279       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.154       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81244       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0249       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=   6421.936     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2749 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.375        24.517        .85687E-06    .78634E-05
   2  Prefactor     .10000E-03    2.3497        .51577E-07** at limit **
   3  norm          17.008        11.175        .10387E-05    .11943E-04
   4  norm          .10000E-03    11.012       -.19211E-06** at limit **
   5  Prefactor     20.394        14.005        .82802E-07    .14426E-04
   6  Prefactor     24.704        39.375       -.19912E-04    .12158E-05
   7  Prefactor     22.285        21.578        .72977E-06    .46599E-04
   8  Prefactor     22.691        22.422        .23846E-05    .12941E-03
   9  Prefactor     .10000E-03    6.1813        .13799E-06** at limit **
  10  Prefactor     2.8495        1.7771       -.17523E-06    .10336E-03
  11  Prefactor     11.881        7.6628        .68912E-07    .14193E-04
  12  norm          .85976E-01    .72899       -.89187E-06   -.73682E-03
  13  Prefactor     .10000E-03    45.470        .15159E-05** at limit **
  14  Prefactor     1.9115        2.9387       -.35441E-06   -.54258E-03
  15  Prefactor     .10000E-03    28.976       -.98227E-06** at limit **
  16  Prefactor     3.1839        2.2496       -.14449E-07    .19100E-04
  17  Prefactor     3.1274        2.9762       -.21405E-06   -.37878E-03
  18  Prefactor     9.1079        6.5029        .19116E-06   -.21916E-04
  19  norm          .90282        .30099       -.32831E-07    .12817E-03
  20  norm          .10000E-03    3.6281       -.50730E-07** at limit **
  21  Prefactor     33.156        17.104        .10278E-06    .50517E-05
  22  Prefactor     .10000E-03    18.153        .20480E-06** at limit **
  23  Normalizat    .81241        .18873        .14372E-05    .91416E-04
  24  Prefactor     1.0249        .17812        .78023E-06    .11538E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.3751
  Prefactor  = 0.0001
  norm       = 17.0078
  norm       = 0.0001
  Prefactor  = 20.3936
  Prefactor  = 24.7037
  Prefactor  = 22.2851
  Prefactor  = 22.6914
  Prefactor  = 0.0001
  Prefactor  = 2.8495
  Prefactor  = 11.8806
  norm       = 0.0859762
  Prefactor  = 0.0001
  Prefactor  = 1.91146
  Prefactor  = 0.0001
  Prefactor  = 3.18387
  Prefactor  = 3.12744
  Prefactor  = 9.10786
  norm       = 0.90282
  norm       = 0.0001
  Prefactor  = 33.1564
  Prefactor  = 0.0001
  Normalizat = 0.812411
  Prefactor  = 1.0249
 **********
 **   18 **HESSE 
 **********

 FCN=   6421.936     FROM HESSE     STATUS=OK           407 CALLS     3156 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.375        24.541        .52510E-04   -1.4178    
   2  Prefactor     .10000E-03    2.3529        .11994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          17.008        11.168        .97122E-04   -1.4883    
   4  norm          .10000E-03    11.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.394        14.067        .88698E-04   -1.4804    
   6  Prefactor     24.704        39.234        .80570E-04   -1.4714    
   7  Prefactor     22.285        21.605        .84857E-04   -1.4763    
   8  Prefactor     22.691        22.475        .84099E-04   -1.4755    
   9  Prefactor     .10000E-03    6.2242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8495        1.7751        .79674E-04   -1.5370    
  11  Prefactor     11.881        7.6641        .11622E-03   -1.5018    
  12  norm          .85976E-01    1.7096        .13150E-02   -1.5649    
  13  Prefactor     .10000E-03    47.386        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9115        2.9261        .16335E-03   -1.5431    
  15  Prefactor     .10000E-03    28.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1839        2.2425        .95065E-04   -1.5351    
  17  Prefactor     3.1274        2.9654        .12597E-03   -1.5354    
  18  Prefactor     9.1079        6.4910        .13280E-03   -1.5104    
  19  norm          .90282        .30102        .23937E-04   -1.5518    
  20  norm          .10000E-03    3.6843        .14880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.156        17.104        .69592E-04   -1.4556    
  22  Prefactor     .10000E-03    18.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .81241        .21862        .28397E-03   -.99610    
  24  Prefactor     1.0249        .20551        .25773E-03   -.91904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00036e-10
Minuit parameter uncertainties:
  1  24.5455
  2  1.82515e-06
  3  11.1696
  4  5.17381e-05
  5  14.0696
  6  39.2753
  7  21.6122
  8  22.4831
  9  8.14564e-06
  10  1.77513
  11  7.6647
  12  0.766344
  13  0.00013459
  14  2.92634
  15  9.06013e-06
  16  2.24257
  17  2.96559
  18  6.49154
  19  0.301023
  20  9.20167e-06
  21  17.1062
  22  1.36864e-05
  23  0.218852
  24  0.205665
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  8.146e-06  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.025e+00  2.057e-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.124e-01  2.189e-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: 6.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/87917/likelihoodResults_486086401_486345601_4FGL_J1148.6+1841_daily_bin952.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) = 6421.93670999
delta logL = -0.000765492713072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6421.93594452
delta logL = -2.84499037662e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3264       1.0000          .0000       10.000    
     3 'Normalizat'    .81241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0249       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=   6421.936     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    698.81        .90712E-02** at limit **
   2  Index         2.3303        8.6932        .50000       -.56336E-05
   3  Normalizat    .81241        .56144E-01    .64194E-01    .26167E-04
   4  Prefactor     1.0249        .56808E-01    .41682E-01    .14465E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.33029
  Normalizat = 0.812411
  Prefactor  = 1.0249
 **********
 **   18 **HESSE 
 **********

 FCN=   6421.936     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    561.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3303        8.0139        .50000       -.56326    
   3  Normalizat    .81241        .47595E-01    .28397E-03   -.99610    
   4  Prefactor     1.0249        .48312E-01    .25773E-03   -.91904    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.07938e-09
Minuit parameter uncertainties:
  1  0.00010583
  2  40.5761
  3  0.0475971
  4  0.0483141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87917': 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) = 6421.93594448
delta logL = 9.81526682153e-09

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.058e-04  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.330e+00  4.058e+01  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.025e+00  4.831e-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:  8.124e-01  4.760e-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/87917/cmap_HighResolution_486086401_486345601_4FGL_J1148.6+1841_daily_bin952.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2021-09-04 12:13:39.005315', job_id='87917', GAL2='1.02', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630782819.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='9.82e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='952' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:13:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 87917: <4FGL_J1148.6+1841_daily_bin952> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin952> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 12:01:38 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:01:40 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:01:40 2021
Terminated at Sat Sep  4 12:13:39 2021
Results reported at Sat Sep  4 12:13:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin952 177.154 18.6861 486086401 486345601 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 :                                   703.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            721 sec.

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

