/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 8 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 = 7404
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1148.5+2629_daily_bin151
RA = 177.141, Dec = 26.4986
tmin = 278467201, tmax = 278726401
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='71290', job_status='RUN', time_executed='2021-09-04 11:17:23.965023', time_epoch_executed='1630779443.97' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='151'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71290

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71290/ft1_4FGL_J1148.5+2629_daily_bin151.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71290/ft2_4FGL_J1148.5+2629_daily_bin151.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71290/ft1_4FGL_J1148.5+2629_daily_bin151.fits outfile=/scratch/kocevski/71290/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin151.fits ra=177.141 dec=26.4986 rad=12.0 tmin=278467201.0 tmax=278726401.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.63
user 3.44
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71290/ft1_filtered_4FGL_J1148.5+2629_daily_bin151.fits" evtable="EVENTS" scfile=/scratch/kocevski/71290/ft2_4FGL_J1148.5+2629_daily_bin151.fits sctable="SC_DATA" outfile=/scratch/kocevski/71290/ltcube_278467201_278726401_4FGL_J1148.5+2629_daily_bin151.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/71290/ft2_4FGL_J1148.5+2629_daily_bin151.fits
.....................!
real 12.00
user 11.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71290/ft1_filtered_4FGL_J1148.5+2629_daily_bin151.fits evtable="EVENTS" scfile=/scratch/kocevski/71290/ft2_4FGL_J1148.5+2629_daily_bin151.fits sctable="SC_DATA" expcube=/scratch/kocevski/71290/ltcube_278467201_278726401_4FGL_J1148.5+2629_daily_bin151.fits outfile=/scratch/kocevski/71290/expmap_278467201_278726401_4FGL_J1148.5+2629_daily_bin151.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/71290/ltcube_278467201_278726401_4FGL_J1148.5+2629_daily_bin151.fits
.....................!
real 191.77
user 186.14
sys 5.00

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/71290/ft1_filtered_4FGL_J1148.5+2629_daily_bin151.fits scfile=/scratch/kocevski/71290/ft2_4FGL_J1148.5+2629_daily_bin151.fits outfile=/scratch/kocevski/71290/cmap_278467201_278726401_4FGL_J1148.5+2629_daily_bin151.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.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71290/ft1_filtered_4FGL_J1148.5+2629_daily_bin151.fits scfile=/scratch/kocevski/71290/ft2_4FGL_J1148.5+2629_daily_bin151.fits outfile=/scratch/kocevski/71290/cmap_HighResolution_278467201_278726401_4FGL_J1148.5+2629_daily_bin151.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/71290/ft1_filtered_4FGL_J1148.5+2629_daily_bin151.fits', '/scratch/kocevski/71290/ft2_4FGL_J1148.5+2629_daily_bin151.fits', expMap='/scratch/kocevski/71290/expmap_278467201_278726401_4FGL_J1148.5+2629_daily_bin151.fits', expCube='/scratch/kocevski/71290/ltcube_278467201_278726401_4FGL_J1148.5+2629_daily_bin151.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/71290/Model_4FGL_J1148.5+2629_daily_bin151.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/71290/ft1_filtered_4FGL_J1148.5+2629_daily_bin151.fits
Spacecraft file(s): /scratch/kocevski/71290/ft2_4FGL_J1148.5+2629_daily_bin151.fits
Exposure map: /scratch/kocevski/71290/expmap_278467201_278726401_4FGL_J1148.5+2629_daily_bin151.fits
Exposure cube: /scratch/kocevski/71290/ltcube_278467201_278726401_4FGL_J1148.5+2629_daily_bin151.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/71290/Model_4FGL_J1148.5+2629_daily_bin151.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) = 6335.36939237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1364       1.0000         .10000E-03   10000.    
     3 'norm      '    30.949       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6481       1.0000         .10000E-03   10000.    
     5 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4352       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16994E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1278       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0643       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8445       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4035       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3502       1.0000         .10000E-03   10000.    
    21 'norm      '    4.8400       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.4422       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3566       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .83502       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.112       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .90355       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3115       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=   6335.258     FROM MIGRAD    STATUS=CONVERGED    780 CALLS     3355 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4460       -.22255E-06** at limit **
   2  Prefactor     3.1365        2.2758        .77952E-06   -.28839E-02
   3  norm          30.934        17.762        .21416E-05    .45019E-03
   4  Prefactor     9.6484        6.6590        .12825E-07   -.23055E-04
   5  norm          .10000E-03    4.3939       -.29607E-07** at limit **
   6  Prefactor     .10000E-03    13.341        .12122E-05** at limit **
   7  Prefactor     2.4340        3.2136       -.65093E-07   -.56483E-04
   8  Prefactor     .10000E-03    173.20       -.73822E-05** at limit **
   9  Prefactor     .10000E-03    12.353       -.40272E-05** at limit **
  10  Prefactor     .10000E-03    17.901       -.33023E-05** at limit **
  11  Prefactor     8.1255        6.4292        .17799E-06    .89867E-04
  12  Prefactor     .10000E-03    35.861        .57887E-06** at limit **
  13  Prefactor     .10000E-03    4.9641        .60942E-07** at limit **
  14  Prefactor     2.0643        2.2445        .11324E-06   -.21567E-03
  15  Prefactor     .10000E-03    15.086        .48197E-05** at limit **
  16  norm          2.8444        1.3946        .31740E-07   -.10460E-03
  17  Prefactor     .10000E-03    1.7741        .17042E-07** at limit **
  18  Prefactor     .10000E-03    10.413        .10869E-05** at limit **
  19  Prefactor     3.4035        4.1125       -.30869E-07   -.17117E-03
  20  Prefactor     1.3500        4.7890        .43529E-06   -.32982E-03
  21  norm          4.8406        2.6112        .23060E-07   -.18416E-04
  22  Prefactor     7.4422        6.0243        .46865E-07   -.42952E-05
  23  Prefactor     .10000E-03    .54638        .28390E-08** at limit **
  24  Prefactor     2.3565        1.8704        .33203E-07   -.31124E-04
  25  Prefactor     .10000E-03    2.4027        .13641E-07** at limit **
  26  norm          .83502        .31956        .11306E-07   -.23278E-03
  27  norm          .10000E-03    2.9600        .31389E-07** at limit **
  28  Prefactor     18.110        11.829       -.80073E-08   -.32845E-04
  29  Normalizat    .90352        .19283       -.87550E-06    .29497E-04
  30  Prefactor     1.3115        .20483       -.13360E-06    .14414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.13654
  norm       = 30.9342
  Prefactor  = 9.6484
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.43398
  Prefactor  = 0.000100004
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 8.12548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.06429
  Prefactor  = 0.000100002
  norm       = 2.84442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.40353
  Prefactor  = 1.35003
  norm       = 4.8406
  Prefactor  = 7.44218
  Prefactor  = 0.0001
  Prefactor  = 2.35651
  Prefactor  = 0.0001
  norm       = 0.835019
  norm       = 0.0001
  Prefactor  = 18.1096
  Normalizat = 0.903524
  Prefactor  = 1.31151
 **********
 **   18 **HESSE 
 **********

 FCN=   6335.258     FROM HESSE     STATUS=OK           586 CALLS     3941 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1365        3.2628        .69175E-03   -1.5354    
   3  norm          30.934        17.995        .72022E-04   -1.4595    
   4  Prefactor     9.6484        6.6626        .12901E-03   -1.5087    
   5  norm          .10000E-03    4.4026        .16293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.893        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.4340        3.1840        .14984E-03   -1.5396    
   8  Prefactor     .10000E-03    175.14        .20370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.1255        6.4085        .14063E-03   -1.5138    
  12  Prefactor     .10000E-03    36.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.9988        .17318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0643        2.2372        .11745E-03   -1.5421    
  15  Prefactor     .10000E-03    15.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8444        1.3941        .62743E-04   -1.5371    
  17  Prefactor     .10000E-03    1.7861        .10345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4035        3.9107        .13907E-03   -1.5339    
  20  Prefactor     1.3500        4.6213        .26258E-03   -1.5476    
  21  norm          4.8406        2.6094        .91167E-04   -1.5268    
  22  Prefactor     7.4422        6.0291        .14701E-03   -1.5162    
  23  Prefactor     .10000E-03    .54709        .57430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.3565        1.8682        .92772E-04   -1.5401    
  25  Prefactor     .10000E-03    2.4108        .12047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .83502        .31787        .26412E-04   -1.5525    
  27  norm          .10000E-03    2.9941        .13367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     18.110        11.831        .94111E-04   -1.4857    
  29  Normalizat    .90352        .22891        .28765E-03   -.96336    
  30  Prefactor     1.3115        .24196        .27237E-03   -.82965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.65673e-09
Minuit parameter uncertainties:
  1  1.1993e-05
  2  3.26295
  3  17.9986
  4  6.66316
  5  1.06041e-08
  6  8.20493e-05
  7  3.18426
  8  0.00176356
  9  0.000286768
  10  0.000252658
  11  6.40905
  12  8.57349e-05
  13  4.26691e-06
  14  2.23724
  15  0.000389257
  16  1.39414
  17  1.20843e-06
  18  7.28468e-05
  19  3.91104
  20  4.6225
  21  2.60946
  22  6.02956
  23  1.16307e-07
  24  1.86821
  25  1.1059e-06
  26  0.317871
  27  2.84842e-06
  28  11.8322
  29  0.229156
  30  0.242169
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  8.573e-05  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:  1.312e+00  2.422e-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.035e-01  2.292e-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: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71290/likelihoodResults_278467201_278726401_4FGL_J1148.5+2629_daily_bin151.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) = 6335.25814192
delta logL = -0.000131244712975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6335.25801296
delta logL = -2.28236422117e-06

Fit tolerance = 1e-08

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

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

 FCN=   6335.230     FROM MIGRAD    STATUS=FAILED       193 CALLS      386 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15210E-01    7.5815        .67070E-02    .70795E-02
   2  Index         8.1422        6.5311        .50000       -.67527E-04
   3  Normalizat    .89250        .12991        .28765E-03   -.10689E-02
   4  Prefactor     1.3197        .91257E-01    .27237E-03   -.99492E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6335.230     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      472 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15210E-01    7.5815        .76096E-04    .70795E-02
   2  Index         8.1422        6.5311        .10818E-01   -.67527E-04
   3  Normalizat    .89250        .12991        .22758E-04   -.10689E-02
   4  Prefactor     1.3197        .91257E-01    .16789E-04   -.99492E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6335.230     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      518 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15205E-01    .71807         .0000        .26570E-01
   2  Index         8.1425        7.4164         .0000       -.14148E-04
   3  Normalizat    .89250        .22106         .0000       -.66547E-03
   4  Prefactor     1.3197        .24422         .0000       -.57022E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0152053
  Index      = 8.14246
  Normalizat = 0.892497
  Prefactor  = 1.31974
 **********
 **   18 **HESSE 
 **********

 FCN=   6335.230     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      545 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15205E-01    16.027        .67376E-04   -1.5683    
   2  Index         8.1425        5.9280        .21473E-02    2.4620    
   3  Normalizat    .89250        .20655        .11506E-04   -.96724    
   4  Prefactor     1.3197        .22544        .10895E-04   -.82722    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.93379e-09
Minuit parameter uncertainties:
  1  0.984312
  2  52.243
  3  0.206734
  4  0.225607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71290': 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) = 6335.22985018
delta logL = 0.0281605022928

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.521e-02  9.843e-01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  8.142e+00  5.224e+01  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:  1.320e+00  2.256e-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:  8.925e-01  2.067e-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/71290/cmap_HighResolution_278467201_278726401_4FGL_J1148.5+2629_daily_bin151.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.66e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-04 11:32:02.569994', job_id='71290', GAL2='1.32', fit_tolerance='1e-08', EG2='0.89', EG='0.90', time_epoch_completed='1630780322.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='2.82e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='151' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:32:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 71290: <4FGL_J1148.5+2629_daily_bin151> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin151> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:17:04 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:17:05 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:17:05 2021
Terminated at Sat Sep  4 11:32:03 2021
Results reported at Sat Sep  4 11:32:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin151 177.141 26.4986 278467201 278726401 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 :                                   873.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            899 sec.

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

