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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin95
RA = 177.154, Dec = 18.6861
tmin = 263952001, tmax = 264211201
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='82807', job_status='RUN', time_executed='2021-09-04 11:49:10.428599', time_epoch_executed='1630781350.43' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82807

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82807/ft1_4FGL_J1148.6+1841_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82807/ft2_4FGL_J1148.6+1841_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82807/ft1_4FGL_J1148.6+1841_daily_bin95.fits outfile=/scratch/kocevski/82807/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin95.fits ra=177.154 dec=18.6861 rad=12.0 tmin=263952001.0 tmax=264211201.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 1.70
user 1.51
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82807/ft1_filtered_4FGL_J1148.6+1841_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/82807/ft2_4FGL_J1148.6+1841_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/82807/ltcube_263952001_264211201_4FGL_J1148.6+1841_daily_bin95.fits outfile=/scratch/kocevski/82807/expmap_263952001_264211201_4FGL_J1148.6+1841_daily_bin95.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/82807/ltcube_263952001_264211201_4FGL_J1148.6+1841_daily_bin95.fits
.....................!
real 192.54
user 187.40
sys 4.75

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

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82807/ft1_filtered_4FGL_J1148.6+1841_daily_bin95.fits scfile=/scratch/kocevski/82807/ft2_4FGL_J1148.6+1841_daily_bin95.fits outfile=/scratch/kocevski/82807/cmap_HighResolution_263952001_264211201_4FGL_J1148.6+1841_daily_bin95.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.014       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.193       1.0000         .10000E-03   10000.    
     3 'norm      '    16.128       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4730       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7072       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7228       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2088       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .42988E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .47542       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .85243       1.0000         .10000E-03   10000.    
    20 'norm      '    2.5436       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.220       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.698       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0179       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71923       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=   5409.951     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2732 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.015        20.025        .11990E-07   -.65420E-05
   2  Prefactor     13.193        7.4145       -.23150E-06   -.10270E-03
   3  norm          16.128        14.163        .16687E-06    .34379E-04
   4  norm          .10000E-03    3.7562        .21469E-05** at limit **
   5  Prefactor     .10000E-03    3.3111        .61894E-06** at limit **
   6  Prefactor     .10000E-03    24.625       -.38907E-05** at limit **
   7  Prefactor     3.4708        9.0852        .27043E-05   -.76131E-03
   8  Prefactor     .10000E-03    11.100       -.64668E-07** at limit **
   9  Prefactor     .10000E-03    3.6816       -.25699E-05** at limit **
  10  Prefactor     .10000E-03    1.0470       -.11803E-06** at limit **
  11  Prefactor     4.7059        8.2238       -.51271E-06   -.14828E-03
  12  norm          1.7229        .95627       -.73370E-08    .26177E-04
  13  Prefactor     .10000E-03    24.758        .45847E-05** at limit **
  14  Prefactor     1.2118        4.5030       -.89330E-07   -.37426E-03
  15  Prefactor     .10000E-03    60.582       -.73320E-06** at limit **
  16  Prefactor     .10000E-03    1.5532        .41606E-07** at limit **
  17  Prefactor     .47782        2.5861        .91612E-07   -.35906E-03
  18  Prefactor     .10000E-03    1.3140        .53186E-08** at limit **
  19  norm          .85246        .27399       -.20047E-09   -.69919E-04
  20  norm          2.5436        3.0228        .74088E-07    .11892E-05
  21  Prefactor     24.219        15.932        .95594E-07    .75485E-05
  22  Prefactor     18.697        20.976       -.73855E-07   -.56504E-05
  23  Normalizat    1.0179        .17706        .12465E-06   -.18437E-04
  24  Prefactor     .71931        .17185       -.29456E-06    .71603E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.0149
  Prefactor  = 13.1933
  norm       = 16.1279
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.47084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.70585
  norm       = 1.72287
  Prefactor  = 0.000100001
  Prefactor  = 1.21184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.477818
  Prefactor  = 0.0001
  norm       = 0.852456
  norm       = 2.54358
  Prefactor  = 24.2193
  Prefactor  = 18.6973
  Normalizat = 1.01787
  Prefactor  = 0.719308
 **********
 **   18 **HESSE 
 **********

 FCN=   5409.951     FROM HESSE     STATUS=OK           405 CALLS     3137 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.015        20.056        .87374E-04   -1.4791    
   2  Prefactor     13.193        7.4271        .11028E-03   -1.4981    
   3  norm          16.128        14.169        .99732E-04   -1.4905    
   4  norm          .10000E-03    3.8242        .14023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3250        .13082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4708        13.001        .10849E-02   -1.5335    
   8  Prefactor     .10000E-03    11.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.7714        .13918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.1700        .14224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7059        8.2552        .18547E-03   -1.5274    
  12  norm          1.7229        .95702        .51968E-04   -1.5445    
  13  Prefactor     .10000E-03    25.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2118        4.4209        .26551E-03   -1.5488    
  15  Prefactor     .10000E-03    60.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.145        .15041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .47782        3.6004        .19794E-02   -1.5570    
  18  Prefactor     .10000E-03    1.3155        .82331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .85246        .27351        .20740E-04   -1.5523    
  20  norm          2.5436        3.0154        .13577E-03   -1.5389    
  21  Prefactor     24.219        15.926        .81394E-04   -1.4723    
  22  Prefactor     18.697        20.966        .92625E-04   -1.4843    
  23  Normalizat    1.0179        .20474        .21977E-03   -.92434    
  24  Prefactor     .71931        .19936        .26341E-03   -1.0277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54845e-09
Minuit parameter uncertainties:
  1  20.062
  2  7.42763
  3  14.1716
  4  6.57751e-05
  5  1.89706e-05
  6  0.000316326
  7  13.0115
  8  4.07722e-06
  9  7.71804e-05
  10  4.42946e-05
  11  8.2572
  12  0.957026
  13  0.000345454
  14  4.42211
  15  9.76939e-05
  16  0.000155644
  17  2.62316
  18  8.22145e-08
  19  0.273515
  20  3.01554
  21  15.9287
  22  20.9742
  23  0.204897
  24  0.199556
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  7.718e-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:  7.193e-01  1.996e-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.018e+00  2.049e-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: 5.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/82807/likelihoodResults_263952001_264211201_4FGL_J1148.6+1841_daily_bin95.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) = 5409.95247273
delta logL = -0.00126135377559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5409.95121133
delta logL = 5.17457010574e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3106       1.0000          .0000       10.000    
     3 'Normalizat'    1.0179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71931       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5409.951     FROM MIGRAD    STATUS=FAILED        88 CALLS      226 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10352E-03    2.6402        .14001E-01** at limit **
   2  Index         1.9905        5.8733        .50000        .11247E-04
   3  Normalizat    1.0179        .32378E-02    .21977E-03   -.70301E-04
   4  Prefactor     .71931        .33321E-02    .26341E-03   -.94951E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5409.951     FROM SIMPLEX   STATUS=UNCHANGED     94 CALLS      320 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10352E-03    2.6402        .28432E-03** at limit **
   2  Index         1.9905        5.8733        .31608E-01    .11247E-04
   3  Normalizat    1.0179        .32378E-02    .27303E-04   -.70301E-04
   4  Prefactor     .71931        .33321E-02    .29956E-04   -.94951E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5409.951     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      392 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1285        .29658E-03** at limit **
   2  Index         1.8066        5.1003        .50000       -.14421E-05
   3  Normalizat    1.0179        .19261        .17582E-05    .15907E-03
   4  Prefactor     .71931        .19813        .21073E-05    .16293E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.80658
  Normalizat = 1.01787
  Prefactor  = 0.719308
 **********
 **   18 **HESSE 
 **********

 FCN=   5409.951     FROM HESSE     STATUS=OK            27 CALLS      419 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3991        .59315E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8066        9.0336        .50000       -.69279    
   3  Normalizat    1.0179        .19075        .35163E-06   -.92434    
   4  Prefactor     .71931        .19627        .42146E-06   -1.0277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90096e-09
Minuit parameter uncertainties:
  1  1.67792e-05
  2  185.546
  3  0.190878
  4  0.196459
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82807': 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) = 5409.95120955
delta logL = 1.82431540452e-06

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.678e-05  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  1.807e+00  1.855e+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:  7.193e-01  1.965e-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.018e+00  1.909e-01  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/82807/cmap_HighResolution_263952001_264211201_4FGL_J1148.6+1841_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-03', job_status='DONE', photon_flux_upper_limit='5.19e-08', time_completed='2021-09-04 11:59:57.372524', job_id='82807', GAL2='0.72', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630781997.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.82e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='95' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:59:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 82807: <4FGL_J1148.6+1841_daily_bin95> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin95> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:46:16 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:46:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 11:46:18 2021
Terminated at Sat Sep  4 11:59:58 2021
Results reported at Sat Sep  4 11:59:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin95 177.154 18.6861 263952001 264211201 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 :                                   645.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

