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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin72
RA = 177.141, Dec = 26.4986
tmin = 257990401, tmax = 258249601
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='71170', job_status='RUN', time_executed='2021-09-04 11:18:58.161788', time_epoch_executed='1630779538.16' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71170

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71170/ft1_4FGL_J1148.5+2629_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71170/ft2_4FGL_J1148.5+2629_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71170/ft1_4FGL_J1148.5+2629_daily_bin72.fits outfile=/scratch/kocevski/71170/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin72.fits ra=177.141 dec=26.4986 rad=12.0 tmin=257990401.0 tmax=258249601.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 2.05
user 1.26
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/71170/ft2_4FGL_J1148.5+2629_daily_bin72.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71170/ft2_4FGL_J1148.5+2629_daily_bin72.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/71170/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin72.fits evtable="EVENTS" outfile="/scratch/kocevski/71170/ft1_filtered_4FGL_J1148.5+2629_daily_bin72.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.58
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71170/ft1_filtered_4FGL_J1148.5+2629_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/71170/ft2_4FGL_J1148.5+2629_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/71170/ltcube_257990401_258249601_4FGL_J1148.5+2629_daily_bin72.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/71170/ft2_4FGL_J1148.5+2629_daily_bin72.fits
.....................!
real 13.33
user 12.93
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71170/ft1_filtered_4FGL_J1148.5+2629_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/71170/ft2_4FGL_J1148.5+2629_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/71170/ltcube_257990401_258249601_4FGL_J1148.5+2629_daily_bin72.fits outfile=/scratch/kocevski/71170/expmap_257990401_258249601_4FGL_J1148.5+2629_daily_bin72.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/71170/ltcube_257990401_258249601_4FGL_J1148.5+2629_daily_bin72.fits
.....................!
real 198.25
user 193.62
sys 4.14

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1148.5+2629 @ 177.141 26.4986

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/71170/ft1_filtered_4FGL_J1148.5+2629_daily_bin72.fits scfile=/scratch/kocevski/71170/ft2_4FGL_J1148.5+2629_daily_bin72.fits outfile=/scratch/kocevski/71170/cmap_257990401_258249601_4FGL_J1148.5+2629_daily_bin72.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.141 yref=26.4986 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71170/ft1_filtered_4FGL_J1148.5+2629_daily_bin72.fits scfile=/scratch/kocevski/71170/ft2_4FGL_J1148.5+2629_daily_bin72.fits outfile=/scratch/kocevski/71170/cmap_HighResolution_257990401_258249601_4FGL_J1148.5+2629_daily_bin72.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.141 yref=26.4986 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/71170/ft1_filtered_4FGL_J1148.5+2629_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/71170/ft2_4FGL_J1148.5+2629_daily_bin72.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/71170/Model_4FGL_J1148.5+2629_daily_bin72.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/71170/ft1_filtered_4FGL_J1148.5+2629_daily_bin72.fits.....................!
real 50.66
user 49.22
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/71170/ft1_filtered_4FGL_J1148.5+2629_daily_bin72.fits', '/scratch/kocevski/71170/ft2_4FGL_J1148.5+2629_daily_bin72.fits', expMap='/scratch/kocevski/71170/expmap_257990401_258249601_4FGL_J1148.5+2629_daily_bin72.fits', expCube='/scratch/kocevski/71170/ltcube_257990401_258249601_4FGL_J1148.5+2629_daily_bin72.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/71170/Model_4FGL_J1148.5+2629_daily_bin72.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1148.5+2629'

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  3.615e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.924e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  3.685e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/71170/ft1_filtered_4FGL_J1148.5+2629_daily_bin72.fits
Spacecraft file(s): /scratch/kocevski/71170/ft2_4FGL_J1148.5+2629_daily_bin72.fits
Exposure map: /scratch/kocevski/71170/expmap_257990401_258249601_4FGL_J1148.5+2629_daily_bin72.fits
Exposure cube: /scratch/kocevski/71170/ltcube_257990401_258249601_4FGL_J1148.5+2629_daily_bin72.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/71170/Model_4FGL_J1148.5+2629_daily_bin72.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) = 5260.92381111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .68132       1.0000         .10000E-03   10000.    
     3 'norm      '    .17386E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7733       1.0000         .10000E-03   10000.    
     5 'norm      '    13.088       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2418       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11199E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.435       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9334       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15365E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .56730E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.8549       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4625       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.7007       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.2403       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.3179       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.6270       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .54696       1.0000         .10000E-03   10000.    
    27 'norm      '    .19776E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93283       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91084       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5260.857     FROM MIGRAD    STATUS=CONVERGED    816 CALLS     3466 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2364        .85142E-08** at limit **
   2  Prefactor     .68049        1.8840       -.61501E-06   -.12391E-02
   3  norm          .10213E-03    10.178       -.12506E-05** at limit **
   4  Prefactor     7.7702        6.7876       -.38153E-06   -.52676E-04
   5  norm          13.084        10.146       -.94524E-06   -.34432E-04
   6  Prefactor     .10000E-03    11.384        .19715E-06** at limit **
   7  Prefactor     1.2397        2.3521        .13057E-06   -.12919E-02
   8  Prefactor     .10000E-03    98.471        .45931E-04** at limit **
   9  Prefactor     36.430        19.884        .71158E-07    .28301E-04
  10  Prefactor     .10000E-03    5.4201        .58006E-07** at limit **
  11  Prefactor     2.9296        5.4562       -.52369E-05   -.67271E-03
  12  Prefactor     .10000E-03    52.927        .19625E-04** at limit **
  13  Prefactor     .10000E-03    6.7051       -.41142E-07** at limit **
  14  Prefactor     .10000E-03    .77788       -.18774E-06** at limit **
  15  Prefactor     .10000E-03    8.9776        .16256E-06** at limit **
  16  norm          4.8550        1.5669       -.58103E-07   -.46996E-03
  17  Prefactor     .10000E-03    2.6828       -.37661E-07** at limit **
  18  Prefactor     .10000E-03    15.157        .27840E-06** at limit **
  19  Prefactor     2.4621        2.3088       -.16903E-06   -.23852E-03
  20  Prefactor     .10000E-03    1.1747       -.28219E-07** at limit **
  21  norm          2.7005        2.7683       -.11535E-06   -.22201E-03
  22  Prefactor     8.2382        7.1953        .72999E-06   -.45706E-04
  23  Prefactor     2.3178        2.2033       -.29161E-07   -.12287E-03
  24  Prefactor     3.6275        2.0551       -.30772E-07    .18524E-03
  25  Prefactor     .10000E-03    2.8935        .18553E-07** at limit **
  26  norm          .54695        .28623       -.37230E-07    .17352E-03
  27  norm          .10364E-03    2.0475       -.11716E-05** at limit **
  28  Prefactor     .10000E-03    2.5954        .55129E-08** at limit **
  29  Normalizat    .93311        .18407        .17970E-05   -.56089E-05
  30  Prefactor     .91083        .19502        .28807E-07    .66356E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.680487
  norm       = 0.000102126
  Prefactor  = 7.77023
  norm       = 13.0845
  Prefactor  = 0.0001
  Prefactor  = 1.23968
  Prefactor  = 0.0001
  Prefactor  = 36.4301
  Prefactor  = 0.0001
  Prefactor  = 2.92958
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.85499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.46215
  Prefactor  = 0.0001
  norm       = 2.7005
  Prefactor  = 8.23823
  Prefactor  = 2.31775
  Prefactor  = 3.62754
  Prefactor  = 0.0001
  norm       = 0.546947
  norm       = 0.000103641
  Prefactor  = 0.0001
  Normalizat = 0.933113
  Prefactor  = 0.910834
 **********
 **   18 **HESSE 
 **********

 FCN=   5260.857     FROM HESSE     STATUS=OK           618 CALLS     4084 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2409        .14578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .68049        1.7294        .15935E-02   -1.5543    
   3  norm          .10213E-03    12.707        .75458E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7702        6.7892        .14382E-03   -1.5150    
   5  norm          13.084        10.158        .11072E-03   -1.4984    
   6  Prefactor     .10000E-03    11.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2397        2.2886        .14234E-03   -1.5485    
   8  Prefactor     .10000E-03    97.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.430        19.888        .66394E-04   -1.4500    
  10  Prefactor     .10000E-03    5.4275        .16481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9296        5.5139        .21692E-03   -1.5366    
  12  Prefactor     .10000E-03    53.444        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.7747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.3790        .23332E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.9871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.8550        1.5687        .49229E-04   -1.5267    
  17  Prefactor     .10000E-03    2.7692        .23163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4621        2.2969        .10217E-03   -1.5394    
  20  Prefactor     .10000E-03    1.1831        .76667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.7005        2.7805        .10798E-03   -1.5379    
  22  Prefactor     8.2382        7.1900        .13966E-03   -1.5134    
  23  Prefactor     2.3178        2.2153        .93199E-04   -1.5403    
  24  Prefactor     3.6275        2.0514        .74706E-04   -1.5327    
  25  Prefactor     .10000E-03    2.9316        .12043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .54695        .28256        .26395E-04   -1.5560    
  27  norm          .10364E-03    3.1071        .37752E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.5974        .11412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .93311        .21092        .23663E-03   -.95306    
  30  Prefactor     .91083        .22447        .26869E-03   -.95764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24292e-09
Minuit parameter uncertainties:
  1  1.66615e-06
  2  1.72957
  3  0.0103983
  4  6.78991
  5  10.1598
  6  2.08516e-05
  7  2.28878
  8  0.000274134
  9  19.8912
  10  5.88208e-06
  11  5.51483
  12  0.000577166
  13  1.50412e-05
  14  8.50454e-05
  15  2.19671e-05
  16  1.56873
  17  8.48742e-06
  18  5.05997e-06
  19  2.29697
  20  4.18342e-07
  21  2.78061
  22  7.19076
  23  2.21537
  24  2.05144
  25  1.60906e-06
  26  0.282556
  27  0.0067274
  28  6.65378e-07
  29  0.21111
  30  0.224696
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  5.772e-04  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.924e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  3.685e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  9.108e-01  2.247e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  9.331e-01  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 177.141 26.499
Photon Flux Upper Limit: 9.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71170/likelihoodResults_257990401_258249601_4FGL_J1148.5+2629_daily_bin72.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5260.85710387
delta logL = -8.91955942279e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5260.85701511
delta logL = -4.34849425801e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10681E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8617       1.0000          .0000       10.000    
     3 'Normalizat'    .93312       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91085       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+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=   5260.857     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      274 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    8965.7        .36285E-02** at limit **
   2  Index         2.9601        6.4709        .50000       -.24030E-04
   3  Normalizat    .93311        .88238E-01    .23663E-03   -.26568E-04
   4  Prefactor     .91083        .97700E-01    .26869E-03   -.30592E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100043
  Index      = 2.96005
  Normalizat = 0.933114
  Prefactor  = 0.910833
 **********
 **   18 **HESSE 
 **********

 FCN=   5260.857     FROM HESSE     STATUS=OK            29 CALLS      303 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    74.268        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9601        6.4713        .50000       -.42025    
   3  Normalizat    .93311        .19707        .94653E-05   -.95306    
   4  Prefactor     .91083        .22247        .10747E-04   -.95764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.96078e-10
Minuit parameter uncertainties:
  1  0.0035932
  2  4.86981
  3  0.197223
  4  0.222696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71170': 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) = 5260.85701448
delta logL = 1.89496859093e-07

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  3.593e-03  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.960e+00  4.870e+00  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  3.685e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  9.108e-01  2.227e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  9.331e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.141 26.499

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/71170/cmap_HighResolution_257990401_258249601_4FGL_J1148.5+2629_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.64e-03', job_status='DONE', photon_flux_upper_limit='9.58e-08', time_completed='2021-09-04 11:32:13.419197', job_id='71170', GAL2='0.91', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630780333.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='72' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:32:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 71170: <4FGL_J1148.5+2629_daily_bin72> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin72> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:16:53 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:16:56 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:16:56 2021
Terminated at Sat Sep  4 11:32:14 2021
Results reported at Sat Sep  4 11:32:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin72 177.141 26.4986 257990401 258249601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1148.5+2629 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   794.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            921 sec.

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

