/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7413
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1148.5+2629_daily_bin1156
RA = 177.141, Dec = 26.4986
tmin = 538963201, tmax = 539222401
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='79583', job_status='RUN', time_executed='2021-09-04 11:36:41.544330', time_epoch_executed='1630780601.54' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='1156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/79583

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/79583/ft1_4FGL_J1148.5+2629_daily_bin1156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/79583/ft2_4FGL_J1148.5+2629_daily_bin1156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/79583/ft1_4FGL_J1148.5+2629_daily_bin1156.fits outfile=/scratch/kocevski/79583/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin1156.fits ra=177.141 dec=26.4986 rad=12.0 tmin=538963201.0 tmax=539222401.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.66
user 4.40
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/79583/ft2_4FGL_J1148.5+2629_daily_bin1156.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/79583/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin1156.fits evtable="EVENTS" outfile="/scratch/kocevski/79583/ft1_filtered_4FGL_J1148.5+2629_daily_bin1156.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/79583/ft1_filtered_4FGL_J1148.5+2629_daily_bin1156.fits" evtable="EVENTS" scfile=/scratch/kocevski/79583/ft2_4FGL_J1148.5+2629_daily_bin1156.fits sctable="SC_DATA" outfile=/scratch/kocevski/79583/ltcube_538963201_539222401_4FGL_J1148.5+2629_daily_bin1156.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/79583/ft2_4FGL_J1148.5+2629_daily_bin1156.fits
.....................!
real 12.23
user 11.85
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/79583/ft1_filtered_4FGL_J1148.5+2629_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/79583/ft2_4FGL_J1148.5+2629_daily_bin1156.fits sctable="SC_DATA" expcube=/scratch/kocevski/79583/ltcube_538963201_539222401_4FGL_J1148.5+2629_daily_bin1156.fits outfile=/scratch/kocevski/79583/expmap_538963201_539222401_4FGL_J1148.5+2629_daily_bin1156.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/79583/ltcube_538963201_539222401_4FGL_J1148.5+2629_daily_bin1156.fits
.....................!
real 191.79
user 186.27
sys 5.10

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/79583/ft1_filtered_4FGL_J1148.5+2629_daily_bin1156.fits scfile=/scratch/kocevski/79583/ft2_4FGL_J1148.5+2629_daily_bin1156.fits outfile=/scratch/kocevski/79583/cmap_538963201_539222401_4FGL_J1148.5+2629_daily_bin1156.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/79583/ft1_filtered_4FGL_J1148.5+2629_daily_bin1156.fits scfile=/scratch/kocevski/79583/ft2_4FGL_J1148.5+2629_daily_bin1156.fits outfile=/scratch/kocevski/79583/cmap_HighResolution_538963201_539222401_4FGL_J1148.5+2629_daily_bin1156.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/79583/ft1_filtered_4FGL_J1148.5+2629_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/79583/ft2_4FGL_J1148.5+2629_daily_bin1156.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/79583/Model_4FGL_J1148.5+2629_daily_bin1156.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/79583/ft1_filtered_4FGL_J1148.5+2629_daily_bin1156.fits.....................!
real 32.25
user 30.72
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    22.094       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8732       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9318       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.652       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7125       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.697       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2559       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10629E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.6336       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .93188E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0438       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8228       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.4535       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.440       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.3389       1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.2090       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1793       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .47671       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=   2617.856     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3974 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.865       -.38440E-06** at limit **
   2  Prefactor     .10000E-03    1.1822       -.46786E-07** at limit **
   3  norm          22.110        24.550       -.21208E-06    .10717E-05
   4  Prefactor     .10000E-03    6.9596       -.24300E-06** at limit **
   5  norm          .10000E-03    15.521        .76681E-07** at limit **
   6  Prefactor     7.8772        11.419        .12217E-07   -.14844E-06
   7  Prefactor     2.9313        2.9645        .23706E-07   -.45431E-05
   8  Prefactor     .10000E-03    31.487        .30556E-06** at limit **
   9  Prefactor     49.677        35.533       -.43227E-06   -.57499E-05
  10  Prefactor     1.7232        48.453        .10274E-05   -.13360E-05
  11  Prefactor     .10000E-03    10.083        .21177E-06** at limit **
  12  Prefactor     32.686        34.854        .89777E-06   -.18505E-04
  13  Prefactor     .10000E-03    6.5947        .77752E-07** at limit **
  14  Prefactor     1.2554        3.2774        .37568E-06    .35653E-04
  15  Prefactor     .10000E-03    57.077       -.45226E-07** at limit **
  16  norm          6.6334        2.8677        .12456E-06   -.88162E-05
  17  Prefactor     .10000E-03    4.6972       -.39425E-06** at limit **
  18  Prefactor     4.1500        154.71       -.14218E-04    .71541E-05
  19  Prefactor     3.8191        4.1932        .33152E-08    .96490E-04
  20  Prefactor     .10000E-03    3.2275        .36465E-07** at limit **
  21  norm          4.4535        4.2503        .13341E-06   -.15576E-04
  22  Prefactor     .10000E-03    13.614        .76617E-07** at limit **
  23  Prefactor     11.441        5.1640        .31834E-07   -.17641E-04
  24  Prefactor     .10000E-03    2.5754        .35183E-07** at limit **
  25  Prefactor     .10000E-03    2.3644       -.79880E-08** at limit **
  26  norm          .10000E-03    .90104E-01   -.16132E-07** at limit **
  27  norm          5.3405        4.7730       -.22962E-08   -.47566E-05
  28  Prefactor     4.2113        16.242        .11417E-05   -.50520E-06
  29  Normalizat    1.1792        .27529       -.16309E-05    .85230E-04
  30  Prefactor     .47657        .26278        .32493E-05    .10978E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.1096
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.87722
  Prefactor  = 2.93131
  Prefactor  = 0.0001
  Prefactor  = 49.6775
  Prefactor  = 1.72316
  Prefactor  = 0.0001
  Prefactor  = 32.686
  Prefactor  = 0.0001
  Prefactor  = 1.2554
  Prefactor  = 0.0001
  norm       = 6.63341
  Prefactor  = 0.000100001
  Prefactor  = 4.15003
  Prefactor  = 3.81908
  Prefactor  = 0.0001
  norm       = 4.45354
  Prefactor  = 0.0001
  Prefactor  = 11.4407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.34046
  Prefactor  = 4.21134
  Normalizat = 1.1792
  Prefactor  = 0.476573
 **********
 **   18 **HESSE 
 **********

 FCN=   2617.856     FROM HESSE     STATUS=OK           588 CALLS     4562 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.035        .17926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.1868        .54319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          22.110        24.539        .85214E-04   -1.4767    
   4  Prefactor     .10000E-03    7.0162        .13180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    15.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8772        11.415        .14290E-03   -1.5147    
   7  Prefactor     2.9313        2.9649        .85689E-04   -1.5366    
   8  Prefactor     .10000E-03    31.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     49.677        34.948        .56911E-04   -1.4297    
  10  Prefactor     1.7232        46.614        .32119E-03   -1.5445    
  11  Prefactor     .10000E-03    10.232        .15851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     32.686        34.957        .70076E-04   -1.4564    
  13  Prefactor     .10000E-03    6.6048        .12831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2554        3.2890        .66985E-03   -1.5484    
  15  Prefactor     .10000E-03    57.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.6334        2.8645        .52880E-04   -1.5193    
  17  Prefactor     .10000E-03    17.002        .20495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.1500        158.52        .20052E-03   -1.5301    
  19  Prefactor     3.8191        4.1034        .10135E-03   -1.5317    
  20  Prefactor     .10000E-03    3.2451        .89527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.4535        4.2482        .97473E-04   -1.5286    
  22  Prefactor     .10000E-03    14.037        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.441        5.1599        .73536E-04   -1.5031    
  24  Prefactor     .10000E-03    2.6191        .79985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.3652        .76838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .92275E-01    .29963E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.3405        4.7730        .10269E-03   -1.5246    
  28  Prefactor     4.2113        16.141        .98213E-03   -1.5298    
  29  Normalizat    1.1792        .29820        .21076E-03   -.87248    
  30  Prefactor     .47657        .28202        .33522E-03   -1.1306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09267e-10
Minuit parameter uncertainties:
  1  4.63156e-06
  2  4.6782e-07
  3  24.5504
  4  1.22334e-06
  5  1.37535e-05
  6  11.4181
  7  2.96503
  8  1.14543e-05
  9  34.9621
  10  17.9397
  11  4.72312e-06
  12  34.9789
  13  3.19393e-06
  14  3.28948
  15  0.000271423
  16  2.86458
  17  0.000208108
  18  51.4451
  19  4.10365
  20  1.35314e-06
  21  4.24851
  22  1.53166e-05
  23  5.16008
  24  4.77755e-06
  25  2.81813e-07
  26  4.4693e-08
  27  4.77331
  28  16.1577
  29  0.298635
  30  0.28285
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  3.269e+01  3.498e+01  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:  4.766e-01  2.828e-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.179e+00  2.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.87
Ra Dec: 177.141 26.499
Photon Index (Fixed Index): 2.92 +/- 0.00
Photon Flux (Fixed Index): 7.71e-08 +/- 8.24e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.71e-05

TS (Fixed Index): 1.87
Ra Dec: 177.141 26.499
Photon Flux Upper Limit: 2.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/79583/likelihoodResults_538963201_539222401_4FGL_J1148.5+2629_daily_bin1156.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) = 2617.85015029
delta logL = 0.00612147126003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2617.84856515
delta logL = 0.00770661427441

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.433       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7273       1.0000          .0000       10.000    
     3 'Normalizat'    1.1944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46642       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=   2617.849     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      264 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.423        36.282        .71467E-04    .56472E-05
   2  Index         2.7257        1.5611        .11818E-01    .25040E-05
   3  Normalizat    1.1943        .29493        .20968E-03   -.55846E-05
   4  Prefactor     .46663        .28826        .33847E-03   -.41834E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.4233
  Index      = 2.72569
  Normalizat = 1.19432
  Prefactor  = 0.466634
 **********
 **   18 **HESSE 
 **********

 FCN=   2617.849     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.423        37.147        .28587E-05   -1.4586    
   2  Index         2.7257        1.5936        .47272E-03   -.47222    
   3  Normalizat    1.1943        .29648        .83872E-05   -.86778    
   4  Prefactor     .46663        .28889        .13539E-04   -1.1353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63481e-11
Minuit parameter uncertainties:
  1  37.1746
  2  1.6298
  3  0.296902
  4  0.289796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/79583': 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) = 2617.8485641
delta logL = 0.007707669301

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  3.142e+01  3.717e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.726e+00  1.630e+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:  4.666e-01  2.898e-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.194e+00  2.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 177.141 26.499
Photon Index (Free Index): 2.73 +/- 1.63
Photon Flux (Free Index): 6.38e-08 +/- 1.28e-07
Energy Flux (Free Index): 1.51e-05 +/- 1.75e-05

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/79583/cmap_HighResolution_538963201_539222401_4FGL_J1148.5+2629_daily_bin1156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-02', comment='SUCCESS', photon_flux='7.71e-08', energy_flux2='1.51e-05', photon_flux_error='8.24e-08', dlogl='7.71e-03', energy_flux='1.60e-05', photon_flux2='6.38e-08', job_status='DONE', time_completed='2021-09-04 11:46:29.152689', photon_index_error2='1.63', photon_index2='2.73', ts='1.87', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', photon_flux_upper_limit='2.53e-07', energy_flux_error2='1.75e-05', EG='1.18', time_epoch_completed='1630781189.15', return_code='0', job_id='79583', GAL2='0.47', EG2='1.19', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='1.28e-07', ts2='1.88', photon_index='2.92' WHERE bin_id='1156' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:46:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 79583: <4FGL_J1148.5+2629_daily_bin1156> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin1156> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 11:36:27 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:36:28 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:28 2021
Terminated at Sat Sep  4 11:46:29 2021
Results reported at Sat Sep  4 11:46:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin1156 177.141 26.4986 538963201 539222401 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 :                                   584.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   601 sec.
    Turnaround time :                            602 sec.

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

