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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin1025
RA = 177.141, Dec = 26.4986
tmin = 505008001, tmax = 505267201
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='79376', job_status='RUN', time_executed='2021-09-04 11:36:27.678563', time_epoch_executed='1630780587.68' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/79376

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/79376/ft1_4FGL_J1148.5+2629_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/79376/ft2_4FGL_J1148.5+2629_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/79376/ft1_4FGL_J1148.5+2629_daily_bin1025.fits outfile=/scratch/kocevski/79376/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin1025.fits ra=177.141 dec=26.4986 rad=12.0 tmin=505008001.0 tmax=505267201.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 4.55
user 4.30
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/79376/ft2_4FGL_J1148.5+2629_daily_bin1025.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/79376/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin1025.fits evtable="EVENTS" outfile="/scratch/kocevski/79376/ft1_filtered_4FGL_J1148.5+2629_daily_bin1025.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.54
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/79376/ft1_filtered_4FGL_J1148.5+2629_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/79376/ft2_4FGL_J1148.5+2629_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/79376/ltcube_505008001_505267201_4FGL_J1148.5+2629_daily_bin1025.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/79376/ft2_4FGL_J1148.5+2629_daily_bin1025.fits
.....................!
real 13.55
user 13.18
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/79376/ft1_filtered_4FGL_J1148.5+2629_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/79376/ft2_4FGL_J1148.5+2629_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/79376/ltcube_505008001_505267201_4FGL_J1148.5+2629_daily_bin1025.fits outfile=/scratch/kocevski/79376/expmap_505008001_505267201_4FGL_J1148.5+2629_daily_bin1025.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/79376/ltcube_505008001_505267201_4FGL_J1148.5+2629_daily_bin1025.fits
.....................!
real 192.46
user 186.82
sys 5.18

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/79376/ft1_filtered_4FGL_J1148.5+2629_daily_bin1025.fits scfile=/scratch/kocevski/79376/ft2_4FGL_J1148.5+2629_daily_bin1025.fits outfile=/scratch/kocevski/79376/cmap_505008001_505267201_4FGL_J1148.5+2629_daily_bin1025.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 1.07
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/79376/ft1_filtered_4FGL_J1148.5+2629_daily_bin1025.fits scfile=/scratch/kocevski/79376/ft2_4FGL_J1148.5+2629_daily_bin1025.fits outfile=/scratch/kocevski/79376/cmap_HighResolution_505008001_505267201_4FGL_J1148.5+2629_daily_bin1025.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.81
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6923       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7691       1.0000         .10000E-03   10000.    
     3 'norm      '    21.239       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.997       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7239       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.369       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13972E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.720       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9796       1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.594       1.0000         .10000E-03   10000.    
    16 'norm      '    10.293       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.972       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    16.549       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0094       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.7208       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.5067       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7120       1.0000         .10000E-03   10000.    
    26 'norm      '    .12364E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.7732       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0570       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98363       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=   6471.702     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3880 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6903        13.014       -.25109E-05   -.62220E-04
   2  Prefactor     1.7691        2.1307        .10498E-06    .60626E-04
   3  norm          21.240        17.010        .49536E-07    .10110E-03
   4  Prefactor     .10000E-03    5.7587        .19343E-05** at limit **
   5  norm          .10000E-03    9.0669        .49625E-05** at limit **
   6  Prefactor     10.998        12.081        .95426E-07   -.63578E-04
   7  Prefactor     1.7243        1.7988       -.47051E-07    .36886E-03
   8  Prefactor     .10000E-03    14.848        .49493E-05** at limit **
   9  Prefactor     .10000E-03    15.861       -.66164E-05** at limit **
  10  Prefactor     13.372        13.968        .12354E-05    .27712E-03
  11  Prefactor     .10000E-03    3.5040       -.23175E-05** at limit **
  12  Prefactor     .10000E-03    7.6415       -.32704E-05** at limit **
  13  Prefactor     14.719        10.271       -.29547E-06   -.49890E-04
  14  Prefactor     1.9794        1.7875        .15892E-07   -.41260E-04
  15  Prefactor     44.606        31.367        .10447E-04    .41155E-03
  16  norm          10.293        2.1816       -.16339E-06    .31061E-03
  17  Prefactor     .10000E-03    1.9505        .50483E-06** at limit **
  18  Prefactor     26.969        30.180       -.47423E-05   -.16804E-04
  19  Prefactor     .10000E-03    1.1793        .17056E-06** at limit **
  20  Prefactor     .10000E-03    1.1453       -.17996E-07** at limit **
  21  norm          16.549        4.9180        .16920E-07    .22729E-04
  22  Prefactor     2.0074        3.1795        .15448E-05   -.24474E-02
  23  Prefactor     3.7209        2.4870        .28436E-07    .34176E-04
  24  Prefactor     1.5064        2.4344        .26534E-06   -.10302E-03
  25  Prefactor     3.7115        4.6070       -.60949E-07   -.20959E-04
  26  norm          .10000E-03    .20934       -.12846E-07** at limit **
  27  norm          4.7730        4.1521        .21790E-07   -.42151E-05
  28  Prefactor     .10000E-03    3.0945       -.16483E-06** at limit **
  29  Normalizat    1.0572        .19875       -.13908E-05    .29089E-03
  30  Prefactor     .98356        .20554        .24500E-06    .12578E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.69035
  Prefactor  = 1.76914
  norm       = 21.2396
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.9981
  Prefactor  = 1.72429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3715
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 14.7188
  Prefactor  = 1.97943
  Prefactor  = 44.6056
  norm       = 10.2933
  Prefactor  = 0.0001
  Prefactor  = 26.9689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.5493
  Prefactor  = 2.00738
  Prefactor  = 3.72089
  Prefactor  = 1.50642
  Prefactor  = 3.71147
  norm       = 0.000100002
  norm       = 4.77296
  Prefactor  = 0.0001
  Normalizat = 1.05716
  Prefactor  = 0.983555
 **********
 **   18 **HESSE 
 **********

 FCN=   6471.702     FROM HESSE     STATUS=OK           592 CALLS     4472 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6903        12.960        .16836E-03   -1.5231    
   2  Prefactor     1.7691        2.1112        .12058E-03   -1.5442    
   3  norm          21.240        17.014        .86912E-04   -1.4786    
   4  Prefactor     .10000E-03    5.8102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.1204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.998        12.070        .12081E-03   -1.5045    
   7  Prefactor     1.7243        1.7930        .10631E-03   -1.5445    
   8  Prefactor     .10000E-03    14.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.372        13.969        .10955E-03   -1.4976    
  11  Prefactor     .10000E-03    7.6394        .28555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.6521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.719        10.276        .10439E-03   -1.4940    
  14  Prefactor     1.9794        1.7772        .98024E-04   -1.5427    
  15  Prefactor     44.606        31.619        .60037E-04   -1.4371    
  16  norm          10.293        2.1834        .51640E-04   -1.5066    
  17  Prefactor     .10000E-03    1.9753        .10966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.969        30.208        .77138E-04   -1.4669    
  19  Prefactor     .10000E-03    1.1980        .85264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.1518        .84057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          16.549        4.9030        .87644E-04   -1.4894    
  22  Prefactor     2.0074        7.1385        .14603E-02   -1.5425    
  23  Prefactor     3.7209        2.4863        .96218E-04   -1.5322    
  24  Prefactor     1.5064        2.3991        .14682E-03   -1.5462    
  25  Prefactor     3.7115        4.5894        .18447E-03   -1.5323    
  26  norm          .10000E-03    2.1790        .69253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.7730        4.1452        .14623E-03   -1.5271    
  28  Prefactor     .10000E-03    3.0978        .13820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0572        .23944        .27115E-03   -.91139    
  30  Prefactor     .98356        .24977        .30333E-03   -.93280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68418e-08
Minuit parameter uncertainties:
  1  12.9666
  2  2.11126
  3  17.0178
  4  2.28402e-05
  5  6.69291e-05
  6  12.0726
  7  1.7931
  8  9.07274e-05
  9  0.00015585
  10  13.9721
  11  0.000246059
  12  4.2679e-05
  13  10.2771
  14  1.77725
  15  31.6308
  16  2.18337
  17  6.40673e-06
  18  30.2251
  19  2.69144e-06
  20  9.71592e-07
  21  4.90307
  22  7.14157
  23  2.48632
  24  2.39928
  25  4.5898
  26  0.000128414
  27  4.14549
  28  1.10309e-06
  29  0.239685
  30  0.250065
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  4.268e-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:  9.836e-01  2.501e-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:  1.057e+00  2.397e-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: 7.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/79376/likelihoodResults_505008001_505267201_4FGL_J1148.5+2629_daily_bin1025.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) = 6471.70216736
delta logL = -0.000621894811957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6471.70154546
delta logL = 3.22052073898e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9285       1.0000          .0000       10.000    
     3 'Normalizat'    1.0572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98356       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=   6471.702     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      265 TOTAL
                     EDM=   .73E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.509        .18142E-01** at limit **
   2  Index         3.4566        6.0057        .50000       -.49113E-08
   3  Normalizat    1.0572        .83499E-02    .27115E-03   -.10348E-03
   4  Prefactor     .98356        .90871E-02    .30333E-03   -.96397E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.45661
  Normalizat = 1.05715
  Prefactor  = 0.983557
 **********
 **   18 **HESSE 
 **********

 FCN=   6471.702     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      294 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    619.01        .22034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4566        6.1965        .50000       -.31380    
   3  Normalizat    1.0572        .46114E-01    .10846E-04   -.91140    
   4  Prefactor     .98356        .50185E-01    .12133E-04   -.93280    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.8501e-11
Minuit parameter uncertainties:
  1  5.10695e-06
  2  3947.21
  3  0.0461157
  4  0.050187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/79376': 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) = 6471.70154514
delta logL = 3.23975655192e-07

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  5.107e-06  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  3.457e+00  3.947e+03  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.836e-01  5.019e-02  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:  1.057e+00  4.612e-02  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/79376/cmap_HighResolution_505008001_505267201_4FGL_J1148.5+2629_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-03', job_status='DONE', photon_flux_upper_limit='7.82e-08', time_completed='2021-09-04 11:51:57.103140', job_id='79376', GAL2='0.98', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630781517.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='1025' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:51:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 79376: <4FGL_J1148.5+2629_daily_bin1025> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin1025> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 11:36:10 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:36:12 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:36:12 2021
Terminated at Sat Sep  4 11:51:57 2021
Results reported at Sat Sep  4 11:51:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin1025 177.141 26.4986 505008001 505267201 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 :                                   926.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            947 sec.

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

